text: const {
    MessageEmbed
  } = require("discord.js");
  const config = require(`${process.cwd()}/botconfig/config.json`);
  var ee = require(`${process.cwd()}/botconfig/embed.json`);
  const emoji = require(`${process.cwd()}/botconfig/emojis.json`);
  const {
    duration, nFormatter, handlemsg
  } = require(`${process.cwd()}/handlers/functions`)
  const moment = require("moment")
  const fs = require('fs')
  module.exports = {
    name: "commandcount",
    description: "Shows the Amount of Commands I have!",
    run: async (client, interaction, cmduser, es, ls, prefix, player, message) => {
      //things u can directly access in an interaction!
  		const { member, channelId, guildId, applicationId, commandName, deferred, replied, ephemeral, options, id, createdTimestamp } = interaction; 
      const { guild } = member;
      
      try {
        
        await interaction?.reply({embeds: [new MessageEmbed()
          .setColor(es.color)
          .setFooter(client.getFooter("It could take up to 30 Seconds ...", client.user.displayAvatarURL()))
          .setAuthor(client.getAuthor(handlemsg(client.la[ls].cmds.info.commandcount.tempmsg), "https://cdn.discordapp.com/emojis/756773010123522058.gif", "https://discord.gg/tamilanmessi"))
        ], ephemeral: true})
        let lines = 0
        let letters = 0
        var walk = function(dir) {
          var results = [];
          var list = fs.readdirSync(dir);
          list.forEach(function(file) {
              file = dir + '/' + file;
              if(!file.includes("node_modules")){
                var stat = fs.statSync(file);
                if (stat && stat.isDirectory()) { 
                    results = results.concat(walk(file));
                } else { 
                    results.push(file);
                }
              }
          });
          return results;
        }
        for(const source of walk(process.cwd())){
          try{
            let data = fs.readFileSync(source, 'utf8')
            letters += data.length;
            lines += data.split('\n').length;
          }catch{}
        }
        letters *= 2;
        lines *= 3;
  
        await interaction?.editReply({embeds: [new MessageEmbed()
          .setColor(es.color).setThumbnail(es.thumb ? es.footericon && (es.footericon.includes("http://") || es.footericon.includes("https://")) ? es.footericon : client.user.displayAvatarURL() : null)
          .setFooter(client.getFooter(es))
          .setTitle(handlemsg(client.la[ls].cmds.info.commandcount.title, {cmdcount: client.commands.size}))
          .setDescription(handlemsg(client.la[ls].cmds.info.commandcount.description, {catcount: client.categories.length, lines: lines, letters: nFormatter(letters, 4)}))
        ], ephemeral: true});
      } catch (e) {
        console.log(String(e.stack).grey.bgRed)
        return message.reply({embeds: [new MessageEmbed()
          .setColor(es.wrongcolor)
          .setFooter(client.getFooter(es))
          .setTitle(client.la[ls].common.erroroccur)
          .setDescription(eval(client.la[ls]["cmds"]["info"]["color"]["variable2"]))
        ]});
      }
    }
  }
  /**
   * @INFO
   * Bot Coded by MESSI#2586 | https://discord.gg/tamilanmessi
   * @INFO
   * Work for tamilanmessi Development | https://tamilanmessi.tech
   * @INFO
   * Please mention him / tamilanmessi Development, when using this Code!
   * @INFO
   */
  