A Discord bot for managing student rankings and leaderboards in coding olympics events.
-
Open your shell config file:
nano ~/.zshrc -
Add the following line at the bottom (replace with your actual bot token):
export COMPILED_TOKEN="your_actual_token_here"
-
Save and exit:
- Press CTRL + O → Enter
- Press CTRL + X to close
-
Reload your shell so the token is available:
source ~/.zshrc
-
Verify it’s set:
echo $COMPILED_TOKEN
You should see your token printed in the terminal.
-
Install dependencies:
python3 -m pip install -U discord.py
-
Start the bot:
python3 main.py
-
If successful, you’ll see:
Logged in as COMPILED BOT