Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

discord.py ping command

@bot.command(name="ping")
async def ping(ctx: commands.Context):
    await ctx.send(f"Pong! {round(bot.latency * 1000)}ms")
Source by vcokltfre.dev #
 
PREVIOUS NEXT
Tagged: #ping #command
ADD COMMENT
Topic
Name
6+8 =