forked from Guru322/GURU-Ai
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Guru.js
1 lines (1 loc) · 38.7 KB
/
Guru.js
1
const _0x438c2c=_0xb9f9;(function(_0x3e99e7,_0xebd623){const _0x19a562=_0xb9f9;const _0x34bbdd=_0x3e99e7();while(!![]){try{const _0x5a7bb3=-parseInt(_0x19a562(0x113))/0x1+-parseInt(_0x19a562(0xf0))/0x2+-parseInt(_0x19a562(0x1da))/0x3+parseInt(_0x19a562(0x1d5))/0x4*(parseInt(_0x19a562(0x18c))/0x5)+parseInt(_0x19a562(0x154))/0x6+parseInt(_0x19a562(0x1ba))/0x7+parseInt(_0x19a562(0x1ca))/0x8*(-parseInt(_0x19a562(0x19d))/0x9);if(_0x5a7bb3===_0xebd623){break;}else{_0x34bbdd['push'](_0x34bbdd['shift']());}}catch(_0x4e567e){_0x34bbdd['push'](_0x34bbdd['shift']());}}}(_0xbb5b,0x5d37c));process[_0x438c2c(0x1ae)]['NODE_TLS_REJECT_UNAUTHORIZED']='0';import'./config.js';import{createRequire}from'module';import _0x47c416,{join}from'path';import{fileURLToPath,pathToFileURL}from'url';import _0x3dce2c from'./lib/tempclear.js';import _0x456c48 from'axios';import{platform}from'process';import _0x3c9962 from'dotenv';global[_0x438c2c(0x19a)]=function filename(_0x574755=import.meta['url'],_0xbd0800=platform!=='win32'){const _0x3ba730=_0x438c2c;const _0x383df9={'zftHx':function(_0x2836d6,_0x197976){return _0x2836d6(_0x197976);},'XequQ':function(_0x3ca887,_0x1acd4a){return _0x3ca887(_0x1acd4a);}};return _0xbd0800?/file:\/\/\//[_0x3ba730(0xc7)](_0x574755)?_0x383df9['zftHx'](fileURLToPath,_0x574755):_0x574755:_0x383df9[_0x3ba730(0x12b)](pathToFileURL,_0x574755)[_0x3ba730(0x10c)]();};global[_0x438c2c(0x179)]=function dirname(_0x186871){const _0x2282aa=_0x438c2c;return _0x47c416['dirname'](global[_0x2282aa(0x19a)](_0x186871,!![]));};global[_0x438c2c(0xa2)]=function require(_0x23639e=import.meta[_0x438c2c(0x1aa)]){const _0x5db17f=_0x438c2c;const _0x28b73d={'AaNxY':function(_0x376185,_0x832985){return _0x376185(_0x832985);}};return _0x28b73d[_0x5db17f(0xaa)](createRequire,_0x23639e);};global[_0x438c2c(0x18a)]=_0x438c2c(0x123);import*as _0x1a8e5f from'ws';import _0x5d42f0 from'cfonts';import{readdirSync,statSync,unlinkSync,existsSync,mkdirSync,readFileSync,rmSync,watch}from'fs';import _0x3c914f from'./lib/makesession.js';import _0x59c958 from'yargs';import{promisify}from'util';import{spawn}from'child_process';import _0x304ebc from'pino';import _0x60ba0c from'lodash';import _0x9f710a from'chalk';import _0x4e6927 from'syntax-error';import{tmpdir}from'os';import{format}from'util';import{Boom}from'@hapi/boom';import _0x12fee7 from'pino';import{makeWASocket,protoType,serialize}from'./lib/simple.js';import{Low,JSONFile}from'lowdb';import{MongoDB}from'./lib/mongoDB.js';import _0x1794b4 from'./lib/cloudDBAdapter.js';import _0x48e9fe from'node-cache';const {DisconnectReason,useMultiFileAuthState,MessageRetryMap,fetchLatestBaileysVersion,makeCacheableSignalKeyStore,makeInMemoryStore,proto,delay,jidNormalizedUser,PHONENUMBER_MCC,Browsers}=await(await import(_0x438c2c(0xb1)))['default'];import _0x4ae870 from'readline';import{parsePhoneNumber}from'libphonenumber-js';import _0x151900 from'./lib/helper.js';import _0x523aca from'emoji-regex';_0x3c9962['config']();async function main(){const _0x457a8d=_0x438c2c;const _0x3d694b={'tCwAa':_0x457a8d(0x1d4),'KaGwH':function(_0x502b71,_0xd91847){return _0x502b71(_0xd91847);},'SmsBg':_0x457a8d(0xa0),'FLDHG':_0x457a8d(0x190)};const _0x54abeb=process[_0x457a8d(0x1ae)][_0x457a8d(0x134)];if(!_0x54abeb){console['error'](_0x3d694b[_0x457a8d(0x155)]);return;}try{await _0x3d694b[_0x457a8d(0x157)](_0x3c914f,_0x54abeb);console[_0x457a8d(0x8c)](_0x3d694b[_0x457a8d(0x1cf)]);}catch(_0x24f737){console[_0x457a8d(0xea)](_0x3d694b[_0x457a8d(0x119)],_0x24f737);}}main();await delay(0x3e8*0xa);async function gandu(){const _0x5af112=_0x438c2c;const _0xf18f0d={'qGMql':'iukGV','NmLoV':_0x5af112(0xd4),'WVqDz':_0x5af112(0x17d),'onsJn':_0x5af112(0xae),'gfjQa':_0x5af112(0x1d2),'OqnLQ':'base64','lWviR':function(_0x4b2efd,_0x425ef9){return _0x4b2efd===_0x425ef9;},'QIOjQ':_0x5af112(0x1d6),'qIjiw':_0x5af112(0x1ce),'MfUQd':_0x5af112(0x190)};try{if(_0xf18f0d['qGMql']!==_0xf18f0d['qGMql']){_0x3ad095[_0x5af112(0x156)]=_0x39d090[_0x5af112(0x14e)](_0x504e49[_0x5af112(0x198)](_0x19abf2[_0x5af112(0x156)])[_0x5af112(0x161)](([_0x5b29ed],[_0x1b2596])=>_0x5b29ed[_0x5af112(0xbf)](_0x1b2596)));}else{const _0x49ff8d=readFileSync(_0xf18f0d[_0x5af112(0x118)],_0xf18f0d[_0x5af112(0x1d7)]);const _0x10ccc1=JSON['parse'](_0x49ff8d);const _0x17f6ab=_0x10ccc1['author']&&_0x10ccc1['author'][_0x5af112(0x148)];if(!_0x17f6ab){console[_0x5af112(0x8c)](_0xf18f0d[_0x5af112(0x1de)]);process[_0x5af112(0x183)](0x1);}const _0x56b45c=Buffer[_0x5af112(0x12d)](_0xf18f0d[_0x5af112(0x9d)],_0x5af112(0xb6))[_0x5af112(0x10c)]();const _0x500b7b=Buffer[_0x5af112(0x12d)]('Q2hlYXAgQ29weSBPZiBHdXJ1IEJvdCBGb3VuZCAsIFBsZWFzZSBVc2UgdGhlIE9yaWdpbmFsIEd1cnUgQm90IEZyb20gaHR0cHM6Ly9naXRodWIuY29tL0d1cnUzMjIvR1VSVS1CT1QK',_0xf18f0d['OqnLQ'])[_0x5af112(0x10c)]();const _0x2e8ee3=Buffer[_0x5af112(0x12d)]('U2VjdXJpdHkgY2hlY2sgcGFzc2VkLCBUaGFua3MgRm9yIHVzaW5nIEd1cnUgTXVsdGlEZXZpY2U=',_0xf18f0d['OqnLQ'])[_0x5af112(0x10c)]();if(_0x17f6ab&&_0x17f6ab[_0x5af112(0xe0)]()[_0x5af112(0x12a)]()!==_0x56b45c[_0x5af112(0x12a)]()){console['log'](_0x500b7b);process['exit'](0x1);}else{if(_0xf18f0d['lWviR'](_0xf18f0d[_0x5af112(0x147)],_0xf18f0d[_0x5af112(0x147)])){console[_0x5af112(0x8c)](''+_0x2e8ee3);console[_0x5af112(0x8c)](_0x9f710a['bgBlack'](_0x9f710a[_0x5af112(0xed)](_0xf18f0d['qIjiw'])));}else{return _0xc90d41(_0x5d32c6);}}}}catch(_0x5b6505){console[_0x5af112(0xea)](_0xf18f0d[_0x5af112(0x1df)],_0x5b6505);}}gandu();const pairingCode=!!global[_0x438c2c(0x19c)]||process[_0x438c2c(0x11a)][_0x438c2c(0x1ad)](_0x438c2c(0xac));const useMobile=process['argv'][_0x438c2c(0x1ad)](_0x438c2c(0xce));const useQr=process['argv']['includes']('--qr');const useStore=!![];const MAIN_LOGGER=_0x304ebc({'timestamp':()=>',\x22time\x22:\x22'+new Date()[_0x438c2c(0xbc)]()+'\x22'});const logger=MAIN_LOGGER[_0x438c2c(0x191)]({});logger[_0x438c2c(0x91)]=_0x438c2c(0x125);const store=useStore?makeInMemoryStore({'logger':logger}):undefined;store?.[_0x438c2c(0xe8)](_0x438c2c(0xc3));setInterval(()=>{const _0x5149bc=_0x438c2c;const _0x467bc2={'PzYJk':'./session.json'};store?.[_0x5149bc(0x12f)](_0x467bc2[_0x5149bc(0xc0)]);},0x2710*0x6);const msgRetryCounterCache=new _0x48e9fe();const rl=_0x4ae870[_0x438c2c(0x199)]({'input':process['stdin'],'output':process['stdout']});const question=_0x3f601d=>new Promise(_0x4695d4=>rl[_0x438c2c(0xe7)](_0x3f601d,_0x4695d4));const {CONNECTING}=_0x1a8e5f;const {chain}=_0x60ba0c;const PORT=process['env'][_0x438c2c(0xb5)]||process[_0x438c2c(0x1ae)][_0x438c2c(0xab)]||0xbb8;protoType();serialize();global[_0x438c2c(0xdc)]=(_0x129b69,_0x5abb6b='/',_0x2ff3e5={},_0x22b84f)=>(_0x129b69 in global['APIs']?global[_0x438c2c(0x1c0)][_0x129b69]:_0x129b69)+_0x5abb6b+(_0x2ff3e5||_0x22b84f?'?'+new URLSearchParams(Object[_0x438c2c(0x198)]({..._0x2ff3e5,..._0x22b84f?{[_0x22b84f]:global[_0x438c2c(0x10b)][_0x129b69 in global[_0x438c2c(0x1c0)]?global[_0x438c2c(0x1c0)][_0x129b69]:_0x129b69]}:{}})):'');global[_0x438c2c(0x176)]={'start':new Date()};const __dirname=global[_0x438c2c(0x179)](import.meta[_0x438c2c(0x1aa)]);global[_0x438c2c(0xcd)]=new Object(_0x59c958(process['argv']['slice'](0x2))['exitProcess'](![])['parse']());global[_0x438c2c(0xbe)]=new RegExp('^['+(process[_0x438c2c(0x1ae)]['PREFIX']||_0x438c2c(0xcb))[_0x438c2c(0x197)](/[|\\{}()[\]^$+*?.\-\^]/g,_0x438c2c(0xd2))+']');global[_0x438c2c(0xcd)]['db']=process[_0x438c2c(0x1ae)][_0x438c2c(0xdf)];global['db']=new Low(/https?:\/\//[_0x438c2c(0xc7)](opts['db']||'')?new _0x1794b4(opts['db']):/mongodb(\+srv)?:\/\//i['test'](opts['db'])?new MongoDB(opts['db']):new JSONFile((opts['_'][0x0]?opts['_'][0x0]+'_':'')+'database.json'));global['DATABASE']=global['db'];global['loadDatabase']=async function loadDatabase(){const _0x40f217=_0x438c2c;const _0x42ee1e={'hfbqi':function(_0x9506da,_0x15fe0a){return _0x9506da(_0x15fe0a);},'zFKDe':function(_0x2e6113,_0xd8ee51){return _0x2e6113==_0xd8ee51;},'LagWL':function(_0x479ec4,_0x201ef){return _0x479ec4!==_0x201ef;},'xMwKG':function(_0x3b0ec2,_0x11ba7b){return _0x3b0ec2(_0x11ba7b);}};if(global['db'][_0x40f217(0x1b1)])return new Promise(_0x11db04=>setInterval(async function(){const _0x5737f3=_0x40f217;if(!global['db']['READ']){_0x42ee1e[_0x5737f3(0x9c)](clearInterval,this);_0x42ee1e['hfbqi'](_0x11db04,_0x42ee1e[_0x5737f3(0x17a)](global['db'][_0x5737f3(0x192)],null)?global['loadDatabase']():global['db'][_0x5737f3(0x192)]);}},0x1*0x3e8));if(_0x42ee1e[_0x40f217(0x19f)](global['db'][_0x40f217(0x192)],null))return;global['db'][_0x40f217(0x1b1)]=!![];await global['db'][_0x40f217(0x9f)]()[_0x40f217(0x138)](console[_0x40f217(0xea)]);global['db'][_0x40f217(0x1b1)]=null;global['db']['data']={'users':{},'chats':{},'stats':{},'msgs':{},'sticker':{},'settings':{},...global['db'][_0x40f217(0x192)]||{}};global['db']['chain']=_0x42ee1e[_0x40f217(0x151)](chain,global['db'][_0x40f217(0x192)]);};loadDatabase();global[_0x438c2c(0xc8)]='session';function _0xbb5b(){const _0x2d81a5=['sdemote','pollUpdate','url','Please\x20type\x20your\x20WhatsApp\x20number','statusCode','includes','env','CHROME','isValid','READ','\x20Edit\x20Group\x20Info\x20has\x20been\x20restricted\x20to\x20admins\x20only!','presence.update','groupsUpdate','xNycf','frpdD','tbpdv','find','An\x20error\x20occurred\x20during\x20temporary\x20file\x20cleanup:','5136215eZoApQ','-filter_complex','OvMAn','WhkQX','\x20The\x20group\x20is\x20now\x20*OPEN*!\x0aAll\x20participants\x20can\x20send\x20messages.','wceVf','APIs','fFYCy','credsUpdate','sms','cyanBright','spawn','black','ZMIzz','support','Start\x20with\x20your\x20country\x27s\x20WhatsApp\x20code,\x20Example\x20:\x2062xxx','56svJCWH','gjwLT','countryCallingCode','bye','initializing\x20Guru\x20Bot','SmsBg','ddbtG','-hide_banner','Z3VydQ==','JkPsZ','Environment\x20variable\x20not\x20found.','13700LEgIrW','lSogv','WVqDz','finally','handler','604338ARnEIu','👋\x20GOODBYE\x20@user\x20','message','deleteUpdate','onsJn','MfUQd','default','phoneNumberCountryCode','SmcWv','NxRxi','log','RIHgh','Please\x20Enter\x20Your\x20OTP\x20Code','TDJug','creds','level','ScBHD','sSubject','message.delete','XEmWK','yellow','stopped','\x0aInvalid\x20phone\x20number:\x20','SuFmy','\x0aconnection\x20closed....\x20Trying\x20to\x20Restart','VBnzU','hfbqi','gfjQa','output','read','processTxtAndSaveCredentials\x20completed.','💬\x20','__require','CcNqp','payload','fgypK','nUIbF','sRevoke','promote','SdAKU','AaNxY','SERVER_PORT','--pairing-code','Please\x20type\x20your\x20WhatsApp\x20number\x20:\x20','LOl','greenBright','open','@whiskeysockets/baileys','\x0aNew\x20plugin\x20-\x20\x27','func','UpQDu','PORT','base64','zESds','join','OYYyv','match','isChats','toJSON','conn','prefix','localeCompare','PzYJk','-frames:v','sAKzt','./session.json','now','SctCs','SlwsX','test','authFolder','startsWith','DymNy','*/i!#$%+£¢€¥^°=¶∆×÷π√✓©®:;?&.\x5c-.@','messages.upsert','opts','--mobile','forEach','subject','ueMCg','\x5c$&','Hai🤩','package.json','UxYba','ZimJC','uLGQN','phoneNumberMobileCountryCode','welcome','VKBXM','RsFzc','API','groups.update','\x20The\x20group\x20is\x20now\x20*CLOSED*!\x0aOnly\x20admins\x20can\x20send\x20messages.','DATABASE_URL','trim','map','module','onHsB','HgOsi','\x0aFailed\x20to\x20request\x20registration\x20code.\x20Please\x20try\x20again.\x0a','ffmpeg','question','readFromFile','requestRegistrationCode','error','XtMLg','\x0aError\x20require\x20plugin\x20\x27','redBright','NTDbQ','VCNCE','1423648gilotk','lScLK','oZEXz','webp','send','huiex','some','./plugins/index','filter','presenceUpdate','-type','oyahH','oCZuN','requestPairingCode','ThfIx','bQsIP','\x20Edit\x20Group\x20Info\x20is\x20now\x20available\x20to\x20all\x20participants!','pbyCB','cWBjn','NebXA','messages.update','sFHfx','socket','sRestrictOff','jewhU','connectionUpdate','connection.update','APIKeys','toString','Start\x20with\x20your\x20country\x27s\x20WhatsApp\x20code,\x20Example\x2062xxx','CsrGR','demote','server','aHDli','?update=','662822dHUuvA','IWAWK','keys','authState','user','NmLoV','FLDHG','argv','\x20\x20\x20','OTNoH','uncaughtException','WTYVQ','@g.us','renbF','\x0aUpdated\x20plugin\x20-\x20\x27','📨\x20','https://www.guruapi.tech/api','icon','fatal','6|4|5|1|0|2|3|7','pre-key-','PdnxJ','ffprobe','toLowerCase','XequQ','HzYfC','from','hccih','writeToFile','reloadHandler','nFjGJ','color','WIwEP','SESSION_ID','kfPCB','\x0aSyntax\x20error\x20while\x20loading\x20\x27','autocleartmp','catch','RjCPo','PUUID','loadMessage','FBWGy','sRNji','rBgSt','SGtDR','-\x20Number','reload','isInit','jrZRQ','zjewo','sendMessage','./session','QIOjQ','name','EYxWw','\x0aLogging\x20in....','rgOec','Nivcj','WdhAe','fromEntries','LtZWM','ACPay','xMwKG','Your\x20Pairing\x20Code:','freeze','4375206WfeDEx','tCwAa','plugins','KaGwH','zzsoG','removeAllListeners','convert','phoneNumberNationalNumber','\x20The\x20group\x20title\x20has\x20been\x20changed\x20to:\x0a@group','method','PYaba','PwAkf','-delete','sort','chats','TJaUx','--version','\x0aDeleted\x20plugin\x20-\x20\x27','wfHTj','🖼️','What\x20method\x20do\x20you\x20want\x20to\x20use?\x20\x22sms\x22\x20or\x20\x22voice\x22','restrictOn','bold','GphJH','participantsUpdate','yVeTl','onDelete','info','byVSl','iTooj','Ufkfs','ubuntu','tmpdir','announceOn','timestamp','VrvMu','VSVtZ','__dirname','zFKDe','DArHM','-\x20Method','utf8','cyan','Temporary\x20file\x20cleanup\x20completed.','HvNMe','clNIw','bind','exit','tYaYX','store','👤🙅♂️','\x20Congrats\x20you\x20have\x20successfully\x20deployed\x20GURU-BOT\x0aJoin\x20my\x20support\x20Group\x20for\x20any\x20Query\x0a\x20https://chat.whatsapp.com/JY4R2D22pbLIKBMQWyBaLg','OmfCJ','logger','gurubot','revoke','1005mjRUKC','phoneNumber','rVlkA','ucqie','Error:','child','data','hPhjL','gpHhY','warn','off','replace','entries','createInterface','__filename','fUtpr','pairingNumber','248733yzqLnk','./handler.js?update=','LagWL','write','UVeeI','\x20Hello\x20@user!\x0a\x0a🎉\x20*WELCOME*\x20to\x20the\x20group\x20@group!\x0a\x0a📜\x20Please\x20read\x20the\x20*DESCRIPTION*\x20@desc.','close','Successfully\x20registered\x20your\x20phone\x20number.','endsWith','bgBlack','tmp'];_0xbb5b=function(){return _0x2d81a5;};return _0xbb5b();}const {state,saveCreds}=await useMultiFileAuthState(global[_0x438c2c(0xc8)]);let {version,isLatest}=await fetchLatestBaileysVersion();const connectionOptions={'version':version,'logger':_0x12fee7({'level':'fatal'}),'printQRInTerminal':!pairingCode,'mobile':useMobile,'browser':Browsers[_0x438c2c(0x173)](_0x438c2c(0x1af)),'auth':{'creds':state[_0x438c2c(0x90)],'keys':makeCacheableSignalKeyStore(state[_0x438c2c(0x115)],_0x12fee7()['child']({'level':'fatal','stream':_0x438c2c(0x185)}))},'markOnlineOnConnect':![],'generateHighQualityLinkPreview':!![],'getMessage':async _0x3850c4=>{const _0x22b3af=_0x438c2c;const _0x3f549f={'hccih':function(_0x1b224a,_0x224213){return _0x1b224a(_0x224213);}};let _0x3cffa6=_0x3f549f[_0x22b3af(0x12e)](jidNormalizedUser,_0x3850c4['remoteJid']);let _0x18c784=await store[_0x22b3af(0x13b)](_0x3cffa6,_0x3850c4['id']);return _0x18c784?.[_0x22b3af(0x1dc)]||'';},'msgRetryCounterCache':msgRetryCounterCache,'defaultQueryTimeoutMs':undefined};global[_0x438c2c(0xbd)]=makeWASocket(connectionOptions);conn[_0x438c2c(0x142)]=![];store?.[_0x438c2c(0x182)](conn['ev']);if(pairingCode&&!conn[_0x438c2c(0x116)][_0x438c2c(0x90)]['registered']){if(useMobile)throw new Error('Cannot\x20use\x20pairing\x20code\x20with\x20mobile\x20api');let phoneNumber;if(!!global[_0x438c2c(0x19c)]){phoneNumber=global['pairingNumber']['replace'](/[^0-9]/g,'');if(!Object[_0x438c2c(0x115)](PHONENUMBER_MCC)['some'](_0x1a2c02=>phoneNumber[_0x438c2c(0xc9)](_0x1a2c02))){console['log'](_0x9f710a[_0x438c2c(0x1a6)](_0x9f710a[_0x438c2c(0xed)]('Start\x20with\x20your\x20country\x27s\x20WhatsApp\x20code,\x20Example\x20:\x2062xxx')));process[_0x438c2c(0x183)](0x0);}}else{phoneNumber=await question(_0x9f710a[_0x438c2c(0x1a6)](_0x9f710a[_0x438c2c(0xaf)](_0x438c2c(0xad))));phoneNumber=phoneNumber[_0x438c2c(0x197)](/[^0-9]/g,'');if(!Object[_0x438c2c(0x115)](PHONENUMBER_MCC)['some'](_0x3f6f20=>phoneNumber['startsWith'](_0x3f6f20))){console[_0x438c2c(0x8c)](_0x9f710a[_0x438c2c(0x1a6)](_0x9f710a[_0x438c2c(0xed)](_0x438c2c(0x1c9))));phoneNumber=await question(_0x9f710a['bgBlack'](_0x9f710a[_0x438c2c(0xaf)](_0x438c2c(0xad))));phoneNumber=phoneNumber['replace'](/[^0-9]/g,'');rl[_0x438c2c(0x1a3)]();}}setTimeout(async()=>{const _0x571c96=_0x438c2c;const _0x42bd05={'Ufkfs':function(_0x3e9a42,_0x4b6143){return _0x3e9a42+_0x4b6143;}};let _0x39edb5=await conn[_0x571c96(0xfd)](phoneNumber);_0x39edb5=_0x39edb5?.[_0x571c96(0xba)](/.{1,4}/g)?.[_0x571c96(0xb8)]('-')||_0x39edb5;const _0x2d5a53=_0x42bd05[_0x571c96(0x172)](_0x9f710a[_0x571c96(0x16a)]['greenBright'](_0x571c96(0x152))+'\x20',_0x9f710a['bgGreenBright'](_0x9f710a[_0x571c96(0x1c6)](_0x39edb5)));console['log'](_0x2d5a53);},0xbb8);}if(useMobile&&!conn[_0x438c2c(0x116)][_0x438c2c(0x90)]['registered']){const {registration}=conn[_0x438c2c(0x116)][_0x438c2c(0x90)]||{'registration':{}};if(!registration[_0x438c2c(0x18d)]){console[_0x438c2c(0x8c)]('📨\x20'+_0x9f710a['redBright'](_0x438c2c(0x1ab))+':');let phoneNumber=await question(_0x438c2c(0x11b)+_0x9f710a[_0x438c2c(0x17e)](_0x438c2c(0x140))+':\x20');phoneNumber=phoneNumber[_0x438c2c(0x197)](/[^0-9]/g,'');if(!Object[_0x438c2c(0x115)](PHONENUMBER_MCC)[_0x438c2c(0xf6)](_0x33844d=>phoneNumber[_0x438c2c(0xc9)](_0x33844d))){console[_0x438c2c(0x8c)](_0x438c2c(0xa1)+_0x9f710a['redBright'](_0x438c2c(0x10d))+':');console[_0x438c2c(0x8c)]('📨\x20'+_0x9f710a[_0x438c2c(0xed)](_0x438c2c(0x1ab))+':');phoneNumber=await question('\x20\x20\x20'+_0x9f710a[_0x438c2c(0x17e)](_0x438c2c(0x140))+':\x20');phoneNumber=phoneNumber['replace'](/[^0-9]/g,'');}registration['phoneNumber']='+'+phoneNumber;}const phoneNumber=parsePhoneNumber(registration[_0x438c2c(0x18d)]);if(!phoneNumber[_0x438c2c(0x1b0)]())conn[_0x438c2c(0x189)][_0x438c2c(0xea)](_0x438c2c(0x98)+registration['phoneNumber']);registration[_0x438c2c(0x18d)]=phoneNumber['format']('E.164');registration[_0x438c2c(0x89)]=phoneNumber[_0x438c2c(0x1cc)];registration[_0x438c2c(0x15b)]=phoneNumber['nationalNumber'];const mcc=PHONENUMBER_MCC[phoneNumber[_0x438c2c(0x1cc)]];registration[_0x438c2c(0xd8)]=mcc;async function enterCode(){const _0x17899a=_0x438c2c;const _0x16763e={'NxRxi':_0x17899a(0x8e),'bQsIP':'-\x20Code','sAKzt':_0x17899a(0x1a4),'rgOec':'\x0aFailed\x20to\x20register\x20your\x20phone\x20number.\x20Please\x20try\x20again.\x0a','TbGFT':function(_0x2daac5){return _0x2daac5();}};try{console['log'](_0x17899a(0x122)+_0x9f710a[_0x17899a(0xed)](_0x16763e[_0x17899a(0x8b)])+':');const _0x279a3c=await question(_0x17899a(0x11b)+_0x9f710a['cyan'](_0x16763e[_0x17899a(0xff)])+':\x20');const _0x5c5458=await conn['register'](_0x279a3c[_0x17899a(0x197)](/[^0-9]/g,'')[_0x17899a(0xe0)]()[_0x17899a(0x12a)]());console[_0x17899a(0x8c)](_0x17899a(0xa1)+_0x9f710a['redBright'](_0x16763e[_0x17899a(0xc2)]));console[_0x17899a(0x8c)](_0x5c5458);rl['close']();}catch(_0x4fe64c){conn[_0x17899a(0x189)][_0x17899a(0xea)](_0x16763e[_0x17899a(0x14b)],_0x4fe64c);await _0x16763e['TbGFT'](askOTP);}}async function askOTP(){const _0x391af4=_0x438c2c;const _0x55beca={'oCZuN':_0x391af4(0x1c9),'CsrGR':_0x391af4(0x168),'eJJie':function(_0x4e4d0d,_0x3aa371){return _0x4e4d0d(_0x3aa371);},'huiex':function(_0x14b366,_0x2f2ef8){return _0x14b366!==_0x2f2ef8;},'rBgSt':_0x391af4(0x1c3),'kVFZi':'voice','UpQDu':function(_0xddc9b5){return _0xddc9b5();},'HzYfC':function(_0x3488de,_0x191c61){return _0x3488de!==_0x191c61;},'xTEti':_0x391af4(0x18f)};console[_0x391af4(0x8c)]('📨\x20'+_0x9f710a[_0x391af4(0xed)](_0x55beca[_0x391af4(0x10e)]));let _0x27b7bc=await _0x55beca['eJJie'](question,_0x391af4(0x11b)+_0x9f710a['cyan'](_0x391af4(0x17c))+':\x20');_0x27b7bc=_0x27b7bc['replace'](/["']/g,'')[_0x391af4(0xe0)]()[_0x391af4(0x12a)]();if(_0x55beca[_0x391af4(0xf5)](_0x27b7bc,_0x55beca[_0x391af4(0x13e)])&&_0x27b7bc!==_0x55beca['kVFZi'])return await askOTP();registration[_0x391af4(0x15d)]=_0x27b7bc;try{await conn[_0x391af4(0xe9)](registration);await _0x55beca[_0x391af4(0xb4)](enterCode);}catch(_0xd64738){if(_0x55beca[_0x391af4(0x12c)](_0x55beca['xTEti'],'ucqie')){_0x206353=_0x17f322[_0x391af4(0x19c)][_0x391af4(0x197)](/[^0-9]/g,'');if(!_0x26b172[_0x391af4(0x115)](_0x4cda99)['some'](_0xb02d56=>_0x2e54ae[_0x391af4(0xc9)](_0xb02d56))){_0x5bb791['log'](_0x138a3c[_0x391af4(0x1a6)](_0x1b7c67[_0x391af4(0xed)](_0x55beca[_0x391af4(0xfc)])));_0x54a659[_0x391af4(0x183)](0x0);}}else{conn[_0x391af4(0x189)][_0x391af4(0xea)](_0x391af4(0xe5),_0xd64738);await _0x55beca[_0x391af4(0xb4)](askOTP);}}}await askOTP();}conn[_0x438c2c(0x189)][_0x438c2c(0x16f)]('\x0aWaiting\x20For\x20Login\x0a');if(!opts['test']){if(global['db']){setInterval(async()=>{const _0x549cc7=_0x438c2c;if(global['db'][_0x549cc7(0x192)])await global['db'][_0x549cc7(0x1a0)]();if(opts[_0x549cc7(0x137)]&&(global[_0x549cc7(0x1c8)]||{})[_0x549cc7(0x1b8)])tmp=[os[_0x549cc7(0x174)](),_0x549cc7(0x1a7)],tmp[_0x549cc7(0xcf)](_0x52ed16=>cp[_0x549cc7(0x1c5)](_0x549cc7(0x1b8),[_0x52ed16,'-amin','3',_0x549cc7(0xfa),'f',_0x549cc7(0x160)]));},0x1e*0x3e8);}}if(opts[_0x438c2c(0x110)])(await import('./server.js'))[_0x438c2c(0x88)](global[_0x438c2c(0xbd)],PORT);function runCleanup(){const _0x310355=_0x438c2c;const _0x5c2986={'kfPCB':_0x310355(0xca),'PUUID':_0x310355(0x1b9),'rcWPI':function(_0x14dfa6,_0x3ccd90,_0x444bc6){return _0x14dfa6(_0x3ccd90,_0x444bc6);},'TJaUx':function(_0x26d4d1,_0x43717b){return _0x26d4d1*_0x43717b;}};_0x3dce2c()['then'](()=>{const _0x57826a=_0x310355;const _0x52dc8b={'HvNMe':_0x57826a(0x1c9)};if(_0x5c2986['kfPCB']===_0x5c2986[_0x57826a(0x135)]){console[_0x57826a(0x8c)](_0x57826a(0x17f));}else{_0x298914[_0x57826a(0x8c)](_0x528604[_0x57826a(0x1a6)](_0x3b6920['redBright'](_0x52dc8b[_0x57826a(0x180)])));_0x2049c5[_0x57826a(0x183)](0x0);}})[_0x310355(0x138)](_0x3d5525=>{const _0xfe8957=_0x310355;console[_0xfe8957(0xea)](_0x5c2986[_0xfe8957(0x13a)],_0x3d5525);})[_0x310355(0x1d8)](()=>{const _0x156975=_0x310355;_0x5c2986['rcWPI'](setTimeout,runCleanup,_0x5c2986[_0x156975(0x163)](0x3e8,0x3c)*0x2);});}runCleanup();function _0xb9f9(_0x614259,_0x135d97){const _0xbb5bad=_0xbb5b();_0xb9f9=function(_0xb9f964,_0x2455f2){_0xb9f964=_0xb9f964-0x88;let _0x9de6bb=_0xbb5bad[_0xb9f964];return _0x9de6bb;};return _0xb9f9(_0x614259,_0x135d97);}function purgeSession(){const _0x445d07=_0x438c2c;const _0x556805={'xkVZA':_0x445d07(0x127),'OYYyv':function(_0x202c56,_0x3ee067){return _0x202c56===_0x3ee067;},'hPhjL':_0x445d07(0x144),'VSVtZ':function(_0x1774c8,_0x1326a9){return _0x1774c8(_0x1326a9);},'SmcWv':function(_0x4fe9a8,_0x19af0d){return _0x4fe9a8(_0x19af0d);},'NTDbQ':_0x445d07(0x146)};let _0x130e67=[];const _0x55e13f=_0x556805[_0x445d07(0x8a)](readdirSync,_0x556805[_0x445d07(0xee)]);const _0x30e533=_0x55e13f[_0x445d07(0xf8)](_0x446066=>{const _0x1387c3=_0x445d07;return _0x446066[_0x1387c3(0xc9)](_0x556805['xkVZA']);});_0x130e67=[..._0x130e67,..._0x30e533];_0x30e533[_0x445d07(0xcf)](_0x2bb087=>{const _0x2fc2c2=_0x445d07;if(_0x556805[_0x2fc2c2(0xb9)](_0x556805[_0x2fc2c2(0x193)],_0x556805[_0x2fc2c2(0x193)])){_0x556805[_0x2fc2c2(0x178)](unlinkSync,'./session/'+_0x2bb087);}else{_0x38ef7a[_0x2fc2c2(0x189)][_0x2fc2c2(0x195)]('\x0aDeleted\x20plugin\x20-\x20\x27'+_0x3f9e96+'\x27');return delete _0x57db85['plugins'][_0x4a4393];}});}async function connectionUpdate(_0x3d3f17){const _0x2c0f9a=_0x438c2c;const _0x255be0={'OvMAn':function(_0x57d509,_0x4091f1){return _0x57d509==_0x4091f1;},'JkPsZ':function(_0x12bf16){return _0x12bf16();},'byVSl':function(_0x5412b7,_0x260ee7){return _0x5412b7&&_0x260ee7;},'ueMCg':function(_0x1cb472,_0x21a3a0){return _0x1cb472!=_0x21a3a0;},'OmfCJ':_0x2c0f9a(0x14a),'PdnxJ':function(_0x130aaf,_0x19f865){return _0x130aaf===_0x19f865;},'frpdD':'\x0a🚩\x20R\x20E\x20A\x20D\x20Y','cWBjn':_0x2c0f9a(0x1a3),'tJDhs':'reset'};const {connection:_0x313273,lastDisconnect:_0x3448ad,isNewLogin:_0x26d9e1,qr:_0x168288}=_0x3d3f17;global[_0x2c0f9a(0x97)]=_0x313273;if(_0x26d9e1)conn[_0x2c0f9a(0x142)]=!![];const _0x38a63a=_0x3448ad?.[_0x2c0f9a(0xea)]?.[_0x2c0f9a(0x9e)]?.[_0x2c0f9a(0x1ac)]||_0x3448ad?.[_0x2c0f9a(0xea)]?.[_0x2c0f9a(0x9e)]?.[_0x2c0f9a(0xa4)]?.[_0x2c0f9a(0x1ac)];if(_0x38a63a&&_0x38a63a!==DisconnectReason['loggedOut']&&_0x255be0[_0x2c0f9a(0x1bc)](conn?.['ws'][_0x2c0f9a(0x106)],null)){conn[_0x2c0f9a(0x189)]['info'](await global[_0x2c0f9a(0x130)](!![])[_0x2c0f9a(0x138)](console[_0x2c0f9a(0xea)]));}if(_0x255be0[_0x2c0f9a(0x1bc)](global['db']['data'],null))_0x255be0[_0x2c0f9a(0x1d3)](loadDatabase);if(_0x255be0[_0x2c0f9a(0x170)](!pairingCode,!useMobile)&&useQr&&_0x255be0[_0x2c0f9a(0xd1)](_0x168288,0x0)&&_0x255be0[_0x2c0f9a(0xd1)](_0x168288,undefined)){conn[_0x2c0f9a(0x189)][_0x2c0f9a(0x16f)](_0x9f710a[_0x2c0f9a(0x96)](_0x255be0[_0x2c0f9a(0x188)]));}if(_0x255be0[_0x2c0f9a(0x128)](_0x313273,_0x2c0f9a(0xb0))){const {jid:_0x4724b2,name:_0x40fb29}=conn[_0x2c0f9a(0x117)];let _0x573f9e=_0x2c0f9a(0xd3)+_0x40fb29+_0x2c0f9a(0x187);let _0x2f0750=conn[_0x2c0f9a(0x145)](_0x4724b2,{'text':_0x573f9e,'mentions':[_0x4724b2]},{'quoted':null});conn[_0x2c0f9a(0x189)][_0x2c0f9a(0x16f)](_0x9f710a[_0x2c0f9a(0x96)](_0x255be0[_0x2c0f9a(0x1b6)]));}if(_0x255be0[_0x2c0f9a(0x1bc)](_0x313273,_0x255be0[_0x2c0f9a(0x102)])){conn[_0x2c0f9a(0x189)]['error'](_0x9f710a[_0x2c0f9a(0x96)](_0x2c0f9a(0x9a)));process[_0x2c0f9a(0xf4)](_0x255be0['tJDhs']);}}process['on'](_0x438c2c(0x11d),console['error']);let isInit=!![];let handler=await import('./handler.js');global[_0x438c2c(0x130)]=async function(_0x5cd59c){const _0xc84fd3=_0x438c2c;const _0x5abf89={'QsVvJ':_0xc84fd3(0x1ce),'fgypK':_0xc84fd3(0xea),'ddbtG':_0xc84fd3(0x17f),'aHDli':function(_0xc61048,_0x1eac99){return _0xc61048||_0x1eac99;},'VTwGB':function(_0xb1f2d8,_0x14a488){return _0xb1f2d8!==_0x14a488;},'SlwsX':'vpzGZ','NDUQi':_0xc84fd3(0x149),'CcNqp':function(_0x23ee47,_0xdae002){return _0x23ee47===_0xdae002;},'PwAkf':_0xc84fd3(0x139),'SctCs':_0xc84fd3(0x94),'XtMLg':_0xc84fd3(0x1b3),'xNycf':_0xc84fd3(0x10a),'VCNCE':'group-participants.update','xHCdy':_0xc84fd3(0xcc),'Nivcj':'creds.update','VKBXM':_0xc84fd3(0x186),'PYaba':_0xc84fd3(0x167),'ThfIx':function(_0x167019,_0x350431){return _0x167019>=_0x350431;},'XWUio':function(_0x4adaa0,_0x1b7c27){return _0x4adaa0!==_0x1b7c27;},'hbULy':_0xc84fd3(0xf1),'knwKm':_0xc84fd3(0x17b),'nFjGJ':'messages.update','zESds':_0xc84fd3(0xdd)};try{const _0x3dd72f=await import(_0xc84fd3(0x19e)+Date[_0xc84fd3(0xc4)]())['catch'](console[_0xc84fd3(0xea)]);if(Object[_0xc84fd3(0x115)](_0x5abf89[_0xc84fd3(0x111)](_0x3dd72f,{}))['length'])handler=_0x3dd72f;}catch(_0x1fa846){console[_0xc84fd3(0xea)];}if(_0x5cd59c){if(_0x5abf89['VTwGB'](_0x5abf89[_0xc84fd3(0xc6)],_0xc84fd3(0x158))){const _0x27a9d7=global[_0xc84fd3(0xbd)]['chats'];try{if(_0x5abf89['NDUQi']!==_0xc84fd3(0x8f)){global[_0xc84fd3(0xbd)]['ws'][_0xc84fd3(0x1a3)]();}else{_0x3a7cf8[_0xc84fd3(0x8c)](''+_0x401676);_0x314d7b[_0xc84fd3(0x8c)](_0x34cb44[_0xc84fd3(0x1a6)](_0x38e111[_0xc84fd3(0xed)](_0x5abf89['QsVvJ'])));}}catch{}conn['ev'][_0xc84fd3(0x159)]();global[_0xc84fd3(0xbd)]=makeWASocket(connectionOptions,{'chats':_0x27a9d7});isInit=!![];}else{_0x57ec90['on'](_0x5abf89[_0xc84fd3(0xa5)],_0x24b147=>_0xc52bb5(![]));}}if(!isInit){if(_0x5abf89[_0xc84fd3(0xa3)](_0x5abf89[_0xc84fd3(0x15f)],_0xc84fd3(0x184))){const _0x4719b8=_0x592450[_0xc84fd3(0x198)](_0xa98aa8['chats'])['filter'](([_0x4aec2d,_0x3c379f])=>!_0x4aec2d[_0xc84fd3(0x1a5)](_0xc84fd3(0x11f))&&_0x3c379f[_0xc84fd3(0xbb)])['map'](_0x380fb0=>_0x380fb0[0x0]);}else{const _0x513b93=_0xc84fd3(0x126)['split']('|');let _0x3f31c3=0x0;while(!![]){switch(_0x513b93[_0x3f31c3++]){case'0':conn['ev'][_0xc84fd3(0x196)](_0x5abf89[_0xc84fd3(0xc5)],conn['onDelete']);continue;case'1':conn['ev']['off'](_0xc84fd3(0xdd),conn[_0xc84fd3(0x1b4)]);continue;case'2':conn['ev']['off'](_0x5abf89['XtMLg'],conn['presenceUpdate']);continue;case'3':conn['ev'][_0xc84fd3(0x196)](_0x5abf89[_0xc84fd3(0x1b5)],conn[_0xc84fd3(0x109)]);continue;case'4':conn['ev']['off'](_0xc84fd3(0x104),conn['pollUpdate']);continue;case'5':conn['ev'][_0xc84fd3(0x196)](_0x5abf89[_0xc84fd3(0xef)],conn[_0xc84fd3(0x16c)]);continue;case'6':conn['ev'][_0xc84fd3(0x196)](_0x5abf89['xHCdy'],conn[_0xc84fd3(0x1d9)]);continue;case'7':conn['ev'][_0xc84fd3(0x196)](_0x5abf89[_0xc84fd3(0x14c)],conn[_0xc84fd3(0x1c2)]);continue;}break;}}}const _0x54c124={'welcome':'👋','bye':'👋','promote':'👤👑','demote':_0x5abf89[_0xc84fd3(0xda)],'desc':'📝','subject':'📌','icon':_0x5abf89[_0xc84fd3(0x15e)],'revoke':'🔗','announceOn':'🔒','announceOff':'🔓','restrictOn':'🚫','restrictOff':'✅'};conn[_0xc84fd3(0xd9)]=_0x54c124['welcome']+_0xc84fd3(0x1a2);conn[_0xc84fd3(0x1cd)]=_0xc84fd3(0x1db)+_0x54c124[_0xc84fd3(0x1cd)]+'\x0a\x0aSee\x20you\x20later!';conn['spromote']=_0x54c124[_0xc84fd3(0xa8)]+'*@user*\x20has\x20been\x20promoted\x20to\x20an\x20admin!';conn[_0xc84fd3(0x1a8)]=_0x54c124[_0xc84fd3(0x10f)]+'*@user*\x20is\x20no\x20longer\x20an\x20admin.';conn['sDesc']=_0x54c124['desc']+'\x20The\x20group\x20description\x20has\x20been\x20updated\x20to:\x0a@desc';conn[_0xc84fd3(0x93)]=_0x54c124[_0xc84fd3(0xd0)]+_0xc84fd3(0x15c);conn['sIcon']=_0x54c124[_0xc84fd3(0x124)]+'\x20The\x20group\x20icon\x20has\x20been\x20updated!';conn[_0xc84fd3(0xa7)]=_0x54c124[_0xc84fd3(0x18b)]+'\x20The\x20group\x20link\x20has\x20been\x20changed\x20to:\x0a@revoke';conn['sAnnounceOn']=_0x54c124[_0xc84fd3(0x175)]+_0xc84fd3(0xde);conn['sAnnounceOff']=_0x54c124['announceOff']+_0xc84fd3(0x1be);conn['sRestrictOn']=_0x54c124[_0xc84fd3(0x169)]+_0xc84fd3(0x1b2);conn[_0xc84fd3(0x107)]=_0x54c124['restrictOff']+_0xc84fd3(0x100);conn[_0xc84fd3(0x1d9)]=handler[_0xc84fd3(0x1d9)]['bind'](global[_0xc84fd3(0xbd)]);conn[_0xc84fd3(0x1a9)]=handler['pollUpdate'][_0xc84fd3(0x182)](global[_0xc84fd3(0xbd)]);conn[_0xc84fd3(0x16c)]=handler[_0xc84fd3(0x16c)][_0xc84fd3(0x182)](global[_0xc84fd3(0xbd)]);conn[_0xc84fd3(0x1b4)]=handler[_0xc84fd3(0x1b4)][_0xc84fd3(0x182)](global['conn']);conn[_0xc84fd3(0x16e)]=handler[_0xc84fd3(0x1dd)][_0xc84fd3(0x182)](global[_0xc84fd3(0xbd)]);conn['presenceUpdate']=handler['presenceUpdate'][_0xc84fd3(0x182)](global[_0xc84fd3(0xbd)]);conn[_0xc84fd3(0x109)]=connectionUpdate[_0xc84fd3(0x182)](global[_0xc84fd3(0xbd)]);conn[_0xc84fd3(0x1c2)]=saveCreds[_0xc84fd3(0x182)](global[_0xc84fd3(0xbd)],!![]);const _0x51d78b=new Date();const _0x27167c=new Date(conn['ev']);if(_0x5abf89[_0xc84fd3(0xfe)](_0x51d78b,_0x27167c)){const _0x491ee3=Object[_0xc84fd3(0x198)](conn['chats'])[_0xc84fd3(0xf8)](([_0x294372,_0x1faa20])=>!_0x294372[_0xc84fd3(0x1a5)](_0xc84fd3(0x11f))&&_0x1faa20['isChats'])[_0xc84fd3(0xe1)](_0x5f0225=>_0x5f0225[0x0]);}else{if(_0x5abf89['XWUio'](_0x5abf89['hbULy'],_0x5abf89['knwKm'])){const _0x3899fa=Object[_0xc84fd3(0x198)](conn[_0xc84fd3(0x162)])[_0xc84fd3(0xf8)](([_0x446af4,_0x3d6153])=>!_0x446af4[_0xc84fd3(0x1a5)](_0xc84fd3(0x11f))&&_0x3d6153['isChats'])['map'](_0x48192f=>_0x48192f[0x0]);}else{_0x55916d[_0xc84fd3(0x8c)](_0x5abf89[_0xc84fd3(0x1d0)]);}}conn['ev']['on']('messages.upsert',conn[_0xc84fd3(0x1d9)]);conn['ev']['on'](_0x5abf89[_0xc84fd3(0x131)],conn[_0xc84fd3(0x1a9)]);conn['ev']['on'](_0x5abf89[_0xc84fd3(0xef)],conn[_0xc84fd3(0x16c)]);conn['ev']['on'](_0x5abf89[_0xc84fd3(0xb7)],conn[_0xc84fd3(0x1b4)]);conn['ev']['on'](_0x5abf89['SctCs'],conn['onDelete']);conn['ev']['on'](_0x5abf89[_0xc84fd3(0xeb)],conn[_0xc84fd3(0xf9)]);conn['ev']['on'](_0x5abf89['xNycf'],conn[_0xc84fd3(0x109)]);conn['ev']['on'](_0x5abf89[_0xc84fd3(0x14c)],conn[_0xc84fd3(0x1c2)]);isInit=![];return!![];};const pluginFolder=global[_0x438c2c(0x179)](join(__dirname,_0x438c2c(0xf7)));const pluginFilter=_0x58559d=>/\.js$/[_0x438c2c(0xc7)](_0x58559d);global[_0x438c2c(0x156)]={};async function filesInit(){const _0x463bbd=_0x438c2c;const _0x19304d={'VrvMu':function(_0x3c9113,_0x103d1c){return _0x3c9113(_0x103d1c);},'fUtpr':function(_0x7fe980,_0x20bd6f){return _0x7fe980(_0x20bd6f);},'iTooj':_0x463bbd(0x13d),'BgVKL':_0x463bbd(0x120),'HgOsi':_0x463bbd(0x16b)};for(const _0x5e3d44 of _0x19304d[_0x463bbd(0x19b)](readdirSync,pluginFolder)[_0x463bbd(0xf8)](pluginFilter)){try{if(_0x463bbd(0x13d)!==_0x19304d[_0x463bbd(0x171)]){_0x20f295['log'](_0x964d4d);_0x3beff1[_0x463bbd(0x183)](0x1);}else{const _0x8d1ed8=global[_0x463bbd(0x19a)](join(pluginFolder,_0x5e3d44));const _0x545795=await import(_0x8d1ed8);global[_0x463bbd(0x156)][_0x5e3d44]=_0x545795[_0x463bbd(0x88)]||_0x545795;}}catch(_0x2c1d09){if(_0x19304d['BgVKL']!==_0x19304d[_0x463bbd(0xe4)]){conn[_0x463bbd(0x189)][_0x463bbd(0xea)](_0x2c1d09);delete global[_0x463bbd(0x156)][_0x5e3d44];}else{_0x87e405[_0x463bbd(0x189)]['error'](_0x463bbd(0xec)+_0x45c174+'\x0a'+_0x19304d[_0x463bbd(0x177)](_0x146d05,_0x382cd4)+'\x27');}}}}filesInit()['then'](_0x153d6b=>Object[_0x438c2c(0x115)](global['plugins']))[_0x438c2c(0x138)](console[_0x438c2c(0xea)]);global['reload']=async(_0x608cd0,_0x248e40)=>{const _0x541b63=_0x438c2c;const _0xf4f9d4={'SIYCQ':_0x541b63(0x190),'vclDv':_0x541b63(0x17f),'clNIw':_0x541b63(0x1b9),'PMDJA':function(_0x10d3e3,_0xf8de38,_0x1af349){return _0x10d3e3(_0xf8de38,_0x1af349);},'sFHfx':function(_0x364023,_0x2d82d2){return _0x364023*_0x2d82d2;},'jewhU':function(_0x5ccb7f){return _0x5ccb7f();},'ZMIzz':function(_0x15844c,_0x47ad0d){return _0x15844c(_0x47ad0d);},'UVeeI':function(_0x97bc32,_0x3c89de){return _0x97bc32!==_0x3c89de;},'SGtDR':_0x541b63(0x194),'FBWGy':function(_0x2e4392,_0x61a75c,_0x131bbe,_0x43cd35){return _0x2e4392(_0x61a75c,_0x131bbe,_0x43cd35);},'jrZRQ':function(_0x4bdeca,_0x8a8f50){return _0x4bdeca(_0x8a8f50);},'ZimJC':_0x541b63(0xe2),'WdhAe':function(_0x574fb3,_0xde5130){return _0x574fb3!==_0xde5130;},'uLGQN':_0x541b63(0x8d),'rVlkA':_0x541b63(0x9b),'fFYCy':function(_0x411756,_0x2af297){return _0x411756(_0x2af297);}};if(_0xf4f9d4[_0x541b63(0x1c7)](pluginFilter,_0x248e40)){const _0x5c5842=global[_0x541b63(0x19a)](_0xf4f9d4['PMDJA'](join,pluginFolder,_0x248e40),!![]);if(_0x248e40 in global['plugins']){if(_0xf4f9d4[_0x541b63(0x1c7)](existsSync,_0x5c5842))conn[_0x541b63(0x189)][_0x541b63(0x16f)](_0x541b63(0x121)+_0x248e40+'\x27');else{if(_0xf4f9d4[_0x541b63(0x1a1)](_0xf4f9d4[_0x541b63(0x13f)],_0x541b63(0x194))){_0x234316[_0x541b63(0xea)](_0xf4f9d4['SIYCQ'],_0xd898e2);}else{conn[_0x541b63(0x189)][_0x541b63(0x195)](_0x541b63(0x165)+_0x248e40+'\x27');return delete global[_0x541b63(0x156)][_0x248e40];}}}else conn[_0x541b63(0x189)][_0x541b63(0x16f)](_0x541b63(0xb2)+_0x248e40+'\x27');const _0x4140b=_0xf4f9d4[_0x541b63(0x13c)](_0x4e6927,_0xf4f9d4[_0x541b63(0x143)](readFileSync,_0x5c5842),_0x248e40,{'sourceType':_0xf4f9d4[_0x541b63(0xd6)],'allowAwaitOutsideFunction':!![]});if(_0x4140b)conn[_0x541b63(0x189)][_0x541b63(0xea)](_0x541b63(0x136)+_0x248e40+'\x27\x0a'+_0xf4f9d4[_0x541b63(0x143)](format,_0x4140b));else{try{const _0xa81d16=await import(global[_0x541b63(0x19a)](_0x5c5842)+_0x541b63(0x112)+Date[_0x541b63(0xc4)]());global[_0x541b63(0x156)][_0x248e40]=_0xa81d16['default']||_0xa81d16;}catch(_0x2126da){if(_0xf4f9d4[_0x541b63(0x14d)](_0xf4f9d4[_0x541b63(0xd7)],_0xf4f9d4[_0x541b63(0x18e)])){conn['logger'][_0x541b63(0xea)]('\x0aError\x20require\x20plugin\x20\x27'+_0x248e40+'\x0a'+_0xf4f9d4[_0x541b63(0x1c1)](format,_0x2126da)+'\x27');}else{const _0xad2813={'OTNoH':_0xf4f9d4['vclDv'],'egcsa':_0xf4f9d4[_0x541b63(0x181)],'onHsB':function(_0x5d4ea5,_0x3be220,_0x549477){return _0xf4f9d4['PMDJA'](_0x5d4ea5,_0x3be220,_0x549477);},'IWAWK':function(_0x1d0b15,_0x5a1557){const _0x421a09=_0x541b63;return _0xf4f9d4[_0x421a09(0x105)](_0x1d0b15,_0x5a1557);},'RsFzc':function(_0xac2a8d,_0x40b3b2){const _0x225e52=_0x541b63;return _0xf4f9d4[_0x225e52(0x105)](_0xac2a8d,_0x40b3b2);}};_0xf4f9d4[_0x541b63(0x108)](_0x191596)['then'](()=>{const _0x2feea2=_0x541b63;_0x2db964[_0x2feea2(0x8c)](_0xad2813[_0x2feea2(0x11c)]);})[_0x541b63(0x138)](_0xf6f500=>{_0x2bca2a['error'](_0xad2813['egcsa'],_0xf6f500);})[_0x541b63(0x1d8)](()=>{const _0x567cca=_0x541b63;_0xad2813[_0x567cca(0xe3)](_0x475750,_0x264474,_0xad2813[_0x567cca(0x114)](_0xad2813[_0x567cca(0xdb)](0x3e8,0x3c),0x2));});}}finally{global[_0x541b63(0x156)]=Object['fromEntries'](Object['entries'](global[_0x541b63(0x156)])[_0x541b63(0x161)](([_0x3a5464],[_0x474a1b])=>_0x3a5464[_0x541b63(0xbf)](_0x474a1b)));}}}};Object[_0x438c2c(0x153)](global[_0x438c2c(0x141)]);watch(pluginFolder,global[_0x438c2c(0x141)]);await global[_0x438c2c(0x130)]();async function _quickTest(){const _0xcf21ef=_0x438c2c;const _0x2796ed={'wceVf':'close','oyahH':_0xcf21ef(0xea),'RzseW':function(_0x13af31,_0x18f485){return _0x13af31!==_0x18f485;},'NYiIa':function(_0x5189aa,_0x4d8dce){return _0x5189aa===_0x4d8dce;},'LtZWM':_0xcf21ef(0x1cb),'yVeTl':function(_0x5e2123,_0x3b41ad){return _0x5e2123(_0x3b41ad);},'ufAOI':_0xcf21ef(0xe6),'ZIVVk':_0xcf21ef(0x129),'XEmWK':function(_0x4043ff,_0x1896bc,_0x21c1f0){return _0x4043ff(_0x1896bc,_0x21c1f0);},'dKfTl':_0xcf21ef(0x1d1),'SuFmy':'-loglevel','ACPay':_0xcf21ef(0x1bb),'nUIbF':_0xcf21ef(0xc1),'RWrPl':_0xcf21ef(0xf3),'WhkQX':_0xcf21ef(0x15a),'oZEXz':'magick','tlriV':function(_0x2bc950,_0x8f90f7){return _0x2bc950(_0x8f90f7);},'SdAKU':_0xcf21ef(0x1b8)};const _0x5f3acf=await Promise['all']([_0x2796ed[_0xcf21ef(0x16d)](spawn,_0x2796ed['ufAOI']),_0x2796ed[_0xcf21ef(0x16d)](spawn,_0x2796ed['ZIVVk']),_0x2796ed[_0xcf21ef(0x95)](spawn,'ffmpeg',[_0x2796ed['dKfTl'],_0x2796ed[_0xcf21ef(0x99)],_0x2796ed['oyahH'],_0x2796ed[_0xcf21ef(0x150)],_0xcf21ef(0x132),_0x2796ed[_0xcf21ef(0xa6)],'1','-f',_0x2796ed['RWrPl'],'-']),_0x2796ed[_0xcf21ef(0x16d)](spawn,_0x2796ed[_0xcf21ef(0x1bd)]),_0x2796ed[_0xcf21ef(0x16d)](spawn,_0x2796ed[_0xcf21ef(0xf2)]),_0x2796ed['tlriV'](spawn,'gm'),_0x2796ed['XEmWK'](spawn,_0x2796ed[_0xcf21ef(0xa9)],[_0xcf21ef(0x164)])]['map'](_0x40e4c8=>{const _0x4a4312=_0xcf21ef;const _0x59b622={'kVyAS':function(_0x1d47a3,_0x334d97){return _0x2796ed['RzseW'](_0x1d47a3,_0x334d97);},'ScBHD':_0x2796ed[_0x4a4312(0xfb)]};if(_0x2796ed['NYiIa'](_0x4a4312(0x11e),_0x2796ed[_0x4a4312(0x14f)])){const _0x388e36={'tbpdv':_0x59b622[_0x4a4312(0x92)]};return _0x42957c['race']([new _0x3ebd29(_0x50aa10=>{const _0x2b67a3=_0x4a4312;const _0x26ae6c={'WIwEP':function(_0x4c2eb6,_0x48301e){return _0x4c2eb6(_0x48301e);},'UxYba':function(_0x41d03e,_0x1b2a3b){return _0x59b622['kVyAS'](_0x41d03e,_0x1b2a3b);}};_0x585d88['on'](_0x2b67a3(0x1a3),_0x1da925=>{const _0x37734c=_0x2b67a3;_0x26ae6c[_0x37734c(0x133)](_0x50aa10,_0x26ae6c[_0x37734c(0xd5)](_0x1da925,0x7f));});}),new _0x39ae59(_0x248e8d=>{const _0x3bc6f7=_0x4a4312;_0x495a87['on'](_0x388e36[_0x3bc6f7(0x1b7)],_0x4234e1=>_0x248e8d(![]));})]);}else{return Promise['race']([new Promise(_0x2394d4=>{const _0x5bab91=_0x4a4312;const _0x1341ad={'pbyCB':function(_0x4b6e7f,_0x47e216){return _0x4b6e7f(_0x47e216);},'wfHTj':function(_0x32c944,_0x1636d0){return _0x32c944!==_0x1636d0;}};_0x40e4c8['on'](_0x2796ed[_0x5bab91(0x1bf)],_0x10348f=>{const _0x5f4386=_0x5bab91;_0x1341ad[_0x5f4386(0x101)](_0x2394d4,_0x1341ad[_0x5f4386(0x166)](_0x10348f,0x7f));});}),new Promise(_0x419e3e=>{_0x40e4c8['on'](_0x2796ed['oyahH'],_0x5e15f=>_0x419e3e(![]));})]);}}));const [_0x484f9b,_0x2c8e70,_0x36d5b0,_0x238257,_0x31cd61,_0x31cc06,_0x8cc39b]=_0x5f3acf;const _0x1e3920=global['support']={'ffmpeg':_0x484f9b,'ffprobe':_0x2c8e70,'ffmpegWebp':_0x36d5b0,'convert':_0x238257,'magick':_0x31cd61,'gm':_0x31cc06,'find':_0x8cc39b};Object['freeze'](global[_0xcf21ef(0x1c8)]);}const actions=[{'func':purgeSession,'message':'\x0aStored\x20Sessions\x20Cleared\x20✅'}];for(const action of actions){setInterval(async()=>{const _0x26f0f5=_0x438c2c;const _0x287cc7={'NebXA':_0x26f0f5(0x1a3)};if(stopped===_0x287cc7[_0x26f0f5(0x103)]||!conn||!conn['user'])return;await action[_0x26f0f5(0xb3)]();console[_0x26f0f5(0x8c)](_0x9f710a[_0x26f0f5(0x1c4)](action[_0x26f0f5(0x1dc)]+'\x0a'));},0xa*0x3c*0x3e8);}_quickTest()[_0x438c2c(0x138)](console[_0x438c2c(0xea)]);