TheHamkerCat před 5 roky
rodič
revize
cd377838d1
4 změnil soubory, kde provedl 11 přidání a 22 odebrání
  1. 1 5
      commands.txt
  2. 5 8
      wbb/modules/admin.py
  3. 0 1
      wbb/modules/misc.py
  4. 5 8
      wbb/modules/ping.py

+ 1 - 5
commands.txt

@@ -1,13 +1,11 @@
 ####Send this list to @botfather to set your commands.
 
 ban - Ban A User
-banme - Ban Yourself
 cat - Get Cute Cats Images
 cheat - Get Programming Related Help
 commit - Generate Funny Commit Messages
 decrypt - Decrypt Text
 del - Delete Replied Message
-dev - Forward Anything To Developers [SPAM = GBAN]
 dog - Get Cute Dogs Images
 encrypt - Encrypt Text
 google - Search For Something On Google
@@ -17,11 +15,10 @@ http - Get Cats Reference Photo For Http Error Codes
 id - Get Chat_ID or User_ID
 ipinfo - Get Info About An Ip Address
 kick - Kick A User
-kickme - Kick Yourself
 log - Get Logs From Last Run.
 music - [link] To Download Music From Various Websites
 mute - Mute A User
-paste - Paste To Neokobin
+paste - Paste To Nekobin
 pin - Pin The Replied Message
 ping - Get Response Time From All TG Datacenters
 promote - Promote A Member
@@ -42,7 +39,6 @@ ud - Search For Something In Urban Dictionary
 unban - Unban A User
 unmute - Unmute A User
 unpin - Unpin The Last Pinned Message.
-upload - Upload Files Via Direct Link
 wall - Get Wallpapers
 weather - Get Weather Info
 wiki - Search For Something On Wikipedia

+ 5 - 8
wbb/modules/admin.py

@@ -5,16 +5,13 @@ from wbb.utils import cust_filter
 from wbb.utils.botinfo import BOT_ID
 
 __MODULE__ = "Admin"
-__HELP__ = '''/ban    - Ban A User
-/unban  - Unban A User
-/kick   - Kick A User
-/purge  - Purge Messages
-/del    - Delete Replied Message
-/banme  - Bans A User Who Issued The Command
-/kickme - Kicks A User Who Issued The Command
+__HELP__ = '''/ban - Ban A User
+/unban - Unban A User
+/kick - Kick A User
+/purge - Purge Messages
+/del - Delete Replied Message
 /promote - Promote A Member
 /pin - Pin A Message
-/unpin - Unpin A Message
 /mute - Mute A User
 /unmute - Unmute A User'''
 

+ 0 - 1
wbb/modules/misc.py

@@ -14,7 +14,6 @@ __HELP__ = '''/commit - Generate Funny Commit Messages
 /runs  - Idk Test Yourself
 /quote - Get Random Linux Quotes
 /id - Get Chat_ID or User_ID
-/dev - Forward Anything To Developers [SPAM = GBAN]
 /random - Generate Random Complex Passwords
 /http - Get Cats Reference Photo For Http Error Codes
 /encrypt - Encrypt Text [Can Only Be Decrypted By This Bot]

+ 5 - 8
wbb/modules/ping.py

@@ -3,6 +3,7 @@ from pyrogram import filters
 from pyrogram.types import Message
 from wbb import app
 from wbb.utils import cust_filter
+from wbb.utils.botinfo import BOT_DC_ID
 
 
 __MODULE__ = "Ping"
@@ -11,11 +12,7 @@ __HELP__ = " /ping - To Get Response Time From All TG Datacenters"
 
 @app.on_message(cust_filter.command(commands=("ping")) & ~filters.edited)
 async def ping(_, message: Message):
-    app.set_parse_mode("markdown")
-    j = await message.reply_text("Wait, Pinging all Datacenters`")
-    result = ""
-    for i in range(1, 6):
-        datacenter = (f"https://cdn{i}.telesco.pe")
-        ping1 = round(requests.head(datacenter).elapsed.total_seconds() * 1000)
-        result += f'`DC{i} - {ping1}ms`\n'
-    await j.edit(result)
+    datacenter = (f"https://cdn{BOT_DC_ID}.telesco.pe")
+    ping1 = round(requests.head(datacenter).elapsed.total_seconds() * 1000)
+    result = f'`DC{BOT_DC_ID} - {ping1}ms`\n'
+    await message.reply_text(result)