This bot simply removes posts that have been flaired by AutoModerator if the post was created during the specified day range (Monday-Wednesday for instance) and the flair matches the config.
- Copy the config example to config.ini
cp config/config.ini.example config/config.ini
- Create API account on Reddit
- Fill in the keys and passwords in the
config/config.ini
file - Set the
SUBREDDIT
inconfig/config.ini
- This only works when the Reddit account is moderator of the selected subreddit.
- Set
DAY_START
andDAY_END
variables inconfig/config.ini
file.- Python starts the week on Monday. Keep this in mind as you add values.
- To remove posts between Saturday and Sunday, use
DAY_START = Saturday
andDAY_END = Sunday
- Note: We don't currently support multiple date ranges.
- Set
FLAIR_TO_REMOVE
to the flair class being used to determine removal needs. If the flair class contains this value the post will be removed. - Set
REMOVAL_REASON_ID
to the Reddit ID for the removal reason. - Run using docker-compose:
docker-compose up -d