Python Discord Bot using Challonge API to manage tournaments
The bot is based on the following packages and their dependancies
Discord.py
(documentation)pychal
(documentation)dotenv
(documentation)
You can download this repository and set a .env
file at the project root. Note
that .env
is not uploaded to GitHub as it is ignored via .gitignore
. The
information required to be put into the file is mentioned later.
Then, you have to run the setup script
pip install -e .
And then you can start the bot using the following command
bot
Create a .env
file at root level. Serve the file with tokens from
Discord and from
Challonge
[discord]
DISCORD_TOKEN={your-discord-token-here}
[challonge]
CHALLONGE_NICKNAME={your-challonge-nickname}
CHALLONGE_TOKEN={your-challonge-token}
Commands start with bot
at the start of the message
The first command being developed as of now is bot register
. More information
can be found here.
Admin commands are meant to be executed by Guild.Member
with Administrator
permission
The above commands are also implemented using parameters
bot admin list [-open|-closed]
bot admin create -name Tournament Name -type Tournament Type
bot admin destroy -name Tournament Name
Note:
Spaces
are allowed in this use of commands
Hereunder is a list of bot commands
bot admin list
bot admin create Tournament-Name Tournament-Type
bot admin destroy Tournament-Name
Note:
- Arguments need to not have any
space
and should be written with a-
bot admin list
without parameters will display both-open
and-closed
tournaments
If you want new feature to be added, please request them in the Issues section.
If you want to share your knowledge and help developing the Bot, you are welcome to fork this project and send a pull request.