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