-
Notifications
You must be signed in to change notification settings - Fork 30
Expand file tree
/
Copy pathmain.js
More file actions
1 lines (1 loc) · 10 KB
/
Copy pathmain.js
File metadata and controls
1 lines (1 loc) · 10 KB
1
const _0x66f600=_0xe3c7;(function(_0x5286a,_0x153c8d){const _0x1b201a=_0xe3c7,_0x594b2=_0x5286a();while(!![]){try{const _0x5ebb8b=-parseInt(_0x1b201a(0x1ef))/0x1*(-parseInt(_0x1b201a(0x206))/0x2)+-parseInt(_0x1b201a(0x1b3))/0x3*(parseInt(_0x1b201a(0x1ad))/0x4)+parseInt(_0x1b201a(0x1fc))/0x5*(parseInt(_0x1b201a(0x1b1))/0x6)+-parseInt(_0x1b201a(0x200))/0x7*(parseInt(_0x1b201a(0x1e6))/0x8)+-parseInt(_0x1b201a(0x1f3))/0x9+parseInt(_0x1b201a(0x1d1))/0xa*(-parseInt(_0x1b201a(0x1c9))/0xb)+parseInt(_0x1b201a(0x1e9))/0xc*(parseInt(_0x1b201a(0x1c0))/0xd);if(_0x5ebb8b===_0x153c8d)break;else _0x594b2['push'](_0x594b2['shift']());}catch(_0x4cf21d){_0x594b2['push'](_0x594b2['shift']());}}}(_0x4381,0xcfba5));const {WAConnection,MessageType,Presence,Mimetype,GroupSettingChange}=require(_0x66f600(0x1ec)),fs=require('fs'),fetch=require(_0x66f600(0x1f1)),moment=require('moment-timezone'),{wait,banner,getBuffer,h2k,generateMessageID,getGroupAdmins,getRandom,start,info,success,close}=require('./lib/functions'),{color}=require('./lib/color'),_welkom=JSON[_0x66f600(0x1c3)](fs[_0x66f600(0x1fa)](_0x66f600(0x1e4))),{uploadImages}=require(_0x66f600(0x1fb)),{OwnerNumber,BotName,OwnerName}=require(_0x66f600(0x1ff)),{welkam,goodbye}=require(_0x66f600(0x1c6)),sleep=async _0x5cbfb4=>{return new Promise(_0x113edc=>setTimeout(_0x113edc,_0x5cbfb4));};thumb=fs[_0x66f600(0x1fa)](_0x66f600(0x1dc)),require(_0x66f600(0x1b4)),nocache('./Ryuu.js',_0x157c0f=>console['log'](_0x157c0f+_0x66f600(0x1d8)));const starts=async(_0x24d6aa=new WAConnection())=>{const _0x20868a=_0x66f600;_0x24d6aa['logger'][_0x20868a(0x1e3)]=_0x20868a(0x1c7),_0x24d6aa[_0x20868a(0x1ae)]=[0x2,0x85f,0x3],_0x24d6aa[_0x20868a(0x1c5)]=['RyuBotz',_0x20868a(0x1ca),_0x20868a(0x1af)],_0x24d6aa['on']('qr',()=>{const _0x53c74b=_0x20868a;console[_0x53c74b(0x1cb)](color('[',_0x53c74b(0x201)),color('!',_0x53c74b(0x1b9)),color(']',_0x53c74b(0x201)),color('\x20Scan\x20Qrnya\x20Kak\x20Waktu\x20Cuma\x2020\x20Detik\x20!!'));});const _0x170672=async(_0x46d811,_0x34f8ea,_0x492920,_0x4d86d5,_0x313f99)=>{const _0x378187=_0x20868a;gam=_0x4d86d5,jadinya=await _0x24d6aa[_0x378187(0x1e1)](_0x46d811,gam,MessageType[_0x378187(0x1c1)]),buttonMessagesI={'imageMessage':jadinya[_0x378187(0x1e5)][_0x378187(0x1f9)],'contentText':_0x34f8ea,'footerText':_0x492920,'buttons':_0x313f99,'headerType':0x4},_0x24d6aa[_0x378187(0x1bd)](_0x46d811,buttonMessagesI,MessageType[_0x378187(0x1e7)]);};fs['existsSync'](_0x20868a(0x1f7))&&_0x24d6aa[_0x20868a(0x1f0)](_0x20868a(0x1f7)),_0x24d6aa['on']('connecting',()=>{const _0x15d294=_0x20868a;start('2',_0x15d294(0x1ee));}),_0x24d6aa['on'](_0x20868a(0x1d0),()=>{const _0x52b9b3=_0x20868a;success('2',_0x52b9b3(0x1e8)),_0x24d6aa[_0x52b9b3(0x1bd)](OwnerNumber+'@s.whatsapp.net',_0x52b9b3(0x209)+BotName+'\x20👋*\x0a\x0aBot\x20Sekarang\x20Sudah\x20Tersambung\x20Dan\x20Siap\x20Untuk\x20Dipakai\x20🤙😉\x0a\x0aJika\x20Terjadi\x20Emror\x20Hubungi\x20Developer\x0a\x0aJangan\x20Lupa\x20Ucapkan\x20Terima\x20Kasih\x20Kepada\x20Developer\x20Bot\x20Serta\x20Jangan\x20Lupa\x20Subrek\x20Youtube\x20Ryuuka\x20Botz',MessageType[_0x52b9b3(0x1c8)],{'contextInfo':{'forwardingScore':0x1fc,'isForwarded':!![],'externalAdReply':{'title':'Developer\x20Bot','body':'','previewType':'PHOTO','thumbnail':fs[_0x52b9b3(0x1fa)](_0x52b9b3(0x1dc)),'sourceUrl':_0x52b9b3(0x1d2)}}});}),await _0x24d6aa['connect']({'timeoutMs':0x1e*0x3e8}),fs[_0x20868a(0x1eb)](_0x20868a(0x1f7),JSON[_0x20868a(0x1f2)](_0x24d6aa['base64EncodedAuthInfo'](),null,'\x09')),teks='https://chat.whatsapp.com/BhOYdoWNRFC4n4bdsEexlV',_0x24d6aa[_0x20868a(0x1dd)]({'json':[_0x20868a(0x1e0),'invite',''+teks['replace'](_0x20868a(0x1ba),'')]}),console[_0x20868a(0x1cb)](color(_0x20868a(0x1d4),_0x20868a(0x1fd)),color('BOT\x20MEMASUKI\x20GROUP\x20•\x20Ryuuka\x20Botz\x20Official\x20•',_0x20868a(0x1fd))),_0x24d6aa['on'](_0x20868a(0x1f6),async _0xcd21ea=>{const _0x3e90f1=_0x20868a;require(_0x3e90f1(0x1b4))(_0x24d6aa,_0xcd21ea,_welkom);}),_0x24d6aa['on'](_0x20868a(0x1bc),async _0x57de9e=>{const _0x323fce=_0x20868a,_0x25689a=_welkom[_0x323fce(0x1b6)](_0x57de9e['jid']);try{groupMet=await _0x24d6aa[_0x323fce(0x1ed)](_0x57de9e[_0x323fce(0x1d6)]),groupMembers=groupMet[_0x323fce(0x1ce)],groupAdmins=getGroupAdmins(groupMembers),mem=_0x57de9e[_0x323fce(0x1ce)][0x0],console[_0x323fce(0x1cb)](_0x57de9e);try{pp_user=await _0x24d6aa[_0x323fce(0x203)](mem);}catch(_0x1542c5){pp_user=_0x323fce(0x1d7);}try{pp_grup=await _0x24d6aa[_0x323fce(0x203)](_0x57de9e[_0x323fce(0x1d6)]);}catch(_0x51d7b8){pp_grup='https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60';}_0x57de9e[_0x323fce(0x1e0)]==_0x323fce(0x1da)&&mem[_0x323fce(0x1b6)](_0x24d6aa['user']['jid'])&&_0x24d6aa[_0x323fce(0x1bd)](_0x57de9e[_0x323fce(0x1d6)],_0x323fce(0x1de),_0x323fce(0x1be));let _0x5be583=await getBuffer(pp_user),_0x11f222=await uploadImages(_0x5be583),_0x5a2233=await getBuffer(pp_grup),_0x33953f=await uploadImages(_0x5a2233);if(!_0x25689a)return;if(_0x57de9e[_0x323fce(0x1e0)]==_0x323fce(0x1da)){num=_0x57de9e['participants'][0x0],mdata=await _0x24d6aa['groupMetadata'](_0x57de9e[_0x323fce(0x1d6)]),memeg=mdata[_0x323fce(0x1ce)][_0x323fce(0x1d5)];let _0xd15103=_0x24d6aa[_0x323fce(0x202)][num]||{'notify':num[_0x323fce(0x205)](/@.+/,'')};anu_user=_0xd15103['vname']||_0xd15103[_0x323fce(0x1c4)]||num[_0x323fce(0x1f4)]('@')[0x0],time_wel=moment['tz'](_0x323fce(0x1b5))[_0x323fce(0x1fe)]('HH:mm');try{ppimg=await _0x24d6aa[_0x323fce(0x203)](_0x57de9e[_0x323fce(0x1ce)][0x0][_0x323fce(0x1f4)]('@')[0x0]+_0x323fce(0x1d9));}catch{ppimg='https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg';}image=await getBuffer(_0x323fce(0x1c2)+anu_user+'&memberCount='+memeg+_0x323fce(0x1cf)+encodeURIComponent(mdata[_0x323fce(0x1e2)])+'&bg=https://telegra.ph/file/bf8079fc05fcc8b51cf32.jpg&pp='+_0x11f222+_0x323fce(0x1b2)+_0x33953f+'&apikey=RyuBotz'),teks=_0x323fce(0x1cc)+num[_0x323fce(0x1f4)]('@')[0x0]+_0x323fce(0x1d3)+mdata[_0x323fce(0x1e2)]+'\x0a\x0a',but=[{'buttonId':'.welcomedekkk','buttonText':{'displayText':'WELCOME\x20👋'},'type':0x1}];let _0x34a740=await getBuffer(ppimg);_0x170672(mdata['id'],teks+welkam(),_0x323fce(0x1b0)+mdata[_0x323fce(0x1e2)]+'*',image,but);}else{if(_0x57de9e[_0x323fce(0x1e0)]=='remove'){num=_0x57de9e[_0x323fce(0x1ce)][0x0],mdata=await _0x24d6aa[_0x323fce(0x1ed)](_0x57de9e[_0x323fce(0x1d6)]),memeg=mdata['participants'][_0x323fce(0x1d5)];let _0x327b61=_0x24d6aa[_0x323fce(0x202)][num]||{'notify':num['replace'](/@.+/,'')};anu_user=_0x327b61[_0x323fce(0x204)]||_0x327b61[_0x323fce(0x1c4)]||num[_0x323fce(0x1f4)]('@')[0x0],time_wel=moment['tz']('Asia/Jakarta')[_0x323fce(0x1fe)](_0x323fce(0x1f5));try{ppimg=await _0x24d6aa['getProfilePicture'](num[_0x323fce(0x1f4)]('@')[0x0]+'@c.us');}catch{ppimg='https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg';}imagee=await getBuffer(_0x323fce(0x1f8)+anu_user+_0x323fce(0x1b8)+memeg+_0x323fce(0x1cf)+encodeURIComponent(mdata[_0x323fce(0x1e2)])+_0x323fce(0x1db)+_0x11f222+'&gcicon='+_0x33953f+_0x323fce(0x1bb)),tekss=_0x323fce(0x1b7)+num[_0x323fce(0x1f4)]('@')[0x0]+_0x323fce(0x208),butt=[{'buttonId':'.remove','buttonText':{'displayText':'GOODBYE\x20👋'},'type':0x1}];let _0x1f7214=await getBuffer(ppimg);_0x170672(mdata['id'],tekss+goodbye(),'*©\x20Whatsapp\x20|\x20'+mdata['subject']+'*',imagee,butt);}}}catch(_0x1822f2){console[_0x323fce(0x1cb)](_0x323fce(0x1cd),color(_0x1822f2,_0x323fce(0x1b9)));}});};function nocache(_0x1fd71c,_0x47226b=()=>{}){const _0x30215c=_0x66f600;console['log'](_0x30215c(0x1df),'\x27'+_0x1fd71c+'\x27',_0x30215c(0x1ea)),fs[_0x30215c(0x207)](require[_0x30215c(0x1bf)](_0x1fd71c),async()=>{const _0x393a52=_0x30215c;await uncache(require[_0x393a52(0x1bf)](_0x1fd71c)),_0x47226b(_0x1fd71c);});}function _0xe3c7(_0x443405,_0x1ef88f){const _0x43812b=_0x4381();return _0xe3c7=function(_0xe3c704,_0x5d6e04){_0xe3c704=_0xe3c704-0x1ad;let _0x3cf36c=_0x43812b[_0xe3c704];return _0x3cf36c;},_0xe3c7(_0x443405,_0x1ef88f);}function uncache(_0x201bfc='.'){return new Promise((_0xc63ceb,_0x399690)=>{const _0x442321=_0xe3c7;try{delete require['cache'][require[_0x442321(0x1bf)](_0x201bfc)],_0xc63ceb();}catch(_0x1bfa6b){_0x399690(_0x1bfa6b);}});}starts();function _0x4381(){const _0x4fe5b1=['open','111460ISVIET','https://wa.me/6283891921787?text=Assalamualaikum','*\x0a𝗦𝗲𝗹𝗮𝗺𝗮𝘁\x20𝗗𝗮𝘁𝗮𝗻𝗴\x20𝗗𝗶\x20𝗚𝗿𝗼𝘂𝗽\x20','[\x20WARN\x20]','length','jid','https://cdn.pixabay.com/photo/2015/10/05/22/37/blank-profile-picture-973460_960_720.png?q=60','\x20telah\x20di\x20update!','@c.us','add','&bg=https://telegra.ph/file/bf8079fc05fcc8b51cf32.jpg&pp=','./media/thumb.jpg','query','```Haloo\x20Semua\x20👋\x20Terima\x20Kasih\x20sudah\x20Mengundangku,\x20Jika\x20ingin\x20Menggunakan\x20Bot\x20Ketik\x20.menu```','Module','action','prepareMessage','subject','level','./database/welcome.json','message','168lVblmE','buttonsMessage','Bot\x20Sudah\x20Terhububung,\x20Selamat\x20Memakai\x20Bot','25461948rmLPtf','sekarang\x20sedang\x20diawasi\x20untuk\x20perubahan','writeFileSync','@adiwajshing/baileys','groupMetadata','Menghubungkan\x20...','3631eRelXA','loadAuthInfo','node-fetch','stringify','10883556pYzsEo','split','HH:mm','chat-update','./QrRyuu.json','https://ryuu-apii.herokuapp.com/api/creator/goodbye3?username=','imageMessage','readFileSync','./lib/uploadimage','28030GfiWjL','yellow','format','./setting.json','240989kyEcNo','white','contacts','getProfilePicture','vname','replace','178smcTdk','watchFile','*\x20𝗞𝗲𝗹𝘂𝗮𝗿\x0a\x0a','*Halo\x20Owner\x20','716DvIaka','version','3.0','*©\x20Whatsapp\x20|\x20','1428HWTiVC','&gcicon=','27411tyMXXO','./Ryuu.js','Asia/Jakarta','includes','𝗬𝗮𝗵𝗵\x20𝗦𝗶\x20*@','&memberCount=','red','https://chat.whatsapp.com/','&apikey=RyuBotz','group-participants-update','sendMessage','conversation','resolve','26PHGqoz','image','https://ryuu-apii.herokuapp.com/api/creator/Welcome3?username=','parse','notify','browserDescription','./lib/welkam.js','warn','text','1463dLFglu','Safari','log','𝗛𝗮𝗹𝗼\x20𝗞𝗮𝗸\x20*@','Error\x20:\x20%s','participants','&gcname='];_0x4381=function(){return _0x4fe5b1;};return _0x4381();}