mirror of
https://github.com/maubot/maubot.git
synced 2024-10-01 01:06:10 -04:00
Allow commands for all non-notice message types
This commit is contained in:
parent
038fbc43f1
commit
91f804d4cf
@ -84,7 +84,7 @@ class MaubotMatrixClient(MatrixClient):
|
|||||||
pass
|
pass
|
||||||
|
|
||||||
async def _command_event_handler(self, evt: MessageEvent) -> None:
|
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
|
return
|
||||||
for command in self.commands:
|
for command in self.commands:
|
||||||
if command.match(evt):
|
if command.match(evt):
|
||||||
|
Loading…
Reference in New Issue
Block a user