Ignore unknown commands

This commit is contained in:
Ville Ranki 2020-02-16 14:23:20 +02:00
parent 44a888270a
commit e841108066
1 changed files with 4 additions and 1 deletions

View File

@ -41,7 +41,10 @@ class MatrixModule(BotModule):
await self.disable_module(bot, room, event, args[2]) await self.disable_module(bot, room, event, args[2])
else: 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): async def leave(self, bot, room, event):
bot.must_be_admin(room, event) bot.must_be_admin(room, event)