-
Notifications
You must be signed in to change notification settings - Fork 99
/
index.js
1 lines (1 loc) · 11.6 KB
/
index.js
1
const _0x27a011=_0x229d;(function(_0x198a6e,_0x3e0db6){const _0x385273=_0x229d,_0x4db0ca=_0x198a6e();while(!![]){try{const _0x5ea0dc=parseInt(_0x385273(0x97))/(-0x25bb+-0x1264+0x704*0x8)*(-parseInt(_0x385273(0x10b))/(-0x17a8+0x1172*-0x2+0x3a8e))+-parseInt(_0x385273(0x8c))/(-0x2243+0x1409+0xe3d)*(parseInt(_0x385273(0xc7))/(0x1d93*-0x1+-0x8a4+0x263b))+parseInt(_0x385273(0xe1))/(-0xa*0x8+-0xe01+-0x2de*-0x5)+-parseInt(_0x385273(0xf7))/(-0x5*-0x4d6+0x9d*0x35+-0x38a9)*(-parseInt(_0x385273(0xe0))/(0x1f*-0x19+0x7b2*0x4+0xd*-0x222))+-parseInt(_0x385273(0xaa))/(0x24dc+0x7*-0x187+-0x1a23)+-parseInt(_0x385273(0xaf))/(-0x1610+0x1*-0x1307+-0xe*-0x2f0)+parseInt(_0x385273(0xba))/(0xbca*-0x2+-0x1196+0x2934);if(_0x5ea0dc===_0x3e0db6)break;else _0x4db0ca['push'](_0x4db0ca['shift']());}catch(_0x18f2ef){_0x4db0ca['push'](_0x4db0ca['shift']());}}}(_0x57be,0x13f733*0x1+0xe412a+-0x17c48a));import _0x33e0c7 from'dotenv';_0x33e0c7[_0x27a011(0x99)]();import{makeWASocket,Browsers,fetchLatestBaileysVersion,DisconnectReason,useMultiFileAuthState}from'@whiskeysockets/baileys';import{Handler,Callupdate,GroupUpdate}from'./src/event/index.js';import _0x9edefa from'express';import _0xd66411 from'pino';import _0x169b98 from'fs';import _0x559897 from'node-cache';import _0x55512f from'path';import _0x5cd582 from'chalk';import _0xe8db76 from'moment-timezone';import _0x249aa6 from'axios';import _0x2dc717 from'./config.cjs';function _0x57be(){const _0x4ed679=['fromMe','sendMessag','string','104KVfYiO','RdaDE','Session\x20Co','#32CD32','gieLS','fURfj','Bmw\x20is\x20run','promises','.update','pdate','fmqbC','pp.com/cha','icipants.u','l\x20For\x20Upda','yPFkp','eUEyg','yTZgT','key','NING...⏳','ɴᴇᴄᴛᴇᴅ*\x0a╰─','sKUxZ','rror:','Successful','nsjhE','tes*\x0a_http','6244mdfJDW','3262070cpnyDz','ly...!.','emmuf','Please\x20add','SESSION_ID','log','hUrzK','private','CJMQk','iCjVi','ajYVC','TrBhf','silent','──────────','https://pa','ᴛ\x20ɴᴀᴍᴇ:\x20*ʏ','mkdirSync','action:','qKxulv82s_','──━┈⊷\x0a\x0a╭──','join','writeFile','6210DZFlyW','error','BxsZR','creds.upda','messages.u','AUTO_REACT','group-part','send','close','🌏FREDI\x20MD','ccessfully','*ᴀɪ\x20ɪs\x20ᴄᴏɴ','Session\x20id','AYtUF','messages','loggedOut',',\x20isLatest','stebin.com','VjUJt','level','28dcqawg','qYBQI','LIFsS','ZysXY','Qflib','users\x20',',\x22time\x22:\x22','Join\x20Whats','length','split','YjpGR','fhEGS','url','PORT','────━┈⊷\x0a\x0a*','NECTED\x20SUC','xIUBK','loadMessag','bold','child','─━┈⊷\x0a│🤖\x20ʙᴏ','opdWT','afCB3o1Hsp','/raw/','random','get','\x20error\x20❌','user','green','app\x20Channe','\x20*ғʀᴇᴅɪ*\x0a','Bmwmd$','existsSync','call','│👨💻\x20ᴏᴡɴᴇʀ\x20:','hex','CESSFULLY\x20','vBxzR','tckZn','psert','SqfwK','MwPBO','BMW\x20MD\x20RUN','ion\x20to\x20SES','#FFA500','\x20your\x20sess','listen','pXlVo','output','creds.json','floor','117057UisZsx','data','────━┈⊷\x0a│\x20','BMW\x20MD\x20CON','blue','RRafn','toJSON','\x20✅.','ᴇssᴇʀ\x20ᴍᴅ*\x0a','MODE','session','89479eoxYXv','HIM\x20ADAMS','config','APP\x20BOT\x20MA','pathname','ZkLtu','dirname','Bmw\x20daily\x20','MKFNG','╭─────────','╰─────────','remoteJid','v\x20!!','alJMa','stringify','vkyCR','ning\x20on\x20v','safari','env','4552704wIUwYU','s://whatsa','sZiIG','message','Critical\x20E','10734984JYnImW','open','BYDue','SION_ID\x20en','public','oKXDa','nnected\x20Su','3.3','Restarted\x20','nnel/0029V','exit','31384410TJrSrA','statusCode','DE\x20BY\x20IBRA','trace','Error\x20duri','connection','GRTfr','ng\x20auto\x20re','BEST\x20WHATS','BWM-MD'];_0x57be=function(){return _0x4ed679;};return _0x57be();}import _0x40bc17 from'./lib/autoreact.cjs';const {emojis,doReact}=_0x40bc17,sessionName=_0x27a011(0x96),app=_0x9edefa(),orange=_0x5cd582[_0x27a011(0x11d)][_0x27a011(0x12e)](_0x27a011(0x85)),lime=_0x5cd582[_0x27a011(0x11d)][_0x27a011(0x12e)](_0x27a011(0xca));let useQR=![],initialConnection=!![];const PORT=process[_0x27a011(0xa9)][_0x27a011(0x118)]||-0x24b+0x2fb+-0x4*-0x2c2,MAIN_LOGGER=_0xd66411({'timestamp':()=>_0x27a011(0x111)+new Date()[_0x27a011(0x92)]()+'\x22'}),logger=MAIN_LOGGER[_0x27a011(0x11e)]({});logger[_0x27a011(0x10a)]=_0x27a011(0xbd);function _0x229d(_0x52720d,_0x2f969c){const _0x5151a3=_0x57be();return _0x229d=function(_0x2f2062,_0x3e9227){_0x2f2062=_0x2f2062-(-0x5*0x6be+0x97b+-0x1*-0x18b8);let _0x54c3a5=_0x5151a3[_0x2f2062];return _0x54c3a5;},_0x229d(_0x52720d,_0x2f969c);}const msgRetryCounterCache=new _0x559897(),__filename=new URL(import.meta[_0x27a011(0x117)])[_0x27a011(0x9b)],__dirname=_0x55512f[_0x27a011(0x9d)](__filename),sessionDir=_0x55512f[_0x27a011(0xf5)](__dirname,_0x27a011(0x96)),credsPath=_0x55512f[_0x27a011(0xf5)](sessionDir,_0x27a011(0x8a));!_0x169b98[_0x27a011(0x12b)](sessionDir)&&_0x169b98[_0x27a011(0xf1)](sessionDir,{'recursive':!![]});async function downloadSessionData(){const _0x36bebd=_0x27a011,_0x262c30={'Qflib':_0x36bebd(0xe4)+_0x36bebd(0x86)+_0x36bebd(0x84)+_0x36bebd(0xb2)+_0x36bebd(0xa3),'RdaDE':_0x36bebd(0x12a),'oKXDa':function(_0x54f649,_0x31f93a){return _0x54f649===_0x31f93a;},'nsjhE':_0x36bebd(0xc6),'TrBhf':_0x36bebd(0x100)+'🌏'};if(!_0x2dc717[_0x36bebd(0xe5)])return console[_0x36bebd(0xf8)](_0x262c30[_0x36bebd(0x10f)]),![];const _0x56019c=_0x2dc717[_0x36bebd(0xe5)][_0x36bebd(0x114)](_0x262c30[_0x36bebd(0xc8)])[0x1740+-0x1a*-0x8b+-0x255d],_0x4a1496=_0x36bebd(0xef)+_0x36bebd(0x108)+_0x36bebd(0x122)+_0x56019c;try{const _0x3e5b02=await _0x249aa6[_0x36bebd(0x124)](_0x4a1496),_0x530bc1=_0x262c30[_0x36bebd(0xb4)](typeof _0x3e5b02[_0x36bebd(0x8d)],_0x262c30[_0x36bebd(0xde)])?_0x3e5b02[_0x36bebd(0x8d)]:JSON[_0x36bebd(0xa5)](_0x3e5b02[_0x36bebd(0x8d)]);return await _0x169b98[_0x36bebd(0xce)][_0x36bebd(0xf6)](credsPath,_0x530bc1),console[_0x36bebd(0xe6)](_0x262c30[_0x36bebd(0xec)]),!![];}catch(_0x41f686){return![];}}async function start(){const _0x421aec=_0x27a011,_0x1d0a2e={'LIFsS':_0x421aec(0xc2)+_0x421aec(0x9a)+_0x421aec(0xbc)+_0x421aec(0x98),'yPFkp':function(_0x3a7079,_0x44701c){return _0x3a7079===_0x44701c;},'MKFNG':_0x421aec(0xff),'vBxzR':function(_0x14b391,_0x829187){return _0x14b391!==_0x829187;},'alJMa':function(_0x5aecd7){return _0x5aecd7();},'sZiIG':function(_0x4eaf58,_0x1ac271){return _0x4eaf58===_0x1ac271;},'eUEyg':_0x421aec(0xb0),'emmuf':_0x421aec(0x8f)+_0x421aec(0x11a)+_0x421aec(0x7d)+'✅','pXlVo':_0x421aec(0xb7)+_0x421aec(0xdd)+_0x421aec(0xe2),'xIUBK':function(_0x4247af,_0x431316){return _0x4247af*_0x431316;},'GRTfr':function(_0x12cd2c,_0x389d99,_0xfb2030,_0x5c37b8){return _0x12cd2c(_0x389d99,_0xfb2030,_0x5c37b8);},'SqfwK':_0x421aec(0xbe)+_0x421aec(0xc1)+_0x421aec(0xf2),'hUrzK':function(_0x4b993e,_0x2daa5e){return _0x4b993e(_0x2daa5e);},'BYDue':function(_0x3e8d7b){return _0x3e8d7b();},'yTZgT':function(_0x2f034e,_0x4540a3){return _0x2f034e(_0x4540a3);},'iCjVi':_0x421aec(0xed),'ZkLtu':_0x421aec(0xc3),'YjpGR':_0x421aec(0xa8),'fhEGS':_0x421aec(0xb6),'ZysXY':_0x421aec(0xbf)+_0x421aec(0xcf),'opdWT':_0x421aec(0xfa)+'te','MwPBO':_0x421aec(0xfb)+_0x421aec(0x80),'tckZn':_0x421aec(0x12c),'CJMQk':_0x421aec(0xfd)+_0x421aec(0xd3)+_0x421aec(0xd0),'fmqbC':function(_0x8a389a,_0x14c81f){return _0x8a389a===_0x14c81f;},'vkyCR':_0x421aec(0xb3),'VjUJt':function(_0x4fc865,_0x1a23b5){return _0x4fc865===_0x1a23b5;},'BxsZR':_0x421aec(0xe8),'fURfj':_0x421aec(0xae)+_0x421aec(0xdc)};try{const {state:_0x303a57,saveCreds:_0x293dcf}=await _0x1d0a2e[_0x421aec(0xe7)](useMultiFileAuthState,sessionDir),{version:_0x19ab67,isLatest:_0x5217c5}=await _0x1d0a2e[_0x421aec(0xb1)](fetchLatestBaileysVersion);console[_0x421aec(0xe6)](_0x421aec(0xcd)+_0x421aec(0xa7)+_0x19ab67[_0x421aec(0xf5)]('.')+(_0x421aec(0x107)+':\x20')+_0x5217c5);const _0x4c0f86=_0x1d0a2e[_0x421aec(0xe7)](makeWASocket,{'version':_0x19ab67,'logger':_0x1d0a2e[_0x421aec(0xd7)](_0xd66411,{'level':_0x1d0a2e[_0x421aec(0xea)]}),'printQRInTerminal':useQR,'browser':[_0x1d0a2e[_0x421aec(0x9c)],_0x1d0a2e[_0x421aec(0x115)],_0x1d0a2e[_0x421aec(0x116)]],'auth':_0x303a57,'getMessage':async _0x5b2b1c=>{const _0x536329=_0x421aec;if(store){const _0x3bd19d=await store[_0x536329(0x11c)+'e'](_0x5b2b1c[_0x536329(0xa2)],_0x5b2b1c['id']);return _0x3bd19d[_0x536329(0xad)]||undefined;}return{'conversation':_0x1d0a2e[_0x536329(0x10d)]};}});_0x4c0f86['ev']['on'](_0x1d0a2e[_0x421aec(0x10e)],_0x1a5f4d=>{const _0xed6e69=_0x421aec,{connection:_0x528423,lastDisconnect:_0x1abf08}=_0x1a5f4d;if(_0x1d0a2e[_0xed6e69(0xd5)](_0x528423,_0x1d0a2e[_0xed6e69(0x9f)]))_0x1d0a2e[_0xed6e69(0x7e)](_0x1abf08[_0xed6e69(0xf8)]?.[_0xed6e69(0x89)]?.[_0xed6e69(0xbb)],DisconnectReason[_0xed6e69(0x106)])&&_0x1d0a2e[_0xed6e69(0xa4)](start);else _0x1d0a2e[_0xed6e69(0xac)](_0x528423,_0x1d0a2e[_0xed6e69(0xd6)])&&(initialConnection?(console[_0xed6e69(0xe6)](_0x5cd582[_0xed6e69(0x127)](_0x1d0a2e[_0xed6e69(0xe3)])),_0x4c0f86[_0xed6e69(0xc5)+'e'](_0x4c0f86[_0xed6e69(0x126)]['id'],{'text':_0xed6e69(0xa0)+_0xed6e69(0x8e)+_0xed6e69(0x102)+_0xed6e69(0xda)+_0xed6e69(0xee)+_0xed6e69(0xf4)+_0xed6e69(0xee)+_0xed6e69(0x11f)+_0xed6e69(0xf0)+_0xed6e69(0x94)+_0xed6e69(0x12d)+_0xed6e69(0x129)+_0xed6e69(0xa1)+_0xed6e69(0x119)+_0xed6e69(0x112)+_0xed6e69(0x128)+_0xed6e69(0xd4)+_0xed6e69(0xdf)+_0xed6e69(0xab)+_0xed6e69(0xd2)+_0xed6e69(0xb8)+_0xed6e69(0x121)+_0xed6e69(0xf3)}),initialConnection=![]):console[_0xed6e69(0xe6)](_0x5cd582[_0xed6e69(0x90)](_0x1d0a2e[_0xed6e69(0x88)])));}),_0x4c0f86['ev']['on'](_0x1d0a2e[_0x421aec(0x120)],_0x293dcf),_0x4c0f86['ev']['on'](_0x1d0a2e[_0x421aec(0x82)],async _0x471661=>await Handler(_0x471661,_0x4c0f86,logger)),_0x4c0f86['ev']['on'](_0x1d0a2e[_0x421aec(0x7f)],async _0x56f901=>await Callupdate(_0x56f901,_0x4c0f86)),_0x4c0f86['ev']['on'](_0x1d0a2e[_0x421aec(0xe9)],async _0x496136=>await GroupUpdate(_0x4c0f86,_0x496136));if(_0x1d0a2e[_0x421aec(0xd1)](_0x2dc717[_0x421aec(0x95)],_0x1d0a2e[_0x421aec(0xa6)]))_0x4c0f86[_0x421aec(0xb3)]=!![];else _0x1d0a2e[_0x421aec(0x109)](_0x2dc717[_0x421aec(0x95)],_0x1d0a2e[_0x421aec(0xf9)])&&(_0x4c0f86[_0x421aec(0xb3)]=![]);_0x4c0f86['ev']['on'](_0x1d0a2e[_0x421aec(0x82)],async _0x8d4673=>{const _0x3b44f7=_0x421aec;try{const _0x2cbd5f=_0x8d4673[_0x3b44f7(0x105)][0xcd*0x2+-0x7b*0x4f+0x245b];if(!_0x2cbd5f[_0x3b44f7(0xd8)][_0x3b44f7(0xc4)]&&_0x2dc717[_0x3b44f7(0xfc)]){console[_0x3b44f7(0xe6)](_0x2cbd5f);if(_0x2cbd5f[_0x3b44f7(0xad)]){const _0x2c3133=emojis[Math[_0x3b44f7(0x8b)](_0x1d0a2e[_0x3b44f7(0x11b)](Math[_0x3b44f7(0x123)](),emojis[_0x3b44f7(0x113)]))];await _0x1d0a2e[_0x3b44f7(0xc0)](doReact,_0x2c3133,_0x2cbd5f,_0x4c0f86);}}}catch(_0x2227ad){console[_0x3b44f7(0xf8)](_0x1d0a2e[_0x3b44f7(0x81)],_0x2227ad);}});}catch(_0x184fc6){console[_0x421aec(0xf8)](_0x1d0a2e[_0x421aec(0xcc)],_0x184fc6),process[_0x421aec(0xb9)](0x2476+-0x1d9d+-0x6d8);}}async function init(){const _0x3c78ba=_0x27a011,_0x16f5ff={'ajYVC':_0x3c78ba(0xc9)+_0x3c78ba(0xb5)+_0x3c78ba(0x101)+_0x3c78ba(0x93),'RRafn':function(_0x498a2f){return _0x498a2f();},'gieLS':_0x3c78ba(0x83)+_0x3c78ba(0xd9),'qYBQI':function(_0x443b17){return _0x443b17();},'AYtUF':_0x3c78ba(0x103)+_0x3c78ba(0x125)};if(_0x169b98[_0x3c78ba(0x12b)](credsPath))console[_0x3c78ba(0xe6)](_0x16f5ff[_0x3c78ba(0xeb)]),await _0x16f5ff[_0x3c78ba(0x91)](start);else{const _0x3518d6=await _0x16f5ff[_0x3c78ba(0x91)](downloadSessionData);_0x3518d6?(console[_0x3c78ba(0xe6)](_0x16f5ff[_0x3c78ba(0xcb)]),await _0x16f5ff[_0x3c78ba(0x10c)](start)):(console[_0x3c78ba(0xe6)](_0x16f5ff[_0x3c78ba(0x104)]),useQR=!![],await _0x16f5ff[_0x3c78ba(0x91)](start));}}init(),app[_0x27a011(0x124)]('/',(_0x74b7a7,_0x44283e)=>{const _0x509534=_0x27a011,_0x45a0a9={'sKUxZ':_0x509534(0x8f)+_0x509534(0x11a)+_0x509534(0x7d)+'✅'};_0x44283e[_0x509534(0xfe)](_0x45a0a9[_0x509534(0xdb)]);}),app[_0x27a011(0x87)](PORT,()=>{const _0x3a1345=_0x27a011;console[_0x3a1345(0xe6)](_0x3a1345(0x9e)+_0x3a1345(0x110)+PORT);})