Answers for "how to make an anti swear function in javascript"

2

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();
Posted by: Guest on April-15-2020

Code answers related to "how to make an anti swear function in javascript"

Code answers related to "Javascript"

Browse Popular Code Answers by Language