SHARE
TWEET

كود البنق

a guest May 21st, 2019 77 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  
  2. client.on('message', message => {
  3.                                 if(!message.channel.guild) return;
  4.                         if (message.content.startsWith('!ping')) {
  5.                             if(!message.channel.guild) return;
  6.                             var msg = `${Date.now() - message.createdTimestamp}`
  7.                             var api = `${Math.round(client.ping)}`
  8.                             if (message.author.bot) return;
  9.                         let embed = new Discord.RichEmbed()
  10.                         .setAuthor(message.author.username,message.author.avatarURL)
  11.                         .setColor('RANDOM')
  12.                         .addField('**Time Taken:**',msg + " ms ๐Ÿ“ถ ")
  13.                         .addField('**WebSocket:**',api + " ms ๐Ÿ“ถ ")
  14.          message.channel.send({embed:embed});
  15.                         }
  16.                     });
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top