diff --git a/src/meta/bot.py b/src/meta/bot.py index bf8266b..1ec28be 100644 --- a/src/meta/bot.py +++ b/src/meta/bot.py @@ -197,3 +197,9 @@ class Bot(commands.Bot): await self.add_token(row.token, row.refresh_token) except Exception: logger.exception(f"Failed to add token for {row}") + + async def event_command_error(self, payload: commands.CommandErrorPayload) -> None: + if isinstance(payload.exception, commands.CommandNotFound): + logger.debug(f"Attempt to execute nonexistent command for context {payload.context!r}") + else: + return await super().event_command_error(payload)