A simple discord bot that is designed to roast people arriving late (or not arriving at all) in class.
Instructions preceded by ✨ require administrative rights.
Administrative rights are granted to people with the role called bot-admin
.
Get a discord API token from the documentation here. While retrieving the token API, also copy your Application ID.
- Create
.env
file as follows
DISCORD_TOKEN="..."
APPLICATION_ID="..."
Installation process follows.
python -m pip install -r requirements.txt
python bot_chaise.py &
- Fill database with input catchphrases using
!add
Increment the number of the chaised person.
!chaise @someone
Increment the number of the chaised person.
!chaise "@someone @someone_else"
Decrement the number of the unchaised person.
!unchaise @someone
Adding new sentence in the database.
The <>
are explicitely needed for this command
!add "foo <pseudo> bar"
Displaying the leaderboard, order by higher chaise value. The higher you are, the more often you arrive late !
!top
Set all number of chaise for all member to 0.
!reset
Displaying the version of the bot.
!version
Displaying the history since bot's creation !
!history
Displaying all sentences in database !
!list
Delete a sentence in database with a given sentence ID.
Appropriate can be founded in !list
command.
!delete <id>
Add a user in the SQL database to enter the game:
!adduser @someone
You can also remove an user with:
!deluser @someone
Request a link to the Github repository:
!repo
- Bot tagging the users
- Scoreboard of users
- Adding new sentence in database
- Resetting the database
- Remove/cancel a chaise
- History of late arrivals
- Adding history with specific NickNames
- Adding custom sentences
- Prevent unchaise to go below 0
- Unchaise should remove the last entry in history
- A user cannot unchaise himself
- Show all sentences
- Delete custom sentence
- Add a user in the database
- Setting moderator permission
- Malus (+2 chaises) if you rejoin the game after rage-quitting
- Using logging module instead of print (DEBUG : message)
- Create !help command
- Chaise multiple person