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
Contribute
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
DISCORD_TOKEN=discord_token_of_your_bot
league-bot
A systemd unit can be used to configure the bot as a system service:
[Unit]
Description=league-bot
After=network-online.target
[Service]
Type=simple
Restart=always
WorkingDirectory=directory_where_krcg_is_installed
Environment=DISCORD_TOKEN=discord_token_of_your_bot
ExecStart=/bin/bash -c 'source venv/bin/activate && league-bot'
[Install]
WantedBy=multi-user.target
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"
Metadata
Release files for cleague-bot 1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| cleague-bot-1.0.tar.gz | 10.8 kB | Without provenance | Details for cleague-bot-1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| cleague_bot-1.0-py3-none-any.whl | Python 3 | none | any | Details for cleague_bot-1.0-py3-none-any.whl |
Total release size: 22.8 kB
Release files / cleague-bot-1.0.tar.gz
| Download URL | cleague-bot-1.0.tar.gz |
|---|---|
| Size | 10.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
e55591a57cf5db93acb38a91e14443f133fd6efe2276abea9020c52028c97791
|
|
BLAKE2b-256 checksum How to use checksums |
929d27753f940c8e115938b5bdb99671456feeab620c6ce1c06b3b747208d471
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
|
Release files / cleague_bot-1.0-py3-none-any.whl
| Download URL | cleague_bot-1.0-py3-none-any.whl |
|---|---|
| Size | 12.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
a376df043b98c48e38f461b18b21a1634aa2b6e99dec99d9f84ce6c5d58d5794
|
|
BLAKE2b-256 checksum How to use checksums |
64735e541bcb6d9daa040f083fe09a248b5d652f7677a335dfb661f986b438d0
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.4.1 importlib_metadata/4.4.0 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.61.0 CPython/3.8.2
|
Security for cleague-bot 1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.