This repository has been archived on 2022-09-24. You can view files and clone it, but cannot push or open issues or pull requests.
Codsworth/commands/ping.js

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);
}
};