-
Assign a particular role to students that enter a key
-
Assign their preferred name if it exists other wise assign their first name
-
Parse a .csv file that contains the student information and the Discord keys
-
"$update" command to update the data the Bot is using without having to restart the Bot
Guide: https://www.writebots.com/discord-bot-token/
Windows:
python -m venv venv
Unix:
python3 -m venv venv
Activate the virtual environment
Windows:
source venv/Scripts/activate
Unix:
source venv/bin/activate
pip install -r requirements.txt
export DISCORD_BOT_TOKEN=AzUzODQ2MzQzMjQ3NzI0NTg0.X1sIHg.Qi4WWImkrAc02D-b_OTAABFxyW0
Note: If you made changes to the csv file simply run util.py again to update the student data, these changes will be reflected in the Bot as well!
Note: Make sure step 3 is done!
https://discordpy.readthedocs.io/en/stable/
https://discordpy.readthedocs.io/en/latest/api.html?highlight=intent#discord.Intents
https://discordpy.readthedocs.io/en/latest/api.html?highlight=client#discord.Client
https://discordpy.readthedocs.io/en/latest/api.html?highlight=on_ready#discord.on_ready
https://discordpy.readthedocs.io/en/latest/api.html?highlight=on_message#discord.on_message
https://discordpy.readthedocs.io/en/stable/api.html?highlight=message#discord.Message
https://discordpy.readthedocs.io/en/stable/api.html?highlight=member#discord.Member
https://discordpy.readthedocs.io/en/stable/api.html?highlight=guild#discord.Guild
https://discordpy.readthedocs.io/en/stable/api.html?highlight=role#discord.Role