Simple single-function Reddit auto-mod bot written in Python 3. Based on the original code writen by /u/busterroni and the improvements by PRAW developer /u/bboe.
I'm not a fantastic Python developer, so there are probably some 'not-best-practice' things in here. I'll work on improving it as I learn, but this should at least get you going enough to automod a sub.
Prerequisites:
- Python 3.6+
- Python Reddit API Wrapper (PRAW), run "pip install praw"
- A new Reddit Application
Current version: v0.1.3 (Release 06/11/2017)
All of your variables should be in the header, but you will also need to edit praw.ini with the user account details generated from the Reddit app.
Planned (future) improvements:
Support for multiple keywords using lists- done in v0.1.2Error handling for exceeded rate limits- done in v0.1.3- Performance handling for large amounts of comments by utilizing SQL lite instead of a TXT file for comments
- Allow bot to listen for keyword lists and reply with different REPLY_MESSAGE
- Integrate support for multiple user accounts to allow for more than one bot to post from a single instance of this program