Illegal, Karen, better ping

This commit is contained in:
Daniel Odendahl Jr
2018-03-19 22:41:40 +00:00
parent 3842db73a1
commit 1877c53674
8 changed files with 92 additions and 6 deletions
+2 -1
View File
@@ -15,8 +15,9 @@ module.exports = class PingCommand extends Command {
async run(msg) {
const message = await msg.say('Pinging...');
const ping = Math.round(message.createdTimestamp - msg.createdTimestamp);
return message.edit(stripIndents`
🏓 Pong! \`${Math.round(message.createdTimestamp - msg.createdTimestamp)}ms\`
🏓 P${'o'.repeat(Math.ceil(ping / 100))}ng! \`${ping}ms\`
Heartbeat: \`${Math.round(this.client.ping)}ms\`
`);
}