25 lines
511 B
JavaScript
25 lines
511 B
JavaScript
const { Command } = require('../../../../interfaces/');
|
|
|
|
class PingCommand extends Command {
|
|
|
|
constructor(client) {
|
|
|
|
super(client, {
|
|
name: 'ping',
|
|
module: 'utility',
|
|
description: "Determines the ping of the bot."
|
|
});
|
|
|
|
this.client = client;
|
|
|
|
|
|
}
|
|
|
|
async execute(message) {
|
|
const ping = this.client.ws.ping.toFixed(0);
|
|
return message.respond(`Pong! \`${ping}ms\``, { emoji: 'success' });
|
|
}
|
|
|
|
}
|
|
|
|
module.exports = PingCommand; |