mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-30 00:54:57 +05:00
27 lines
607 B
JavaScript
27 lines
607 B
JavaScript
|
const Command = require("../../base/Command.js");
|
||
|
|
||
|
class Ping extends Command {
|
||
|
constructor (client) {
|
||
|
super(client, {
|
||
|
name: "ping",
|
||
|
dirname: __dirname,
|
||
|
enabled: true,
|
||
|
guildOnly: false,
|
||
|
aliases: [ "pong", "latency" ],
|
||
|
memberPermissions: [],
|
||
|
botPermissions: [ "SEND_MESSAGES" ],
|
||
|
nsfw: false,
|
||
|
ownerOnly: false,
|
||
|
cooldown: 1000
|
||
|
});
|
||
|
}
|
||
|
|
||
|
async run (message) {
|
||
|
message.sendT("general/ping:CONTENT", { ping: "..."
|
||
|
}).then((m) => {
|
||
|
m.sendT("general/ping:CONTENT", { ping: m.createdTimestamp - message.createdTimestamp }, { edit: true });
|
||
|
});
|
||
|
}
|
||
|
};
|
||
|
|
||
|
module.exports = Ping;
|