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: """