diff --git a/src/matrix_applicationbot/classes/bot.py b/src/matrix_applicationbot/classes/bot.py index 9ba5f67..f3b6ead 100644 --- a/src/matrix_applicationbot/classes/bot.py +++ b/src/matrix_applicationbot/classes/bot.py @@ -64,7 +64,7 @@ class ApplicationBot: body = event.body if hasattr(event, "body") else None if body: - mention = body.split()[0] + mention = body.split()[0].lower() if mention == "!applicationbot" or mention in self.username: return await self.handle_command(room, sender, body.split(" ", 1)[1])