Ignore unknown commands
This commit is contained in:
parent
44a888270a
commit
e841108066
|
@ -41,7 +41,10 @@ class MatrixModule(BotModule):
|
|||
await self.disable_module(bot, room, event, args[2])
|
||||
|
||||
else:
|
||||
await bot.send_text(room, 'Unknown command, sorry.')
|
||||
pass
|
||||
|
||||
# TODO: Make this configurable. By default don't say anything.
|
||||
# await bot.send_text(room, 'Unknown command, sorry.')
|
||||
|
||||
async def leave(self, bot, room, event):
|
||||
bot.must_be_admin(room, event)
|
||||
|
|
Loading…
Reference in New Issue