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