LanDiscordScrapy/commands/core/ping.js

14 lines
365 B
JavaScript
Raw Normal View History

2022-03-04 14:26:14 +01:00
module.exports = {
name: 'ping',
aliases: [],
utilisation: '{prefix}ping',
async execute(client, message) {
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`
)
},
};