forked from ZIXtechex/BLUEXDEMON
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
1 lines (1 loc) · 6.71 KB
/
index.js
1
const _0x34e716=_0x5a50;function _0x5a50(_0x2e6ac0,_0x4c0dfd){const _0x5af77e=_0x5af7();return _0x5a50=function(_0x5a501d,_0x56a18d){_0x5a501d=_0x5a501d-0x139;let _0x44109c=_0x5af77e[_0x5a501d];return _0x44109c;},_0x5a50(_0x2e6ac0,_0x4c0dfd);}(function(_0x538e7e,_0xe8e0d){const _0x427b86=_0x5a50,_0x5d1fed=_0x538e7e();while(!![]){try{const _0x4c79d2=-parseInt(_0x427b86(0x161))/0x1*(-parseInt(_0x427b86(0x180))/0x2)+-parseInt(_0x427b86(0x167))/0x3+-parseInt(_0x427b86(0x145))/0x4+-parseInt(_0x427b86(0x150))/0x5*(parseInt(_0x427b86(0x15c))/0x6)+parseInt(_0x427b86(0x174))/0x7+parseInt(_0x427b86(0x182))/0x8+-parseInt(_0x427b86(0x179))/0x9*(-parseInt(_0x427b86(0x14c))/0xa);if(_0x4c79d2===_0xe8e0d)break;else _0x5d1fed['push'](_0x5d1fed['shift']());}catch(_0x7ae146){_0x5d1fed['push'](_0x5d1fed['shift']());}}}(_0x5af7,0x57337),require(_0x34e716(0x142)));const func=require(_0x34e716(0x15f)),readline=require(_0x34e716(0x13f)),usePairingCode=!![],question=_0x1a334c=>{const _0x3b7b10=readline['createInterface']({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x4430cd=>{_0x3b7b10['question'](_0x1a334c,_0x4430cd);});};async function startSesi(){const _0x368ac8=_0x34e716,_0x4c3ac7=makeInMemoryStore({'logger':pino()[_0x368ac8(0x13c)]({'level':_0x368ac8(0x181),'stream':_0x368ac8(0x143)})}),{state:_0x20facb,saveCreds:_0x30106c}=await useMultiFileAuthState(_0x368ac8(0x159)),{version:_0x498dd9,isLatest:_0x5ba07d}=await fetchLatestBaileysVersion();console[_0x368ac8(0x163)](chalk[_0x368ac8(0x172)]['bold'](_0x368ac8(0x13e)));const _0x49885f={'version':_0x498dd9,'keepAliveIntervalMs':0x7530,'printQRInTerminal':!usePairingCode,'logger':pino({'level':_0x368ac8(0x13d)}),'auth':_0x20facb,'browser':[_0x368ac8(0x183),'Chrome',_0x368ac8(0x15d)]},_0xd10e36=func[_0x368ac8(0x16f)](_0x49885f);if(usePairingCode&&!_0xd10e36['authState'][_0x368ac8(0x157)][_0x368ac8(0x141)]){const _0x472b74=await question(chalk['blue'](_0x368ac8(0x14d))),_0x1ca574=await _0xd10e36['requestPairingCode'](_0x472b74[_0x368ac8(0x16d)]());console[_0x368ac8(0x163)](chalk[_0x368ac8(0x177)](_0x368ac8(0x13a)+_0x1ca574+'\x20'));}return _0x4c3ac7['bind'](_0xd10e36['ev']),_0xd10e36['ev']['on']('connection.update',async _0x45d607=>{const _0x4d0da1=_0x368ac8,{connection:_0x467964,lastDisconnect:_0x27b0d1}=_0x45d607;if(_0x467964==='close'){const _0x4f049d=new Boom(_0x27b0d1?.['error'])?.['output'][_0x4d0da1(0x15e)];console[_0x4d0da1(0x163)](color(_0x27b0d1[_0x4d0da1(0x158)],_0x4d0da1(0x171)));if(_0x27b0d1[_0x4d0da1(0x158)]==_0x4d0da1(0x151))process[_0x4d0da1(0x147)]();else{if(_0x4f049d===DisconnectReason[_0x4d0da1(0x162)])console['log'](color(_0x4d0da1(0x148))),process[_0x4d0da1(0x147)]();else{if(_0x4f049d===DisconnectReason[_0x4d0da1(0x176)])console[_0x4d0da1(0x163)](color(_0x4d0da1(0x15a),_0x4d0da1(0x140)),color(_0x4d0da1(0x185),_0x4d0da1(0x171))),process[_0x4d0da1(0x147)]();else{if(_0x4f049d===DisconnectReason['connectionLost'])console['log'](color(_0x4d0da1(0x15a),_0x4d0da1(0x140)),color(_0x4d0da1(0x153),_0x4d0da1(0x171))),process['exit']();else{if(_0x4f049d===DisconnectReason[_0x4d0da1(0x166)])console[_0x4d0da1(0x163)](color(_0x4d0da1(0x184))),_0xd10e36[_0x4d0da1(0x175)]();else{if(_0x4f049d===DisconnectReason[_0x4d0da1(0x156)])console[_0x4d0da1(0x163)](color(_0x4d0da1(0x146))),_0xd10e36[_0x4d0da1(0x175)]();else{if(_0x4f049d===DisconnectReason[_0x4d0da1(0x15b)])console['log'](color('Restart\x20Required,\x20Restarting...')),await startSesi();else _0x4f049d===DisconnectReason['timedOut']&&(console[_0x4d0da1(0x163)](color(_0x4d0da1(0x165))),startSesi());}}}}}}}else{if(_0x467964===_0x4d0da1(0x13b))start('1','Connecting...');else _0x467964===_0x4d0da1(0x173)&&(success('1',_0x4d0da1(0x164)),_0xd10e36[_0x4d0da1(0x178)](_0x4d0da1(0x170),{'text':'`ð—›ð—¶\x20ð——ð—²ð˜ƒð—²ð—¹ð—¼ð—½ð—²ð—¿`\x0a\x20\x20*BOT\x20CONNECTED\x20SUCCESSFULLY*'}),autoJoin&&_0xd10e36[_0x4d0da1(0x154)](codeInvite));}}),_0xd10e36['ev']['on'](_0x368ac8(0x17d),async _0x1c86c3=>{const _0x524c5c=_0x368ac8;try{m=_0x1c86c3[_0x524c5c(0x14b)][0x0];if(!m[_0x524c5c(0x144)])return;m[_0x524c5c(0x144)]=Object[_0x524c5c(0x17c)](m[_0x524c5c(0x144)])[0x0]===_0x524c5c(0x16c)?m[_0x524c5c(0x144)][_0x524c5c(0x16c)][_0x524c5c(0x144)]:m['message'];if(m[_0x524c5c(0x155)]&&m[_0x524c5c(0x155)][_0x524c5c(0x16b)]===_0x524c5c(0x17b))return _0xd10e36[_0x524c5c(0x14e)]([m['key']]);if(!_0xd10e36[_0x524c5c(0x14a)]&&!m['key'][_0x524c5c(0x14f)]&&_0x1c86c3[_0x524c5c(0x152)]==='notify')return;if(m[_0x524c5c(0x155)]['id'][_0x524c5c(0x139)](_0x524c5c(0x149))&&m['key']['id'][_0x524c5c(0x16e)]===0x10)return;m=func[_0x524c5c(0x17e)](_0xd10e36,m,_0x4c3ac7),require(_0x524c5c(0x16a))(_0xd10e36,m,_0x4c3ac7);}catch(_0x426659){console[_0x524c5c(0x163)](_0x426659);}}),_0xd10e36['ev']['on']('contacts.update',_0x2f60d2=>{const _0x19f15f=_0x368ac8;for(let _0x4dd1fb of _0x2f60d2){let _0x582314=_0xd10e36[_0x19f15f(0x17f)](_0x4dd1fb['id']);if(_0x4c3ac7&&_0x4c3ac7[_0x19f15f(0x169)])_0x4c3ac7[_0x19f15f(0x169)][_0x582314]={'id':_0x582314,'name':_0x4dd1fb[_0x19f15f(0x160)]};}}),_0xd10e36[_0x368ac8(0x14a)]=!![],_0xd10e36['ev']['on'](_0x368ac8(0x17a),_0x30106c),_0xd10e36;}startSesi(),process['on']('uncaughtException',function(_0x261737){const _0xabf6a4=_0x34e716;console[_0xabf6a4(0x163)](_0xabf6a4(0x168),_0x261737);});function _0x5af7(){const _0x32efda=['Caught\x20exception:\x20','contacts','./demontech','remoteJid','ephemeralMessage','trim','length','makeWASocket','[email protected]','deeppink','red','open','3982475rGUWlp','logout','connectionClosed','green','sendMessage','49662idokEN','creds.update','status@broadcast','keys','messages.upsert','smsg','decodeJid','950036LyAVOp','silent','1357000lvIktQ','Ubuntu','Connection\x20Replaced,\x20Another\x20New\x20Session\x20Opened,\x20Please\x20Close\x20Current\x20Session\x20First','Connection\x20closed,\x20reconnecting...','startsWith','Your\x20Pairing\x20Code\x20:\x20','connecting','child','fatal','Created\x20by\x20𝔻𝕆ℕ 𝕋𝔼ℂℍ 𝕀ℕℂ','readline','white','registered','./database/global','store','message','688972gUiiph','Device\x20Logged\x20Out,\x20Please\x20Scan\x20Again\x20And\x20Run.','exit','Bad\x20Session\x20File,\x20Please\x20Delete\x20Session\x20and\x20Scan\x20Again','BAE5','public','messages','310ScGQrw','\x0aEnter\x20Your\x20whatsapp\x20number\x0aNumber\x20:\x20','readMessages','fromMe','295TiWDeK','Error:\x20Stream\x20Errored\x20(unknown)','type','Connection\x20lost,\x20trying\x20to\x20reconnect','groupAcceptInvite','key','loggedOut','creds','error','./session','[SYSTEM]','restartRequired','48270xqxJAI','20.0.04','statusCode','./database/place','notify','1BrvUdi','badSession','log','CONNECTED🤡','Connection\x20TimedOut,\x20Reconnecting...','connectionReplaced','1141659haPKIM'];_0x5af7=function(){return _0x32efda;};return _0x5af7();}