-
Notifications
You must be signed in to change notification settings - Fork 220
/
jadibots.js
1 lines (1 loc) · 13.2 KB
/
jadibots.js
1
const _0x5a9820=_0x3310;(function(_0x2bb6fd,_0x11b801){const _0x54c121=_0x3310,_0x280441=_0x2bb6fd();while(!![]){try{const _0x721534=-parseInt(_0x54c121(0x245))/0x1*(parseInt(_0x54c121(0x204))/0x2)+-parseInt(_0x54c121(0x21e))/0x3*(parseInt(_0x54c121(0x1f7))/0x4)+-parseInt(_0x54c121(0x1ff))/0x5*(-parseInt(_0x54c121(0x232))/0x6)+-parseInt(_0x54c121(0x248))/0x7*(-parseInt(_0x54c121(0x20b))/0x8)+parseInt(_0x54c121(0x1f3))/0x9+parseInt(_0x54c121(0x1e3))/0xa*(parseInt(_0x54c121(0x24f))/0xb)+parseInt(_0x54c121(0x20e))/0xc;if(_0x721534===_0x11b801)break;else _0x280441['push'](_0x280441['shift']());}catch(_0xe0523){_0x280441['push'](_0x280441['shift']());}}}(_0x4df6,0xe342e));const {modul}=require(_0x5a9820(0x1fd)),{baileys,boom,chalk,fs,figlet,FileType,process,PhoneNumber}=modul,{Boom}=boom,path=require(_0x5a9820(0x220)),{default:makeWaSocket,useMultiFileAuthState,DisconnectReason,fetchLatestBaileysVersion,generateForwardMessageContent,generateWAMessage,prepareWAMessageMedia,generateWAMessageFromContent,generateMessageID,downloadContentFromMessage,makeInMemoryStore,jidDecode,proto}=baileys,{color,bgcolor}=require('./lib/color'),log=pino=require(_0x5a9820(0x252)),qrcode=require('qrcode'),rimraf=require(_0x5a9820(0x23b)),{imageToWebp,videoToWebp,writeExifImg,writeExifVid}=require('./exif'),{smsg,isUrl,generateMessageTag,getBuffer,getSizeMedia,fetchJson,await,sleep,reSize}=require(_0x5a9820(0x22c)),store=makeInMemoryStore({'logger':pino()[_0x5a9820(0x228)]({'level':_0x5a9820(0x22d),'stream':_0x5a9820(0x1eb)})});function _0x4df6(){const _0x112c8b=['decodeJid','push','BEGIN:VCARD\x0a\x0aVERSION:3.0\x0a\x0aN:','6153786QCqyPV','content','Chrome','updateBlockStatus','184bNiyoF','@s.whatsapp.net','writeFileSync','server','connecting','call-creator','./module','97087765432@s.whatsapp.net','7112545MURQpw','connection.update','mtype','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','timedOut','2UbwOIR','subject','remoteJid','groupMetadata','Scan\x20this\x20QR\x20to\x20become\x20a\x20temporary\x20bot\x0a\x0a1.\x20Click\x20the\x20three\x20dots\x20in\x20the\x20upper\x20right\x20corner\x0a2.\x20Tap\x20WhatsApp\x20Web\x0a3.\x20Scan\x20this\x20QR\x0aQR\x20Expired\x20in\x2030\x20seconds\x0aBot\x20will\x20Send\x20again\x20if\x20Qr\x20Expire','0@s.whatsapp.net','ext','11440952XcvMOB','Connection\x20TimedOut,\x20Reconnecting...','downloadMediaMessage','1490232QVdZZz','bind','fromMe','sendNode','from','attrs','block','statusCode','reply','badSession','./nahida','reject','getNumber','Unknown\x20DisconnectReason:\x20','@g.us','concat','112011aVnKxa','conns','path','name','*Queen_Anita-V1\x20Connected*\x0a\x0a\x20_\x20User\x20:\x20@','ephemeralMessage','542875432','Automatic\x20Block\x20System!!!\x0aDon\x27t\x20Call\x20Bot!!!\x0aPlease\x20Contact\x20Owner\x20To\x20Open!!!','Connection\x20Lost\x20from\x20Server,\x20reconnecting...','error','child','sendMessage','contacts.update','close','./myfunc','silent','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','connectionClosed','connectionReplaced','\x0a\x0aitem1.X-ABLabel:Ponsel\x0a\x0aitem2.EMAIL;type=INTERNET:tesheroku123@gmail.com\x0a\x0aitem2.X-ABLabel:Email\x0a\x0aitem3.URL:https://bit.ly/39Ivus6\x0a\x0aitem3.X-ABLabel:YouTube\x0a\x0aitem4.ADR:;;Indonesia;;;;\x0a\x0aitem4.X-ABLabel:Region\x0a\x0aEND:VCARD','6wJytCI','call','log','withoutContact','offer','\x20Kontak','fromBuffer','setStatus','\x0a\x0aFN:','rimraf','CB:call','length','notify','msg','call-id','status@broadcast','endsWith','open','tag','1828423UGEVZX','WhatsApp','type','7QNyTCq','CB:Blocklist','international','getName','time','user','Connecting\x20to\x20jadibot..','99TyRgxT','split','loggedOut','pino','Nahida-MD','output','ptzce\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','toDataURL','mimetype','status','contacts','key','906910OPOQfu','messages.upsert','logout','now','public','Restart\x20Required,\x20Restarting...','sendContact','restartRequired','store','3.0.0','replace','message','downloadAndSaveMediaMessage'];_0x4df6=function(){return _0x112c8b;};return _0x4df6();}if(global[_0x5a9820(0x21f)]instanceof Array)console[_0x5a9820(0x234)]();else global[_0x5a9820(0x21f)]=[];const jadibot=async(_0x35b693,_0x4f6e2a,_0xae597f)=>{const _0x1f533d=_0x5a9820,{sendImage:_0x362072,sendMessage:_0x47e524}=_0x35b693,{reply:_0x4716f3,sender:_0x56016d}=_0x4f6e2a,{state:_0x4b7efd,saveCreds:_0x11a5e6}=await useMultiFileAuthState(path['join'](__dirname,'./session/jadibot/'+_0x56016d),log({'level':_0x1f533d(0x22d)}));try{async function _0x40b484(){const _0x14d912=_0x1f533d;let {version:_0x1073c0,isLatest:_0x5c73be}=await fetchLatestBaileysVersion();const _0xfdb03d=await makeWaSocket({'auth':_0x4b7efd,'browser':[_0x14d912(0x1db),_0x14d912(0x1f5),_0x14d912(0x1ec)],'logger':log({'level':_0x14d912(0x22d)}),'version':_0x1073c0});_0xfdb03d['ws']['on'](_0x14d912(0x249),_0x361b32=>{const _0x35816d=_0x14d912;if(blocked[_0x35816d(0x23d)]>0x2)return;for(let _0x22eb19 of _0x361b32[0x1]['blocklist']){blocked['push'](_0x22eb19[_0x35816d(0x1ed)]('c.us','s.whatsapp.net'));}}),_0xfdb03d['ws']['on'](_0x14d912(0x23c),async _0x115da8=>{const _0x1d39a4=_0x14d912,_0x294de6=_0x115da8[_0x1d39a4(0x1f4)][0x0][_0x1d39a4(0x213)][_0x1d39a4(0x1fc)],_0x32d671=_0x115da8[_0x1d39a4(0x1f4)][0x0][_0x1d39a4(0x213)][_0x1d39a4(0x240)],_0x1b3ebf=_0x115da8[_0x1d39a4(0x213)]['id'],_0x199991=_0x115da8[_0x1d39a4(0x213)]['t'];_0xfdb03d[_0x1d39a4(0x211)]({'tag':_0x1d39a4(0x233),'attrs':{'from':'6289512545999@s.whatsapp.net','id':_0x1b3ebf,'t':_0x199991},'content':[{'tag':_0x1d39a4(0x219),'attrs':{'call-creator':_0x294de6,'call-id':_0x32d671,'count':'0'},'content':null}]});if(_0x115da8['content'][0x0][_0x1d39a4(0x244)]==_0x1d39a4(0x236)){let _0xcaa592=await _0xfdb03d['sendContact'](_0x294de6,_0x1d39a4(0x224));await _0xfdb03d[_0x1d39a4(0x229)](_0x294de6,{'text':_0x1d39a4(0x225)},{'quoted':_0xcaa592}),await sleep(0x1f40),await _0xfdb03d[_0x1d39a4(0x1f6)](_0x294de6,_0x1d39a4(0x214));}}),_0xfdb03d['ev']['on'](_0x14d912(0x1e4),async _0x47179a=>{const _0x299c79=_0x14d912;try{kay=_0x47179a['messages'][0x0];if(!kay[_0x299c79(0x1ee)])return;kay['message']=Object['keys'](kay[_0x299c79(0x1ee)])[0x0]===_0x299c79(0x223)?kay[_0x299c79(0x1ee)][_0x299c79(0x223)][_0x299c79(0x1ee)]:kay['message'];if(kay[_0x299c79(0x1e2)]&&kay[_0x299c79(0x1e2)][_0x299c79(0x206)]===_0x299c79(0x241))return;if(!_0xfdb03d['public']&&!kay[_0x299c79(0x1e2)][_0x299c79(0x210)]&&_0x47179a[_0x299c79(0x247)]===_0x299c79(0x23e))return;if(kay[_0x299c79(0x1e2)]['id']['startsWith']('BAE5')&&kay[_0x299c79(0x1e2)]['id'][_0x299c79(0x23d)]===0x10)return;_0x4f6e2a=smsg(_0xfdb03d,kay,store),require(_0x299c79(0x218))(_0xfdb03d,_0x4f6e2a,_0x47179a,store);}catch(_0x1eec0b){console[_0x299c79(0x234)](_0x1eec0b);}}),_0xfdb03d[_0x14d912(0x1e7)]=!![],store[_0x14d912(0x20f)](_0xfdb03d['ev']),_0xfdb03d['ev']['on']('creds.update',_0x11a5e6),_0xfdb03d['ev']['on'](_0x14d912(0x200),async _0x5d882d=>{const _0x3e312f=_0x14d912,{lastDisconnect:_0x9efd72,connection:_0x2b3edb}=_0x5d882d;if(_0x2b3edb==_0x3e312f(0x1fb))return;if(_0x2b3edb){if(_0x2b3edb!=_0x3e312f(0x1fb))console[_0x3e312f(0x234)](_0x3e312f(0x24e));}console['log'](_0x5d882d);if(_0x5d882d['qr'])await _0x362072(_0xae597f,await qrcode[_0x3e312f(0x1de)](_0x5d882d['qr'],{'scale':0x8}),_0x3e312f(0x208),_0x4f6e2a);console[_0x3e312f(0x234)](_0x2b3edb);_0x2b3edb==_0x3e312f(0x243)&&(_0xfdb03d['id']=_0xfdb03d[_0x3e312f(0x1f0)](_0xfdb03d[_0x3e312f(0x24d)]['id']),_0xfdb03d[_0x3e312f(0x24c)]=Date[_0x3e312f(0x1e6)](),global[_0x3e312f(0x21f)][_0x3e312f(0x1f1)](_0xfdb03d),await _0x4f6e2a[_0x3e312f(0x216)]('*Connected\x20to\x20Whatsapp\x20-\x20Bot*\x0a\x0a*User\x20:*\x0a\x20_*×\x20id\x20:\x20'+_0xfdb03d[_0x3e312f(0x1f0)](_0xfdb03d[_0x3e312f(0x24d)]['id'])+'*_'),user=''+_0xfdb03d[_0x3e312f(0x1f0)](_0xfdb03d[_0x3e312f(0x24d)]['id']),txt=_0x3e312f(0x222)+user[_0x3e312f(0x250)]('@')[0x0]+'_',_0x47e524(_0x3e312f(0x1fe),{'text':txt,'mentions':[user]}));if(_0x2b3edb===_0x3e312f(0x22b)){let _0x597b48=new Boom(_0x9efd72?.[_0x3e312f(0x227)])?.[_0x3e312f(0x1dc)][_0x3e312f(0x215)];if(_0x597b48===DisconnectReason[_0x3e312f(0x217)])console[_0x3e312f(0x234)](_0x3e312f(0x202)),_0xfdb03d[_0x3e312f(0x1e5)]();else{if(_0x597b48===DisconnectReason[_0x3e312f(0x22f)])console[_0x3e312f(0x234)]('Connection\x20closed,\x20reconnecting....'),_0x40b484();else{if(_0x597b48===DisconnectReason['connectionLost'])console[_0x3e312f(0x234)](_0x3e312f(0x226)),_0x40b484();else{if(_0x597b48===DisconnectReason[_0x3e312f(0x230)])console[_0x3e312f(0x234)](_0x3e312f(0x22e)),_0xfdb03d[_0x3e312f(0x1e5)]();else{if(_0x597b48===DisconnectReason[_0x3e312f(0x251)])console[_0x3e312f(0x234)](_0x3e312f(0x1dd)),_0xfdb03d['logout']();else{if(_0x597b48===DisconnectReason[_0x3e312f(0x1ea)])console[_0x3e312f(0x234)](_0x3e312f(0x1e8)),_0x40b484();else{if(_0x597b48===DisconnectReason[_0x3e312f(0x203)])console['log'](_0x3e312f(0x20c)),_0x40b484();else _0xfdb03d['end'](_0x3e312f(0x21b)+_0x597b48+'|'+_0x2b3edb);}}}}}}}}),_0xfdb03d[_0x14d912(0x1f0)]=_0x4a2cb4=>{const _0x588659=_0x14d912;if(!_0x4a2cb4)return _0x4a2cb4;if(/:\d+@/gi['test'](_0x4a2cb4)){let _0x47ecf5=jidDecode(_0x4a2cb4)||{};return _0x47ecf5[_0x588659(0x24d)]&&_0x47ecf5[_0x588659(0x1fa)]&&_0x47ecf5[_0x588659(0x24d)]+'@'+_0x47ecf5[_0x588659(0x1fa)]||_0x4a2cb4;}else return _0x4a2cb4;},_0xfdb03d['ev']['on'](_0x14d912(0x22a),_0x37fc9e=>{const _0x17d267=_0x14d912;for(let _0x4c8f8d of _0x37fc9e){let _0x3b54dc=_0xfdb03d[_0x17d267(0x1f0)](_0x4c8f8d['id']);if(store&&store[_0x17d267(0x1e1)])store['contacts'][_0x3b54dc]={'id':_0x3b54dc,'name':_0x4c8f8d[_0x17d267(0x23e)]};}}),_0xfdb03d['getName']=(_0x4d708e,_0x294387=![])=>{const _0x1a86ec=_0x14d912;id=_0xfdb03d['decodeJid'](_0x4d708e),_0x294387=_0xfdb03d[_0x1a86ec(0x235)]||_0x294387;let _0x5b6192;if(id[_0x1a86ec(0x242)](_0x1a86ec(0x21c)))return new Promise(async _0x433205=>{const _0x5957e1=_0x1a86ec;_0x5b6192=store['contacts'][id]||{};if(!(_0x5b6192['name']||_0x5b6192[_0x5957e1(0x205)]))_0x5b6192=_0xfdb03d[_0x5957e1(0x207)](id)||{};_0x433205(_0x5b6192[_0x5957e1(0x221)]||_0x5b6192[_0x5957e1(0x205)]||PhoneNumber('+'+id[_0x5957e1(0x1ed)]('@s.whatsapp.net',''))[_0x5957e1(0x21a)](_0x5957e1(0x24a)));});else _0x5b6192=id===_0x1a86ec(0x209)?{'id':id,'name':_0x1a86ec(0x246)}:id===_0xfdb03d[_0x1a86ec(0x1f0)](_0xfdb03d['user']['id'])?_0xfdb03d[_0x1a86ec(0x24d)]:store[_0x1a86ec(0x1e1)][id]||{};return(_0x294387?'':_0x5b6192[_0x1a86ec(0x221)])||_0x5b6192[_0x1a86ec(0x205)]||_0x5b6192['verifiedName']||PhoneNumber('+'+_0x4d708e[_0x1a86ec(0x1ed)](_0x1a86ec(0x1f8),''))[_0x1a86ec(0x21a)](_0x1a86ec(0x24a));},_0xfdb03d['parseMention']=(_0x51f0c3='')=>{const _0x268b71=_0x14d912;return[..._0x51f0c3['matchAll'](/@([0-9]{5,16}|0)/g)]['map'](_0x1c9961=>_0x1c9961[0x1]+_0x268b71(0x1f8));},_0xfdb03d[_0x14d912(0x1e9)]=async(_0x600192,_0x5b2342,_0xd1e0de='',_0x22b5a7={})=>{const _0x27fef7=_0x14d912;let _0x4562d5=[];for(let _0x3019c3 of _0x5b2342){_0x4562d5[_0x27fef7(0x1f1)]({'displayName':await _0xfdb03d['getName'](_0x3019c3+_0x27fef7(0x1f8)),'vcard':_0x27fef7(0x1f2)+await _0xfdb03d[_0x27fef7(0x24b)](_0x3019c3+_0x27fef7(0x1f8))+_0x27fef7(0x23a)+await _0xfdb03d[_0x27fef7(0x24b)](_0x3019c3+_0x27fef7(0x1f8))+'\x0a\x0aitem1.TEL;waid='+_0x3019c3+':'+_0x3019c3+_0x27fef7(0x231)});}_0xfdb03d['sendMessage'](_0x600192,{'contacts':{'displayName':_0x4562d5['length']+_0x27fef7(0x237),'contacts':_0x4562d5},..._0x22b5a7},{'quoted':_0xd1e0de});},_0xfdb03d[_0x14d912(0x239)]=_0x52d363=>{const _0x110cf4=_0x14d912;return _0xfdb03d['query']({'tag':'iq','attrs':{'to':_0x110cf4(0x1f8),'type':'set','xmlns':_0x110cf4(0x1e0)},'content':[{'tag':_0x110cf4(0x1e0),'attrs':{},'content':Buffer[_0x110cf4(0x212)](_0x52d363,'utf-8')}]}),_0x52d363;},_0xfdb03d[_0x14d912(0x1ef)]=async(_0x448014,_0x57b91e,_0x3d7178=!![])=>{const _0xd6539a=_0x14d912;let _0x1aa063=_0x448014['msg']?_0x448014['msg']:_0x448014,_0x6ff09d=(_0x448014[_0xd6539a(0x23f)]||_0x448014)[_0xd6539a(0x1df)]||'',_0x270015=_0x448014['mtype']?_0x448014[_0xd6539a(0x201)][_0xd6539a(0x1ed)](/Message/gi,''):_0x6ff09d[_0xd6539a(0x250)]('/')[0x0];const _0xfc2aad=await downloadContentFromMessage(_0x1aa063,_0x270015);let _0x1ea9bf=Buffer[_0xd6539a(0x212)]([]);for await(const _0x5614b9 of _0xfc2aad){_0x1ea9bf=Buffer[_0xd6539a(0x21d)]([_0x1ea9bf,_0x5614b9]);}let _0x544934=await FileType[_0xd6539a(0x238)](_0x1ea9bf);return trueFileName=_0x3d7178?_0x57b91e+'.'+_0x544934[_0xd6539a(0x20a)]:_0x57b91e,await fs[_0xd6539a(0x1f9)](trueFileName,_0x1ea9bf),trueFileName;},_0xfdb03d[_0x14d912(0x20d)]=async _0x10bd17=>{const _0x7f5014=_0x14d912;let _0x14ac8f=(_0x10bd17[_0x7f5014(0x23f)]||_0x10bd17)['mimetype']||'',_0xe1c649=_0x10bd17['mtype']?_0x10bd17[_0x7f5014(0x201)][_0x7f5014(0x1ed)](/Message/gi,''):_0x14ac8f['split']('/')[0x0];const _0x166800=await downloadContentFromMessage(_0x10bd17,_0xe1c649);let _0x1051a8=Buffer[_0x7f5014(0x212)]([]);for await(const _0x3d81e9 of _0x166800){_0x1051a8=Buffer[_0x7f5014(0x21d)]([_0x1051a8,_0x3d81e9]);}return _0x1051a8;},_0xfdb03d['sendText']=(_0xcd7675,_0x206291,_0x282c40='',_0x47fff3)=>_0xfdb03d['sendMessage'](_0xcd7675,{'text':_0x206291,..._0x47fff3},{'quoted':_0x282c40});}_0x40b484();}catch(_0x3fb3e8){console[_0x1f533d(0x234)](_0x3fb3e8);}};function _0x3310(_0x79ef04,_0x1deee2){const _0x4df600=_0x4df6();return _0x3310=function(_0x33108b,_0x53dd6c){_0x33108b=_0x33108b-0x1db;let _0x1fea92=_0x4df600[_0x33108b];return _0x1fea92;},_0x3310(_0x79ef04,_0x1deee2);}module['exports']={'jadibot':jadibot,'conns':conns};