title: Discord bot response based on a variable in javascript
body: <p>I made a discord bot that when it hears the word friend it asks to be your friend, I want the bot to then look at the next message and if the next message contains the word &quot;yes&quot; to say a response. I tried using strings, but couldn't figure it out. Here is what I have written in javascript so far:</p>
  <pre class="lang-js prettyprint-override"><code>client.on(&quot;message&quot;, (message) =&gt; {
    if (!message.content.includes(&quot;friend&quot;) || message.author.bot) return;
  
    message.reply(
      &quot;Did someone say friends? I want a friend. Will you be my friend?&quot;
    );
  
    message.channel
      .awaitMessages((m) =&gt; m.author === message.author, { max: 1 })
      .then((collected) =&gt; {
        if (collected.first().content.toLowerCase().includes(&quot;no&quot;)) {
          message.reply(&quot;That's not very nice&quot;);
        }
      });
  });
  </code></pre>