diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-13 15:23:31 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-10-13 15:23:31 -0400 |
commit | 1ec1cac4ca324d2803e49d3d3c3c0aa19bfa3929 (patch) | |
tree | 7954a5b18708c534f35c1ccf2ae46b8b7ee46957 /src/lib/common | |
parent | f627669089b7e3a79086c92775bacc88681646b4 (diff) | |
download | tanzanite-1ec1cac4ca324d2803e49d3d3c3c0aa19bfa3929.tar.gz tanzanite-1ec1cac4ca324d2803e49d3d3c3c0aa19bfa3929.tar.bz2 tanzanite-1ec1cac4ca324d2803e49d3d3c3c0aa19bfa3929.zip |
i'm an idiot
Diffstat (limited to 'src/lib/common')
-rw-r--r-- | src/lib/common/autoMod.ts | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |