16 lines
349 B
JavaScript
16 lines
349 B
JavaScript
const { LOCALE } = require("../util/Util");
|
|
const i18n = require("i18n");
|
|
|
|
i18n.setLocale(LOCALE);
|
|
|
|
module.exports = {
|
|
name: "ping",
|
|
cooldown: 10,
|
|
description: i18n.__("ping.description"),
|
|
execute(message) {
|
|
message
|
|
.reply(i18n.__mf("ping.result", { ping: Math.round(message.client.ws.ping) }))
|
|
.catch(console.error);
|
|
}
|
|
};
|