Answers for "how to ping someone on discord using bot python"

2

bot ping discord.py

@client.command()
async def ping(ctx):
    before = time.monotonic()
    message = await ctx.send("Pong!")
    ping = (time.monotonic() - before) * 1000
    await message.edit(content=f"Pong!  `{int(ping)}ms`")
    
    #for discord.py rewrite
Posted by: Guest on February-03-2021

Code answers related to "how to ping someone on discord using bot python"

Python Answers by Framework

Browse Popular Code Answers by Language