All notable changes to this project will be documented in this file.
- All admin and teacher subcommands and fake roles have been removed. Please use instead discords permissions for each slash commands (see Access to commands)
- Commands now use slash commands instead of the old method.
- Attendances now use button instead of reactions.
Parameters are now passed as real parameters in discord slash commands.
- Admin and Teacher subcomands are under
/settings
command./settings add admin @role
- Admin add subcommand./settings add teacher @role
- Teacher add subcommand./settings remove admin @role
- Admin remove subcommand./settings remove teacher @role
- Teacher remove subcommand./settings list admins
- Admin list subcommand./settings list teachers
- Teacher list subcommand.
.Check settings
command is now/settings get
- Other admin commands (such as setting the delay, reset the bot or mp and show present message) are now under a
/panel
command.
- Removed language choice.
- Removed calendar subcommands because it is useless and not working anymore due to the new calendar system.
- Removed argument
-a
in/call
command.
- Added message_content intent to prevent discord block in end April 2022
- Changed language architecture system.
- Extensions (calendar, admin, teacher) can be loaded or unloaded
Command :
load {module} | unload {module} | reload {module}
Example :
.Check load src.roles.admin
-
Call embed will show how many students got the role.
-
You can now add as many calendars as you want for your channel.
The remove calendar command now need the class_link argument
Example :
.Check cal remove INFOS2E1-1
- Added calendar (for Epita servers only)
The bot send calendar around 19H (UTC time)
Use
cal add {calendar}
using CHRONOS calendar labelcal remove {calendar}
cal list
- Some files and functions have been moved to get a cleaner code.
For some servers using a high level of moderation, the bot was unable to finish the attendance because he was using some restricted permission. Now the bot will add the emojis on his message and delete it after the attendance.
- Attendance automatically close after 10 minutes if you forgot to close it.
- For performance reasons, the client will get users who clicked on ✅ when the attendance is closed.
-
Absents students got ten minutes (default delay) after call to send a late ticket with the bot.
Note that this only work if you activated private messages. (See admin DeactivateMP command)
-
New command to change delay :
admin delay value
Example :
.Check admin value 15
will set the delay to 15 minutes. If you want to deactivate it :admin value 0
-
Add
-a
option to force display of present studentUse
-a
after the class. Example :.Check call @Class -a
- Only the teacher who started the call can close it.
- When a student try to stop the call, or doing something forbidden during the call, the bot warn in DM instead in text channel.
- Admins and Teachers subcommands doesn't respond.
- The bot displays the wrong number of present students in class
- New command if you don't want the bot to send the list of present students :
admin showPresents
In that case, the bot will send how many students are present.
- Sort is now case-sensitive.
- Command for unknown emojis was not working.
- Bot remind default prefix in Discord Activity
- Bot will receive both of
.Check
default prefix (with and without a space)Example :
.Check help
or.Checkhelp
- List are now sorted in alphabetical order (by the nickname or pseudo if null).
- Permissions are now split in two categories : Admins and Teachers.
Only teachers can start a call.
Only admin can change settings and roles privileges.
- Even if you changed bot prefix, you still can use the bot with default prefix.
Commands have changed, here the new commands list:
- Teacher command
teacher add @role
: Add a teacher permission to a roleteacher rm @role
: Remove a teacher permission to a roleteacher list
: List teacher list
- Admin Command
admin add @role
: Add a admin permission to a roleadmin rm @role
: Remove a admin permission to a roleadmin list
: List admin listadmin sys
: Activate/Deactivate system messagesadmin DeactivateMP
: Activate/Deactivate private messagesadmin prefix
: Change bot prefixadmin language
: Set server language botadmin reset
: Reset server settings
settings
command to get language, and private and system messages status values.- Admins Activate/Deactivate private messages with
DeactivateMP
command.
- Rewrite README.md help commands
- Factorisation of the main code and its variables
- Add comments to all functions
- When invited on a server without accepting permissions, the bot was not able to create a config json for the server.
Owner server will receive a message inviting him to re-add the bot accepting the permissions this time.
- When the list of the students is too long, the bot was not able to send the list
- Raised an error when the bot was trying to send a system message and didn't have the permissions.
- Few functions were not awaited
- Owner server can reset without having admin role
- Added System Messages
- Activate/Deactivate System Messages
- Send a message when the bot join a server
- Update help messages