8000 GitHub - PalAditya/DankrutoBot: A bot for the Dankruto Subreddit
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

PalAditya/DankrutoBot

Repository files navigation

Naruto Love Bot

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

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: 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/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

Usage

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

About

A bot for the Dankruto Subreddit

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published
0