From e84110806615de458eb90c62101f7026787d079d Mon Sep 17 00:00:00 2001 From: Ville Ranki Date: Sun, 16 Feb 2020 14:23:20 +0200 Subject: [PATCH] Ignore unknown commands --- modules/bot.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/modules/bot.py b/modules/bot.py index f090a6a..8c23dc2 100644 --- a/modules/bot.py +++ b/modules/bot.py @@ -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)