title: How to make a bot not respond to itself, but still respond to other bots?
body: <p>I'm back on the grind of working with <a href="https://stackoverflow.com/questions/55989150/overlapping-commands">this</a> <a href="https://stackoverflow.com/questions/56012519/basic-one-message-dice-roller">discord bot</a>, and at this point, I've gotten so attached to her that I decided to whip up a couple of companion bots for her that she can respond back and forth with in little conversations! The thing is, to allow her to talk with the other bots, I simply deleted this line of code...</p>
  
  <pre class="lang-js prettyprint-override"><code>if (message.author.bot) return;
  </code></pre>
  
  <p>...and it turns out, that had some repercussions I probably should've expected, and as soon as I brought up her rei!help command, it set off <em>every single one of her other commands</em>...</p>
  
  <p>Are there any alternatives to the code above that I can use so that she only doesn't respond to her own messages? I've seen <code>(message.userID === bot.userID)</code> used, but for my bot, it just locks up and doesn't respond to anything if I copypaste that code in. It doesn't bring up an error message either...</p>
  
  <p>Any help is appreciated, thanks!</p>
  
  <p>EDIT: clairification for what's around the line of code here!</p>
  
  <pre class="lang-js prettyprint-override"><code>///constants and dependencies above here
  
  //console log
  bot.on('ready',() =&gt; {
     console.log('Up and running!!!');
  });
  
  //set 'playing' to
  bot.on('ready', () =&gt; {
   bot.user.setActivity('hehe clairvoyance time')
  });
  
  //bot stuff
  bot.on('message', message =&gt; {
    // heres the stuff so reibot doesnt go ham every time someone does rei!help
    if (message.author.bot) return;
  
  ///all commands below here
  </code></pre>