Reddit bot that replies to comments with excerpt from linked wikia article or section.
Python
Switch branches/tags
Nothing to show
Pull request Compare This branch is 92 commits ahead, 8 commits behind acini:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.gitignore
LICENCE
README.md
autowikiabot-commenter.py
autowikiabot-remover.py
util.py

README.md

AutoWikiabot

A Reddit bot that replies to comments with an excerpt from a linked wikia article or section.

Current instance: In action | Subreddit

Features

  • Deletes on parent commenter command
  • Deletes if comment score below threshold
  • User blacklist
  • Automated subreddit blacklisting on first HTTP 403 encountered

Requirements

Tested in Python 2.7.6

  • pip install praw
  • pip install pyimgur
  • pip install beautifulsoup4
  • Install wikia from my repository

Configuration

First, with your bot account, create 3 comments where they will not be removed by someone.

  1. comment with banned users list separated by single newline
  2. comment with excluded subreddits (without /r/) list separated by single newline
  3. comment with list of subreddits where bot will only reply to top level (root) comments
  4. comment with a number indicating total number of posts made by bot. Set 0 at first setup.

Second, You need to create a file called datafile.inf and have following data in it on separate lines:

  • reddit bot username
  • reddit bot account password
  • imgur client id
  • ID of comment with banned users list
  • ID of comment with excluded subreddits
  • ID of comment with root only subreddits
  • ID of comment with a number of total number of posts

The file will look something like this:

wikipedia_robot
botspassword
rt23rnsr2453fop
cetagti
cefsfs4
cef43fs
ce5gd56

License

This source code is available under a custom licence. See the accompanying file LICENCE.