A discord bot for Vaults of Vaarn
Requirements:
- Python >= 3.9
- pip
# Create and activate a virtual environment
python3 -m venv venv
source venv/bin/activate
# Install the dependencies
(venv)$ pip install -r requirements-dev.txt
Before we can invite Mnemosym to our discord channel, we will first need to create a discord application, a bot account, and to note down the OAuth token. These steps can be found in the documentation for discord.py.
Copy the .example_env
file to .env
and modify it to include the OAuth token from the previous step. This file is used when running the scripts locally, and is passed into the docker container at runtime.
# Make sure you're using the latest version of the data files.
python scripts/get_tables.py
# Run bot
python -m mnemosym.bot
A Dockerfile has been provided to automate the above build and execution processes.
docker build -t mnemosym .
docker run --env-file .env -d mnemosym
Vaults of Vaarn was created by Leo Hunt and licensed under CC BY-SA 4.0
Mnemosym's tables are sourced form OmniCzech's vaarn-generators.