diff options
| author | s1n <[email protected]> | 2020-04-07 10:40:25 -0700 |
|---|---|---|
| committer | GitHub <[email protected]> | 2020-04-07 10:40:25 -0700 |
| commit | 67e11c6747ea02b61d1b0604cf650ed03f294e01 (patch) | |
| tree | 67f050cc81dea4b9b21f0d0349ecbdb263ecf221 /commands/ping.js | |
| parent | add yt test, 1.3.0 (diff) | |
| parent | final test push before master (diff) | |
| download | s5nical-67e11c6747ea02b61d1b0604cf650ed03f294e01.tar.xz s5nical-67e11c6747ea02b61d1b0604cf650ed03f294e01.zip | |
Merge pull request #1 from 8cy/test
major codebase refactor, v1.3.0
Diffstat (limited to 'commands/ping.js')
| -rw-r--r-- | commands/ping.js | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/commands/ping.js b/commands/ping.js new file mode 100644 index 0000000..7837180 --- /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 |