A reddit bot created to help moderate subreddits, incorporating auto-flairing, commenting, and required approvals.
This version of the bot is compatible with Python 3.
Currently, the bot is able to:
- Automatically comment on every new post
- Flair posts based on the score of the comment
- Report posts based on the score of that comment
- Remove posts that receive high numbers of upvotes and haven't been approved.
- Log all actions in a separate text file and subreddit
There is currently a short FAQ hosted here
Alright! Now that the bot is universalized, we can get the show on the road!
Clone the repo. Simply type
git clone https://github.com/umbresp/redditBotwhere you want this directory.
config.py. Fill in all of the responses. Enter
\nfor any text, comment, etc that you do not wish to enable. Do not leave fields blank!
Then, after all that is done, change the file name of
Create a reddit app. Go here
- scroll to the bottom and select "Create another app...".
- Make up a name and description and select
- Set the redirect url to
- Add your bot account as a developer
- Inset the public and secret keys into
- Insert your (the bot's) username and password into
praw.ini. (you can't have 2FA on)
- DO NOT UPLOAD PRAW.INI TO THE INTERNET, NOW OR EVER!!! Keep this stored locally. If on github, add it to your
Run it! The main file is main.py, it'll create a log for you. Based on your system, you can set it as a scheduled job to run main.py every x minutes. For cron on linux systems, you'll want to use launcher.sh, modified for your directory structure.