Skip to main content

Discord quote bot

Project description

forebodere

Forebodere is a quotation bot for Discord, using the Whoosh search engine for quote lookups.

Running

Python

To run the bot directly with python, you should install the requirements in a clean virtualenv and run the package, passing the path to hord and the discord bot token (which can also be inferred from the $DISCORD_TOKEN environment variable):

virtualenv .venv -p python3.6
source .venv/bin/activate

pip install -r requirements.txt
python -m forebodere --hord '/path/to/forebodere.hord' --token 'DISCORD_TOKEN'

Docker

A repository exists on Dockerhub for Forebodere, which can be pulled:

docker pull autophagy/forebodere:latest

However, this will not run on ARM processors, like those on Raspberry Pi machines. Instead, you should build the image directly on the machine:

docker build -t autophagy/forebodere:latest .

You can then run the docker image by setting the DISCORD_TOKEN environment variable

docker run -d -e DISCORD_TOKEN="TOKEN" autophagy/forebodere:latest

However, due to the ephemeral nature of containers, the Quote DB will be deleted upon container destruction. To create a persistant quote DB, pass in the forebodere.hord as a volume:

docker run -d -v /path/to/forebodere.hord:/app/forebodere.hord -e DISCORD_TOKEN="TOKEN" autophagy/forebodere:latest
MIT License

Project details


Release history Release notifications

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Files for forebodere, version 0.1.0
Filename, size File type Python version Upload date Hashes
Filename, size forebodere-0.1.0-py3-none-any.whl (9.7 kB) File type Wheel Python version py3 Upload date Hashes View hashes
Filename, size forebodere-0.1.0.tar.gz (7.0 kB) File type Source Python version None Upload date Hashes View hashes

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page