From 1ec1cac4ca324d2803e49d3d3c3c0aa19bfa3929 Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Wed, 13 Oct 2021 15:23:31 -0400 Subject: i'm an idiot --- src/lib/common/autoMod.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/lib/common') diff --git a/src/lib/common/autoMod.ts b/src/lib/common/autoMod.ts index 66ff5ed..fefd6d6 100644 --- a/src/lib/common/autoMod.ts +++ b/src/lib/common/autoMod.ts @@ -79,6 +79,7 @@ export class AutoMod { for (const word in words) { const wordOptions = words[word]; if (this.format(this.message.content, wordOptions) === this.format(word, wordOptions)) { + matchedWords[word] = wordOptions; } } return matchedWords; @@ -122,7 +123,7 @@ export class AutoMod { void this.message.member?.mute({ moderator: this.message.guild!.me!, reason: `[AutoMod] ${highestOffence.reason}`, - duration: 900_000 // 15 minutes + duration: 0 // permanent }); break; } -- cgit