6 Commits

4 changed files with 11 additions and 1 deletions
+3
View File
@@ -13,3 +13,6 @@
[submodule "src/modules/exec"] [submodule "src/modules/exec"]
path = src/modules/exec path = src/modules/exec
url = https://git.thewisewolf.dev/HoloTech/exec-plugin.git url = https://git.thewisewolf.dev/HoloTech/exec-plugin.git
[submodule "src/modules/pluscampaign"]
path = src/modules/pluscampaign
url = https://git.thewisewolf.dev/CarmiCoven/pluscampaign-plugin.git
+6
View File
@@ -197,3 +197,9 @@ class Bot(commands.Bot):
await self.add_token(row.token, row.refresh_token) await self.add_token(row.token, row.refresh_token)
except Exception: except Exception:
logger.exception(f"Failed to add token for {row}") 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)