JaBa/commands/General/ping.js

30 lines
611 B
JavaScript
Raw Normal View History

2022-01-04 02:18:28 +05:00
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: 2000
});
}
async run(message) {
message.sendT("general/ping:CONTENT", {
ping: "..."
}).then((m) => {
m.sendT("general/ping:CONTENT", {
ping: m.createdTimestamp - message.createdTimestamp
}, { edit: true });
2022-01-04 02:18:28 +05:00
});
}
};
module.exports = Ping;