This bot is made with python and will respond to a comment with a random joke
- Choose subreddit where bot will be active
- Label keywords the bot will respond to
- While signed in, go to preferences->apps.
- Click "create an app" near the bottom of the screen
- name: name for your app
- type: script
- description: description for your app (optional)
- about url: (optional)
- redirect uri: http://localhost:8080
- Click "create app"
- Keep track of "client id" and "secret" that are displayed
- username: youre Reddit username
- password: your Reddit password
- client_id: client id (from step 9. above)
- client_secret: secret id (from step 9. above)
Set which subreddit bot will be active in (default = 'test'), will be active in r/test
a.subreddit('test')
Set amount of comments bot will scrape through (default = 20)
a.subreddit('test').comments(limit = 20)
Set which keyword(s) will activate bot (default = "sample user keyword")
if "sample user keyword"
Run the bot in the directory where bot is located
$ python redditbot.py