1var yourping = new Date().getTime() - message.createdTimestamp
2var botping = Math.round(bot.ws.ping)
3
4message.channel.send(`Your ping: ${yourping} \nBots ping: ${botping}`)
1if(cmd === `${prefix}ping`) {
2 message.channel.send("Pinging...").then(m =>{
3 var ping = m.createdTimestamp - message.createdTimestamp;
4 var botPing = Math.round(bot.pi);
5
6 m.edit(`**:ping_pong: Pong! Your Ping Is:-**\n ${ping}ms`);
7 });
8 }