DudeThatsErin

ping.js

Dec 5th, 2020
61
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. module.exports = {
  2.   name: 'ping', // name the command something
  3.   description: 'Makes sure the bot is online', // Describe your command; shows this with the help command
  4.   aliases: ['hello', 'sup'], // Include if you have other names you want to use for this command as well.
  5.   usage: '++ping',
  6.   inHelp: 'yes',
  7.   execute(message, args) {
  8.  
  9.   message.channel.send(`🏓 Pong! Latency is ${m.createdTimestamp - message.createdTimestamp}ms. API Latency is ${Math.round(client.ping)}ms`);
  10.   },
  11.  
  12. };
RAW Paste Data