Update 'functions/messageCheck.js'
This commit is contained in:
parent
68718fc865
commit
8a6a56a895
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue