Added command logging
This commit is contained in:
parent
aad869cd5f
commit
2b8d0a6b15
1 changed files with 4 additions and 0 deletions
4
main.py
4
main.py
|
@ -22,4 +22,8 @@ cogs_list = [
|
|||
for cog in cogs_list:
|
||||
bot.load_extension(f'cogs.{cog}')
|
||||
|
||||
@bot.listen('on_interaction')
|
||||
async def statistics(interaction):
|
||||
logger.info(f"{interaction.user} ({interaction.user.id}) used command {interaction.data['name']}.")
|
||||
|
||||
bot.run(CONFIG["token"])
|
||||
|
|
Loading…
Reference in a new issue