title: How do I make a message collector in discord.js to have multiple responses according to the message the user sent?
body: <p>I'm trying to make a start command for a currency bot. I'm trying to make a message collector, which asks for collecting for this certain user. And depending on the user's response, it would have different responses.</p>
  <ul>
  <li>If the user replies with &quot;yes&quot;, the bot will send &quot;cool&quot;.</li>
  <li>If the user replies with &quot;no&quot;, the bot will send &quot;not cool&quot;.</li>
  <li>If the user doesn't reply in 15 seconds or replies something else than &quot;yes&quot; and &quot;no&quot;, the bot will send &quot;bruh&quot;.</li>
  </ul>
  <pre class="lang-js prettyprint-override"><code>message.channel.send(&quot;Yes or no?&quot;)
          .then(function (message) {
              const filter = m =&gt; m.author.id === message.author.id,;
              const collector = message.channel.createMessageCollector(filter, { max: 1, time: 15000, errors: ['time'] })
              collector.on('collect', m =&gt; {
                  if (m == &quot;yes&quot;) {
                    message.channel.send(&quot;cool&quot;)
                  } else if (m == &quot;no&quot;) {
                    message.channel.send(&quot;not cool&quot;)
                  } else {
                      message.channel.send(&quot;bruh&quot;)
                  } 
                  
                })
            })
      }
  </code></pre>
  <p>But whatever I say, the bot doesn't respond at all, even in the console. <br> Thanks for any help!</p>