14 lines
373 B
Python
14 lines
373 B
Python
from datetime import datetime
|
|
|
|
from app import BOT, Message, bot
|
|
|
|
|
|
# Not my Code
|
|
# Prolly from Userge/UX/VenomX IDK
|
|
@bot.add_cmd(cmd="ping")
|
|
async def ping_bot(bot: BOT, message: Message):
|
|
start = datetime.now()
|
|
resp: Message = await message.reply("Checking Ping.....")
|
|
end = (datetime.now() - start).microseconds / 1000
|
|
await resp.edit(f"Pong! {end} ms.")
|