how to make an anti swear function in javascript code example
Example: blacklisted word discord.js
let blacklisted = ['word', 'word'];
let foundInText = false;
for (var i in blacklisted) {
if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase())) foundInText = true;
}
if (foundInText) {
message.delete();
Message.channel.send();