Browse Source

Added command logging

news
Daniel Skýpala 2 years ago
parent
commit
2b8d0a6b15
  1. 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…
Cancel
Save