Skip to content

Python bot that automatically performs routine tasks on r/Diablo

Notifications You must be signed in to change notification settings

xiphirx/Butcher-Bot

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

80 Commits
 
 
 
 
 
 

Repository files navigation

Overview

Butcher-Bot is a moderator bot for reddit, originally developed for use on /r/Diablo. It is designed to be lighter, faster, and more flexible than other available modbots.

#Features

Butcher-Bot monitors one or more subreddits and performs actions upon the satisfaction of rules.

rules currently implemented

  • submission is image (regexp and content-type)
  • submission title match
  • comment username match

actions currently implemented

  • post comment reply (distinguish requires moderator privileges)
  • remove submission or comment (requires moderator privileges)
  • report submission or comment

#Setup

Clone auto_mod.py and create rules.ini in the same directory. See below for example.

[DEFAULT]
user = reddit_name
pass = reddit_password
user_agent = Some /r/example modbot [Butcher-Bot, PRAW; contact /u/example]
last_item = 0
last_comment = 0

[images]
type = image		# "image" type does some additional checking deeper than a URL regexp
reddits = example example2
re = (?:\.jpg$|\.png$|\.jpeg$|\.gif$|\.bmp$|quickmeme\.com/|memegenerator\.net/)
comment = Images are prohibited here.
distinguish = true
actions = comment remove

[forbidden title words]
type = title
reddits = example
re = ^(?:badword1|badword2)
comment = Those words are too bad. They're not allowed here.
distinguish = true
actions = comment remove

[auto-report troublesome users for manual review]
type = comment_user
reddits = example
re = ^(?:baduser1|baduser2)
comment = unused
distinguish = unused
actions = report

#Dependencies

About

Python bot that automatically performs routine tasks on r/Diablo

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages