mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-07 06:45:31 +02:00
Illegal, Karen, better ping
This commit is contained in:
@@ -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\`
|
||||
`);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user