14 lines
365 B
JavaScript
14 lines
365 B
JavaScript
|
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`
|
||
|
)
|
||
|
},
|
||
|
};
|