Also ignore maubot commands

This commit is contained in:
夜坂雅 2023-02-21 21:44:06 +08:00
parent 23883f730e
commit bbc2fd560f
1 changed files with 5 additions and 0 deletions

View File

@ -70,6 +70,11 @@ class Callbacks:
MatrixMessage.update_message(room, event, event_replace, include_text)
return
# XXX: Special case for Arch Linux CN
# Also ignore maubot commands
if msg.startswith("!"):
return
logger.debug(
f"Bot message received for room {room.display_name} | "
f"{room.user_name(event.sender)}: {msg}"