blob: 7837180eb7d8d5cb001fd6fa7ab8b9dd82089363 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
|
const Discord = require('discord.js');
module.exports = {
name: 'ping',
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);
});
}
};
|