Lanbot_Music_V12/commands/Utilitaire/ping.js
2022-01-04 01:35:59 +00:00

12 lines
409 B
JavaScript

const { MESSAGES } = require("../../util/constants");
module.exports.run = async (client, message, args) => {
const msg = await message.channel.send("Pong ! ");
msg.edit(
`Pong !
Latence du bot: ${msg.createdTimestamp - message.createdTimestamp}ms
Latence de l'API: ${Math.round(client.ws.ping)}ms`
)
};
module.exports.help = MESSAGES.COMMANDS.UTILITAIRE.PING;