From b198ef2b9e5b6ab68a69031cdfaf4f3cad2351ff Mon Sep 17 00:00:00 2001 From: ComputerTech312 Date: Sat, 13 Sep 2025 15:35:50 +0100 Subject: [PATCH] Remove unknown command handler to avoid interfering with other bots - Removed the 'Unknown command! Use !duckhelp' message for unrecognized commands - Bot now only responds to valid duckhunt commands and stays silent for others - This allows other bots in the channel to handle their own commands without interference --- duckhunt/simple_duckhunt.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/duckhunt/simple_duckhunt.py b/duckhunt/simple_duckhunt.py index f39993c..0bb211e 100644 --- a/duckhunt/simple_duckhunt.py +++ b/duckhunt/simple_duckhunt.py @@ -1402,9 +1402,7 @@ class SimpleIRCBot: await self.handle_admin_givexp(nick, channel, target_nick, amount) else: self.send_message(channel, f"{nick} > Usage: !givexp ") - else: - # Unknown command - show help - self.send_message(channel, f"{nick} > Unknown command! Use !duckhelp to see available commands.") + # No else clause - ignore unknown commands to avoid interfering with other bots except Exception as e: # Graceful degradation - log error but don't crash