aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common/AutoMod.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/common/AutoMod.ts')
-rw-r--r--src/lib/common/AutoMod.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index e791267..4b2b072 100644
--- a/src/lib/common/AutoMod.ts
+++ b/src/lib/common/AutoMod.ts
@@ -37,7 +37,7 @@ export class AutoMod {
const badLinksSecretArray = util.getShared('badLinksSecret');
const badWordsRaw = util.getShared('badWords');
- // const customAutomodPhrases = (await this.message.guild.getSetting('autoModPhases')) ?? [];
+ const customAutomodPhrases = (await this.message.guild.getSetting('autoModPhases')) ?? [];
const uniqueLinks = [...new Set([...badLinksArray, ...badLinksSecretArray])];
const badLinks: BadWordDetails[] = uniqueLinks.map((link) => ({
@@ -51,11 +51,11 @@ export class AutoMod {
const parsedBadWords = Object.values(badWordsRaw).flat();
- const result = {
- // ...this.checkWords(customAutomodPhrases),
+ const result = [
+ ...this.checkWords(customAutomodPhrases),
...this.checkWords((await this.message.guild.hasFeature('excludeDefaultAutomod')) ? [] : parsedBadWords),
...this.checkWords((await this.message.guild.hasFeature('excludeAutomodScamLinks')) ? [] : badLinks)
- };
+ ];
if (result.length === 0) return;