2019-09-13 20:02:41 +00:00
|
|
|
const client = require("../utils/client.js");
|
|
|
|
|
|
|
|
exports.run = async (message) => {
|
|
|
|
const pingMessage = await client.createMessage(message.channel.id, "🏓 Ping?");
|
2019-12-14 04:13:35 +00:00
|
|
|
return pingMessage.edit(`🏓 Pong!\n\`\`\`\nLatency: ${pingMessage.timestamp - message.timestamp}ms\nAPI Latency: ${Math.round(client.shards.get(client.guildShardMap[message.channel.guild.id]).latency)}ms\n\`\`\``);
|
2019-09-13 20:02:41 +00:00
|
|
|
};
|
|
|
|
|
|
|
|
exports.aliases = ["pong"];
|
2019-12-02 20:47:22 +00:00
|
|
|
exports.category = 1;
|
|
|
|
exports.help = "Pings the server I'm hosted on";
|