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 !
- uv for Python package management
- Python 3.11 or higher
- A Discord bot token (get one from Discord Developer Portal)
The easiest way of setting up this bot is with Docker:
- Clone the git repository onto your machine
cdinto the cloned directory- Create a
.envfile in the root directory and add your Discord bot token:cp .env.example .env # Edit .env and set your DISCORD_TOKEN - Run with docker-compose:
docker-compose up -d
- Clone the git repository onto your machine
cdinto the cloned directory- Install uv if you haven't already
- Install dependencies:
uv sync
- Create a
.envfile with your Discord bot token:cp .env.example .env # Edit .env and set your DISCORD_TOKEN - Run the bot:
uv run python main.py
For background execution, you might want to use tmux or screen 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]
In this link, do not forget to replace [id] by your application ID, and paste this link in Discord (a wizard will ask you where you want to install it).
You can tune its permissions and scopes here: https://discord.com/developers/applications/.
Documentation for the currently implemented commands is available in COMMANDS_USAGE.