-
Notifications
You must be signed in to change notification settings - Fork 335
/
Copy pathmain.js
1 lines (1 loc) · 20.7 KB
/
main.js
1
'use strict';const _0x47bf71=_0x11ea;(function(_0x49c035,_0x5e29f4){const _0x504972=_0x11ea,_0x332e2a=_0x49c035();while(!![]){try{const _0x2f1dc9=-parseInt(_0x504972(0x15c))/0x1+parseInt(_0x504972(0x156))/0x2*(parseInt(_0x504972(0xd3))/0x3)+-parseInt(_0x504972(0x125))/0x4*(parseInt(_0x504972(0x111))/0x5)+-parseInt(_0x504972(0xfd))/0x6+-parseInt(_0x504972(0x176))/0x7*(-parseInt(_0x504972(0xbf))/0x8)+-parseInt(_0x504972(0x105))/0x9+-parseInt(_0x504972(0x127))/0xa;if(_0x2f1dc9===_0x5e29f4)break;else _0x332e2a['push'](_0x332e2a['shift']());}catch(_0x5169ad){_0x332e2a['push'](_0x332e2a['shift']());}}}(_0x3fff,0xca31f));require(_0x47bf71(0xb3));const {Browsers,DisconnectReason,makeInMemoryStore,makeWASocket,MessageRetryMap,useMultiFileAuthState,makeCacheableSignalKeyStore,fetchLatestBaileysVersion,generateMessageTag}=require('@whiskeysockets/baileys'),chalk=require('chalk'),fs=require('fs'),yargs=require('yargs'),{readdirSync,readFileSync,existsSync}=fs,logg=require('pino'),chokidar=require(_0x47bf71(0xe3)),qrcode=require(_0x47bf71(0x12d)),simple=require(_0x47bf71(0x151)),CFonts=require(_0x47bf71(0x143)),path=require(_0x47bf71(0x160)),{join,dirname}=require(_0x47bf71(0x160)),{Boom}=require(_0x47bf71(0xdf)),_=require(_0x47bf71(0x10f)),{fileURLToPath,pathToFileURL}=require(_0x47bf71(0x11f)),syntaxerror=require(_0x47bf71(0xbb)),{format}=require(_0x47bf71(0x14b)),axios=require('axios'),welcome=JSON['parse'](fs[_0x47bf71(0x113)](_0x47bf71(0x121))),{color}=require('./lib/color'),spin=require(_0x47bf71(0x101)),{getRandom,getBuffer,sleep}=require(_0x47bf71(0xb5));if(runWith[_0x47bf71(0x148)](_0x47bf71(0xaf))){}const connect=require(_0x47bf71(0xca)),PORT=process[_0x47bf71(0x123)]['PORT']||Math[_0x47bf71(0xbe)](0x3e8+Math[_0x47bf71(0x177)]()*0x2328);let d=new Date(),locale='en',gmt=new Date(0x0)['getTime']()-new Date('1\x20Januari\x202021')[_0x47bf71(0xd5)](),weton=['Pahing','Pon',_0x47bf71(0x13f),_0x47bf71(0xec),_0x47bf71(0x108)][Math[_0x47bf71(0xbe)]((d*0x1+gmt)/0x50ae4c0)%0x5],week=d['toLocaleDateString'](locale,{'weekday':_0x47bf71(0xb6)});const calender=d[_0x47bf71(0xc9)]('en',{'day':_0x47bf71(0x102),'month':_0x47bf71(0xb6),'year':_0x47bf71(0x102)});function _0x11ea(_0x474838,_0x3b8e41){const _0x3fff6a=_0x3fff();return _0x11ea=function(_0x11ea85,_0x53e8f4){_0x11ea85=_0x11ea85-0xac;let _0x17065f=_0x3fff6a[_0x11ea85];return _0x17065f;},_0x11ea(_0x474838,_0x3b8e41);}process['on'](_0x47bf71(0x159),console['error']);const {createRequire}=require('module'),requireFromFile=createRequire(__filename);global[_0x47bf71(0x14e)]=function filename(_0x53ad4f=__filename,_0x22a0a1=process[_0x47bf71(0x162)]!==_0x47bf71(0xbc)){const _0x5c77fc=_0x47bf71;return _0x22a0a1?/file:\/\/\//[_0x5c77fc(0x149)](_0x53ad4f)?url[_0x5c77fc(0xf1)](_0x53ad4f):_0x53ad4f:url[_0x5c77fc(0x139)](_0x53ad4f)[_0x5c77fc(0x119)]();},global[_0x47bf71(0xd7)]=function require(_0x5b250e=__filename){return createRequire(_0x5b250e);},global['opts']=new Object(yargs(process[_0x47bf71(0x175)][_0x47bf71(0x128)](0x2))[_0x47bf71(0xe5)](![])[_0x47bf71(0x13d)]());const spinner={'interval':0x78,'frames':['✖\x20[░░░░░░░░░░░░░░░]',_0x47bf71(0x124),_0x47bf71(0xd0),_0x47bf71(0x13e),_0x47bf71(0x145),_0x47bf71(0xda),_0x47bf71(0xc8),_0x47bf71(0x10b),_0x47bf71(0xb2),_0x47bf71(0x167),_0x47bf71(0x169),_0x47bf71(0x132),_0x47bf71(0xe2),_0x47bf71(0x172),_0x47bf71(0x142),_0x47bf71(0xc0)]};let globalSpinner;const getGlobalSpinner=(_0x21cb10=![])=>{const _0x1a0853=_0x47bf71;if(!globalSpinner)globalSpinner=new spin({'color':_0x1a0853(0xcd),'succeedColor':'green','spinner':spinner,'disableSpins':_0x21cb10});return globalSpinner;};function _0x3fff(){const _0x42bfcb=['Runtime\x20updated','session','toUpperCase','Magnitude','restartRequired','REPL_OWNER','loggedOut','✖\x20[■■■■■■■■■■■■■░░]','--no-reply','silent','argv','10632349OAuxDy','random','badSession','smsg','from','eplit','bind','New\x20update\x20runtime','✖\x20[■■■■■■■■░░░░░░░]','./settings.js','logout','./lib/myfunc','long','group-participants.update','20.0.04','split','splice','syntax-error','win32','store','floor','8rOgHTt','✖\x20[■■■■■■■■■■■■■■■]','*`CALL\x20DETECTED`*\x0a>\x20*USER\x20UNAVAILABLE*','\x0a*Lokasi:*\x20','READ','toDataURL','Kedalaman','remoteJid','messaging-history.set','✖\x20[■■■■■■░░░░░░░░░]','toLocaleDateString','./server.js','others','Log','blue','━━━━━━━━━━━━━━━━━━━\x0a\x20\x20\x20\x20『\x20`𝘿𝙀𝙈𝙊𝙉\x20𝙓\x20𝙕𝙊𝙍𝙊`\x20』\x20\x0a🔆\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20🔆\x0a━━━━━━━━━━━━━━━━━━━\x0a✨\x20*𝗖𝗛𝗔𝗡𝗡𝗘𝗟:*\x20✨\x20\x20\x0a📎\x20https://whatsapp.com/channel/0029Vah3fKtCnA7oMPTPJm1h\x20\x20\x0a\x0a🌀\x20*𝗠𝗲𝘀𝘀𝗮𝗴𝗲:*\x20\x0a>\x20','succeed','✖\x20[■■░░░░░░░░░░░░░]','Infogempa','\x20hour,\x20','3HIHRXG','reset','getTime','Tanggal','__require','say','lastTime','✖\x20[■■■■■░░░░░░░░░░]','recv\x20','registered','rejectCall','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','@hapi/boom','write','chalk','✖\x20[■■■■■■■■■■■■░░░]','chokidar','Restart\x20Required,\x20Restarting...','exitProcess','https://data.bmkg.go.id/DataMKG/TEWS/','white','key','fatal','connection.update','remove\x20auto\x20update\x20on\x20group','Kliwon','gempa','data','deeppink','waVersion','fileURLToPath','\x0a*Depth:*\x20','log','Coordinates','https://data.bmkg.go.id/DataMKG/TEWS/autogempa.json','BLUE\x20DEMON','./message/case','Connection\x20closed,\x20reconnecting...','lowdb','Ubuntu','keys','conn','2851938UWpknG','Pairing\x20code:\x20','hello','Wilayah','spinnies','numeric','updateGempa','magenta','1904526YeMWKV','chrome','Connection\x20lost,\x20trying\x20to\x20reconnect','Legi','sendMessage','\x0a*Potention:*\x20','✖\x20[■■■■■■■░░░░░░░░]','loadMessage','[SYSTEM]','length','lodash','\x0a\x0a*Note:*\x0a_Untuk\x20menonaktifkan\x20fitur\x20otomatis\x20update\x20gempa\x20tersebut,\x20silahkan\x20ketik\x20.updategempa\x20off_\x0a','331135ChRmJl','Potensi','readFileSync','lowdb/node','output','entries','buttonsMessage','creds.update','toString','Connection\x20TimedOut,\x20Reconnecting...','lokasi','match','Chrome','left','url','\x0a*Time:*\x20','./database/welcome.json','startsWith','env','✖\x20[■░░░░░░░░░░░░░░]','12ffMUkl','error','7014090GVVAoJ','slice','requestPairingCode','\x0a*Magnitude:*\x20','data\x205','join','qrcode','timedOut','connectionClosed','\x20chats,\x20','makeWASocket2','✖\x20[■■■■■■■■■■■░░░░]','Bot\x20is\x20connected','listMessage','restart','waktu','chain','red','pathToFileURL','message','runtime','[email protected]','parse','✖\x20[■■■░░░░░░░░░░░░]','Wage','send','\x20\x20\x0a━━━━━━━━━━━━━━━━━━━\x0a🔥\x20*𝙁𝙤𝙡𝙡𝙤𝙬\x20𝙛𝙤𝙧\x20𝙈𝙤𝙧𝙚!*\x20🔥\x20\x20\x0a━━━━━━━━━━━━━━━━━━━\x0a','✖\x20[■■■■■■■■■■■■■■░]','cfonts','templateMessage','✖\x20[■■■■░░░░░░░░░░░]','.repl.co','connecting','includes','test','\x20minute,\x20','util','\x20second','open','__filename','Jam','groupFetchAllParticipating','./lib/simple','--no-store','close','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','loadDatabase','1970626DLRWFa','./database/blueimages/zoro.mp4','database/database.json','uncaughtException','creds','infogempa','89002OAImHQ','child','map','connectionLost','path','process','platform','messages','REPL_SLUG','read','\x20day,\x20','✖\x20[■■■■■■■■■░░░░░░]','DATABASE','✖\x20[■■■■■■■■■■░░░░░]','indexOf'];_0x3fff=function(){return _0x42bfcb;};return _0x3fff();}let spins=getGlobalSpinner(![]);const start=(_0x5853cb,_0x1936e0)=>{spins['add'](_0x5853cb,{'text':_0x1936e0});},success=(_0x3f50a7,_0x3234da)=>{const _0x3af45b=_0x47bf71;spins[_0x3af45b(0xcf)](_0x3f50a7,{'text':_0x3234da});};console[_0x47bf71(0xf3)](color('⠀⠀⠀⠀⠀⠀\x0aTHANKS\x20FOR\x20DEPLOYING\x0a',_0x47bf71(0xef))),CFonts[_0x47bf71(0xd8)]('BLUE\x20DEMON',{'font':_0x47bf71(0x106),'align':_0x47bf71(0x11e),'gradient':[_0x47bf71(0x138),_0x47bf71(0x104)]});const msgRetryCounterMap=MessageRetryMap||{},useStore=!process[_0x47bf71(0x175)][_0x47bf71(0x148)](_0x47bf71(0x152)),doReplies=!process[_0x47bf71(0x175)]['includes'](_0x47bf71(0x173)),connectToWhatsApp=async()=>{const _0x1d3e0b=_0x47bf71;setInterval(()=>{const _0x47b7f2=_0x11ea;let _0x11add8=global['db'][_0x47b7f2(0xee)][_0x47b7f2(0xcb)][_0x47b7f2(0x13b)];if(_0x11add8){if(new Date()-_0x11add8[_0x47b7f2(0xd9)]>0xea60*0x3c)_0x11add8[_0x47b7f2(0x13b)]=+new Date(),_0x11add8[_0x47b7f2(0xd9)]=+new Date(),console[_0x47b7f2(0xf3)](_0x47b7f2(0x16b));else _0x11add8[_0x47b7f2(0xd9)]=+new Date();}else global['db'][_0x47b7f2(0xee)]['others']['runtime']={'runtime':+new Date(),'lastTime':+new Date()},console[_0x47b7f2(0xf3)](_0x47b7f2(0xb1));},0xea60);const {Low:_0x3dd3dd}=await import(_0x1d3e0b(0xf9)),_0x4cc14a=await import(_0x1d3e0b(0xe1)),{JSONFile:_0x64d313}=await import(_0x1d3e0b(0x114));global['db']=new _0x3dd3dd(new _0x64d313(_0x1d3e0b(0x158))),global[_0x1d3e0b(0x168)]=global['db'],global['loadDatabase']=async function _0x52916d(){const _0x8f625f=_0x1d3e0b;if(global['db'][_0x8f625f(0xc3)])return new Promise(_0x3d066c=>setInterval(function(){const _0x449468=_0x8f625f;!global['db'][_0x449468(0xc3)]?(clearInterval(conn),_0x3d066c(global['db'][_0x449468(0xee)]==null?global[_0x449468(0x155)]():global['db']['data'])):null;},0x1*0x3e8));if(global['db'][_0x8f625f(0xee)]!==null)return;global['db'][_0x8f625f(0xc3)]=!![],await global['db'][_0x8f625f(0x165)](),global['db'][_0x8f625f(0xc3)]=![],global['db'][_0x8f625f(0xee)]={'allcommand':[],'anonymous':[],'blockcmd':[],'banned':[],'premium':[],'claim':[],'data':[],'sewa':[],'antispam':[],'dashboard':[],'listerror':[],'jadibot':{},'sticker':{},'audio':{},'hittoday':[],'clearchat':[],'users':{},'chats':{},'settings':{},'kickon':{},'others':{},'respon':{},...global['db'][_0x8f625f(0xee)]||{}},global['db']['chain']=_[_0x8f625f(0x137)](global['db']['data']);},loadDatabase();const {state:_0x7e6b22,saveCreds:_0xfb7505}=await useMultiFileAuthState(_0x1d3e0b(0x16c)),_0xa792f0=makeInMemoryStore({'logger':logg()[_0x1d3e0b(0x15d)]({'level':'fatal','stream':_0x1d3e0b(0xbd)})}),{version:_0x350f50,isLatest:_0x352315}=await fetchLatestBaileysVersion();if(global['db'][_0x1d3e0b(0xee)])await global['db'][_0x1d3e0b(0xe0)]();setInterval(()=>{const _0x3c060c=_0x1d3e0b;let _0x4cdaa7=global['db'][_0x3c060c(0xee)][_0x3c060c(0xcb)][_0x3c060c(0x13b)];if(_0x4cdaa7){if(new Date()-_0x4cdaa7['lastTime']>0xea60*0x3c)_0x4cdaa7['runtime']=+new Date(),_0x4cdaa7[_0x3c060c(0xd9)]=+new Date(),console[_0x3c060c(0xf3)](_0x3c060c(0x16b));else _0x4cdaa7[_0x3c060c(0xd9)]=+new Date();}else global['db'][_0x3c060c(0xee)][_0x3c060c(0xcb)]['runtime']={'runtime':+new Date(),'lastTime':+new Date()},console[_0x3c060c(0xf3)](_0x3c060c(0xb1));},0xea60);const _0x3e8e53=_0x497a95=>{const _0x477e6a=_0x1d3e0b,_0x4900e3=!!(_0x497a95[_0x477e6a(0x117)]||_0x497a95[_0x477e6a(0x134)]||_0x497a95[_0x477e6a(0x144)]);return _0x4900e3&&(_0x497a95={'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadataVersion':0x2,'deviceListMetadata':{}},..._0x497a95}}}),_0x497a95;},_0x2766b6=async _0x431b28=>{const _0x285f23=_0x1d3e0b;if(_0xa792f0){const _0x117752=await _0xa792f0[_0x285f23(0x10c)](_0x431b28[_0x285f23(0xc6)],_0x431b28['id'],undefined);return _0x117752?.['message']||undefined;}return{'conversation':_0x285f23(0xff)};},_0x1899d4={'creds':_0x7e6b22[_0x1d3e0b(0x15a)],'keys':makeCacheableSignalKeyStore(_0x7e6b22[_0x1d3e0b(0xfb)],logg()['child']({'level':_0x1d3e0b(0xe9),'stream':_0x1d3e0b(0xbd)}))},_0x106c5b=makeWASocket({'logger':logg({'level':_0x1d3e0b(0x174)}),'printQRInTerminal':!pairingCode,'auth':_0x1899d4,'browser':[_0x1d3e0b(0xfa),_0x1d3e0b(0x11d),_0x1d3e0b(0xb8)]});pairingCode&&!_0x106c5b['authState'][_0x1d3e0b(0x15a)][_0x1d3e0b(0xdc)]&&(console[_0x1d3e0b(0xf3)]('📣MAKE\x20SURE\x20YOU\x20INPUT\x20YOUR\x20NUMBER\x20IN\x20THE\x20settings.js\x20file\x0a\x0aCONNECTING\x20TO\x20'+pairingNumber),setTimeout(async()=>{const _0x25eb0e=_0x1d3e0b;let _0x489c31=await _0x106c5b[_0x25eb0e(0x129)](pairingNumber);_0x489c31=_0x489c31?.[_0x25eb0e(0x11c)](/.{1,4}/g)?.[_0x25eb0e(0x12c)]('-')||_0x489c31,console[_0x25eb0e(0xf3)](_0x25eb0e(0xfe)+_0x489c31[_0x25eb0e(0x16d)]());},0xbb8));global[_0x1d3e0b(0xfc)]=simple[_0x1d3e0b(0x131)](_0x106c5b),connect(conn,PORT),_0xa792f0[_0x1d3e0b(0xb0)](conn['ev']),conn[_0x1d3e0b(0xf0)]=_0x350f50,conn['ev']['on'](_0x1d3e0b(0xb7),async _0x4c7e5b=>{require('./message/group.js')(conn,_0x4c7e5b);});anticall===!![]&&conn['ev']['on']('call',async _0x201766=>{const _0x29c642=_0x1d3e0b,{id:_0x5186ad,from:_0x36e0a7,status:_0x4984f0}=_0x201766[0x0];if(_0x4984f0==='offer'){if(_0x36e0a7===_0x29c642(0x13c))return;console[_0x29c642(0xf3)](_0x201766),await conn[_0x29c642(0xdd)](_0x5186ad,_0x36e0a7),await conn[_0x29c642(0x109)](_0x36e0a7,{'text':_0x29c642(0xc1)});}});conn['ev']['on']('messages.upsert',async _0x3882fc=>{const _0x45c951=_0x1d3e0b;try{if(global['db']['data'])await global['db']['write']();if(!_0x3882fc[_0x45c951(0x163)])return;var _0x2318ce=_0x3882fc['messages'][0x0]||_0x3882fc[_0x45c951(0x163)][_0x3882fc[_0x45c951(0x163)][_0x45c951(0x10e)]-0x1];if(!_0x2318ce[_0x45c951(0x13a)])return;if(_0x2318ce[_0x45c951(0xe8)]['id'][_0x45c951(0x122)]('BAE5')&&_0x2318ce[_0x45c951(0xe8)]['id']['length']===0x10)return;_0x2318ce=simple[_0x45c951(0xad)](conn,_0x2318ce,_0xa792f0),require(_0x45c951(0xf7))(conn,_0x2318ce,_0x3882fc,_0xa792f0);}catch(_0x1b3f91){console[_0x45c951(0xf3)](_0x1b3f91);}}),conn['ev'][_0x1d3e0b(0x161)](async _0x4fa3eb=>{const _0x5a84d0=_0x1d3e0b;if(_0x4fa3eb[_0x5a84d0(0xea)]){const _0x390a24=_0x4fa3eb[_0x5a84d0(0xea)],{connection:_0x1a4b0c,lastDisconnect:_0x53cd56,qr:_0x35ea3c}=_0x390a24;if(_0x35ea3c){let _0x490372=await qrcode[_0x5a84d0(0xc4)](_0x35ea3c,{'scale':0x14});qrwa=Buffer[_0x5a84d0(0xae)](_0x490372[_0x5a84d0(0xb9)]`,`[0x1],'base64');}const _0x2e8f55=new Boom(_0x53cd56?.['error'])?.[_0x5a84d0(0x115)]['statusCode'];if(global['db'][_0x5a84d0(0xee)]==null)await loadDatabase();if(_0x1a4b0c===_0x5a84d0(0x153)){qrwa=null,console[_0x5a84d0(0xf3)](color(_0x53cd56[_0x5a84d0(0x126)],_0x5a84d0(0xef)));if(_0x53cd56[_0x5a84d0(0x126)]=='Error:\x20Stream\x20Errored\x20(unknown)')process[_0x5a84d0(0x140)]('reset');else{if(_0x2e8f55===DisconnectReason[_0x5a84d0(0xac)])console[_0x5a84d0(0xf3)](color(_0x5a84d0(0x154))),process[_0x5a84d0(0x140)](_0x5a84d0(0xd4));else{if(_0x2e8f55===DisconnectReason[_0x5a84d0(0x12f)])console[_0x5a84d0(0xf3)](color(_0x5a84d0(0x10d),_0x5a84d0(0xe7)),color(_0x5a84d0(0xf8),_0x5a84d0(0xef))),process[_0x5a84d0(0x140)]('reset');else{if(_0x2e8f55===DisconnectReason[_0x5a84d0(0x15f)])console[_0x5a84d0(0xf3)](color('[SYSTEM]',_0x5a84d0(0xe7)),color(_0x5a84d0(0x107),_0x5a84d0(0xef))),process[_0x5a84d0(0x140)]('reset');else{if(_0x2e8f55===DisconnectReason['connectionReplaced'])console['log'](color('Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First')),conn[_0x5a84d0(0xb4)]();else{if(_0x2e8f55===DisconnectReason[_0x5a84d0(0x171)])console['log'](color(_0x5a84d0(0xde))),conn[_0x5a84d0(0xb4)]();else{if(_0x2e8f55===DisconnectReason[_0x5a84d0(0x16f)])console[_0x5a84d0(0xf3)](color(_0x5a84d0(0xe4))),connectToWhatsApp(),process['send']('reset');else _0x2e8f55===DisconnectReason[_0x5a84d0(0x12e)]&&(console['log'](color(_0x5a84d0(0x11a))),connectToWhatsApp());}}}}}}}else{if(_0x1a4b0c===_0x5a84d0(0x147))console[_0x5a84d0(0xf3)](''+(color('[','white')+color('2',_0x5a84d0(0x138))+color(']','white')),''+calender),console[_0x5a84d0(0xf3)](''+(color('[',_0x5a84d0(0xe7))+color('3','red')+color(']','white')),'https://'+process[_0x5a84d0(0x123)][_0x5a84d0(0x164)]+'.'+process[_0x5a84d0(0x123)][_0x5a84d0(0x170)]+_0x5a84d0(0x146)),console[_0x5a84d0(0xf3)](''+(color('[',_0x5a84d0(0xe7))+color('4','red')+color(']',_0x5a84d0(0xe7))),_0x5a84d0(0x12b)),console[_0x5a84d0(0xf3)](color(']─',_0x5a84d0(0x104)),'「',color(_0x5a84d0(0xf6),_0x5a84d0(0xcd)),'」',color('─[',_0x5a84d0(0x104))),start('1','');else _0x1a4b0c===_0x5a84d0(0x14d)&&(qrwa=null,conn['sendMessage'](_0x5a84d0(0x13c),{'video':{'url':_0x5a84d0(0x157)},'caption':_0x5a84d0(0xce)+caption+_0x5a84d0(0x141)}),success('1','[■■■■■■■■■■■■■■■]\x20Connected'));}}const _0xdc38cb=db[_0x5a84d0(0xee)]['others'][_0x5a84d0(0x135)];if(_0xdc38cb){const _0x598f8f=_0xdc38cb['m'],_0xabf9c0=_0xdc38cb['from'];let _0xfab380=_0x5a84d0(0x133);await conn[_0x5a84d0(0x109)](_0xabf9c0,{'text':_0xfab380},{'quoted':_0x598f8f}),delete db[_0x5a84d0(0xee)][_0x5a84d0(0xcb)][_0x5a84d0(0x135)];}_0x4fa3eb[_0x5a84d0(0x118)]&&await _0xfb7505();if(_0x4fa3eb['messaging-history.set']){const {chats:_0x6d0cd1,contacts:_0x54ba50,messages:_0x2186fd,isLatest:_0x3461b4}=_0x4fa3eb[_0x5a84d0(0xc7)];console['log'](_0x5a84d0(0xdb)+_0x6d0cd1[_0x5a84d0(0x10e)]+_0x5a84d0(0x130)+_0x54ba50[_0x5a84d0(0x10e)]+'\x20contacts,\x20'+_0x2186fd[_0x5a84d0(0x10e)]+'\x20msgs\x20(is\x20latest:\x20'+_0x3461b4+')');}});let _0x3964f2=db[_0x1d3e0b(0xee)][_0x1d3e0b(0xcb)]['updateGempa'],_0x2d4b04=db[_0x1d3e0b(0xee)][_0x1d3e0b(0xcb)][_0x1d3e0b(0x15b)];if(!_0x3964f2)db[_0x1d3e0b(0xee)]['others'][_0x1d3e0b(0x103)]=[];_0x3964f2&&_0x3964f2[_0x1d3e0b(0x10e)]>0x0&&setInterval(async()=>{const _0x42708d=_0x1d3e0b,{data:_0x1cf164}=await axios['get'](_0x42708d(0xf5));let _0x1efee5=/TimurLaut|Tenggara|BaratDaya|BaratLaut|Utara|Timur|Selatan|Barat/,_0x21001e=_0x1cf164[_0x42708d(0xd1)]['gempa']['Wilayah'],_0x5594bd=_0x1cf164['Infogempa'][_0x42708d(0xed)][_0x42708d(0x14f)],_0x5a7712='\x20*INFO\x20GEMPA*\x0a\x0a*Date:*\x20'+_0x1cf164[_0x42708d(0xd1)][_0x42708d(0xed)][_0x42708d(0xd6)]+_0x42708d(0x120)+_0x1cf164[_0x42708d(0xd1)][_0x42708d(0xed)]['Jam']+'\x0a*Coordinates:*\x20'+_0x1cf164[_0x42708d(0xd1)][_0x42708d(0xed)][_0x42708d(0xf4)]+_0x42708d(0x12a)+_0x1cf164[_0x42708d(0xd1)]['gempa'][_0x42708d(0x16e)]+_0x42708d(0xf2)+_0x1cf164[_0x42708d(0xd1)][_0x42708d(0xed)][_0x42708d(0xc5)]+_0x42708d(0xc2)+_0x1cf164['Infogempa']['gempa'][_0x42708d(0x100)]+_0x42708d(0x10a)+_0x1cf164[_0x42708d(0xd1)]['gempa'][_0x42708d(0x112)]+'\x0a*Effect:*\x20'+_0x1cf164[_0x42708d(0xd1)][_0x42708d(0xed)]['Dirasakan']+_0x42708d(0x110);if(_0x2d4b04){let _0x9f730=await conn['groupFetchAllParticipating'](),_0x11ee6a=Object['entries'](_0x9f730)['slice'](0x0)[_0x42708d(0x15e)](_0x2ce96a=>_0x2ce96a[0x1]),_0x8fb66f=_0x11ee6a[_0x42708d(0x15e)](_0xa0f7a4=>_0xa0f7a4['id']),_0x4ee7b7={'url':_0x42708d(0xe6)+_0x1cf164['Infogempa']['gempa']['Shakemap']};if(_0x2d4b04[_0x42708d(0x11b)]!==_0x21001e&&_0x2d4b04[_0x42708d(0x11b)]!==_0x5594bd){_0x2d4b04['lokasi']=_0x21001e,_0x2d4b04[_0x42708d(0x136)]=_0x5594bd;for(let _0x38034e of _0x3964f2){!_0x8fb66f[_0x42708d(0x148)](_0x38034e)?(_0x3964f2[_0x42708d(0xba)](_0x3964f2['indexOf'](_0x38034e,0x1)),console['log']('remove\x20auto\x20update\x20on\x20group')):(await sleep(0xbb8),conn[_0x42708d(0x109)](_0x38034e,{'image':_0x4ee7b7,'caption':_0x5a7712}));}}}else{let _0x53ca09=await conn[_0x42708d(0x150)](),_0x22aa78=Object[_0x42708d(0x116)](_0x53ca09)['slice'](0x0)[_0x42708d(0x15e)](_0x597d59=>_0x597d59[0x1]),_0x59502d=_0x22aa78[_0x42708d(0x15e)](_0x9b359f=>_0x9b359f['id']);db[_0x42708d(0xee)][_0x42708d(0xcb)]['infogempa']={'lokasi':_0x21001e,'waktu':_0x5594bd};for(let _0x5247c6 of _0x3964f2){!_0x59502d[_0x42708d(0x148)](_0x5247c6)?(_0x3964f2['splice'](_0x3964f2[_0x42708d(0x16a)](_0x5247c6,0x1)),console['log'](_0x42708d(0xeb))):(await sleep(0xbb8),conn['sendMessage'](_0x5247c6,{'image':image,'caption':_0x5a7712}));}}},0xea60*0xa);const _0x5a3e52=_0x4ccd91=>{const _0x2a0dd1=_0x1d3e0b;console[_0x2a0dd1(0xf3)](_0x4ccd91);};function _0x33ac09(_0x40407a){const _0x52e52e=_0x1d3e0b;let _0x562999=isNaN(_0x40407a)?'--':Math[_0x52e52e(0xbe)](_0x40407a/0x5265c00),_0x2597fc=isNaN(_0x40407a)?'--':Math[_0x52e52e(0xbe)](_0x40407a/0x36ee80)%0x18,_0x33179e=isNaN(_0x40407a)?'--':Math[_0x52e52e(0xbe)](_0x40407a/0xea60)%0x3c,_0x6a6ed6=isNaN(_0x40407a)?'--':Math['floor'](_0x40407a/0x3e8)%0x3c;var _0x96e376=_0x562999>0x0?_0x562999+(_0x562999==0x1?_0x52e52e(0x166):_0x52e52e(0x166)):'',_0x1ec253=_0x2597fc>0x0?_0x2597fc+(_0x2597fc==0x1?'\x20hour,\x20':_0x52e52e(0xd2)):'',_0x156e81=_0x33179e>0x0?_0x33179e+(_0x33179e==0x1?_0x52e52e(0x14a):_0x52e52e(0x14a)):'',_0x4123b9=_0x6a6ed6>0x0?_0x6a6ed6+(_0x6a6ed6==0x1?'\x20second':_0x52e52e(0x14c)):'';let _0x5c389c=_0x562999>0x0?_0x96e376+_0x1ec253+_0x156e81+_0x4123b9:_0x1ec253+_0x156e81+_0x4123b9;return _0x5c389c;}return global[_0x1d3e0b(0xe1)]=_0x4cc14a,global['clockString']=_0x33ac09,global[_0x1d3e0b(0xcc)]=_0x5a3e52,conn;};connectToWhatsApp();