📜  如何在不和谐上进行幽灵 ping - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:03:12.448000             🧑  作者: Mango

代码示例2
if(cmd === `${prefix}ping`) {

        message.channel.send("Pinging...").then(m =>{

            var ping = m.createdTimestamp - message.createdTimestamp;

            var botPing = Math.round(bot.pi);

            m.edit(`**:ping_pong: Pong! Your Ping Is:-**\n  ${ping}ms`);

        });

    }