TheHamkerCat 5 anni fa
parent
commit
d58cdb2e3a
1 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  1. 2 2
      wbb/modules/music.py

+ 2 - 2
wbb/modules/music.py

@@ -5,7 +5,7 @@ import youtube_dl
 from pyrogram import filters
 from pyrogram.types import Message
 from wbb.utils import cust_filter
-from wbb import app
+from wbb import app, OWNER_ID
 
 __MODULE__ = "Music"
 __HELP__ = "/music [link] To Download Music From Various Websites"
@@ -16,7 +16,7 @@ ydl_opts = {
 }
 
 
-@app.on_message(cust_filter.command(commands=("music")) & ~filters.edited)
+@app.on_message(cust_filter.command(commands=("music")) & ~filters.edited & filters.user(OWNER_ID))
 async def music(_, message: Message):
     if len(message.command) != 2:
         await message.reply_text("`/music` needs a link as argument")