title: Command Timeout | Discord.js
body: <p>Currently I have this:</p>
  
  <pre><code>const Discord = require("discord.js");
  const PREFIX = ",";
  const token = "my token";
  var bot = new Discord.Client();
  bot.on('ready', () =&gt; {
      bot.on('message', message =&gt; {
          if (!message.content.startsWith(PREFIX)) return; //if not command ignore message
  
          var args = message.content.substring(PREFIX.length).split(" "); //splits commands so each word = pos in array
  
          switch (args[0].toLowerCase()) { //not case-sensitive anymore
  
              case "hello":
                  message.channel.send("hello");
                  break;
  
               //rest of the commands
  </code></pre>
  
  <p>I would like to limit the usage of the command ",hello". I want there to be a 10 second timeout for every-time a user enters ",hello". And if a user enters the command before this cooldown it will send a message saying who used the command last and how long remaining on the cooldown.</p>
  
  <p>This is what I want the outcome to look like:</p>
  
  <pre><code>User1:          ,hello
  Bot:             hello
  
  (After 1 second)
  
  User2:          ,hello
  Bot:            User1 has already used this command, please wait another 9 seconds to use it again
  
  (After 9 seconds)
  
  User 2:         ,hello
  Bot:            hello
  </code></pre>
  
  <p>All help is appreciated.
  Thanks,</p>