Don't log PrefixedCommands

This commit is contained in:
Zeva Rose 2022-05-02 02:18:30 -06:00
parent 37bcf14762
commit 51b7b0add5

View file

@ -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: