diff --git a/sparkytron3000.py b/sparkytron3000.py index fdfd7c1..6dbfb27 100644 --- a/sparkytron3000.py +++ b/sparkytron3000.py @@ -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}")