Source code of the BDE Algo's Discord bot.
DISCLAIMER: This is NOT a library, but an implementation based on Pycord,
suited for our needs.
We make it open-source because we are open to contributions !
The easiest way of setting up this bot is with Docker. With docker-compose (assuming you already have it installed):
- Clone the git repository onto your machine
cd
into the cloned directory- Create a file
secret.py
in therobot
folder, and add a string variabletoken
containing your Discord bot token - Finally, run
docker-compose up -d
If you can't use docker:
- Clone the git repository onto your machine
- Install the python dependencies with
pip install -r requirements.txt
(the usage of a dedicated python environment is recommended) - Create a file
secret.py
in therobot
folder, and add a string variabletoken
containing your Discord bot token - Once you're done with this setup, run
python main.py
.
You might want to usetmux
orscreen
to detach the script from your terminal
To add your bot to a server, use this link: https://discord.com/api/oauth2/authorize?client_id=[id]&permissions=[perm]&scope=bot%20applications.commands
In this link, do not forget to replace [id]
by your application id,
and [perm]
by the integer authorization value,
both of which you can get here: https://discord.com/developers/applications/.
Documentation for the currently implemented commands is available in COMMANDS_USAGE.