added error handling of missing commands

This commit is contained in:
phixxy 2024-02-03 04:47:05 -08:00
parent acbd6d0fe8
commit e7050906bb

View file

@ -92,7 +92,9 @@ async def on_message(ctx):
try:
await bot.process_commands(ctx)
except commands.CommandNotFound:
pass
bot.logger.info("Command not found.")
except discord.ext.commands.errors.CommandNotFound:
bot.logger.info("Command not found.")
except Exception as e:
bot.logger.warning(f"Error processing commands: {e}")