Skip to main content

"Discord bot to handle the Commander League",

Project description

Commander League Discord Bot

A discord bot to handle the different aspects of a tournament:

  • Registration: !register player_nickname deck_hash deck_link
  • Results: !result player_1 result_1-result_2 player_2
  • Performance during one split: !stats
  • Knowing who is selected for the end-of-split invitational: !invitational


Contributions are welcome !

Hosting the bot

If you need to host a new version of the bot yourself, Python 3 is required, as well as an environment variable DISCORD_TOKEN. The token can be found on your Discord applications page.

The preferred way to run the bot is to use a python virtualenv:

/usr/bin/python3 -m venv venv
source venv/bin/activate
pip install league-bot

A systemd unit can be used to configure the bot as a system service:


ExecStart=/bin/bash -c 'source venv/bin/activate && league-bot'


For development, the environment variable DISCORD_TOKEN can be provided by a personal .env file at the root of the league-bot folder (ignored by git):

export DISCORD_TOKEN="discord_token_of_your_bot"

Project details

Release history Release notifications | RSS feed

This version


Download files

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

Source Distribution

cleague-bot-1.0.tar.gz (10.8 kB view hashes)

Uploaded Source

Built Distribution

cleague_bot-1.0-py3-none-any.whl (12.0 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page