This project was made for my final exam in the Python Lab of Ynov Bordeaux. This project is a dashboard that allows you to control some aspects of the bot, like changing the prefix, changing the nickname, add some banned words, etc.
- Python
- nextcord.py
- Quart (async version of Flask)
- Sqlite3 for demonstration purposes (use a real database)
- TailwindCSS
Python 3.6 or higher, and a Discord bot account.
For packages needed, install them with pip install -r requirements.txt
.
Create a bot account in discord, and add the bot token and secret in a .env
file.
Example of .env
file:
BOT_TOKEN = "XXXXXXXXXXXXXXXXXXXXXXX.XXXXX.XXXXXXXXXXXX"
BOT_SECRET = "XXXXXXXXXXXXXXXXXXX"
Open two terminals, one for the bot and one for the dashboard.
Then run the bot with python3 bot.py
and the dashboard with python3 dashboard.py
.
You wait a little bit, and then you can access the dashboard with the following link: http://localhost:5000/
And voilà !
Directors of Python Laboratory of Ynov Bordeaux :
Lead developer of this project (me !) :
- Valentin DAUTREMENT