Don't check word filter for moderators
This commit is contained in:
parent
0a0f291cba
commit
38bd64cbc2
1 changed files with 2 additions and 0 deletions
|
@ -120,6 +120,8 @@ async function wordFilterCheck(message: Message, config: ServerConfig) {
|
||||||
const match = checkMessageForFilteredWords(message.content, config);
|
const match = checkMessageForFilteredWords(message.content, config);
|
||||||
if (!match) return;
|
if (!match) return;
|
||||||
|
|
||||||
|
if (await isModerator(message, false)) return;
|
||||||
|
|
||||||
console.log('Message matched word filter!');
|
console.log('Message matched word filter!');
|
||||||
|
|
||||||
// Lack of `break` is intended here
|
// Lack of `break` is intended here
|
||||||
|
|
Loading…
Reference in a new issue