Discord bot utilizing the SRC API for speedrunning-related discords.
Features include:
- Pretty embeds for player runs, top runs in a category, game info, etc.
- Fuzzy matching category/player names for convenient lookups
- Logging and simple configuration
- Stable & robust backend that can handle subcategories, categories, level runs, etc. (TODO)
[] = mandatory, () = optional
run [category] [player]
top [category] (n)
ginfo (game)
cinfo [category]
clist (game)
newest (category)
place [category] [place]
These commands are all optional, and must be enabled in config.py to work properly.
.game [game_id]
Changes the current game context to the given game ID,
.markov
Funny markov text generation.
First, create a discord bot application.
Then create a file called secret.py
in the src
directory with contents like this:
BOT_TOKEN = "{your bot token here}"
You're also going to want to change a lot of stuff in src/config.py
to match with what you're doing. Change the game ID to whatever game you're going to work with by default, enable/disable the various optional features, etc.
Run these commands (assuming python3 and pip are installed and in your system PATH):
pip3 install -r requirements.txt
coverage run src/tests.py
If all the tests pass, you're good to run this command:
python src/speedbot.py