Skip to content
A moderation tool for reddit that flairs posts based on comment scores.
Python Shell
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.gitignore
LICENSE
README.md
autoResponder.py
autoreslauncher.sh
botconfig.ini
configure.py
launcher.sh
main.py
samplelogin.ini

README.md

flairBot

A reddit bot created to help moderate subreddits, incorporating auto-flairing, commenting, and required approvals.

Features

Currently, the bot is able to:

  • Automatically comment on every new post
  • Flair posts based on the score of the comment
  • Report posts based on the score of that comment
  • Remove posts that receive high numbers of upvotes and haven't been approved.
  • Log all actions in a separate text file and subreddit

FAQ

There is currently a short FAQ hosted here

Getting Started

Alright! Now that the bot is universalized, we can get the show on the road!

  1. Clone the repo. Simply type git clone https://github.com/jackson1442/redditBot where you want this directory.

  2. Open config.py. Fill in all of the responses. Enter \n for any text, comment, etc that you do not wish to enable. Do not leave fields blank!

  3. Then, after all that is done, change the file name of samplelogin.ini to praw.ini.

  4. Create a reddit app. Go here

    • scroll to the bottom and select "Create another app...".
    • Make up a name and description and select script.
    • Set the redirect url to http://127.0.0.1
    • Add your bot account as a developer
    • Inset the public and secret keys into praw.ini.
    • Insert your (the bot's) username and password into praw.ini. (you can't have 2FA on)
    • DO NOT UPLOAD PRAW.INI TO THE INTERNET, NOW OR EVER!!! Keep this stored locally. If on github, add it to your .gitignore.
  5. Run it! The main file is main.py, it'll create a log for you. Based on your system, you can set it as a scheduled job to run main.py every x minutes. For cron on linux systems, you'll want to use launcher.sh, modified for your directory structure.

You can’t perform that action at this time.