Skip to content
This repository was archived by the owner on Nov 28, 2019. It is now read-only.

GrafeasGroup/tor_flair

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Stories in Ready

Flair Moderator Bot - Transcribers Of Reddit

This is the source code for the ToR Flair Moderator Helper (/u/tor_flair_bot). It forms one part of the team that assists in the running of /r/TranscribersOfReddit (ToR), which is privileged to have the incredibly important job of organizing crowd-sourced transcriptions of images, video, and audio.

As a whole, the ToR bots are designed to be as light on local resources as they can be, though there are some external requirements.

  • Redis (tracking completed posts and queue system)

NOTE:

This code is not complete. The praw.ini file is required to run the bots and contains information such as the useragents and certain secrets. It is built for Python 3.6.

Installation

$ git clone https://github.com/GrafeasGroup/tor_flair.git tor-flair
$ pip install --process-dependency-links tor-flair/

OR

$ pip install --process-dependency-links 'git+https://github.com/GrafeasGroup/tor_flair.git@master#egg=tor_flair'

High-level functionality

Monitoring daemon (via Redis queue):

  • Pull job (by post id) off of queue:
    • Get username and subreddit from job
    • If it is a moderator of that subreddit:
      • get config wiki page
      • set flair text and css class for user

Running Flair Moderator Bot

$ tor-flair
# => [daemon mode + logging]

Contributing

See CONTRIBUTING.md for more.

About

A moderator bot that helps with user flairs

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors