From 38bd64cbc2be0f1f449b795f129955ab6c8c021b Mon Sep 17 00:00:00 2001 From: Lea Date: Fri, 7 Apr 2023 23:13:17 +0200 Subject: [PATCH] Don't check word filter for moderators --- bot/src/bot/modules/antispam.ts | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bot/src/bot/modules/antispam.ts b/bot/src/bot/modules/antispam.ts index ffd940e..aaaf0ec 100644 --- a/bot/src/bot/modules/antispam.ts +++ b/bot/src/bot/modules/antispam.ts @@ -120,6 +120,8 @@ async function wordFilterCheck(message: Message, config: ServerConfig) { const match = checkMessageForFilteredWords(message.content, config); if (!match) return; + if (await isModerator(message, false)) return; + console.log('Message matched word filter!'); // Lack of `break` is intended here