Update Akeno/plugins/ping.py
Browse files- Akeno/plugins/ping.py +19 -3
Akeno/plugins/ping.py
CHANGED
@@ -83,6 +83,12 @@ async def ping(client: Client, message: Message):
|
|
83 |
return
|
84 |
await pro.edit_text(caption)
|
85 |
|
|
|
|
|
|
|
|
|
|
|
|
|
86 |
@Akeno(
|
87 |
~filters.scheduled
|
88 |
& filters.command(["kping"], CMD_HANDLER)
|
@@ -96,9 +102,19 @@ async def custom_ping_handler(client: Client, message: Message):
|
|
96 |
await asyncio.sleep(1.5)
|
97 |
end = dt.now()
|
98 |
duration = (end - start).microseconds / 1000
|
99 |
-
|
100 |
-
|
101 |
-
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
102 |
|
103 |
module = modules_help.add_module("ping", __file__)
|
104 |
module.add_command("ping", "to testing ping.")
|
|
|
83 |
return
|
84 |
await pro.edit_text(caption)
|
85 |
|
86 |
+
custom_blue = "<emoji id=5328317370647715629>✅</emoji>"
|
87 |
+
custom_cat = "<emoji id=5352865784508980799>🗿</emoji>"
|
88 |
+
custom_pong = "<emoji id=5269563867305879894>🗿</emoji>"
|
89 |
+
custom_balon = "<emoji id=5407064810040864883>🗿</emoji>"
|
90 |
+
custom_owner = "<emoji id=5467406098367521267>🗿</emoji>"
|
91 |
+
|
92 |
@Akeno(
|
93 |
~filters.scheduled
|
94 |
& filters.command(["kping"], CMD_HANDLER)
|
|
|
102 |
await asyncio.sleep(1.5)
|
103 |
end = dt.now()
|
104 |
duration = (end - start).microseconds / 1000
|
105 |
+
if client.me.is_premium:
|
106 |
+
await lol.edit_text(
|
107 |
+
f"**TEST** ◎ **PING**\n"
|
108 |
+
f"{custom_pong} **Pɪɴɢᴇʀ :** "
|
109 |
+
f"`%sms` \n"
|
110 |
+
f"{custom_balon} **Uᴘᴛɪᴍᴇ :** "
|
111 |
+
f"`{uptime}` \n"
|
112 |
+
f"{custom_owner} **Oᴡɴᴇʀ :** `{client.me.mention}`" % (duration)
|
113 |
+
)
|
114 |
+
else:
|
115 |
+
await lol.edit_text(
|
116 |
+
f" **Pong !!** " f"`%sms` \n" f" **Uptime** - " f"`{uptime}` " % (duration)
|
117 |
+
)
|
118 |
|
119 |
module = modules_help.add_module("ping", __file__)
|
120 |
module.add_command("ping", "to testing ping.")
|