Timidger / autowikiabot-py

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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.

About

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

License:Other


Languages

Language:Python 100.0%