Lanbot_Music/commands/core/ping.js

17 lines
402 B
JavaScript
Raw Normal View History

2022-04-03 04:34:37 +02:00
const ms = require('ms');
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
`);
},
};