Advertisement
Guest User

Untitled

a guest
Dec 7th, 2019
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.40 KB | None | 0 0
  1. module.exports = {
  2. name: "ping",
  3. category: "info",
  4. description: "Returns latency and API ping",
  5. run: async (client, message, args) => {
  6. const msg = await message.channel.send(`🏓 Pinging....`);
  7.  
  8. msg.edit(`🏓 Pong!
  9. Latency is ${Math.floor(msg.createdTimestap - message.createdTimestap)}ms
  10. API Latency is ${Math.round(client.ping)}ms`);
  11. }
  12. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement