Correction mineurs système de ticket & fix de l'erreur "!! CommandeNotfound"
This commit is contained in:
parent
dfec6b2418
commit
33fd07b842
16 changed files with 30 additions and 2868 deletions
4
bot.py
Executable file → Normal file
4
bot.py
Executable file → Normal file
|
|
@ -70,7 +70,7 @@ class MyBot(commands.Bot):
|
|||
except Exception as e:
|
||||
kuby_logger.error(f"❌ Erreur lors du chargement de {extension} : {e}", exc_info=True)
|
||||
|
||||
# --- SYSTÈME DE WHITELIST (CORRIGÉ POUR ÉVITER LES ERREURS) ---
|
||||
# --- SYSTÈME DE WHITELIST ---
|
||||
@self.check
|
||||
async def whitelist_check(ctx):
|
||||
try:
|
||||
|
|
@ -185,6 +185,8 @@ class MyBot(commands.Bot):
|
|||
self.advanced_logger.log_voice_event(member, after.channel, "moved_to")
|
||||
|
||||
async def on_command_error(self, ctx, error):
|
||||
if isinstance(error, commands.CommandNotFound):
|
||||
return # Ignorer les erreurs "Command not found" pour éviter de polluer les logs (ex: !!)
|
||||
if isinstance(error, commands.CheckFailure):
|
||||
return # Déjà géré dans le whitelist_check
|
||||
kuby_logger.error(f"Command error in {ctx.command}: {str(error)}", exc_info=True)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue