text: const { MessageEmbed } = require('discord.js')
  
  exports.run = async (client, message, args) => {
    try{
      var date = Date.now()
      message.channel.send({ embed: new MessageEmbed()
        .setColor("ORANGE")
        .setTitle(`🏓 Pinging....`)
      }).then(msg => {
        msg.edit({embed: new MessageEmbed()
          .setColor("GREEN")
          .setTitle(`🏓 Ping: \`${Math.round(Date.now() - date)}ms\`\n\n:robot: Api Latency: \`${Math.round(client.ws.ping)}ms\``)
        });
      })
    } catch (e) {
       
    }
  };
  
  exports.help = {
    name: "ping",
    description: "Check if the bot was online.",
    usage: "!ping",
    example: "!ping",
  };
  
  exports.conf = {
    aliases: ["latency"],
    cooldown: 5, // Integer = second.
  };
  