You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
624 B
JavaScript

const Command = require(`../../Structure/Command.js`);
module.exports = class extends Command {
constructor(client) {
super(client, {
name: `ping`,
description: `Return the bot ping.`,
category: `Bot`,
enabled: true,
aliases: [`latency`],
cooldown: 3,
dmOnly: false,
});
}
async run(message, args) {
message.chat.sendMessage('Calcul du ping...').then(m => {
m.delete();
message.chat.sendMessage(`Mon ping est de ${(m.timestamp - message.timestamp) / 1000}ms`)
})
}
}