From e4891d09bd3c940f5617e452092e6fa7c3d9ff26 Mon Sep 17 00:00:00 2001 From: Mycroft Kang Date: Sat, 23 Mar 2024 12:49:16 +0900 Subject: [PATCH] Fix a minor bug --- src/bot/discord_host.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/bot/discord_host.py b/src/bot/discord_host.py index 9a21b271..c81be84b 100644 --- a/src/bot/discord_host.py +++ b/src/bot/discord_host.py @@ -158,6 +158,9 @@ async def process_commands(self, request_id, message): ctx = await self.get_context(message) + if ctx.command is None: + return False + if not await self.check_init_user_locale(ctx, message): return False