Skip to content

Latest commit

 

History

History
89 lines (50 loc) · 1.82 KB

README.md

File metadata and controls

89 lines (50 loc) · 1.82 KB

Speedbot

Python application codecov

Discord bot utilizing the SRC API for speedrunning-related discords.

sc1 sc2

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)

Commands

[] = mandatory, () = optional

run

run [category] [player]

top

top [category] (n)

ginfo

ginfo (game)

cinfo

cinfo [category]

clist

clist (game)

newest

newest (category)

place

place [category] [place]

Optional Commands

These commands are all optional, and must be enabled in config.py to work properly.

game

.game [game_id]

Changes the current game context to the given game ID,

game

markov

.markov

Funny markov text generation.

Running it yourself

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