Skip to content

Discord bot written in Python by students in engineering school

License

Notifications You must be signed in to change notification settings

WildPasta/discord-bot-chaise

Repository files navigation

Discord chaise bot

The project

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.

Installing requirements

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

Features

Chaise 🪑

Increment the number of the chaised person.

!chaise @someone

Chaise 🪑🪑

Increment the number of the chaised person.

!chaise "@someone @someone_else"

Remove a chaise ❌

Decrement the number of the unchaised person.

!unchaise @someone

Add sentences ➕

Adding new sentence in the database.

The <> are explicitely needed for this command

!add "foo <pseudo> bar"

Leaderboard 🥇

Displaying the leaderboard, order by higher chaise value. The higher you are, the more often you arrive late !

!top

Reset leaderboard ☢️

Set all number of chaise for all member to 0.

!reset

Version 🎲

Displaying the version of the bot.

!version

History 🔍

Displaying the history since bot's creation !

!history

Listing 📖

Displaying all sentences in database !

!list

Delete sentences 🗑️

Delete a sentence in database with a given sentence ID. Appropriate can be founded in !list command.

!delete <id>

Player management 💁

Add a user in the SQL database to enter the game:

!adduser @someone

You can also remove an user with:

!deluser @someone

Repository link 🔗

Request a link to the Github repository:

!repo

TO-DO

  • 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

About

Discord bot written in Python by students in engineering school

Topics

Resources

License

Code of conduct

Security policy

Stars

Watchers

Forks

Languages