mirror of
https://github.com/zvx-echo6/meshai.git
synced 2026-05-21 23:24:44 +02:00
Silently drop unknown bang commands instead of responding
Unknown !commands (like !mail, !login, !bbs from advBBS users) were getting "Unknown command, try !help" responses. Now returns None so the bot stays silent on commands it doesn't recognize. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
63a2caad37
commit
a01c9b2d05
1 changed files with 1 additions and 2 deletions
|
|
@ -141,8 +141,7 @@ class CommandDispatcher:
|
|||
handler = self._commands.get(cmd)
|
||||
|
||||
if handler is None:
|
||||
# Unknown command
|
||||
return f"Unknown command: !{cmd.lower()}. Try !help"
|
||||
return None
|
||||
|
||||
try:
|
||||
logger.debug(f"Dispatching !{cmd.lower()} from {context.sender_id}")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue