diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-06 17:11:45 -0500 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2022-01-06 17:11:45 -0500 |
commit | bea7f915597615978aae4baed5dcdcca085a731d (patch) | |
tree | d00c0e5797f276b6bd1bf7b62d405573de2da950 /src/lib/common/AutoMod.ts | |
parent | 5279f18f70ef05d633b9951606262580c276767e (diff) | |
download | tanzanite-bea7f915597615978aae4baed5dcdcca085a731d.tar.gz tanzanite-bea7f915597615978aae4baed5dcdcca085a731d.tar.bz2 tanzanite-bea7f915597615978aae4baed5dcdcca085a731d.zip |
add automod owner override
Diffstat (limited to 'src/lib/common/AutoMod.ts')
-rw-r--r-- | src/lib/common/AutoMod.ts | 2 |
1 files changed, 2 insertions, 0 deletions
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 = {}; |