title: Changing cooldown spam for discord.js
body: <p>I am making a discord economy bot and I want I cooldown. I have made a functioning cooldown but it spams the message that it’s on cooldown. Is there any way to make it only say it’s on cooldown once? Here’s my cooldown code:</p>
  <pre><code>var cooldown = false;
  client.on(&quot;message&quot;, (message) =&gt; {
        if (message.author.bot) return;
  
        if (message.content.includes(&quot;gg!work&quot;)) {
          if (cooldown == true) {
  
            //Bot is on a cooldown
            return;
  
          } else {
            message.channel.send(&quot;Calm down your on cooldown&quot;);
  
            cooldown = true;
            setTimeout(() =&gt; {
              cooldown = false
            }, 7000); //Cooldown for 7 seconds
          }
        }
      }
  </code></pre>
  <p>My command code is</p>
  <pre><code>    if (message.content.toUpperCase() === 'GG!WORK'){
      var work_check = Math.round(Math.random() * 100);
  
      money.updateBal(message.author.id, work_check).then((i) =&gt; {
        message.channel.send('You worked and got '+work_check+' dollars! '+`New balance: ${i.money}`)
      });
    }
  
  </code></pre>