From 48540cd88458395c9b33107011a5e0cda2856d8e Mon Sep 17 00:00:00 2001 From: Price Hiller Date: Wed, 22 Feb 2023 22:13:39 -0600 Subject: [PATCH] feat: log all command usages --- autowl/bot.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/autowl/bot.py b/autowl/bot.py index c047dfa..22f2b9d 100644 --- a/autowl/bot.py +++ b/autowl/bot.py @@ -20,6 +20,9 @@ class Bot(commands.Bot): help_command=commands.DefaultHelpCommand(dm_help=True), ) + async def on_command(self, ctx: commands.Context): + log.info(f"{ctx.author} ({ctx.author.id}) invoked command: {ctx.command.name}, {ctx.message}") + async def on_ready(self): log.info(f"Logged in as '{self.user}' ({self.user.id})") log.info(