From 91f804d4cf13efb9c81ca911596bade6b9818c52 Mon Sep 17 00:00:00 2001 From: Tulir Asokan Date: Tue, 30 Oct 2018 21:29:58 +0200 Subject: [PATCH] Allow commands for all non-notice message types --- maubot/matrix.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/maubot/matrix.py b/maubot/matrix.py index 5f0150d..1ac9167 100644 --- a/maubot/matrix.py +++ b/maubot/matrix.py @@ -84,7 +84,7 @@ class MaubotMatrixClient(MatrixClient): pass async def _command_event_handler(self, evt: MessageEvent) -> None: - if evt.sender == self.mxid or evt.content.msgtype != MessageType.TEXT: + if evt.sender == self.mxid or evt.content.msgtype == MessageType.NOTICE: return for command in self.commands: if command.match(evt):