title: How to make a settings command [discord.js]
body: <p>I am using <code>discord.js</code> to make a settings command for a bot: I need help to make it to where it let you choose if you want it to have a specific event on or off.<br>
  I’ve been trying to look for tutorials for the past week and had no luck. it should look like this:</p>
  
  <p><a href="https://i.stack.imgur.com/wlsza.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/wlsza.png" alt=""></a></p>
  
  <p>Example of the command: <strong>!settings blacklist on/off</strong></p>
  
  <p>Here’s the code I’m trying to make as a settings command:</p>
  
  <pre><code>bot.on('message', async message =&gt; {
  
    //1 blacklisted words
    let blacklisted = ['fuck', 'shit,', 'bullshit', 'bitch', 'asshole', 'cunt', 'virgin', 'discord.gg'] //words
  
    //2 looking for words
    let foundInText = false;
    for (var i in blacklisted) { // loops through the blacklisted list
      if (message.content.toLowerCase().includes(blacklisted[i].toLowerCase())) // checks casesensitive words
        foundInText = true;
    }
  
    //3 deletes and send message
    if (foundInText) {
      message.delete();
      message.channel.send('Hey! That word is not allowed!! :rage:').then(msg =&gt; msg.delete(5000));
    }
  });
  </code></pre>
  
  <p>I dont expect a spoon feed or something, maybe a little example for me to tinker with or a link to do this. Thank you if your here to help me. Id appricate that.</p>