dragonxd1 commited on
Commit
1f07c61
·
verified ·
1 Parent(s): 359b1eb

Update DragMusic/plugins/tools/ping.py

Browse files
Files changed (1) hide show
  1. DragMusic/plugins/tools/ping.py +3 -5
DragMusic/plugins/tools/ping.py CHANGED
@@ -18,11 +18,9 @@ async def ping_com(client, message: Message, _):
18
  caption=_["ping_1"].format(app.mention),
19
  )
20
  pytgping = await Drag.ping()
 
21
  resp = (datetime.now() - start).microseconds / 1000
22
  await response.edit_text(
23
- f"**Pong!**\n`{resp:.2f} ms`\n\n**Py-TgCalls:** `{pytgping} ms`"
 
24
  )
25
-
26
- # Start the Pyrogram bot
27
- if __name__ == "__main__":
28
- app.run()
 
18
  caption=_["ping_1"].format(app.mention),
19
  )
20
  pytgping = await Drag.ping()
21
+ UP, CPU, RAM, DISK = await bot_sys_stats()
22
  resp = (datetime.now() - start).microseconds / 1000
23
  await response.edit_text(
24
+ _["ping_2"].format(resp, app.mention, UP, RAM, CPU, DISK, pytgping),
25
+ reply_markup=supp_markup(_),
26
  )