Spaces:
Running
Running
taslim19
commited on
Commit
·
b14aa03
1
Parent(s):
359b1eb
fix: Import bot_sys_stats in ping module
Browse files
DragMusic/plugins/tools/ping.py
CHANGED
@@ -6,7 +6,8 @@ from pyrogram.types import Message
|
|
6 |
from DragMusic import app
|
7 |
from DragMusic.core.call import Drag
|
8 |
from DragMusic.utils.decorators.language import language
|
9 |
-
from
|
|
|
10 |
|
11 |
|
12 |
@app.on_message(filters.command(["ping", "alive"]) & ~BANNED_USERS)
|
@@ -18,11 +19,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 |
-
|
|
|
24 |
)
|
25 |
-
|
26 |
-
# Start the Pyrogram bot
|
27 |
-
if __name__ == "__main__":
|
28 |
-
app.run()
|
|
|
6 |
from DragMusic import app
|
7 |
from DragMusic.core.call import Drag
|
8 |
from DragMusic.utils.decorators.language import language
|
9 |
+
from DragMusic.utils.sys import bot_sys_stats
|
10 |
+
from config import BANNED_USERS, PING_IMG_URL, lyrical
|
11 |
|
12 |
|
13 |
@app.on_message(filters.command(["ping", "alive"]) & ~BANNED_USERS)
|
|
|
19 |
caption=_["ping_1"].format(app.mention),
|
20 |
)
|
21 |
pytgping = await Drag.ping()
|
22 |
+
UP, CPU, RAM, DISK = await bot_sys_stats()
|
23 |
resp = (datetime.now() - start).microseconds / 1000
|
24 |
await response.edit_text(
|
25 |
+
_["ping_2"].format(resp, app.mention, UP, RAM, CPU, DISK, pytgping),
|
26 |
+
reply_markup=supp_markup(_),
|
27 |
)
|
|
|
|
|
|
|
|