Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR PYTHON

bot ping command

#check latency
@bot.command()
async def ping(ctx):
    await ctx.send(f'**Current ping is {round(bot.latency*1000)} ms**')
Source by discord.gg #
 
PREVIOUS NEXT
Tagged: #bot #ping #command
ADD COMMENT
Topic
Name
1+4 =