Reddit bot for r/itookapicture
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.
modules
utils
.gitignore
.travis.yml
README.md
config.py
itap_bot.py
requirements.txt
slack_test.py

README.md

r/itookapicture bot Build Status

Reddit bot for r/itookapicture

Feature List

  • Updates countdown in the sidebar for Mona Lisa Monday
  • Automatically removes non-mod approved MLM related submissions on a non-monday
  • Aggregates top-level comments of a "Best Of" submission thread (turned off by default)

Prerequisites

  • Python 3.x (developed on Python 3.5.2)
  • virtualenv
  • git

Installation

# clone repository
git clone https://github.com/teh-username/itap_bot.git

cd itap_bot

# setup virtual env for bot
virtualenv -p python3 itap

# install requirements
itap/bin/pip install -r requirements.txt

# run the bot
itap/bin/python itap_bot.py

Additional Configs

  • Script retrieves credentials via environment variable. Please set the following (more info here):
    • ITAP_ID
    • ITAP_SECRET
    • ITAP_USERNAME
    • ITAP_PASSWORD

Execution flags

  • --debug enables logging of relevant states of the bot.
  • --best-of enables one-time execution of "Best Of" feature.