Initialisation du repository de Beta
This commit is contained in:
commit
14985f6dbb
9469 changed files with 1903273 additions and 0 deletions
9
commandes/autres/ping.py
Normal file
9
commandes/autres/ping.py
Normal file
|
|
@ -0,0 +1,9 @@
|
|||
import discord
|
||||
import time
|
||||
|
||||
async def execute(bot, params, message):
|
||||
start = time.perf_counter()
|
||||
temp_msg = await message.channel.send("Pong!")
|
||||
end = time.perf_counter()
|
||||
latency = round((end - start) * 1000) # ms
|
||||
await temp_msg.edit(content=f"Pong! Latence : {latency}ms\nLatence API : {round(bot.latency * 1000)}ms")
|
||||
Loading…
Add table
Add a link
Reference in a new issue