From 51b7b0add5f117431434452645f6c46c3f4ceef0 Mon Sep 17 00:00:00 2001 From: Zevaryx Date: Mon, 2 May 2022 02:18:30 -0600 Subject: [PATCH] Don't log PrefixedCommands --- jarvis/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/jarvis/client.py b/jarvis/client.py index 1eb5223..0269a57 100644 --- a/jarvis/client.py +++ b/jarvis/client.py @@ -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: