Procházet zdrojové kódy

Moved something to somewhere... goodnight...

thehamkercat před 5 roky
rodič
revize
967dc5ee24
2 změnil soubory, kde provedl 3 přidání a 5 odebrání
  1. 1 4
      wbb/modules/music.py
  2. 2 1
      wbb/modules/ping.py

+ 1 - 4
wbb/modules/music.py

@@ -22,8 +22,6 @@ ydl_opts = {
 
 @app.on_message(cust_filter.command(commands=(["music"])))
 async def commit(client, message):
-    user_id = message.from_user.id
-    user_name = message.from_user.username
     app.set_parse_mode("markdown")
     await message.reply_chat_action("upload_audio")
     link = (message.text.split(None, 1)[1])
@@ -31,7 +29,6 @@ async def commit(client, message):
         ydl.download([link])
     for filename in glob.glob("*.mp3"):
         m = await message.reply_audio(filename)
-        await m.edit_caption(f'''
-[Source]({link})''')
+        await m.edit_caption(f"[{filename}]({link})")
         os.remove(filename)
 

+ 2 - 1
wbb/modules/ping.py

@@ -1,6 +1,7 @@
-from wbb import app
+from wbb import app, Command
 from wbb.utils import cust_filter
 import requests
+import time
 __MODULE__ = "Ping"
 __HELP__ = " - /ping - to check if I am Alive or Not"