📜  discord.py ping 命令 - Python 代码示例
📅  最后修改于: 2022-03-11 14:46:40.644000             🧑  作者: Mango
代码示例2
@bot.command(name="ping")
async def ping(ctx: commands.Context):
await ctx.send(f"Pong! {round(bot.latency * 1000)}ms")