Исправление ошибок с event
All checks were successful
CI / basic-checks (push) Successful in 12s

This commit is contained in:
2025-12-08 18:44:04 +07:00
parent 635a8c0f74
commit 6cae88e362
2 changed files with 1 additions and 4 deletions

View File

@@ -91,8 +91,7 @@ class Bot(commands.Bot):
logger.info(text="Запуск бота...", log_type="START")
await self.start(use_token)
@staticmethod
async def on_command(ctx: commands.Context) -> None:
async def on_command(self, ctx: commands.Context) -> None:
"""
Глобальное логирование всех вызванных команд.
"""

View File

@@ -93,8 +93,6 @@ class Events(Cog):
)
return
await self.bot.process_commands(message)
@Cog.listener()
async def on_command_error(self, ctx: Context, error: CommandError) -> None:
"""