title: How to make a command time counter
body: <p>My question is: how can I make a command clock (when you execute <code>!count</code> and after 4 minutes you type <code>!time</code> and it says 4 minutes!) in discord.js</p>
  
  <pre class="lang-js prettyprint-override"><code>const Discord = require('discord.js');
  
  exports.run = (client, message) =&gt; {
    var af = 0;
  
    a = setInterval(function(){
    console.log("Hi");
    af = af+1;
  
     if(af == 25){
       clearInterval(a);
    }
    console.log(af);
    }, 60000);
  };
  
  exports.help = {
    name: 'time',
    description: 'time?',
    usage: 'time'
  };
  </code></pre>