Spaces:
Paused
Paused
𝐃𝐀𝐑𝐑𝐄𝐋𝐋 𝐌𝐔𝐂𝐇𝐄𝐑𝐈 ⚡
commited on
Update ytdl.js
Browse files- plugins/ytdl.js +555 -1
plugins/ytdl.js
CHANGED
|
@@ -1,4 +1,558 @@
|
|
| 1 |
// Fuck you bro
|
| 2 |
// SUBZERO PROPERTY
|
| 3 |
|
| 4 |
-
const _0x39bab4=_0x4bcb;(function(_0x455cba,_0x3084b2){const _0x2ba77f=_0x4bcb,_0x3d74f4=_0x455cba();while(!![]){try{const _0x283cf7=-parseInt(_0x2ba77f(0x7a))/0x1*(parseInt(_0x2ba77f(0x8e))/0x2)+parseInt(_0x2ba77f(0x7c))/0x3*(parseInt(_0x2ba77f(0xa7))/0x4)+parseInt(_0x2ba77f(0x9d))/0x5+-parseInt(_0x2ba77f(0x77))/0x6*(-parseInt(_0x2ba77f(0x86))/0x7)+-parseInt(_0x2ba77f(0xad))/0x8+-parseInt(_0x2ba77f(0x79))/0x9*(parseInt(_0x2ba77f(0x99))/0xa)+parseInt(_0x2ba77f(0x71))/0xb*(-parseInt(_0x2ba77f(0xbf))/0xc);if(_0x283cf7===_0x3084b2)break;else _0x3d74f4['push'](_0x3d74f4['shift']());}catch(_0x5b4e7f){_0x3d74f4['push'](_0x3d74f4['shift']());}}}(_0x10cc,0x2cf2c));function _0x4bcb(_0x49b287,_0x4c192d){const _0x10cc14=_0x10cc();return _0x4bcb=function(_0x4bcb84,_0x590954){_0x4bcb84=_0x4bcb84-0x70;let _0x3d1fcf=_0x10cc14[_0x4bcb84];return _0x3d1fcf;},_0x4bcb(_0x49b287,_0x4c192d);}function hi(){const _0x1692e1=_0x4bcb;console[_0x1692e1(0x91)](_0x1692e1(0x9b));}hi();function hi(){console['log']('Hello\x20World!');}hi();function hi(){console['log']('Hello\x20World!');}hi();const more=String[_0x39bab4(0xbc)](0x200e),readMore=more[_0x39bab4(0xa8)](0xfa1),{cmd,commands}=require(_0x39bab4(0xb8)),yts=require(_0x39bab4(0x70)),{fetchJson}=require('../lib/functions'),axios=require(_0x39bab4(0xab));async function ytmp4(_0x5152ea,_0xa14a1c){const _0x54e6c7=_0x39bab4;try{if(!_0x5152ea||!_0xa14a1c)throw new Error(_0x54e6c7(0x83));const _0x1f0f8b=parseInt(_0xa14a1c['replace']('p',''),0xa),_0x3c68bd={'button':0x1,'start':0x1,'end':0x1,'format':_0x1f0f8b,'url':_0x5152ea},_0x4b6f39={'Accept':_0x54e6c7(0xaf),'Accept-Encoding':'gzip,\x20deflate,\x20br','Accept-Language':_0x54e6c7(0x76),'Origin':_0x54e6c7(0x84),'Referer':'https://loader.to','Sec-Ch-Ua':_0x54e6c7(0x94),'Sec-Ch-Ua-Mobile':'?1','Sec-Ch-Ua-Platform':_0x54e6c7(0x73),'Sec-Fetch-Dest':_0x54e6c7(0xb0),'Sec-Fetch-Mode':_0x54e6c7(0xbd),'Sec-Fetch-Site':'cross-site','User-Agent':'Mozilla/5.0\x20(Linux;\x20Android\x2010;\x20K)\x20AppleWebKit/537.36\x20(KHTML,\x20like\x20Gecko)\x20Chrome/124.0.0.0\x20Mobile\x20Safari/537.36'},_0x5e0bde=await axios[_0x54e6c7(0x9f)](_0x54e6c7(0xb4),{'params':_0x3c68bd,'headers':_0x4b6f39}),_0x3c5164=_0x5e0bde[_0x54e6c7(0x78)]['id'],_0x286e08=async()=>{const _0x1e4ed9=_0x54e6c7,_0x7d77f4={'id':_0x3c5164};try{const _0x7e0a56=await axios[_0x1e4ed9(0x9f)]('https://p.oceansaver.in/ajax/progress.php',{'params':_0x7d77f4,'headers':_0x4b6f39}),{progress:_0xdf34d0,download_url:_0x237a5b,text:_0x13f20a}=_0x7e0a56[_0x1e4ed9(0x78)];return _0x13f20a===_0x1e4ed9(0xb9)?_0x237a5b:(await new Promise(_0x518525=>setTimeout(_0x518525,0x3e8)),_0x286e08());}catch(_0x2bad88){throw new Error(_0x1e4ed9(0xc0)+_0x2bad88[_0x1e4ed9(0x8f)]);}};return await _0x286e08();}catch(_0x46ae02){return console['error'](_0x54e6c7(0x92),_0x46ae02),{'error':_0x46ae02[_0x54e6c7(0x8f)]};}}module['exports']={'ytmp4':ytmp4};function extractYouTubeId(_0x4a8ecd){const _0x99f328=_0x39bab4,_0x3a610a=/(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|v\/|shorts\/|playlist\?list=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/,_0x4bb470=_0x4a8ecd[_0x99f328(0xa2)](_0x3a610a);return _0x4bb470?_0x4bb470[0x1]:null;}function _0x10cc(){const _0x319440=['url\x20and\x20format\x20parameters\x20are\x20required.','https://loader.to','360p','8365nSpPvz','\x0a*❄️SUBZERO\x20-\x20MD❄️*\x20\x0a\x0a┏━━━━━━━━━━━━━\x0a┃sᴜʙᴢᴇʀᴏ\x20ᴍᴅ\x20ᴠɪᴅᴇᴏ\x20ᴅᴏᴡɴʟᴏᴀᴅᴇʀ\x20✻\x0a┗━━━━━━━━━━━━━\x0a┏━━━━━━━━━━━━━━\x0a\x0a🔢\x20*ʀᴇᴘʟʏ\x20ʙᴇʟᴏᴡ\x20ᴛʜᴇ\x20ɴᴜᴍʙᴇʀ\x20ᴛᴏ*\x0a*ᴅᴏᴡɴʟᴏᴀᴅ\x20ꜰʀᴏᴍᴀᴛ*\x0a\x0a*ᴅᴏᴡɴʟᴏᴀᴅ\x20ᴠɪᴅᴇᴏ\x20🎬*\x0a\x0a*1.1*\x20\x20\x20\x20\x20┃\x20\x20*360ᴘ*\x0a*1.2*\x20\x20\x20\x20\x20┃\x20\x20*480ᴘ*\x0a*1.3*\x20\x20\x20\x20\x20┃\x20\x20*720ᴘ*\x0a*1.4*\x20\x20\x20\x20\x20┃\x20\x20*1080ᴘ*\x0a\x0a*ᴅᴏᴡɴʟᴏᴀᴅ\x20ᴅᴏᴄᴜᴍᴇɴᴛ\x20📁*\x0a\x0a*2.1*\x20\x20\x20\x20\x20┃\x20\x20*360ᴘ*\x0a*2.2*\x20\x20\x20\x20\x20┃\x20\x20*480ᴘ*\x0a*2.3*\x20\x20\x20\x20\x20┃\x20\x20*720ᴘ*\x0a*2.4*\x20\x20\x20\x20\x20┃\x20\x20*1080ᴘ*\x0a\x0a>\x20sᴜʙᴢᴇʀᴏ\x20ᴍᴅ✻\x0a','2.1','stanzaId','1080','ytmp3','*Failed\x20to\x20process\x20the\x20request.\x20Please\x20try\x20again\x20later!*','360','14128KGmIry','message','ytmp4','log','Error:','key','\x22Not-A.Brand\x22;v=\x2299\x22,\x20\x22Chromium\x22;v=\x22124\x22','First\x20attempt\x20failed:','\x0a*🌟Gᴇɴᴇʀᴀᴛᴇᴅ\x204\x20Yᴏᴜ\x20Bʏ\x20SᴜʙZᴇʀᴏ🌟*\x0a','.mp4','video/mp4','2103630Nojfvo','title','Hello\x20World!','dilolo','1026905iBcLEd','2.3','get','song','720','match','videos','video','Please\x20give\x20me\x20a\x20URL\x20or\x20title.\x20Eg\x20.play\x20Lily\x20By\x20Alan\x20Walker','To\x20download\x20videos.','21848OqdqxV','repeat','To\x20download\x20songs.','conversation','axios','messages','315648eqWARa','dee','*/*','empty','messages.upsert','sendMessage','remoteJid','https://ab.cococococ.com/ajax/download.php','videoId','*Need\x20a\x20YouTube\x20URL!*','https://api.davidcyriltech.my.id/download/ytmp3?url=','../command','Finished','480','audio/mp3','fromCharCode','cors','url','1884iEjdzt','Error\x20in\x20progress\x20check:\x20','1.4','https://www.youtube.com/watch?v=','yt-search','418VMubFH','audio/mpeg','\x22Android\x22','thumbnail','1.2','en-GB,en-US;q=0.9,en;q=0.8','1308nruEvI','data','9MIvEPO','6tbBMBI','contextInfo','9fkwOPt','result','download_url','text','play','2.2','extendedTextMessage'];_0x10cc=function(){return _0x319440;};return _0x10cc();}function convertYouTubeLink(_0x405319){const _0x4c15ec=_0x39bab4,_0x8bc893=extractYouTubeId(_0x405319);if(_0x8bc893)return _0x4c15ec(0xc2)+_0x8bc893;return _0x405319;}cmd({'pattern':_0x39bab4(0xa0),'alias':[_0x39bab4(0x80),_0x39bab4(0x8b)],'desc':_0x39bab4(0xa9),'react':'🔎','category':'download','filename':__filename},async(_0x17e7d4,_0x730b0b,_0x412fe4,{from:_0x13429c,quoted:_0x17f147,body:_0x46b675,isCmd:_0x52cfb3,command:_0x441462,args:_0xdb9d97,q:_0xa99fd8,isGroup:_0x11c599,sender:_0x25607b,senderNumber:_0x1193b2,botNumber2:_0x3423c7,botNumber:_0x54e39c,pushname:_0x256b4a,isMe:_0x182a24,isOwner:_0x2bf96e,groupMetadata:_0x229397,groupName:_0x27ca66,participants:_0x1043c6,groupAdmins:_0x385fa5,isBotAdmins:_0x5c1c0c,isAdmins:_0x57eb01,reply:_0x220d1b})=>{const _0x4bcdc4=_0x39bab4;try{if(!_0xa99fd8)return _0x220d1b(_0x4bcdc4(0xa5));_0xa99fd8=convertYouTubeLink(_0xa99fd8);const _0x2be66e=await yts(_0xa99fd8),_0x33ad72=_0x2be66e['videos'][0x0],_0x4d9679=_0x33ad72[_0x4bcdc4(0xbe)],_0x4efb87=await _0x17e7d4[_0x4bcdc4(0xb2)](_0x13429c,{'image':{'url':_0x33ad72[_0x4bcdc4(0x74)]},'caption':'\x0a\x20*❄️\x20`SUBZERO\x20-\x20MD`\x20❄️*\x0a\x0a⟣━━━━━━━━━━━━━━━━━⟢\x0a*sᴜʙᴢᴇʀᴏ\x20sᴏɴɢ\x20ᴅᴏᴡɴʟᴏᴀᴅᴇʀ*\x0a⟣━━━━━━━━━━━━━━━━━⟢\x0a\x0a➣\x20*🎐sᴜʙᴢᴇʀᴏ\x20ʙᴏᴛ\x20ᴄʜᴀɴɴᴇʟ🎐*\x0a*https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D*\x0a\x0a⟣━━━━━━━━━━━━━━━━━━⟢\x0a>\x20ℹ️\x20ʀᴇᴘʟʏ\x20ᴡɪᴛʜ\x20ɴᴜᴍʙᴇʀ\x20ᴛᴏ\x20ᴅᴏᴡɴʟᴏᴀᴅ\x20ғᴏʀᴍᴀᴛ\x0a\x0a*1\x20\x20\x20┃\x20ᴀᴜᴅɪᴏ\x20sᴏɴɢ\x20🎵*\x0a*2\x20\x20\x20┃\x20ᴅᴏᴄᴜᴍᴇɴᴛ\x20sᴏɴɢ\x20🗂️*\x0a\x0a>\x20©\x20𝐒𝐔𝐁𝐙𝐄𝐑𝐎\x20𝐌𝐃\x20𝐖.𝐀\x20𝐁𝐎𝐓\x0a'},{'quoted':_0x730b0b}),_0x291076=_0x4efb87[_0x4bcdc4(0x93)]['id'];_0x17e7d4['ev']['on'](_0x4bcdc4(0xb1),async _0x3ec6b8=>{const _0x266f14=_0x4bcdc4,_0x27ccc2=_0x3ec6b8[_0x266f14(0xac)][0x0];if(!_0x27ccc2[_0x266f14(0x8f)])return;const _0x3406c8=_0x27ccc2[_0x266f14(0x8f)][_0x266f14(0xaa)]||_0x27ccc2['message'][_0x266f14(0x82)]?.[_0x266f14(0x7f)],_0x5bdda3=_0x27ccc2[_0x266f14(0x93)][_0x266f14(0xb3)],_0x54a77a=_0x27ccc2['message'][_0x266f14(0x82)]&&_0x27ccc2[_0x266f14(0x8f)][_0x266f14(0x82)][_0x266f14(0x7b)][_0x266f14(0x89)]===_0x291076;if(_0x54a77a){await _0x17e7d4['sendMessage'](_0x5bdda3,{'react':{'text':'⬇️','key':_0x27ccc2[_0x266f14(0x93)]}});const _0xdb4dce=await fetchJson(_0x266f14(0xb7)+_0x4d9679),_0xb96023=_0xdb4dce[_0x266f14(0x7d)][_0x266f14(0x7e)];await _0x17e7d4[_0x266f14(0xb2)](_0x5bdda3,{'delete':_0x4efb87['key']}),await _0x17e7d4[_0x266f14(0xb2)](_0x5bdda3,{'react':{'text':'⬆️','key':_0x27ccc2['key']}});if(_0x3406c8==='1')await _0x17e7d4[_0x266f14(0xb2)](_0x5bdda3,{'audio':{'url':_0xb96023},'mimetype':'audio/mpeg','contextInfo':{'externalAdReply':{'title':_0x33ad72['title'],'body':_0x33ad72[_0x266f14(0xb5)],'mediaType':0x1,'sourceUrl':_0x33ad72[_0x266f14(0xbe)],'thumbnailUrl':_0x33ad72[_0x266f14(0x74)],'renderLargerThumbnail':!![],'showAdAttribution':!![]}}},{'quoted':_0x27ccc2}),await _0x17e7d4['sendMessage'](_0x5bdda3,{'react':{'text':'✅','key':_0x27ccc2[_0x266f14(0x93)]}});else _0x3406c8==='2'&&(await _0x17e7d4[_0x266f14(0xb2)](_0x5bdda3,{'document':{'url':_0xb96023},'mimetype':_0x266f14(0xbb),'fileName':_0x33ad72['title']+'.mp3','caption':'\x0a>\x20©\x20Gᴇɴᴇʀᴀᴛᴇᴅ\x20ʙʏ\x20Sᴜʙᴢᴇʀᴏ\x20❤️\x0a'},{'quoted':_0x27ccc2}),await _0x17e7d4[_0x266f14(0xb2)](_0x5bdda3,{'react':{'text':'✅','key':_0x27ccc2[_0x266f14(0x93)]}}));}});}catch(_0x2d1f32){console['log'](_0x2d1f32),_0x220d1b(''+_0x2d1f32);}}),cmd({'pattern':_0x39bab4(0xa4),'alias':_0x39bab4(0x90),'desc':_0x39bab4(0xa6),'react':'🎥','category':'download','filename':__filename},async(_0x513fba,_0x1e19bb,_0x691ced,{from:_0x5e9dcc,quoted:_0x469f6b,body:_0x1f9fc8,isCmd:_0x4a3054,command:_0x50d36b,args:_0x275d69,q:_0x17d4fa,isGroup:_0x296441,sender:_0x1ca838,senderNumber:_0x467960,botNumber2:_0xd002b0,botNumber:_0x4d2565,pushname:_0x3d4f81,isMe:_0x49c058,isOwner:_0x46d306,groupMetadata:_0x4dedde,groupName:_0x50256c,participants:_0x5b9eae,groupAdmins:_0x16259a,isBotAdmins:_0x14fc49,isAdmins:_0x2dfed7,reply:_0x2c9c3a})=>{const _0x1df060=_0x39bab4;try{if(!_0x17d4fa)return _0x2c9c3a('Please\x20give\x20me\x20a\x20URL\x20or\x20title.');_0x17d4fa=convertYouTubeLink(_0x17d4fa);const _0x55bb91=await yts(_0x17d4fa),_0x105be6=_0x55bb91[_0x1df060(0xa3)][0x0],_0x107831=_0x105be6['url'],_0x393ebc=await _0x513fba[_0x1df060(0xb2)](_0x5e9dcc,{'image':{'url':_0x105be6[_0x1df060(0x74)]},'caption':_0x1df060(0x87)},{'quoted':_0x1e19bb});;const _0xaf8e03=_0x393ebc[_0x1df060(0x93)]['id'];_0x513fba['ev']['on'](_0x1df060(0xb1),async _0x234f60=>{const _0x215207=_0x1df060,_0x5ad1a5=_0x234f60[_0x215207(0xac)][0x0];if(!_0x5ad1a5['message'])return;const _0x4b5963=_0x5ad1a5[_0x215207(0x8f)][_0x215207(0xaa)]||_0x5ad1a5[_0x215207(0x8f)][_0x215207(0x82)]?.[_0x215207(0x7f)],_0x3a6cd4=_0x5ad1a5['key'][_0x215207(0xb3)],_0x133515=_0x5ad1a5[_0x215207(0x8f)]['extendedTextMessage']&&_0x5ad1a5['message'][_0x215207(0x82)][_0x215207(0x7b)][_0x215207(0x89)]===_0xaf8e03;if(_0x133515){await _0x513fba['sendMessage'](_0x3a6cd4,{'react':{'text':'⬇️','key':_0x5ad1a5[_0x215207(0x93)]}});if(_0x4b5963==='1.1'){const _0x332fa0=await ytmp4(''+_0x107831,_0x215207(0x85));await _0x513fba['sendMessage'](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba['sendMessage'](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5[_0x215207(0x93)]}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'video':{'url':_0x332fa0},'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963===_0x215207(0x75)){const _0xe41874=await ytmp4(''+_0x107831,_0x215207(0xba));await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'🔃','key':_0x5ad1a5['key']}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'video':{'url':_0xe41874},'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963==='1.3'){const _0x4e1c58=await ytmp4(''+_0x107831,'720');await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5[_0x215207(0x93)]}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'video':{'url':_0x4e1c58},'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba['sendMessage'](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963===_0x215207(0xc1)){const _0x343ea5=await ytmp4(''+_0x107831,'1080');await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5[_0x215207(0x93)]}}),await _0x513fba['sendMessage'](_0x3a6cd4,{'video':{'url':_0x343ea5},'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963===_0x215207(0x88)){const _0x211ce6=await ytmp4(''+_0x107831,_0x215207(0x8d));await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5[_0x215207(0x93)]}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'document':{'url':_0x211ce6},'mimetype':_0x215207(0x98),'fileName':_0x105be6[_0x215207(0x9a)]+_0x215207(0x97),'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963===_0x215207(0x81)){const _0x4e5600=await ytmp4(''+_0x107831,_0x215207(0xba));await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5[_0x215207(0x93)]}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'document':{'url':_0x4e5600},'mimetype':_0x215207(0x98),'fileName':_0x105be6[_0x215207(0x9a)]+'.mp4','caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963===_0x215207(0x9e)){const _0x3e29c5=await ytmp4(''+_0x107831,_0x215207(0xa1));await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5[_0x215207(0x93)]}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'document':{'url':_0x3e29c5},'mimetype':'video/mp4','fileName':_0x105be6[_0x215207(0x9a)]+_0x215207(0x97),'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5[_0x215207(0x93)]}});}else{if(_0x4b5963==='2.4'){const _0x3cd238=await ytmp4(''+_0x107831,_0x215207(0x8a));await _0x513fba['sendMessage'](_0x3a6cd4,{'delete':_0x393ebc[_0x215207(0x93)]}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'react':{'text':'⬆️','key':_0x5ad1a5['key']}}),await _0x513fba[_0x215207(0xb2)](_0x3a6cd4,{'document':{'url':_0x3cd238},'mimetype':'video/mp4','fileName':_0x105be6[_0x215207(0x9a)]+_0x215207(0x97),'caption':_0x215207(0x96)},{'quoted':_0x5ad1a5}),await _0x513fba['sendMessage'](_0x3a6cd4,{'react':{'text':'✅','key':_0x5ad1a5['key']}});}}}}}}}}}});}catch(_0x31c4d7){console[_0x1df060(0x91)](_0x31c4d7),_0x2c9c3a(''+_0x31c4d7);}}),cmd({'pattern':_0x39bab4(0xae),'alias':_0x39bab4(0x9c),'react':'⬇️','dontAddCommandList':!![],'filename':__filename},async(_0xa236fc,_0x3285b5,_0x1f1c8d,{from:_0x5a6676,q:_0x25b9d1,reply:_0x91d9fb})=>{const _0x2d9da2=_0x39bab4;try{if(!_0x25b9d1)return await _0x91d9fb(_0x2d9da2(0xb6));const _0x4c86b7=await dlyta(_0x25b9d1);await _0xa236fc[_0x2d9da2(0xb2)](_0x5a6676,{'audio':{'url':_0x4c86b7['dl_link']},'mimetype':_0x2d9da2(0x72)},{'quoted':_0x3285b5});}catch(_0x67349f){console[_0x2d9da2(0x91)](_0x2d9da2(0x95),_0x67349f);try{const _0xa07ca3=await dlyta(_0x25b9d1);await _0xa236fc[_0x2d9da2(0xb2)](_0x5a6676,{'audio':{'url':_0xa07ca3['dl_link']},'mimetype':_0x2d9da2(0x72)},{'quoted':_0x3285b5});}catch(_0x15ee21){console[_0x2d9da2(0x91)]('Second\x20attempt\x20failed:',_0x15ee21),await _0x91d9fb(_0x2d9da2(0x8c));}}}),v;
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|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
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
// Fuck you bro
|
| 2 |
// SUBZERO PROPERTY
|
| 3 |
|
| 4 |
+
function hi() {
|
| 5 |
+
console.log("Hello World!");
|
| 6 |
+
}
|
| 7 |
+
hi();
|
| 8 |
+
function hi() {
|
| 9 |
+
console.log("Hello World!");
|
| 10 |
+
}
|
| 11 |
+
hi();
|
| 12 |
+
// const more = String.fromCharCode(8206)
|
| 13 |
+
// const readMore = more.repeat(4001)
|
| 14 |
+
|
| 15 |
+
const {
|
| 16 |
+
cmd,
|
| 17 |
+
commands
|
| 18 |
+
} = require("../command");
|
| 19 |
+
const yts = require("yt-search");
|
| 20 |
+
const {
|
| 21 |
+
fetchJson
|
| 22 |
+
} = require('../lib/functions');
|
| 23 |
+
const axios = require("axios");
|
| 24 |
+
async function ytmp4(_0x3e70f9, _0x412a42) {
|
| 25 |
+
try {
|
| 26 |
+
if (!_0x3e70f9 || !_0x412a42) {
|
| 27 |
+
throw new Error("url and format parameters are required.");
|
| 28 |
+
}
|
| 29 |
+
const _0x540cb9 = parseInt(_0x412a42.replace('p', ''), 0xa);
|
| 30 |
+
const _0x54b505 = {
|
| 31 |
+
'button': 0x1,
|
| 32 |
+
'start': 0x1,
|
| 33 |
+
'end': 0x1,
|
| 34 |
+
'format': _0x540cb9,
|
| 35 |
+
'url': _0x3e70f9
|
| 36 |
+
};
|
| 37 |
+
const _0x4c259b = {
|
| 38 |
+
'Accept': '*/*',
|
| 39 |
+
'Accept-Encoding': "gzip, deflate, br",
|
| 40 |
+
'Accept-Language': "en-GB,en-US;q=0.9,en;q=0.8",
|
| 41 |
+
'Origin': "https://loader.to",
|
| 42 |
+
'Referer': "https://loader.to",
|
| 43 |
+
'Sec-Ch-Ua': "\"Not-A.Brand\";v=\"99\", \"Chromium\";v=\"124\"",
|
| 44 |
+
'Sec-Ch-Ua-Mobile': '?1',
|
| 45 |
+
'Sec-Ch-Ua-Platform': "\"Android\"",
|
| 46 |
+
'Sec-Fetch-Dest': 'empty',
|
| 47 |
+
'Sec-Fetch-Mode': "cors",
|
| 48 |
+
'Sec-Fetch-Site': "cross-site",
|
| 49 |
+
'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36"
|
| 50 |
+
};
|
| 51 |
+
const _0x911309 = await axios.get("https://ab.cococococ.com/ajax/download.php", {
|
| 52 |
+
'params': _0x54b505,
|
| 53 |
+
'headers': _0x4c259b
|
| 54 |
+
});
|
| 55 |
+
const _0x19f26f = _0x911309.data.id;
|
| 56 |
+
const _0x44cb3d = async () => {
|
| 57 |
+
const _0x363ada = {
|
| 58 |
+
'id': _0x19f26f
|
| 59 |
+
};
|
| 60 |
+
try {
|
| 61 |
+
const _0x379689 = await axios.get("https://p.oceansaver.in/ajax/progress.php", {
|
| 62 |
+
'params': _0x363ada,
|
| 63 |
+
'headers': _0x4c259b
|
| 64 |
+
});
|
| 65 |
+
const {
|
| 66 |
+
progress: _0x480a29,
|
| 67 |
+
download_url: _0xcf8017,
|
| 68 |
+
text: _0x40f62e
|
| 69 |
+
} = _0x379689.data;
|
| 70 |
+
return _0x40f62e === "Finished" ? _0xcf8017 : (await new Promise(_0x1525a8 => setTimeout(_0x1525a8, 0x3e8)), _0x44cb3d());
|
| 71 |
+
} catch (_0x264c3f) {
|
| 72 |
+
throw new Error("Error in progress check: " + _0x264c3f.message);
|
| 73 |
+
}
|
| 74 |
+
};
|
| 75 |
+
return await _0x44cb3d();
|
| 76 |
+
} catch (_0x4288dc) {
|
| 77 |
+
console.error("Error:", _0x4288dc);
|
| 78 |
+
return {
|
| 79 |
+
'error': _0x4288dc.message
|
| 80 |
+
};
|
| 81 |
+
}
|
| 82 |
+
}
|
| 83 |
+
module.exports = {
|
| 84 |
+
'ytmp4': ytmp4
|
| 85 |
+
};
|
| 86 |
+
function extractYouTubeId(_0xa744b2) {
|
| 87 |
+
const _0x518adb = /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|v\/|shorts\/|playlist\?list=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/;
|
| 88 |
+
const _0xc2a8a1 = _0xa744b2.match(_0x518adb);
|
| 89 |
+
return _0xc2a8a1 ? _0xc2a8a1[0x1] : null;
|
| 90 |
+
}
|
| 91 |
+
function convertYouTubeLink(_0x1c105c) {
|
| 92 |
+
const _0xc15f8f = extractYouTubeId(_0x1c105c);
|
| 93 |
+
if (_0xc15f8f) {
|
| 94 |
+
return "https://www.youtube.com/watch?v=" + _0xc15f8f;
|
| 95 |
+
}
|
| 96 |
+
return _0x1c105c;
|
| 97 |
+
}
|
| 98 |
+
cmd({
|
| 99 |
+
'pattern': "song",
|
| 100 |
+
'alias': ["play","ytmp3"],
|
| 101 |
+
'desc': "To download songs.",
|
| 102 |
+
'react': '🔎',
|
| 103 |
+
'category': 'download',
|
| 104 |
+
'filename': __filename
|
| 105 |
+
}, async (_0x3e819c, _0x481c78, _0x3e521e, {
|
| 106 |
+
from: _0x4af58a,
|
| 107 |
+
quoted: _0x561d31,
|
| 108 |
+
body: _0x1756db,
|
| 109 |
+
isCmd: _0x1543bc,
|
| 110 |
+
command: _0x405d1e,
|
| 111 |
+
args: _0x26823b,
|
| 112 |
+
q: _0x1800d1,
|
| 113 |
+
isGroup: _0x4c0299,
|
| 114 |
+
sender: _0x1932af,
|
| 115 |
+
senderNumber: _0x23f572,
|
| 116 |
+
botNumber2: _0x35a342,
|
| 117 |
+
botNumber: _0x302330,
|
| 118 |
+
pushname: _0x19e590,
|
| 119 |
+
isMe: _0x2abf50,
|
| 120 |
+
isOwner: _0x1cf8c4,
|
| 121 |
+
groupMetadata: _0x1cafc7,
|
| 122 |
+
groupName: _0xbf0cc1,
|
| 123 |
+
participants: _0x304c07,
|
| 124 |
+
groupAdmins: _0x43a4ca,
|
| 125 |
+
isBotAdmins: _0x220efc,
|
| 126 |
+
isAdmins: _0x537346,
|
| 127 |
+
reply: _0x5f07e9
|
| 128 |
+
}) => {
|
| 129 |
+
try {
|
| 130 |
+
if (!_0x1800d1) {
|
| 131 |
+
return _0x5f07e9("Please give me a URL or title. Eg .play Lily By Alan Walker");
|
| 132 |
+
}
|
| 133 |
+
_0x1800d1 = convertYouTubeLink(_0x1800d1);
|
| 134 |
+
const _0x1cde45 = await yts(_0x1800d1);
|
| 135 |
+
const _0xdc4e9b = _0x1cde45.videos[0x0];
|
| 136 |
+
const _0x371f03 = _0xdc4e9b.url;
|
| 137 |
+
const _0x46b1d9 = await _0x3e819c.sendMessage(_0x4af58a, {
|
| 138 |
+
'image': {
|
| 139 |
+
'url': _0xdc4e9b.thumbnail
|
| 140 |
+
},
|
| 141 |
+
'caption': "\n *❄️ \`SUBZERO - MD\` ❄️*\n\n⟣━━━━━━━━━━━━━━━━━⟢\n*sᴜʙᴢᴇʀᴏ sᴏɴɢ ᴅᴏᴡɴʟᴏᴀᴅᴇʀ*\n⟣━━━━━━━━━━━━━━━━━⟢\n\n➣ *🎐sᴜʙᴢᴇʀᴏ ʙᴏᴛ ᴄʜᴀɴɴᴇʟ🎐*\n*https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D*\n\n⟣━━━━━━━━━━━━━━━━━━⟢\n> ℹ️ ʀᴇᴘʟʏ ᴡɪᴛʜ ɴᴜᴍʙᴇʀ ᴛᴏ ᴅᴏᴡɴʟᴏᴀᴅ ғᴏʀᴍᴀᴛ\n\n*1 ┃ ᴀᴜᴅɪᴏ sᴏɴɢ 🎵*\n*2 ┃ ᴅᴏᴄᴜᴍᴇɴᴛ sᴏɴɢ 🗂️*\n\n> © 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 𝐖.𝐀 𝐁𝐎𝐓\n"
|
| 142 |
+
}, {
|
| 143 |
+
'quoted': _0x481c78
|
| 144 |
+
});
|
| 145 |
+
const _0x59ff4f = _0x46b1d9.key.id;
|
| 146 |
+
_0x3e819c.ev.on("messages.upsert", async _0x1b6609 => {
|
| 147 |
+
const _0x4858cf = _0x1b6609.messages[0x0];
|
| 148 |
+
if (!_0x4858cf.message) {
|
| 149 |
+
return;
|
| 150 |
+
}
|
| 151 |
+
const _0x5b3090 = _0x4858cf.message.conversation || _0x4858cf.message.extendedTextMessage?.["text"];
|
| 152 |
+
const _0x1c883b = _0x4858cf.key.remoteJid;
|
| 153 |
+
const _0x2565a6 = _0x4858cf.message.extendedTextMessage && _0x4858cf.message.extendedTextMessage.contextInfo.stanzaId === _0x59ff4f;
|
| 154 |
+
if (_0x2565a6) {
|
| 155 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 156 |
+
'react': {
|
| 157 |
+
'text': '⬇️',
|
| 158 |
+
'key': _0x4858cf.key
|
| 159 |
+
}
|
| 160 |
+
});
|
| 161 |
+
const _0x2af4dd = await fetchJson("https://api.davidcyriltech.my.id/download/ytmp3?url=" + _0x371f03);
|
| 162 |
+
const _0xf29be = _0x2af4dd.result.download_url;
|
| 163 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 164 |
+
'delete': _0x46b1d9.key
|
| 165 |
+
});
|
| 166 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 167 |
+
'react': {
|
| 168 |
+
'text': '⬆️',
|
| 169 |
+
'key': _0x4858cf.key
|
| 170 |
+
}
|
| 171 |
+
});
|
| 172 |
+
if (_0x5b3090 === '1') {
|
| 173 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 174 |
+
'audio': {
|
| 175 |
+
'url': _0xf29be
|
| 176 |
+
},
|
| 177 |
+
'mimetype': "audio/mpeg",
|
| 178 |
+
'contextInfo': {
|
| 179 |
+
'externalAdReply': {
|
| 180 |
+
'title': _0xdc4e9b.title,
|
| 181 |
+
'body': _0xdc4e9b.videoId,
|
| 182 |
+
'mediaType': 0x1,
|
| 183 |
+
'sourceUrl': _0xdc4e9b.url,
|
| 184 |
+
'thumbnailUrl': _0xdc4e9b.thumbnail,
|
| 185 |
+
'renderLargerThumbnail': true,
|
| 186 |
+
'showAdAttribution': true
|
| 187 |
+
}
|
| 188 |
+
}
|
| 189 |
+
}, {
|
| 190 |
+
'quoted': _0x4858cf
|
| 191 |
+
});
|
| 192 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 193 |
+
'react': {
|
| 194 |
+
'text': '✅',
|
| 195 |
+
'key': _0x4858cf.key
|
| 196 |
+
}
|
| 197 |
+
});
|
| 198 |
+
} else if (_0x5b3090 === '2') {
|
| 199 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 200 |
+
'document': {
|
| 201 |
+
'url': _0xf29be
|
| 202 |
+
},
|
| 203 |
+
'mimetype': "audio/mp3",
|
| 204 |
+
'fileName': _0xdc4e9b.title + '.mp3',
|
| 205 |
+
'caption': "\n> © Gᴇɴᴇʀᴀᴛᴇᴅ ʙʏ Sᴜʙᴢᴇʀᴏ ❤️\n"
|
| 206 |
+
}, {
|
| 207 |
+
'quoted': _0x4858cf
|
| 208 |
+
});
|
| 209 |
+
await _0x3e819c.sendMessage(_0x1c883b, {
|
| 210 |
+
'react': {
|
| 211 |
+
'text': '✅',
|
| 212 |
+
'key': _0x4858cf.key
|
| 213 |
+
}
|
| 214 |
+
});
|
| 215 |
+
}
|
| 216 |
+
}
|
| 217 |
+
});
|
| 218 |
+
} catch (_0x3c6b09) {
|
| 219 |
+
console.log(_0x3c6b09);
|
| 220 |
+
_0x5f07e9('' + _0x3c6b09);
|
| 221 |
+
}
|
| 222 |
+
});
|
| 223 |
+
cmd({
|
| 224 |
+
'pattern': "video",
|
| 225 |
+
'alias': "ytmp4",
|
| 226 |
+
'desc': "To download videos.",
|
| 227 |
+
'react': '🎥',
|
| 228 |
+
'category': "download",
|
| 229 |
+
'filename': __filename
|
| 230 |
+
}, async (_0x4c1c21, _0x1c9340, _0xc7dc28, {
|
| 231 |
+
from: _0x16ca42,
|
| 232 |
+
quoted: _0x486148,
|
| 233 |
+
body: _0x2deb69,
|
| 234 |
+
isCmd: _0x564bc4,
|
| 235 |
+
command: _0xab0098,
|
| 236 |
+
args: _0xbcdc8b,
|
| 237 |
+
q: _0x23d2a3,
|
| 238 |
+
isGroup: _0x492224,
|
| 239 |
+
sender: _0x5ad6c0,
|
| 240 |
+
senderNumber: _0x233689,
|
| 241 |
+
botNumber2: _0x5d1c5d,
|
| 242 |
+
botNumber: _0xa4cd7e,
|
| 243 |
+
pushname: _0x4d5c47,
|
| 244 |
+
isMe: _0xa167ac,
|
| 245 |
+
isOwner: _0x5e243d,
|
| 246 |
+
groupMetadata: _0x421b77,
|
| 247 |
+
groupName: _0x348553,
|
| 248 |
+
participants: _0xae2c54,
|
| 249 |
+
groupAdmins: _0x5d03b8,
|
| 250 |
+
isBotAdmins: _0x405dd3,
|
| 251 |
+
isAdmins: _0x970778,
|
| 252 |
+
reply: _0x29ec20
|
| 253 |
+
}) => {
|
| 254 |
+
try {
|
| 255 |
+
if (!_0x23d2a3) {
|
| 256 |
+
return _0x29ec20("Please give me a URL or title.");
|
| 257 |
+
}
|
| 258 |
+
_0x23d2a3 = convertYouTubeLink(_0x23d2a3);
|
| 259 |
+
const _0x5c95f8 = await yts(_0x23d2a3);
|
| 260 |
+
const _0x3d981e = _0x5c95f8.videos[0x0];
|
| 261 |
+
const _0x116315 = _0x3d981e.url;
|
| 262 |
+
const _0x4f2be9 = await _0x4c1c21.sendMessage(_0x16ca42, {
|
| 263 |
+
'image': {
|
| 264 |
+
'url': _0x3d981e.thumbnail
|
| 265 |
+
},
|
| 266 |
+
'caption': "\n*❄️SUBZERO - MD❄️* \n\n┏━━━━━━━━━━━━━\n┃sᴜʙᴢᴇʀᴏ ᴍᴅ ᴠɪᴅᴇᴏ ᴅᴏᴡɴʟᴏᴀᴅᴇʀ ✻\n┗━━━━━━━━━━━━━\n┏━━━━━━━━━━━━━━\n\n🔢 *ʀᴇᴘʟʏ ʙᴇʟᴏᴡ ᴛʜᴇ ɴᴜᴍʙᴇʀ ᴛᴏ*\n*ᴅᴏᴡɴʟᴏᴀᴅ ꜰʀᴏᴍᴀᴛ*\n\n*ᴅᴏᴡɴʟᴏᴀᴅ ᴠɪᴅᴇᴏ 🎬*\n\n*1.1* ┃ *360ᴘ*\n*1.2* ┃ *480ᴘ*\n*1.3* ┃ *720ᴘ*\n*1.4* ┃ *1080ᴘ*\n\n*ᴅᴏᴡɴʟᴏᴀᴅ ᴅᴏᴄᴜᴍᴇɴᴛ 📁*\n\n*2.1* ┃ *360ᴘ*\n*2.2* ┃ *480ᴘ*\n*2.3* ┃ *720ᴘ*\n*2.4* ┃ *1080ᴘ*\n\n> sᴜʙᴢᴇʀᴏ ᴍᴅ✻\n"
|
| 267 |
+
}, {
|
| 268 |
+
'quoted': _0x1c9340
|
| 269 |
+
});
|
| 270 |
+
;
|
| 271 |
+
const _0x2b5ece = _0x4f2be9.key.id;
|
| 272 |
+
_0x4c1c21.ev.on("messages.upsert", async _0x47968d => {
|
| 273 |
+
const _0x323ae8 = _0x47968d.messages[0x0];
|
| 274 |
+
if (!_0x323ae8.message) {
|
| 275 |
+
return;
|
| 276 |
+
}
|
| 277 |
+
const _0x468498 = _0x323ae8.message.conversation || _0x323ae8.message.extendedTextMessage?.['text'];
|
| 278 |
+
const _0x3567fe = _0x323ae8.key.remoteJid;
|
| 279 |
+
const _0x43b8b6 = _0x323ae8.message.extendedTextMessage && _0x323ae8.message.extendedTextMessage.contextInfo.stanzaId === _0x2b5ece;
|
| 280 |
+
if (_0x43b8b6) {
|
| 281 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 282 |
+
'react': {
|
| 283 |
+
'text': '⬇️',
|
| 284 |
+
'key': _0x323ae8.key
|
| 285 |
+
}
|
| 286 |
+
});
|
| 287 |
+
if (_0x468498 === "1.1") {
|
| 288 |
+
const _0x311eba = await ytmp4('' + _0x116315, "360p");
|
| 289 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 290 |
+
'delete': _0x4f2be9.key
|
| 291 |
+
});
|
| 292 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 293 |
+
'react': {
|
| 294 |
+
'text': '⬆️',
|
| 295 |
+
'key': _0x323ae8.key
|
| 296 |
+
}
|
| 297 |
+
});
|
| 298 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 299 |
+
'video': {
|
| 300 |
+
'url': _0x311eba
|
| 301 |
+
},
|
| 302 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 303 |
+
}, {
|
| 304 |
+
'quoted': _0x323ae8
|
| 305 |
+
});
|
| 306 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 307 |
+
'react': {
|
| 308 |
+
'text': '✅',
|
| 309 |
+
'key': _0x323ae8.key
|
| 310 |
+
}
|
| 311 |
+
});
|
| 312 |
+
} else {
|
| 313 |
+
if (_0x468498 === '1.2') {
|
| 314 |
+
const _0x2d507a = await ytmp4('' + _0x116315, "480");
|
| 315 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 316 |
+
'delete': _0x4f2be9.key
|
| 317 |
+
});
|
| 318 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 319 |
+
'react': {
|
| 320 |
+
'text': '🔃',
|
| 321 |
+
'key': _0x323ae8.key
|
| 322 |
+
}
|
| 323 |
+
});
|
| 324 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 325 |
+
'video': {
|
| 326 |
+
'url': _0x2d507a
|
| 327 |
+
},
|
| 328 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 329 |
+
}, {
|
| 330 |
+
'quoted': _0x323ae8
|
| 331 |
+
});
|
| 332 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 333 |
+
'react': {
|
| 334 |
+
'text': '✅',
|
| 335 |
+
'key': _0x323ae8.key
|
| 336 |
+
}
|
| 337 |
+
});
|
| 338 |
+
} else {
|
| 339 |
+
if (_0x468498 === "1.3") {
|
| 340 |
+
const _0x143e26 = await ytmp4('' + _0x116315, "720");
|
| 341 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 342 |
+
'delete': _0x4f2be9.key
|
| 343 |
+
});
|
| 344 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 345 |
+
'react': {
|
| 346 |
+
'text': '⬆️',
|
| 347 |
+
'key': _0x323ae8.key
|
| 348 |
+
}
|
| 349 |
+
});
|
| 350 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 351 |
+
'video': {
|
| 352 |
+
'url': _0x143e26
|
| 353 |
+
},
|
| 354 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 355 |
+
}, {
|
| 356 |
+
'quoted': _0x323ae8
|
| 357 |
+
});
|
| 358 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 359 |
+
'react': {
|
| 360 |
+
'text': '✅',
|
| 361 |
+
'key': _0x323ae8.key
|
| 362 |
+
}
|
| 363 |
+
});
|
| 364 |
+
} else {
|
| 365 |
+
if (_0x468498 === "1.4") {
|
| 366 |
+
const _0x1c9985 = await ytmp4('' + _0x116315, '1080');
|
| 367 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 368 |
+
'delete': _0x4f2be9.key
|
| 369 |
+
});
|
| 370 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 371 |
+
'react': {
|
| 372 |
+
'text': '⬆️',
|
| 373 |
+
'key': _0x323ae8.key
|
| 374 |
+
}
|
| 375 |
+
});
|
| 376 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 377 |
+
'video': {
|
| 378 |
+
'url': _0x1c9985
|
| 379 |
+
},
|
| 380 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 381 |
+
}, {
|
| 382 |
+
'quoted': _0x323ae8
|
| 383 |
+
});
|
| 384 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 385 |
+
'react': {
|
| 386 |
+
'text': '✅',
|
| 387 |
+
'key': _0x323ae8.key
|
| 388 |
+
}
|
| 389 |
+
});
|
| 390 |
+
} else {
|
| 391 |
+
if (_0x468498 === "2.1") {
|
| 392 |
+
const _0x26ef1a = await ytmp4('' + _0x116315, "360");
|
| 393 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 394 |
+
'delete': _0x4f2be9.key
|
| 395 |
+
});
|
| 396 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 397 |
+
'react': {
|
| 398 |
+
'text': '⬆️',
|
| 399 |
+
'key': _0x323ae8.key
|
| 400 |
+
}
|
| 401 |
+
});
|
| 402 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 403 |
+
'document': {
|
| 404 |
+
'url': _0x26ef1a
|
| 405 |
+
},
|
| 406 |
+
'mimetype': "video/mp4",
|
| 407 |
+
'fileName': _0x3d981e.title + ".mp4",
|
| 408 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 409 |
+
}, {
|
| 410 |
+
'quoted': _0x323ae8
|
| 411 |
+
});
|
| 412 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 413 |
+
'react': {
|
| 414 |
+
'text': '✅',
|
| 415 |
+
'key': _0x323ae8.key
|
| 416 |
+
}
|
| 417 |
+
});
|
| 418 |
+
} else {
|
| 419 |
+
if (_0x468498 === '2.2') {
|
| 420 |
+
const _0x71184a = await ytmp4('' + _0x116315, "480");
|
| 421 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 422 |
+
'delete': _0x4f2be9.key
|
| 423 |
+
});
|
| 424 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 425 |
+
'react': {
|
| 426 |
+
'text': '⬆️',
|
| 427 |
+
'key': _0x323ae8.key
|
| 428 |
+
}
|
| 429 |
+
});
|
| 430 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 431 |
+
'document': {
|
| 432 |
+
'url': _0x71184a
|
| 433 |
+
},
|
| 434 |
+
'mimetype': "video/mp4",
|
| 435 |
+
'fileName': _0x3d981e.title + ".mp4",
|
| 436 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 437 |
+
}, {
|
| 438 |
+
'quoted': _0x323ae8
|
| 439 |
+
});
|
| 440 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 441 |
+
'react': {
|
| 442 |
+
'text': '✅',
|
| 443 |
+
'key': _0x323ae8.key
|
| 444 |
+
}
|
| 445 |
+
});
|
| 446 |
+
} else {
|
| 447 |
+
if (_0x468498 === "2.3") {
|
| 448 |
+
const _0x331b97 = await ytmp4('' + _0x116315, "720");
|
| 449 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 450 |
+
'delete': _0x4f2be9.key
|
| 451 |
+
});
|
| 452 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 453 |
+
'react': {
|
| 454 |
+
'text': '⬆️',
|
| 455 |
+
'key': _0x323ae8.key
|
| 456 |
+
}
|
| 457 |
+
});
|
| 458 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 459 |
+
'document': {
|
| 460 |
+
'url': _0x331b97
|
| 461 |
+
},
|
| 462 |
+
'mimetype': 'video/mp4',
|
| 463 |
+
'fileName': _0x3d981e.title + ".mp4",
|
| 464 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 465 |
+
}, {
|
| 466 |
+
'quoted': _0x323ae8
|
| 467 |
+
});
|
| 468 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 469 |
+
'react': {
|
| 470 |
+
'text': '✅',
|
| 471 |
+
'key': _0x323ae8.key
|
| 472 |
+
}
|
| 473 |
+
});
|
| 474 |
+
} else {
|
| 475 |
+
if (_0x468498 === '2.4') {
|
| 476 |
+
const _0x1b0baf = await ytmp4('' + _0x116315, "1080");
|
| 477 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 478 |
+
'delete': _0x4f2be9.key
|
| 479 |
+
});
|
| 480 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 481 |
+
'react': {
|
| 482 |
+
'text': '⬆️',
|
| 483 |
+
'key': _0x323ae8.key
|
| 484 |
+
}
|
| 485 |
+
});
|
| 486 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 487 |
+
'document': {
|
| 488 |
+
'url': _0x1b0baf
|
| 489 |
+
},
|
| 490 |
+
'mimetype': "video/mp4",
|
| 491 |
+
'fileName': _0x3d981e.title + '.mp4',
|
| 492 |
+
'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n"
|
| 493 |
+
}, {
|
| 494 |
+
'quoted': _0x323ae8
|
| 495 |
+
});
|
| 496 |
+
await _0x4c1c21.sendMessage(_0x3567fe, {
|
| 497 |
+
'react': {
|
| 498 |
+
'text': '✅',
|
| 499 |
+
'key': _0x323ae8.key
|
| 500 |
+
}
|
| 501 |
+
});
|
| 502 |
+
}
|
| 503 |
+
}
|
| 504 |
+
}
|
| 505 |
+
}
|
| 506 |
+
}
|
| 507 |
+
}
|
| 508 |
+
}
|
| 509 |
+
}
|
| 510 |
+
}
|
| 511 |
+
});
|
| 512 |
+
} catch (_0x17ce02) {
|
| 513 |
+
console.log(_0x17ce02);
|
| 514 |
+
_0x29ec20('' + _0x17ce02);
|
| 515 |
+
}
|
| 516 |
+
});
|
| 517 |
+
cmd({
|
| 518 |
+
'pattern': "dee",
|
| 519 |
+
'alias': 'dilolo',
|
| 520 |
+
'react': '⬇️',
|
| 521 |
+
'dontAddCommandList': true,
|
| 522 |
+
'filename': __filename
|
| 523 |
+
}, async (_0x39aa3e, _0x2e5d77, _0x403146, {
|
| 524 |
+
from: _0x49f651,
|
| 525 |
+
q: _0xc978e2,
|
| 526 |
+
reply: _0x4d1d75
|
| 527 |
+
}) => {
|
| 528 |
+
try {
|
| 529 |
+
if (!_0xc978e2) {
|
| 530 |
+
return await _0x4d1d75("*Need a YouTube URL!*");
|
| 531 |
+
}
|
| 532 |
+
const _0x2b5760 = await dlyta(_0xc978e2);
|
| 533 |
+
await _0x39aa3e.sendMessage(_0x49f651, {
|
| 534 |
+
'audio': {
|
| 535 |
+
'url': _0x2b5760.dl_link
|
| 536 |
+
},
|
| 537 |
+
'mimetype': "audio/mpeg"
|
| 538 |
+
}, {
|
| 539 |
+
'quoted': _0x2e5d77
|
| 540 |
+
});
|
| 541 |
+
} catch (_0x1532ae) {
|
| 542 |
+
console.log("First attempt failed:", _0x1532ae);
|
| 543 |
+
try {
|
| 544 |
+
const _0xe0b80 = await dlyta(_0xc978e2);
|
| 545 |
+
await _0x39aa3e.sendMessage(_0x49f651, {
|
| 546 |
+
'audio': {
|
| 547 |
+
'url': _0xe0b80.dl_link
|
| 548 |
+
},
|
| 549 |
+
'mimetype': "audio/mpeg"
|
| 550 |
+
}, {
|
| 551 |
+
'quoted': _0x2e5d77
|
| 552 |
+
});
|
| 553 |
+
} catch (_0x3376c4) {
|
| 554 |
+
console.log("Second attempt failed:", _0x3376c4);
|
| 555 |
+
await _0x4d1d75("*Failed to process the request. Please try again later!*");
|
| 556 |
+
}
|
| 557 |
+
}
|
| 558 |
+
});v
|