def on_command(self, ctx):
if isinstance(ctx.channel, discord.DMChannel):
self.logger.debug(f"Command: '{ctx.command}' "
f"User: '{ctx.author}'/{ctx.author.id} (In DM's)")
else:
self.logger.debug(f"Command: {ctx.command} "
f"Channel: '#{ctx.channel.name}'/{ctx.channel.id} "
f"Guild: '{ctx.guild}'/{ctx.guild.id} "
f"User: '{ctx.author}'/{ctx.author.id}")
self.command_count += 1
评论列表
文章目录