From bea7f915597615978aae4baed5dcdcca085a731d Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 6 Jan 2022 17:11:45 -0500 Subject: add automod owner override --- src/lib/common/AutoMod.ts | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src') diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts index 6e2881c..1bc26fb 100644 --- a/src/lib/common/AutoMod.ts +++ b/src/lib/common/AutoMod.ts @@ -33,6 +33,8 @@ export class AutoMod { private async handle() { if (this.message.channel.type === 'DM' || !this.message.guild) return; if (!(await this.message.guild.hasFeature('automod'))) return; + if (this.message.author.bot) return; + if (this.message.author.isOwner()) return; const customAutomodPhrases = (await this.message.guild.getSetting('autoModPhases')) ?? {}; const badLinks: BadWords = {}; -- cgit