This allows you to scan for comments in a subreddit and reply to them with your own unique flavour
- Pick a subreddit to scan
- Designate a specific type of 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: http://localhost:8080
- 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/dankruto"):
r.subreddit('dankruto')
Comment search criteria (default = "dattebayo"):
if "dattebayo" in comment.lower():
Bot's comment reply (default = "Dattebayo!"):
comment.reply("Dattebayo!")heroku logs --tail
Additionally, It also comments on posts with high upvotes with special ninjutsus like Chou Senpo Odama Rasengan
Navigate into the bot directory. Run your bot:
python reddit_bot.py
Note: This bot doesn't have 100% availability as I am using my local computer right now. I have tried deploying it to Heroku but that hasn't always worked out. Will be modifying it soon enough