This reddit bot is live deployed.
So, if you want to test it go to any subreddit named below (make sure don't spam),
and comment under any post with (bollywood/Bollywood) word with in your comment.
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: 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/test"):
r.subreddit('test')
Comment search criteria (default = "sample user comment"):
if "sample user comment"
Bot's comment reply
reader = csv.reader(f)
chosen_row = random.choice(list(reader)) #Chose a random row from csv file
comment.reply(chosen_row) #reply with that random row
Navigate into the bot directory. Run your bot:
$ python reddit_bot.py
Fork this Repository for any kind of contribution,
All kind of contributions, issues and feature requests are welcome ❤️