/taubot

A Reddit/Discord economy bot implementation.

Primary LanguagePythonGNU Affero General Public License v3.0AGPL-3.0

taubot

This is a Reddit/Discord economy bot implementation in Python.

Dependencies

Taubot's dependencies are defined in the requirements.txt file. Install them with

pip3 install -r requirements.txt

Usage

The bot will need credentials to log into Reddit. Summarize them in a JSON file named bot-config.json placed in the directory from which you run the bot. A bot-config.json looks like this:

{
  "reddit_client_id": "CLIENT_ID",
  "reddit_client_secret": "CLIENT_SECRET",
  "reddit_username": "USERNAME",
  "reddit_password": "PASSWORD",
  "discord_token": "BOT TOKEN",
  "server_key": "PEM PRIVATE RSA KEY",
  "prefix": ["e!"]
}

To make the bot respond to all unread messages, simply run python3 src/bot.py.