title: Discord.js - How to toggle a command in 1 server?
body: <p>I am in the process of building a discord bot with a command handler and a few meme commands. My problem is, that when I activate 'Christian Mode' or 'no swear mode' it activates across every server the bot is in. My Christian mode code is here, across Christian.js and Index.js.</p>
  
  <p><strong>Christian.js</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js')
  
  exports.run = (bot, message, args, christian) =&gt; {
    if (args[0] === 'off') christian = false
    else if (args[0] === 'on') christian = true
    message.channel.send(`Christian Mode ${christian ? 'Active' : 'Inactive'}`)
    return christian
  }
  
  exports.help = {
    name: 'christian'
  }
  </code></pre>
  
  <p><strong>(part of) index.js</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>if (christian) {
      const messages = {
        flib: 'frick',
        batch: 'nasty person',
        nogger: 'nibba',
        nafga: 'smelly person',
        poohsy: 'child',
        poohsyhole: 'child',
        cant: 'threat to society',
        bestard: 'threat to society',
        dock: 'willy'
      }
      try {
        const message = messages[content.toLowerCase()]
        if (message) msg.delete() &amp; channel.send(message).then((m) =&gt; m.delete(10000));
      } catch (error) {
        console.log('An error has occurred - make sure the bot has delete message permissions')
      }
    }
  </code></pre>
  
  <p>thanks in advance :)
  <strong>New code:</strong></p>
  
  <pre class="lang-js prettyprint-override"><code>if (content.startsWith(prefix)) {
      const args = content.toLowerCase().substring(prefix.length).split(/\s+/g)
      const command = args.shift()
  
      readdir(join(__dirname, 'commands')).then(files =&gt; {
        files.map(file =&gt; require(join(__dirname, 'commands', file))).forEach(cmd =&gt; {
          if (command === cmd.help.name) {
            const resultchristian = cmd.run(bot, msg, args, christian)
            if (typeof resultchristian !== 'undefined') christian = resultchristian
          }
        })
      })
      return
    }
  </code></pre>
  
  <p>this is my prefix and command handler, is there anything I need to alter for this to work?</p>