blob: 69526ebd1c5a1dd26f9aec0766b2a227bd8dd57a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
|
const Discord = require('discord.js');
module.exports = {
name: 'ping',
aliases: ['p'],
description: '',
execute(msg, args, bot) {
const t = Date.now();
msg.channel.send('plz wait..').then(m => {
m.edit(`** **`);
const n = Date.now();
let emb = new Discord.RichEmbed()
.setDescription(`pong! s5nical's is \`${n - t}ms\`. heartbeat \`${bot.ping}ms\`.`)
.setColor(0xF97DAE);
msg.channel.send(RichEmbed = emb);
});
}
};
|