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
This commit is contained in:
@@ -1402,9 +1402,7 @@ class SimpleIRCBot:
|
|||||||
await self.handle_admin_givexp(nick, channel, target_nick, amount)
|
await self.handle_admin_givexp(nick, channel, target_nick, amount)
|
||||||
else:
|
else:
|
||||||
self.send_message(channel, f"{nick} > Usage: !givexp <nick> <amount>")
|
self.send_message(channel, f"{nick} > Usage: !givexp <nick> <amount>")
|
||||||
else:
|
# No else clause - ignore unknown commands to avoid interfering with other bots
|
||||||
# Unknown command - show help
|
|
||||||
self.send_message(channel, f"{nick} > Unknown command! Use !duckhelp to see available commands.")
|
|
||||||
|
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
# Graceful degradation - log error but don't crash
|
# Graceful degradation - log error but don't crash
|
||||||
|
|||||||
Reference in New Issue
Block a user