aboutsummaryrefslogtreecommitdiff
path: root/src/lib/common
diff options
context:
space:
mode:
authorIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-08 20:16:44 -0500
committerIRONM00N <64110067+IRONM00N@users.noreply.github.com>2022-01-08 20:16:44 -0500
commit939071ce079c804d3bf9d0781985526c01af18dd (patch)
tree72c3ff5baef675c392cb9ac29470dbf4049b4cab /src/lib/common
parente0531157a745ac6178d55cc159b5932fa36ff20f (diff)
downloadtanzanite-939071ce079c804d3bf9d0781985526c01af18dd.tar.gz
tanzanite-939071ce079c804d3bf9d0781985526c01af18dd.tar.bz2
tanzanite-939071ce079c804d3bf9d0781985526c01af18dd.zip
ignore customAutomodPhrases since it is causing issues
Diffstat (limited to 'src/lib/common')
-rw-r--r--src/lib/common/AutoMod.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/common/AutoMod.ts b/src/lib/common/AutoMod.ts
index 595f025..e791267 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) => ({
@@ -52,7 +52,7 @@ export class AutoMod {
const parsedBadWords = Object.values(badWordsRaw).flat();
const result = {
- ...this.checkWords(customAutomodPhrases),
+ // ...this.checkWords(customAutomodPhrases),
...this.checkWords((await this.message.guild.hasFeature('excludeDefaultAutomod')) ? [] : parsedBadWords),
...this.checkWords((await this.message.guild.hasFeature('excludeAutomodScamLinks')) ? [] : badLinks)
};