This Reddit Comment Bot is a python-based auto-responder.
- Pick a subreddit to scan
- Designate a specific comment to search for
- Set your bot's reply
- Navigate to the Apps page
- Click create an app
- name: Set a name for your app
- type: Script
- description: Optional
- about url: Optional
- redirect uri: Set an uri
- Note the outputted client id and secret
- username: your Reddit username
- password: your Reddit password
- client_id: the outputted client id
- client_secret: the outputted secret
Set the subreddit to search (default = "r/insertyoursubreddithere"):
subreddit = reddit.subreddit(‘insertyoursubreddithere’)
Comment search phrase (default = "searchphrase"):
if re.search("searchphrase", submission.title, re.IGNORECASE):
Bot's comment reply (default = "Insert your message here!"):
submission.reply("Insert your message here!")
Navigate into the bot directory. Run your bot:
$ python reply_post.py