title: Bot reply to message author
body: <p>I've created my own Node.js bot to work in my discord server.</p>
  
  <p>My bot is named <code>mybot</code>.</p>
  
  <p>I've seen numerous examples of responding to incoming messages - they look like this (and work just fine).</p>
  
  <pre><code>chatroom.on('message', function(msg){
      if(msg.content === 'ping'){
          msg.reply('pong');
      }
  });
  </code></pre>
  
  <p>The code above will have the bot reply with "pong" whenever anyone writes just "ping" in the channel.</p>
  
  <p>As with most bots, generally you speak to them and ask them for something like <code>@mybot blahblahblah</code> - and then they reply.</p>
  
  <p>I want to do this. I want <code>mybot</code> to only reply when he is spoken to. There must be a <code>msg.recipientList</code> or <code>msg.recipients</code> that captures the <code>@mybot</code>. I've looked through Discord.js's docs and I'm having a hard time finding this result.</p>