24 lines
482 B
JavaScript
24 lines
482 B
JavaScript
const { Command } = require('../../../../interfaces/');
|
|
|
|
class PingCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'ping',
|
|
module: 'utility'
|
|
});
|
|
|
|
this.client = client;
|
|
|
|
|
|
}
|
|
|
|
async execute(message) {
|
|
const ping = this.client.ws.ping.toFixed(0);
|
|
return message.respond(`${message.format('C_PING_RESPONSE')} \`${ping}ms\``, { emoji: 'success' });
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = PingCommand; |