feat: log all command usages

This commit is contained in:
Price Hiller 2023-02-22 22:13:39 -06:00
parent d1201248d1
commit 48540cd884
No known key found for this signature in database

View File

@ -20,6 +20,9 @@ class Bot(commands.Bot):
help_command=commands.DefaultHelpCommand(dm_help=True), 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): async def on_ready(self):
log.info(f"Logged in as '{self.user}' ({self.user.id})") log.info(f"Logged in as '{self.user}' ({self.user.id})")
log.info( log.info(