Ajout de la commande !timeout pour exclure temporairement un utilisateur avec une durée spécifiée, ainsi que des améliorations dans la gestion des avertissements, y compris l'envoi de messages privés de confirmation et la mise à jour des messages d'utilisation.

This commit is contained in:
Mow
2025-11-11 22:11:21 +01:00
parent 6411b1e73c
commit a987ca311e
2 changed files with 275 additions and 17 deletions

View File

@@ -17,7 +17,8 @@ from discordbot.moderation import (
handle_unban_command,
handle_inspect_command,
handle_ban_list_command,
handle_staff_help_command
handle_staff_help_command,
handle_timeout_command
)
from discordbot.welcome import sendWelcomeMessage, sendLeaveMessage, updateInviteCache
from protondb import searhProtonDb
@@ -101,6 +102,10 @@ async def on_message(message: Message):
await handle_warning_command(message, bot)
return
if command_name in ['!to', '!timeout']:
await handle_timeout_command(message, bot)
return
if command_name in ['!delaverto', '!removewarn', '!unwarn']:
await handle_remove_warning_command(message, bot)
return