Skip to content

Bollywood-Bot/reddit

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

28 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Visitors Count

Bollywood Bot - Reddit Version

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.


How to use this

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

  • Python 3
  • Praw
  • A Reddit Account
  • A csv file with all the replies

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: http://localhost:8080
  8. Note the outputted client id and secret
config.py:
  1. username: your Reddit username
  2. password: your Reddit password
  3. client_id: the outputted client id
  4. client_secret: the outputted secret
reddit_bot.py:

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

Usage

Navigate into the bot directory. Run your bot:

$ python reddit_bot.py

Contribution

Fork this Repository for any kind of contribution,
All kind of contributions, issues and feature requests are welcome ❤️

About

Reddit client for Bollywood B Bot

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages