This commit is contained in:
@@ -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:
|
||||
"""
|
||||
Глобальное логирование всех вызванных команд.
|
||||
"""
|
||||
|
||||
@@ -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:
|
||||
"""
|
||||
|
||||
Reference in New Issue
Block a user