Don't log PrefixedCommands
This commit is contained in:
parent
37bcf14762
commit
51b7b0add5
1 changed files with 2 additions and 0 deletions
|
@ -200,6 +200,8 @@ class Jarvis(Snake):
|
|||
# Modlog
|
||||
async def on_command(self, ctx: Context) -> None:
|
||||
"""NAFF on_command override."""
|
||||
if isinstance(ctx, PrefixedContext):
|
||||
return
|
||||
if not isinstance(ctx.channel, DMChannel) and ctx.invoked_name not in ["pw"]:
|
||||
modlog = await Setting.find_one(q(guild=ctx.guild.id, setting="activitylog"))
|
||||
if modlog:
|
||||
|
|
Loading…
Add table
Reference in a new issue