added logging

This commit is contained in:
bacon
2024-03-08 10:52:45 +03:00
parent fc18ade975
commit 7ad57f9fe8
7 changed files with 18 additions and 12 deletions

2
bot.py
View File

@@ -74,7 +74,7 @@ async def _cog_opt(inter: disnake.ApplicationCommandInteraction, current: str, w
@slash_cogs.error
async def cogs_error(inter, what_do):
async def cogs_error(inter: disnake.ApplicationCommandInteraction, what_do):
await inter.response.send_message('Error', ephemeral=True)
logger.error(f'User {inter.author} tries to use cogs func\n{what_do}\n')