mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-14 08:08:34 +02:00
updoot
This commit is contained in:
@@ -1,23 +0,0 @@
|
||||
const Command = require('../../structures/Command');
|
||||
const { stripIndents } = require('common-tags');
|
||||
|
||||
module.exports = class PingCommand extends Command {
|
||||
constructor(client) {
|
||||
super(client, {
|
||||
name: 'ping',
|
||||
aliases: ['pong', 'ping-pong'],
|
||||
group: 'util',
|
||||
memberName: 'ping',
|
||||
description: 'Checks the bot\'s ping to the Discord server.',
|
||||
guarded: true
|
||||
});
|
||||
}
|
||||
|
||||
async run(msg) {
|
||||
const message = await msg.say('Pinging...');
|
||||
return message.edit(stripIndents`
|
||||
:ping_pong: Pong! \`${Math.round(message.createdTimestamp - msg.createdTimestamp)}ms\`
|
||||
Heartbeat: \`${Math.round(this.client.ping)}ms\`
|
||||
`);
|
||||
}
|
||||
};
|
||||
Reference in New Issue
Block a user