From 8a6a56a895e2213cfb9238481319666610e2797d Mon Sep 17 00:00:00 2001 From: Valentin Servieres Date: Mon, 18 Apr 2022 16:05:32 +0200 Subject: [PATCH] Update 'functions/messageCheck.js' --- functions/messageCheck.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/messageCheck.js b/functions/messageCheck.js index 9a2af85..ad878d0 100644 --- a/functions/messageCheck.js +++ b/functions/messageCheck.js @@ -9,7 +9,7 @@ const badwords = JSON.parse(fs.readFileSync(path.resolve(`./config/badwords.json function checkBadwords(msg) { - badwordlist = badwords.filter(word => msg.content.includes(word)); + badwordlist = badwords.filter(word => msg.content.toLowerCase().includes(word)); return badwordlist; }