Skip to content

Reddit bot that auto replies to comments on set subreddits

License

Notifications You must be signed in to change notification settings

andreduong-zz/reddit-reply-bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Reddit Comment Bot

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

Requirements

Setup

Reddit App:
  1. Navigate to the Apps page
  2. Click create an app
  3. name: Set a name for your app
  4. type: Script
  5. description: Optional
  6. about url: Optional
  7. redirect uri: Set an uri
  8. Note the outputted client id and secret
praw.init:
  1. username: your Reddit username
  2. password: your Reddit password
  3. client_id: the outputted client id
  4. client_secret: the outputted secret
reply_post.py:

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!")

Usage

Navigate into the bot directory. Run your bot:

$ python reply_post.py

About

Reddit bot that auto replies to comments on set subreddits

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages