Don't check word filter for moderators

This commit is contained in:
Lea 2023-04-07 23:13:17 +02:00
parent 0a0f291cba
commit 38bd64cbc2
Signed by: Lea
GPG key ID: 1BAFFE8347019C42

View file

@ -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