diff options
author | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-05 19:20:35 -0400 |
---|---|---|
committer | IRONM00N <64110067+IRONM00N@users.noreply.github.com> | 2021-08-05 19:20:35 -0400 |
commit | 667e0f3f3e1288197926c98bd7c6680adcb2ed6e (patch) | |
tree | 610901209e47a157552e7b40efac612e8bb90754 | |
parent | 2d66c896b9ab7fac426061fccd6ffa413242bc6a (diff) | |
download | tanzanite-667e0f3f3e1288197926c98bd7c6680adcb2ed6e.tar.gz tanzanite-667e0f3f3e1288197926c98bd7c6680adcb2ed6e.tar.bz2 tanzanite-667e0f3f3e1288197926c98bd7c6680adcb2ed6e.zip |
add automod exception
-rw-r--r-- | src/listeners/message/automodCreate.ts | 1 |
1 files changed, 1 insertions, 0 deletions
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]; } }); |