title: Discord.js Command Cooldown + Time Remaining
body: <p>Okay so I am looking to make it so that the cooldown shows how much longer the user needs to wait until they can work again. The cool down works butI want it to show the time remainign rather than it saying you need to wait 15 mnutes before typing this command. Is it Possible? </p>
  
  <pre><code>const { RichEmbed } = require("discord.js");
  const { stripIndents } = require("common-tags");
  const { prefix } = require("../../botconfig.json");
  const db = require('quick.db')
  let bal = require("../../database/balance.json");
  let works = require('../../database/works.json');
  const fs = require('fs');
  const talkedRecently = new Set();
  
  //Set cooldown
  
  
  module.exports = {
      name: "work",
      aliases: [],
      category: "economy",
      description: "Gets you money",
      usage: "[command | alias]",
      run: async (client, message, args) =&gt; {
         if (talkedRecently.has(message.author.id)) {
   message.channel.send("You have to wait TIME minutes before you can work again")
  
      } else {
  if(!bal[message.author.id]){
      bal[message.author.id] = {
        balance: 0
      };
    } 
    if(!works[message.author.id]) {
      works[message.author.id] = {
       work: 0
      };
    } 
  
    const Jwork = require('../../work.json');
    const JworkR = Jwork[Math.floor(Math.random() * Jwork.length)];
    var random = Math.floor(Math.random() * 20) + 3;
    let curBal = bal[message.author.id].balance 
    bal[message.author.id].balance = curBal + random;
    let curWork = works[message.author.id].work
    works[message.author.id].work = curWork + 1;
    fs.writeFile('././database/works.json', JSON.stringify(works, null, 2), (err) =&gt; {
      if (err) console.log(err)
      })
    fs.writeFile('././database/balance.json', JSON.stringify(bal, null, 2), (err) =&gt; {
      let embed = new RichEmbed() 
      .setColor("RANDOM") 
      .setDescription(`
      **\ | ${message.author.username}**, ${JworkR}  **${random}**
      `) 
      message.channel.send(embed)
      if (err) console.log(err)
    });
  
          // Adds the user to the set so that they can't talk for a minute
          talkedRecently.add(message.author.id);
          setTimeout(() =&gt; {
            // Removes the user from the set after a minute
            talkedRecently.delete(message.author.id);
          }, 900000);
      }
  }
  
  }
  </code></pre>