Исправление ошибок с event

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

View File

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