summaryrefslogtreecommitdiff
path: root/commands/ping.js
diff options
context:
space:
mode:
Diffstat (limited to 'commands/ping.js')
-rw-r--r--commands/ping.js21
1 files changed, 21 insertions, 0 deletions
diff --git a/commands/ping.js b/commands/ping.js
new file mode 100644
index 0000000..b881170
--- /dev/null
+++ b/commands/ping.js
@@ -0,0 +1,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);
+ });
+ }
+} \ No newline at end of file