forked from Mujipro78/BodyBOT-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.js
More file actions
1 lines (1 loc) · 11.1 KB
/
index.js
File metadata and controls
1 lines (1 loc) · 11.1 KB
1
function _0x33a9(){const _0x357a60=['groupMetadata','@c.us','Byee','./body.js','white','participants','464230fyVjVn','477SWKiBB','cache','|TRM|','Halo\x20@','base64EncodedAuthInfo','B\x20O\x20D\x20Y\x20','DEMOTE\x20DETECTED\x0a@','image','log','0@s.whatsapp.net','Connecting...','1822774kUylYt','logger','buttonsMessage','\x20is\x20now\x20updated!','existsSync','autoReconnect','162KWCzjo','\x20Jadi\x20admin','format','ws-close','Demote\x20Message','\x20add','warn','6288213840883-1616169743@g.us','94.0.992.47','\x0aYT:\x20https://youtube.com/channel/UCSpYxXxRuGOfezlWd1S7Amw\x0a\x0aGithub:\x20Ga\x20Ada\x0a\x0aIG:\x20Ga\x20Ada','group-participants-update','imageMessage','level','\x0aSelamat\x20datang\x20di\x20group\x20*','close','connecting','open','./lib/offline','\x20Leave','resolve','cyan','onConnectionLost','\x20Di\x20un\x20admin','Bukan\x20untuk\x20dijual\x20kntl','action','Connected','./lib/functions','146185bIpHeg','714308zwNWAh','add','moment-timezone','https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg','sendMessage','promote','4860918bXsXCe','SC\x20BY\x20RANZ','3206696HIpHyL','@adiwajshing/baileys','jid','getProfilePicture','?????','red','prepareMessage','message','split','28fazRVt','HH:mm:ss','3306716mDxahC','browserDescription','subject','chat-update','EDGE','uptime','stringify','./session.json','Sayonara\x20@','????'];_0x33a9=function(){return _0x357a60;};return _0x33a9();}const _0x1b384a=_0x566b;(function(_0x264083,_0x1d91ce){const _0x3ff9e6=_0x566b,_0x2c77ea=_0x264083();while(!![]){try{const _0xe69546=-parseInt(_0x3ff9e6(0x202))/0x1+parseInt(_0x3ff9e6(0x1d3))/0x2+parseInt(_0x3ff9e6(0x1d9))/0x3+parseInt(_0x3ff9e6(0x1e6))/0x4+parseInt(_0x3ff9e6(0x1d2))/0x5*(parseInt(_0x3ff9e6(0x208))/0x6)+-parseInt(_0x3ff9e6(0x1e4))/0x7*(-parseInt(_0x3ff9e6(0x1db))/0x8)+-parseInt(_0x3ff9e6(0x1f7))/0x9*(parseInt(_0x3ff9e6(0x1f6))/0xa);if(_0xe69546===_0x1d91ce)break;else _0x2c77ea['push'](_0x2c77ea['shift']());}catch(_0x478f8f){_0x2c77ea['push'](_0x2c77ea['shift']());}}}(_0x33a9,0xdf11d));function _0x566b(_0x2776e4,_0x2f89f3){const _0x33a90e=_0x33a9();return _0x566b=function(_0x566bf5,_0x2972d8){_0x566bf5=_0x566bf5-0x1cf;let _0x45d3c7=_0x33a90e[_0x566bf5];return _0x45d3c7;},_0x566b(_0x2776e4,_0x2f89f3);}const {WAConnection,MessageType,Presence,ReconnectMode,Mimetype,GroupSettingChange}=require(_0x1b384a(0x1dc)),fs=require('fs'),moment=require(_0x1b384a(0x1d5)),time=moment()['tz']('Asia/Jakarta')[_0x1b384a(0x20a)](_0x1b384a(0x1e5)),{getBuffer,banner,start,success}=require(_0x1b384a(0x1d1)),{sleep}=require(_0x1b384a(0x219)),{color}=require('./lib/color'),{fetchJson,getBase64,kyun,createExif}=require('./lib/fetcher'),creator='6285339388512';run=process[_0x1b384a(0x1eb)](),runtimee=''+kyun(run),prefix=_0x1b384a(0x1df),banChats=![],memek=_0x1b384a(0x211),require(_0x1b384a(0x1f3)),nocache(_0x1b384a(0x1f3),_0x568dc6=>console[_0x1b384a(0x1ff)](_0x568dc6+_0x1b384a(0x205))),require('./index.js'),nocache('./index.js',_0x10f13f=>console['log'](_0x10f13f+_0x1b384a(0x205))),console[_0x1b384a(0x1ff)](color(_0x1b384a(0x1da))),sleep(0xfa0),console[_0x1b384a(0x1ff)](color(_0x1b384a(0x21f)));const starts=async(_0x3273d5=new WAConnection())=>{const _0x4c8aed=_0x1b384a;_0x3273d5[_0x4c8aed(0x207)]=ReconnectMode[_0x4c8aed(0x21d)],_0x3273d5[_0x4c8aed(0x203)][_0x4c8aed(0x214)]=_0x4c8aed(0x20e),_0x3273d5['version']=[0x2,0x85f,0x3],_0x3273d5[_0x4c8aed(0x1e7)]=[_0x4c8aed(0x1fc),_0x4c8aed(0x1ea),_0x4c8aed(0x210)],_0x3273d5['on']('qr',()=>{const _0xd70b44=_0x4c8aed;console['log'](color('[',_0xd70b44(0x1f4)),color('??',_0xd70b44(0x1e0)),color(']',_0xd70b44(0x1f4)),color('\x20Scan\x20whatsapp'));}),fs[_0x4c8aed(0x206)](_0x4c8aed(0x1ed))&&_0x3273d5['loadAuthInfo'](_0x4c8aed(0x1ed)),_0x3273d5['on'](_0x4c8aed(0x217),()=>{const _0x3ffae2=_0x4c8aed;start('2',_0x3ffae2(0x201));}),_0x3273d5['on'](_0x4c8aed(0x218),()=>{const _0x2d43fe=_0x4c8aed;success('2',_0x2d43fe(0x1d0));}),_0x3273d5['on'](_0x4c8aed(0x20b),()=>{const _0x2b3456=_0x4c8aed;console['log'](color(_0x2b3456(0x1f9)),color('Connection\x20lost,\x20trying\x20to\x20reconnect.',_0x2b3456(0x21c)));}),_0x3273d5['on'](_0x4c8aed(0x216),async()=>{const _0x2eacf1=_0x4c8aed;console[_0x2eacf1(0x1ff)](color(_0x2eacf1(0x1f9)),color('Disconnected.',_0x2eacf1(0x21c)));}),await _0x3273d5['connect']({'timeoutMs':0x1e*0x3e8}),fs['writeFileSync'](_0x4c8aed(0x1ed),JSON[_0x4c8aed(0x1ec)](_0x3273d5[_0x4c8aed(0x1fb)](),null,'\x09')),_0x3273d5['on'](_0x4c8aed(0x212),async _0x48e07d=>{const _0x2c2667=_0x4c8aed;try{const _0x112496=await _0x3273d5[_0x2c2667(0x1f0)](_0x48e07d[_0x2c2667(0x1dd)]);console['log'](_0x48e07d);if(_0x48e07d[_0x2c2667(0x1cf)]==_0x2c2667(0x1d4)){try{ppimg=await _0x3273d5[_0x2c2667(0x1de)](_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x1f1));}catch{ppimg='https://i0.wp.com/www.gambarunik.id/wp-content/uploads/2019/06/Top-Gambar-Foto-Profil-Kosong-Lucu-Tergokil-.jpg';}let _0x38f7a4=await getBuffer(ppimg);const _0x3a4df1={'key':{'fromMe':![],'participant':_0x2c2667(0x200),'remoteJid':_0x2c2667(0x200)},'message':{'groupInviteMessage':{'groupJid':_0x2c2667(0x20f),'inviteCode':_0x48e07d['participants'][0x0][_0x2c2667(0x1e3)]('@')[0x0]+'\x20add','groupName':_0x48e07d['participants'][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x20d),'caption':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x20d),'jpegThumbnail':_0x38f7a4}}},_0xd17532=async(_0x2d65ec,_0x43301f,_0x79875b,_0x539b3f,_0x262b68=[],_0x32b6b8={})=>{const _0xabd83f=_0x2c2667;kma=_0x539b3f,mhan=await _0x3273d5[_0xabd83f(0x1e1)](_0x2d65ec,kma,MessageType[_0xabd83f(0x1fe)]);const _0x16c3e2={'imageMessage':mhan[_0xabd83f(0x1e2)][_0xabd83f(0x213)],'contentText':_0x43301f,'footerText':_0x79875b,'buttons':_0x262b68,'headerType':0x4};_0x3273d5['sendMessage'](_0x2d65ec,_0x16c3e2,MessageType['buttonsMessage'],_0x32b6b8);};num=_0x48e07d[_0x2c2667(0x1f5)][0x0],teks=_0x2c2667(0x1fa)+num[_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x215)+_0x112496[_0x2c2667(0x1e8)]+'*',_0xd17532(_0x112496['id'],teks,'Welcome\x20Message',_0x38f7a4,[{'buttonId':'\x20','buttonText':{'displayText':'Oke'},'type':0x1}],{'quoted':_0x3a4df1,'contextInfo':{'mentionedJid':[num]}});}else{if(_0x48e07d[_0x2c2667(0x1cf)]=='remove'){try{ppimg=await _0x3273d5['getProfilePicture'](_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[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';}let _0x1e58c9=await getBuffer(ppimg);const _0x1eb400={'key':{'fromMe':![],'participant':'0@s.whatsapp.net','remoteJid':_0x2c2667(0x200)},'message':{'groupInviteMessage':{'groupJid':'6288213840883-1616169743@g.us','inviteCode':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x21a),'groupName':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x21a),'caption':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x21a),'jpegThumbnail':_0x1e58c9}}},_0x5678ad=async(_0x58696e,_0x557921,_0x9332b3,_0x20d010,_0x2cd052=[],_0x5c9ba0={})=>{const _0x201bee=_0x2c2667;kma=_0x20d010,mhan=await _0x3273d5[_0x201bee(0x1e1)](_0x58696e,kma,MessageType[_0x201bee(0x1fe)]);const _0x4d7ddb={'imageMessage':mhan['message'][_0x201bee(0x213)],'contentText':_0x557921,'footerText':_0x9332b3,'buttons':_0x2cd052,'headerType':0x4};_0x3273d5['sendMessage'](_0x58696e,_0x4d7ddb,MessageType['buttonsMessage'],_0x5c9ba0);};num=_0x48e07d[_0x2c2667(0x1f5)][0x0],teks=_0x2c2667(0x1ee)+num[_0x2c2667(0x1e3)]('@')[0x0],_0x5678ad(_0x112496['id'],teks,'Leave\x20Message',_0x1e58c9,[{'buttonId':'\x20','buttonText':{'displayText':'Byee'},'type':0x1}],{'quoted':_0x1eb400,'contextInfo':{'mentionedJid':[num]}});}else{if(_0x48e07d['action']=='demote'){try{ppimg=await _0x3273d5[_0x2c2667(0x1de)](_0x48e07d[_0x2c2667(0x1f5)][0x0]['split']('@')[0x0]+_0x2c2667(0x1f1));}catch{ppimg=_0x2c2667(0x1d6);}let _0x4f9058=await getBuffer(ppimg);const _0x317100={'key':{'fromMe':![],'participant':'0@s.whatsapp.net','remoteJid':_0x2c2667(0x200)},'message':{'groupInviteMessage':{'groupJid':_0x2c2667(0x20f),'inviteCode':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x21e),'groupName':_0x48e07d['participants'][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x21e),'caption':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x21e),'jpegThumbnail':_0x4f9058}}},_0x1fc2bb=async(_0x4d4d75,_0x598e45,_0xa7d1f,_0x432b91,_0x11ea52=[],_0x53ecd4={})=>{const _0x5a91ee=_0x2c2667;kma=_0x432b91,mhan=await _0x3273d5[_0x5a91ee(0x1e1)](_0x4d4d75,kma,MessageType[_0x5a91ee(0x1fe)]);const _0x12d0bc={'imageMessage':mhan[_0x5a91ee(0x1e2)][_0x5a91ee(0x213)],'contentText':_0x598e45,'footerText':_0xa7d1f,'buttons':_0x11ea52,'headerType':0x4};_0x3273d5['sendMessage'](_0x4d4d75,_0x12d0bc,MessageType[_0x5a91ee(0x204)],_0x53ecd4);};num=_0x48e07d[_0x2c2667(0x1f5)][0x0],teks=_0x2c2667(0x1fd)+num[_0x2c2667(0x1e3)]('@')[0x0]+'??¡®?',_0x1fc2bb(_0x112496['id'],teks,_0x2c2667(0x20c),_0x4f9058,[{'buttonId':'\x20','buttonText':{'displayText':_0x2c2667(0x1f2)},'type':0x1}],{'quoted':_0x317100,'contextInfo':{'mentionedJid':[num]}});}else{if(_0x48e07d['action']==_0x2c2667(0x1d8)){try{ppimg=await _0x3273d5[_0x2c2667(0x1de)](_0x48e07d['participants'][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x1f1));}catch{ppimg=_0x2c2667(0x1d6);}let _0x434a41=await getBuffer(ppimg);const _0x1e37c7={'key':{'fromMe':![],'participant':_0x2c2667(0x200),'remoteJid':_0x2c2667(0x200)},'message':{'groupInviteMessage':{'groupJid':_0x2c2667(0x20f),'inviteCode':_0x48e07d[_0x2c2667(0x1f5)][0x0]['split']('@')[0x0]+_0x2c2667(0x209),'groupName':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x209),'caption':_0x48e07d[_0x2c2667(0x1f5)][0x0][_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x209),'jpegThumbnail':_0x434a41}}},_0x1955fe=async(_0x585362,_0x26c84a,_0x394141,_0x3fb5b0,_0x409a0f=[],_0x4bf85c={})=>{const _0x1cd8b9=_0x2c2667;kma=_0x3fb5b0,mhan=await _0x3273d5[_0x1cd8b9(0x1e1)](_0x585362,kma,MessageType['image']);const _0x19cbb8={'imageMessage':mhan[_0x1cd8b9(0x1e2)][_0x1cd8b9(0x213)],'contentText':_0x26c84a,'footerText':_0x394141,'buttons':_0x409a0f,'headerType':0x4};_0x3273d5[_0x1cd8b9(0x1d7)](_0x585362,_0x19cbb8,MessageType['buttonsMessage'],_0x4bf85c);};num=_0x48e07d[_0x2c2667(0x1f5)][0x0],teks='PROMOTE\x20DETECTED\x0a@'+num[_0x2c2667(0x1e3)]('@')[0x0]+_0x2c2667(0x1ef),_0x1955fe(_0x112496['id'],teks,'Promote\x20Message',_0x434a41,[{'buttonId':'\x20','buttonText':{'displayText':'Selamat'},'type':0x1}],{'quoted':_0x1e37c7,'contextInfo':{'mentionedJid':[num]}});}}}}}catch(_0x301704){console[_0x2c2667(0x1ff)]('Error\x20:\x20%s',color(_0x301704,_0x2c2667(0x1e0)));}}),_0x3273d5['on'](_0x4c8aed(0x1e9),async _0x1f6e87=>{const _0x1354c2=_0x4c8aed;require(_0x1354c2(0x1f3))(_0x3273d5,_0x1f6e87);});};function nocache(_0xa84c59,_0x3ca0ea=()=>{}){const _0x44d74f=_0x1b384a;console[_0x44d74f(0x1ff)]('Module','\x27'+_0xa84c59+'\x27','is\x20now\x20being\x20watched\x20for\x20changes'),fs['watchFile'](require[_0x44d74f(0x21b)](_0xa84c59),async()=>{await uncache(require['resolve'](_0xa84c59)),_0x3ca0ea(_0xa84c59);});}function uncache(_0x221414='.'){return new Promise((_0xb9b0be,_0x92e3ca)=>{const _0x2dad79=_0x566b;try{delete require[_0x2dad79(0x1f8)][require['resolve'](_0x221414)],_0xb9b0be();}catch(_0x51cad3){_0x92e3ca(_0x51cad3);}});}starts();