Ajout système de tâches et Fix: suggerer et signaler_bug

This commit is contained in:
Mathis 2026-06-07 16:22:17 +02:00
parent a49aa6717f
commit f1c0921a58
7 changed files with 1434 additions and 5 deletions

5
bot.py
View file

@ -129,6 +129,7 @@ class MyBot(commands.Bot):
"commandes.absence_staff",
"commandes.moderation",
"commandes.invites",
"commandes.taches",
]
for extension in extensions:
@ -138,6 +139,10 @@ class MyBot(commands.Bot):
except Exception as e:
kuby_logger.error(f"❌ Erreur lors du chargement de {extension} : {e}", exc_info=True)
# Synchroniser les commandes slash
await self._sync_application_commands()
kuby_logger.info("✅ Commandes slash synchronisées avec Discord")
# --- LOGGING DES INTERACTIONS ---
@self.listen("on_interaction")
async def log_interaction(inter: disnake.Interaction):