Update 'functions/messageCheck.js'

This commit is contained in:
Valentin Servieres 2022-04-18 16:05:32 +02:00
parent 68718fc865
commit 8a6a56a895

View file

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