galactic-bot/structure/client/components/commands/utility/Ping.js
Navy d6a0f99601 A lot of shit
Co-authored-by: nolan <noooolaaaan@gmail.com>
2020-04-17 18:23:13 +03:00

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;