From 667e0f3f3e1288197926c98bd7c6680adcb2ed6e Mon Sep 17 00:00:00 2001 From: IRONM00N <64110067+IRONM00N@users.noreply.github.com> Date: Thu, 5 Aug 2021 19:20:35 -0400 Subject: add automod exception --- src/listeners/message/automodCreate.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/listeners/message/automodCreate.ts b/src/listeners/message/automodCreate.ts index c4cdea1..2584c21 100644 --- a/src/listeners/message/automodCreate.ts +++ b/src/listeners/message/automodCreate.ts @@ -34,6 +34,7 @@ export default class AutomodMessageCreateListener extends BushListener { const cleanWord = word.toLowerCase().replace(/ /g, ''); if (cleanMessageContent.includes(cleanWord)) { + if (cleanWord === 'whore' && !message.content?.toLowerCase().includes(cleanWord)) return; if (!offences[word]) offences[word] = wordMap[word]; } }); -- cgit