text: const db = require("quick.db");
  const { Collection, MessageEmbed } = require("discord.js");
  const cooldowns = new Map();
  
  module.exports = async(client, message) => {
      var prefix = await db.fetch(`prefix_${message.guild.id}`);
      if (prefix == null) prefix = require('../../config/bot').prefix;
      if (message.channel.type == "dm") return;
      if (message.author.bot) return;
      if (message.content.indexOf(prefix) !== 0) return;
      const args = message.content
          .slice(prefix.length)
          .trim()
          .split(/ +/g);
      const user =
          message.mentions.users.first() ||
          client.users.cache.get(message.content.split(" ")[1]);
      const cmd = args.shift().toLowerCase();
      const command =
          client.commands.get(cmd) ||
          client.commands.find(a => a.aliases && a.aliases.includes(cmd));
      if (!command) return;
      if (!cooldowns.has(command.name)) {
          const coll = new Collection();
          cooldowns.set(command.name, coll);
      }
      const current_time = Date.now();
      const time_stamps = cooldowns.get(command.name);
      const cooldown_amount = command.cooldown * 1000;
      if (time_stamps.has(message.author.id)) {
          const expiration_time =
              time_stamps.get(message.author.id) + cooldown_amount;
          if (current_time < expiration_time) {
              const time_left = (expiration_time - current_time) / 1000;
              return message.channel.send(
                  new MessageEmbed()
                  .setColor("RED")
                  .setDescription(
                      `**Haji Jeram Dadi Yekam Arom Tar Bade \`${time_left.toFixed(
                1
              )}\` Sanie Az In Command \`${command.name}\` Dobare Estefade Konid😄**`
                  )
              );
          }
      }
      time_stamps.set(message.author.id, current_time);
      setTimeout(() => time_stamps.delete(message.author.id), cooldown_amount);
  
      try {
          command.run(client, message, args, user);
      } catch (err) {
          console.log(err);
          message.channel.send(":x: | Yechizi Ro Ridi Haji😆 ```js" + err + "```");
      }
  };
  