aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
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;
}