Allow commands for all non-notice message types

This commit is contained in:
Tulir Asokan 2018-10-30 21:29:58 +02:00
parent 038fbc43f1
commit 91f804d4cf

View File

@ -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):