mirror of
https://github.com/AsgardEternal/DiscordWhitelist.git
synced 2024-12-30 12:59:13 -06:00
feat: log all command usages
This commit is contained in:
parent
d1201248d1
commit
48540cd884
@ -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(
|
||||||
|
Loading…
Reference in New Issue
Block a user