📌  相关文章
📜  机器人延迟不和谐 js - Javascript 代码示例

📅  最后修改于: 2022-03-11 15:02:54.558000             🧑  作者: 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`);
        });
    }