aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-13 15:23:31 -0400
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2021-10-13 15:23:31 -0400
commit1ec1cac4ca324d2803e49d3d3c3c0aa19bfa3929 (patch)
tree7954a5b18708c534f35c1ccf2ae46b8b7ee46957 /src/lib/common
parentf627669089b7e3a79086c92775bacc88681646b4 (diff)
downloadtanzanite-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.ts3
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;
}