mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-22 21:24:59 +05:00
30 lines
No EOL
580 B
JavaScript
30 lines
No EOL
580 B
JavaScript
const Command = require("../../base/Command");
|
|
|
|
class Ping extends Command {
|
|
constructor(client) {
|
|
super(client, {
|
|
name: "ping",
|
|
dirname: __dirname,
|
|
enabled: true,
|
|
guildOnly: false,
|
|
aliases: ["pi"],
|
|
memberPermissions: [],
|
|
botPermissions: ["SEND_MESSAGES"],
|
|
nsfw: false,
|
|
ownerOnly: false,
|
|
cooldown: 2000
|
|
});
|
|
}
|
|
|
|
async run(message) {
|
|
message.sendT("general/ping:CONTENT", {
|
|
ping: "..."
|
|
}).then((m) => {
|
|
m.sendT("general/ping:CONTENT", {
|
|
ping: Math.round(this.client.ws.ping)
|
|
}, { edit: true });
|
|
});
|
|
}
|
|
}
|
|
|
|
module.exports = Ping; |