From 6cae88e362da493f2e93ad27ddb1a64b8dec0698 Mon Sep 17 00:00:00 2001 From: Whyverum Date: Mon, 8 Dec 2025 18:44:04 +0700 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D1=80=D0=B0=D0=B2=D0=BB?= =?UTF-8?q?=D0=B5=D0=BD=D0=B8=D0=B5=20=D0=BE=D1=88=D0=B8=D0=B1=D0=BE=D0=BA?= =?UTF-8?q?=20=D1=81=20event?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bot/bot.py | 3 +-- bot/cogs/events.py | 2 -- 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/bot/bot.py b/bot/bot.py index 66e6c01..f1692ad 100644 --- a/bot/bot.py +++ b/bot/bot.py @@ -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: """ Глобальное логирование всех вызванных команд. """ diff --git a/bot/cogs/events.py b/bot/cogs/events.py index 775036a..0da5364 100644 --- a/bot/cogs/events.py +++ b/bot/cogs/events.py @@ -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: """