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 { handlemsg, getRandomNum } = require(`${process.cwd()}/handlers/functions`);
  var cp = require('child_process');
  module.exports = {
    name: "ping",
    description: "Gives you information on how fast the Bot can respond to you",
    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 {
        interaction?.reply({ephemeral: true, 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.ping.m1))
        ]}).then(msg => {
          let date1 = Date.now();
          let tping;
          try{
            var child = cp.spawnSync("ping", ["-c", "2", "localhost"], { encoding : 'utf8' });
            tping = child.stdout.split(", time")[1].trim().split(" ")[0].replace("\n", "").replace("rtt", "")
          }catch{
            tping = `${getRandomNum(4, 8)}ms`
          }
          let botping = Math.round(date1 - createdTimestamp - (2 * client.ws.ping)) 
          if(botping < 0) botping *= -1;
          interaction?.editReply({ephemeral: true, 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("It Takes longer, because i am getting my host ping!", es.footericon && (es.footericon.includes("http://") || es.footericon.includes("https://")) ? es.footericon : client.user.displayAvatarURL()))
            .setTitle(handlemsg(client.la[ls].cmds.info.ping.m2, { botping: botping, ping: tping, wsping: Math.round(client.ws.ping)}))
          ]});
        })
      } catch (e) {
        console.log(String(e.stack).grey.bgRed)
      }
    }
  }
  /**
   * @INFO
   * Bot Coded by Tomato#6966 | https://discord.gg/milrato
   * @INFO
   * Work for Milrato Development | https://milrato.eu
   * @INFO
   * Please mention him / Milrato Development, when using this Code!
   * @INFO
   */
  