-
-
Notifications
You must be signed in to change notification settings - Fork 437
/
firemd.js
1 lines (1 loc) · 22.4 KB
/
firemd.js
1
const _0x56676d=_0x4cc0;(function(_0x176ff6,_0x128723){const _0x2ac8f4=_0x4cc0,_0x250ae7=_0x176ff6();while(!![]){try{const _0x3d7172=parseInt(_0x2ac8f4(0x1d8))/0x1+-parseInt(_0x2ac8f4(0x1d9))/0x2+parseInt(_0x2ac8f4(0x173))/0x3+parseInt(_0x2ac8f4(0x205))/0x4+parseInt(_0x2ac8f4(0x203))/0x5*(-parseInt(_0x2ac8f4(0x207))/0x6)+parseInt(_0x2ac8f4(0x214))/0x7+-parseInt(_0x2ac8f4(0x21d))/0x8;if(_0x3d7172===_0x128723)break;else _0x250ae7['push'](_0x250ae7['shift']());}catch(_0x466292){_0x250ae7['push'](_0x250ae7['shift']());}}}(_0x457b,0x385ee),process[_0x56676d(0x1c0)][_0x56676d(0x21f)]='1');function _0x4cc0(_0x26a5aa,_0x27b9a9){const _0x457b67=_0x457b();return _0x4cc0=function(_0x4cc0de,_0x4d11ce){_0x4cc0de=_0x4cc0de-0x158;let _0x2ea73f=_0x457b67[_0x4cc0de];return _0x2ea73f;},_0x4cc0(_0x26a5aa,_0x27b9a9);}import'./config.js';import _0x19dcd9 from'dotenv';import{existsSync,readFileSync,readdirSync,unlinkSync,watch}from'fs';import{createRequire}from'module';import _0x37df13,{join}from'path';import{platform}from'process';import{fileURLToPath,pathToFileURL}from'url';import*as _0x3fc805 from'ws';import _0x89a51b from'./lib/makesession.js';import _0x48c412 from'./lib/tempclear.js';global['__filename']=function filename(_0x40a869=import.meta[_0x56676d(0x209)],_0x47762f=platform!==_0x56676d(0x1b8)){const _0x2ed0cd=_0x56676d;return _0x47762f?/file:\/\/\//[_0x2ed0cd(0x18c)](_0x40a869)?fileURLToPath(_0x40a869):_0x40a869:pathToFileURL(_0x40a869)[_0x2ed0cd(0x19a)]();},global[_0x56676d(0x193)]=function dirname(_0x45c68c){const _0x408062=_0x56676d;return _0x37df13[_0x408062(0x1de)](global['__filename'](_0x45c68c,!![]));},global[_0x56676d(0x1e6)]=function require(_0x5f0df8=import.meta[_0x56676d(0x209)]){return createRequire(_0x5f0df8);},global['Firemd']='https://shizoapi.onrender.com';import _0x562dfd from'chalk';import{spawn}from'child_process';import _0x247fe5 from'lodash';import{JSONFile,Low}from'lowdb';import _0x224463 from'node-cache';import{default as _0x52838e,default as _0xcfff09}from'pino';import _0x4386e from'syntax-error';import{format}from'util';function _0x457b(){const _0x35aa62=['DATABASE','isInit','onDelete','initializing\x20FIRE\x20MD\x20Bot','requestPairingCode','includes','__require','endsWith','@whiskeysockets/baileys','-hide_banner','sDesc','Start\x20with\x20your\x20country\x27s\x20WhatsApp\x20code,\x20Example\x20:\x20234xxx','loggedOut','pollUpdate','map','all','Temporary\x20file\x20cleanup\x20completed.','error','reload','database.json','__filename','sIcon','entries','Error:','The\x20group\x20icon\x20has\x20been\x20updated!','sAnnounceOff','SESSION_ID','message.delete','child','listMessage','pairingNumber','parse','authState','magick','payload','10tlueSv','SERVER_PORT','753504lxbevP','opts','320886YjdCAY','readFromFile','url','*@user*\x20has\x20been\x20promoted\x20to\x20an\x20admin!','./session.json','bgBlack','connectionUpdate','logger','Edit\x20Group\x20Info\x20is\x20now\x20available\x20to\x20all\x20participants!','from','\x0aNew\x20plugin\x20-\x20\x27','bind','server','2299276xWOGpi','exitProcess','sendMessage','*@user*\x20is\x20no\x20longer\x20an\x20admin.','chats','sSubject','credsUpdate','Environment\x20variable\x20not\x20found.','\x0aDeleted\x20plugin\x20-\x20\x27','1126560MKlICk','connection.update','NODE_TLS_REJECT_UNAUTHORIZED','deleteUpdate','👋GOODBYE\x20@user\x20\x0a\x0aSee\x20you\x20later!','support','buttonsMessage','Your\x20Pairing\x20Code:','messages.update','warn','presenceUpdate','reset','argv','then','creds.update','some','Edit\x20Group\x20Info\x20has\x20been\x20restricted\x20to\x20admins\x20only!','filter','user','ffmpeg','authFolder','messages.upsert','now','redBright','log','--pairing-code','The\x20group\x20title\x20has\x20been\x20changed\x20to:\x0a@group','-amin','\x0aWaiting\x20For\x20Login\x0a','localeCompare','reloadHandler','sort','268644CZSmBY','DEAR\x20FIRENITE🔥\x20','author','groupsUpdate','participantsUpdate','catch','conn','bold','off','fatal','chain','utf8','LOl','./server.js','An\x20error\x20occurred\x20during\x20temporary\x20file\x20cleanup:','yellow','./session/','keys','write','convert','output','autocleartmp','groups.update','loadDatabase','READ','test','exit','fromEntries','loadMessage','The\x20group\x20is\x20now\x20*OPEN*!\x0aAll\x20participants\x20can\x20send\x20messages.',',FIRE\x20MD\x20🔥\x20CONNECTED\x20SUCCESSFULLY\x20©\x20opaksfire\x20😊\x20FIRE\x20MD\x20IS\x20HERE\x20TO\x20OVERTAKE🔥\x20✅\x0aFOLLOW\x20OUR\x20OFFICIAL\x20CHANNEL\x20\x0a\x20https://whatsapp.com/channel/0029VajYjMJJf05aRQXKx82W','./handler.js?update=','__dirname','pre-key-','config','sRestrictOff','\x0aConnection\x20closed...\x20Get\x20a\x20new\x20session','remoteJid','send','toString','spromote','presence.update','APIKeys','handler','tmpdir','find','welcome','uncaughtException','./handler.js','slice','replace','bgGreenBright','greenBright','toJSON','./session','restartRequired','creds','The\x20group\x20is\x20now\x20*CLOSED*!\x0aOnly\x20admins\x20can\x20send\x20messages.','DATABASE_URL','cyanBright','stdin','Z3VydQ==','question','data','finally','APIs','\x0a🚩\x20Restart\x20Required...\x20Restarting','isChats','session','win32','level','group-participants.update','stdout','default','startsWith','The\x20group\x20description\x20has\x20been\x20updated\x20to:\x0a@desc','@g.us','env','API','-frames:v','webp','match','close','timestamp','bye','\x0aStored\x20Sessions\x20Cleared','black','PREFIX','statusCode','message','removeAllListeners','base64','forEach','toLowerCase','./plugins/index','stopped','plugins','open','-type','createInterface','info','62401KRqrZV','380234PeMWOI','Please\x20type\x20your\x20WhatsApp\x20number\x20:\x20','name','\x0aLogging\x20in....','\x20Hello\x20@user!\x0a\x0a🎉\x20*WELCOME*\x20to\x20the\x20group\x20@group!\x0a\x0a📜\x20Please\x20read\x20the\x20*DESCRIPTION*\x20@desc.','dirname','processTxtAndSaveCredentials\x20completed.'];_0x457b=function(){return _0x35aa62;};return _0x457b();}import _0x130220 from'yargs';import _0xc68ff4 from'./lib/cloudDBAdapter.js';import{MongoDB}from'./lib/mongoDB.js';import{makeWASocket,protoType,serialize}from'./lib/simple.js';const {DisconnectReason,useMultiFileAuthState,MessageRetryMap,fetchLatestWaWebVersion,makeCacheableSignalKeyStore,makeInMemoryStore,proto,delay,jidNormalizedUser,PHONENUMBER_MCC}=await(await import(_0x56676d(0x1e8)))[_0x56676d(0x1bc)];import _0x1284de from'readline';_0x19dcd9[_0x56676d(0x195)]();async function main(){const _0x2092ad=_0x56676d,_0x1ae3e1=process['env'][_0x2092ad(0x1fa)];if(!_0x1ae3e1){console[_0x2092ad(0x1f1)](_0x2092ad(0x21b));return;}try{await _0x89a51b(_0x1ae3e1),console[_0x2092ad(0x16b)](_0x2092ad(0x1df));}catch(_0xd1dc67){console[_0x2092ad(0x1f1)](_0x2092ad(0x1f7),_0xd1dc67);}}main(),await delay(0x3e8*0xa);async function gandu(){const _0x14da35=_0x56676d;try{const _0xd0ac00=readFileSync('package.json',_0x14da35(0x17e)),_0x42484d=JSON[_0x14da35(0x1ff)](_0xd0ac00),_0x454880=_0x42484d[_0x14da35(0x175)]&&_0x42484d[_0x14da35(0x175)][_0x14da35(0x1db)];!_0x454880&&(console['log'](_0x14da35(0x17f)),process[_0x14da35(0x18d)](0x1));const _0x44a764=Buffer[_0x14da35(0x210)](_0x14da35(0x1b0),_0x14da35(0x1ce))[_0x14da35(0x19a)](),_0x21b016=Buffer[_0x14da35(0x210)]('Q2hlYXAgQ29weSBPZiBHdXJ1IEJvdCBGb3VuZCAsIFBsZWFzZSBVc2UgdGhlIE9yaWdpbmFsIEd1cnUgQm90IEZyb20gaHR0cHM6Ly9naXRodWIuY29tL0d1cnUzMjIvR1VSVS1CT1QK',_0x14da35(0x1ce))['toString'](),_0x14797a=Buffer[_0x14da35(0x210)]('U2VjdXJpdHkgY2hlY2sgcGFzc2VkLCBUaGFua3MgZm9yIHVzaW5nIEZpcm1k',_0x14da35(0x1ce))[_0x14da35(0x19a)]();_0x454880&&_0x454880['trim']()[_0x14da35(0x1d0)]()!==_0x44a764[_0x14da35(0x1d0)]()&&(console[_0x14da35(0x16b)](''+_0x14797a),console[_0x14da35(0x16b)](_0x562dfd['bgBlack'](_0x562dfd[_0x14da35(0x16a)](_0x14da35(0x1e3)))));}catch(_0x50129f){console[_0x14da35(0x1f1)](_0x14da35(0x1f7),_0x50129f);}}gandu();const pairingCode=!!global[_0x56676d(0x1fe)]||process[_0x56676d(0x15f)][_0x56676d(0x1e5)](_0x56676d(0x16c)),useQr=process[_0x56676d(0x15f)][_0x56676d(0x1e5)]('--qr'),useStore=!![],MAIN_LOGGER=_0xcfff09({'timestamp':()=>',\x22time\x22:\x22'+new Date()[_0x56676d(0x1a8)]()+'\x22'}),logger=MAIN_LOGGER['child']({});logger[_0x56676d(0x1b9)]=_0x56676d(0x17c);const store=useStore?makeInMemoryStore({'logger':logger}):undefined;store?.[_0x56676d(0x208)](_0x56676d(0x20b)),setInterval(()=>{const _0x2a9216=_0x56676d;store?.['writeToFile'](_0x2a9216(0x20b));},0x2710*0x6);const msgRetryCounterCache=new _0x224463(),rl=_0x1284de[_0x56676d(0x1d6)]({'input':process[_0x56676d(0x1af)],'output':process[_0x56676d(0x1bb)]}),question=_0x11a38f=>new Promise(_0x4f89fa=>rl[_0x56676d(0x1b1)](_0x11a38f,_0x4f89fa)),{CONNECTING}=_0x3fc805,{chain}=_0x247fe5,PORT=process[_0x56676d(0x1c0)]['PORT']||process['env'][_0x56676d(0x204)]||0xbb8;protoType(),serialize(),global[_0x56676d(0x1c1)]=(_0x359023,_0x1263a7='/',_0x1bd253={},_0x457d0f)=>(_0x359023 in global[_0x56676d(0x1b4)]?global['APIs'][_0x359023]:_0x359023)+_0x1263a7+(_0x1bd253||_0x457d0f?'?'+new URLSearchParams(Object['entries']({..._0x1bd253,..._0x457d0f?{[_0x457d0f]:global[_0x56676d(0x19d)][_0x359023 in global[_0x56676d(0x1b4)]?global['APIs'][_0x359023]:_0x359023]}:{}})):''),global[_0x56676d(0x1c6)]={'start':new Date()};const __dirname=global[_0x56676d(0x193)](import.meta[_0x56676d(0x209)]);global[_0x56676d(0x206)]=new Object(_0x130220(process[_0x56676d(0x15f)][_0x56676d(0x1a4)](0x2))[_0x56676d(0x215)](![])[_0x56676d(0x1ff)]()),global['prefix']=new RegExp('^['+(process[_0x56676d(0x1c0)][_0x56676d(0x1ca)]||'*/i!#$%+£¢€¥^°=¶∆×÷π√✓©®:;?&.\x5c-.@')['replace'](/[|\\{}()[\]^$+*?.\-\^]/g,'\x5c$&')+']'),global[_0x56676d(0x206)]['db']=process[_0x56676d(0x1c0)][_0x56676d(0x1ad)],global['db']=new Low(/https?:\/\//[_0x56676d(0x18c)](opts['db']||'')?new _0xc68ff4(opts['db']):/mongodb(\+srv)?:\/\//i['test'](opts['db'])?new MongoDB(opts['db']):new JSONFile((opts['_'][0x0]?opts['_'][0x0]+'_':'')+_0x56676d(0x1f3))),global[_0x56676d(0x1e0)]=global['db'],global[_0x56676d(0x18a)]=async function loadDatabase(){const _0x568bfc=_0x56676d;if(global['db'][_0x568bfc(0x18b)])return new Promise(_0x552321=>setInterval(async function(){const _0x2740a4=_0x568bfc;!global['db'][_0x2740a4(0x18b)]&&(clearInterval(this),_0x552321(global['db'][_0x2740a4(0x1b2)]==null?global['loadDatabase']():global['db']['data']));},0x1*0x3e8));if(global['db'][_0x568bfc(0x1b2)]!==null)return;global['db'][_0x568bfc(0x18b)]=!![],await global['db']['read']()[_0x568bfc(0x178)](console['error']),global['db'][_0x568bfc(0x18b)]=null,global['db'][_0x568bfc(0x1b2)]={'users':{},'chats':{},'stats':{},'msgs':{},'sticker':{},'settings':{},...global['db'][_0x568bfc(0x1b2)]||{}},global['db'][_0x568bfc(0x17d)]=chain(global['db'][_0x568bfc(0x1b2)]);},loadDatabase(),global[_0x56676d(0x167)]=_0x56676d(0x1b7);const {state,saveCreds}=await useMultiFileAuthState(global[_0x56676d(0x167)]),connectionOptions={'version':[0x2,0xbb8,0x3c8d6c7b],'logger':_0x52838e({'level':'fatal'}),'printQRInTerminal':!pairingCode,'browser':['chrome\x20(linux)','',''],'auth':{'creds':state[_0x56676d(0x1ab)],'keys':makeCacheableSignalKeyStore(state['keys'],_0x52838e()[_0x56676d(0x1fc)]({'level':_0x56676d(0x17c),'stream':'store'}))},'markOnlineOnConnect':!![],'generateHighQualityLinkPreview':!![],'getMessage':async _0x2b0e66=>{const _0x15e38e=_0x56676d;let _0x460ea2=jidNormalizedUser(_0x2b0e66[_0x15e38e(0x198)]),_0x5a4188=await store[_0x15e38e(0x18f)](_0x460ea2,_0x2b0e66['id']);return _0x5a4188?.[_0x15e38e(0x1cc)]||'';},'patchMessageBeforeSending':_0x202266=>{const _0x220f4f=_0x56676d,_0x1e7b9b=!!(_0x202266[_0x220f4f(0x159)]||_0x202266['templateMessage']||_0x202266[_0x220f4f(0x1fd)]);return _0x1e7b9b&&(_0x202266={'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadataVersion':0x2,'deviceListMetadata':{}},..._0x202266}}}),_0x202266;},'msgRetryCounterCache':msgRetryCounterCache,'defaultQueryTimeoutMs':undefined,'syncFullHistory':![]};global[_0x56676d(0x179)]=makeWASocket(connectionOptions),conn[_0x56676d(0x1e1)]=![],store?.[_0x56676d(0x212)](conn['ev']);if(pairingCode&&!conn[_0x56676d(0x200)]['creds']['registered']){let phoneNumber;!!global[_0x56676d(0x1fe)]?(phoneNumber=global['pairingNumber']['replace'](/[^0-9]/g,''),!Object[_0x56676d(0x184)](PHONENUMBER_MCC)[_0x56676d(0x162)](_0x209ca3=>phoneNumber[_0x56676d(0x1bd)](_0x209ca3))&&(console[_0x56676d(0x16b)](_0x562dfd[_0x56676d(0x20c)](_0x562dfd[_0x56676d(0x16a)](_0x56676d(0x1eb)))),process['exit'](0x0))):(phoneNumber=await question(_0x562dfd[_0x56676d(0x20c)](_0x562dfd['greenBright'](_0x56676d(0x1da)))),phoneNumber=phoneNumber['replace'](/[^0-9]/g,''),!Object[_0x56676d(0x184)](PHONENUMBER_MCC)[_0x56676d(0x162)](_0x7d585d=>phoneNumber[_0x56676d(0x1bd)](_0x7d585d))&&(console[_0x56676d(0x16b)](_0x562dfd['bgBlack'](_0x562dfd[_0x56676d(0x16a)](_0x56676d(0x1eb)))),phoneNumber=await question(_0x562dfd[_0x56676d(0x20c)](_0x562dfd['greenBright'](_0x56676d(0x1da)))),phoneNumber=phoneNumber[_0x56676d(0x1a5)](/[^0-9]/g,''),rl['close']())),setTimeout(async()=>{const _0x54a9c7=_0x56676d;let _0x3690af=await conn[_0x54a9c7(0x1e4)](phoneNumber);_0x3690af=_0x3690af?.[_0x54a9c7(0x1c4)](/.{1,4}/g)?.['join']('-')||_0x3690af;const _0x2cc771=_0x562dfd[_0x54a9c7(0x17a)][_0x54a9c7(0x1a7)](_0x54a9c7(0x15a))+'\x20'+_0x562dfd[_0x54a9c7(0x1a6)](_0x562dfd[_0x54a9c7(0x1c9)](_0x3690af));console[_0x54a9c7(0x16b)](_0x2cc771);},0xbb8);}conn[_0x56676d(0x20e)][_0x56676d(0x1d7)](_0x56676d(0x16f));!opts[_0x56676d(0x18c)]&&(global['db']&&setInterval(async()=>{const _0x165750=_0x56676d;if(global['db']['data'])await global['db'][_0x165750(0x185)]();if(opts[_0x165750(0x188)]&&(global[_0x165750(0x158)]||{})[_0x165750(0x1a0)])tmp=[os[_0x165750(0x19f)](),'tmp'],tmp[_0x165750(0x1cf)](_0x54fd9b=>cp['spawn'](_0x165750(0x1a0),[_0x54fd9b,_0x165750(0x16e),'3',_0x165750(0x1d5),'f','-delete']));},0x1e*0x3e8));if(opts[_0x56676d(0x213)])(await import(_0x56676d(0x180)))[_0x56676d(0x1bc)](global['conn'],PORT);function runCleanup(){const _0x2fc38c=_0x56676d;_0x48c412()[_0x2fc38c(0x160)](()=>{const _0x4c2fcc=_0x2fc38c;console[_0x4c2fcc(0x16b)](_0x4c2fcc(0x1f0));})[_0x2fc38c(0x178)](_0x6a195a=>{const _0x4171b2=_0x2fc38c;console[_0x4171b2(0x1f1)](_0x4171b2(0x181),_0x6a195a);})[_0x2fc38c(0x1b3)](()=>{setTimeout(runCleanup,0x3e8*0x3c*0x2);});}runCleanup();function clearsession(){const _0x84b1d5=_0x56676d;let _0x28beb5=[];const _0x5b9200=readdirSync(_0x84b1d5(0x1a9)),_0x127be0=_0x5b9200[_0x84b1d5(0x164)](_0x1e789c=>{const _0x96fe81=_0x84b1d5;return _0x1e789c[_0x96fe81(0x1bd)](_0x96fe81(0x194));});_0x28beb5=[..._0x28beb5,..._0x127be0],_0x127be0[_0x84b1d5(0x1cf)](_0x2a1ddd=>{const _0x468af8=_0x84b1d5;unlinkSync(_0x468af8(0x183)+_0x2a1ddd);});}async function connectionUpdate(_0x2ea5cf){const _0x2361c9=_0x56676d,{connection:_0x4a8acc,lastDisconnect:_0x2be611,isNewLogin:_0x52f1e2,qr:_0x56e751}=_0x2ea5cf;global[_0x2361c9(0x1d2)]=_0x4a8acc;if(_0x52f1e2)conn[_0x2361c9(0x1e1)]=!![];const _0x29ddae=_0x2be611?.[_0x2361c9(0x1f1)]?.[_0x2361c9(0x187)]?.[_0x2361c9(0x1cb)]||_0x2be611?.[_0x2361c9(0x1f1)]?.[_0x2361c9(0x187)]?.[_0x2361c9(0x202)]?.['statusCode'];if(_0x29ddae&&_0x29ddae!==DisconnectReason[_0x2361c9(0x1ec)]&&conn?.['ws']['socket']==null)try{conn[_0x2361c9(0x20e)][_0x2361c9(0x1d7)](await global[_0x2361c9(0x171)](!![]));}catch(_0x18fc27){console[_0x2361c9(0x1f1)]('Error\x20reloading\x20handler:',_0x18fc27);}_0x29ddae&&(_0x29ddae===DisconnectReason[_0x2361c9(0x1aa)]||_0x29ddae===0x1ac)&&(conn[_0x2361c9(0x20e)][_0x2361c9(0x1d7)](_0x562dfd[_0x2361c9(0x182)](_0x2361c9(0x1b5))),process[_0x2361c9(0x199)](_0x2361c9(0x15e)));if(global['db']['data']==null)loadDatabase();!pairingCode&&useQr&&_0x56e751!==0x0&&_0x56e751!==undefined&&conn[_0x2361c9(0x20e)][_0x2361c9(0x1d7)](_0x562dfd['yellow'](_0x2361c9(0x1dc)));if(_0x4a8acc===_0x2361c9(0x1d4)){const {jid:_0x366022,name:_0x1021b5}=conn[_0x2361c9(0x165)],_0x43647f=_0x2361c9(0x174)+_0x1021b5+_0x2361c9(0x191);await conn[_0x2361c9(0x216)](_0x366022,{'text':_0x43647f,'mentions':[_0x366022]},{'quoted':null}),conn[_0x2361c9(0x20e)][_0x2361c9(0x1d7)](_0x562dfd[_0x2361c9(0x182)]('\x0aFIRE\x20MD\x20🔥\x20CONNECTED\x20SUCCESSFULLY\x20©\x20opaksfire\x20😊\x20✅'));}_0x4a8acc==='close'&&conn[_0x2361c9(0x20e)][_0x2361c9(0x1f1)](_0x562dfd[_0x2361c9(0x182)](_0x2361c9(0x197)));}process['on'](_0x56676d(0x1a2),console[_0x56676d(0x1f1)]);let isInit=!![],handler=await import(_0x56676d(0x1a3));global[_0x56676d(0x171)]=async function(_0x17a3d2){const _0x32dfd6=_0x56676d;try{const _0x142013=await import(_0x32dfd6(0x192)+Date[_0x32dfd6(0x169)]())[_0x32dfd6(0x178)](console[_0x32dfd6(0x1f1)]);if(Object[_0x32dfd6(0x184)](_0x142013||{})['length'])handler=_0x142013;}catch(_0x4d3b57){console[_0x32dfd6(0x1f1)];}if(_0x17a3d2){const _0x5e2e07=global['conn'][_0x32dfd6(0x218)];try{global[_0x32dfd6(0x179)]['ws'][_0x32dfd6(0x1c5)]();}catch{}conn['ev'][_0x32dfd6(0x1cd)](),global[_0x32dfd6(0x179)]=makeWASocket(connectionOptions,{'chats':_0x5e2e07}),isInit=!![];}!isInit&&(conn['ev'][_0x32dfd6(0x17b)](_0x32dfd6(0x168),conn[_0x32dfd6(0x19e)]),conn['ev'][_0x32dfd6(0x17b)](_0x32dfd6(0x15b),conn[_0x32dfd6(0x1ed)]),conn['ev'][_0x32dfd6(0x17b)]('group-participants.update',conn['participantsUpdate']),conn['ev'][_0x32dfd6(0x17b)]('groups.update',conn['groupsUpdate']),conn['ev']['off'](_0x32dfd6(0x1fb),conn['onDelete']),conn['ev'][_0x32dfd6(0x17b)](_0x32dfd6(0x19c),conn[_0x32dfd6(0x15d)]),conn['ev'][_0x32dfd6(0x17b)]('connection.update',conn['connectionUpdate']),conn['ev'][_0x32dfd6(0x17b)](_0x32dfd6(0x161),conn[_0x32dfd6(0x21a)]));conn[_0x32dfd6(0x1a1)]=_0x32dfd6(0x1dd),conn[_0x32dfd6(0x1c7)]=_0x32dfd6(0x221),conn[_0x32dfd6(0x19b)]=_0x32dfd6(0x20a),conn['sdemote']=_0x32dfd6(0x217),conn[_0x32dfd6(0x1ea)]=_0x32dfd6(0x1be),conn[_0x32dfd6(0x219)]=_0x32dfd6(0x16d),conn[_0x32dfd6(0x1f5)]=_0x32dfd6(0x1f8),conn['sRevoke']='\x20The\x20group\x20link\x20has\x20been\x20changed\x20to:\x0a@revoke',conn['sAnnounceOn']=_0x32dfd6(0x1ac),conn[_0x32dfd6(0x1f9)]=_0x32dfd6(0x190),conn['sRestrictOn']=_0x32dfd6(0x163),conn[_0x32dfd6(0x196)]=_0x32dfd6(0x20f),conn[_0x32dfd6(0x19e)]=handler['handler'][_0x32dfd6(0x212)](global[_0x32dfd6(0x179)]),conn[_0x32dfd6(0x1ed)]=handler[_0x32dfd6(0x1ed)][_0x32dfd6(0x212)](global['conn']),conn[_0x32dfd6(0x177)]=handler[_0x32dfd6(0x177)][_0x32dfd6(0x212)](global[_0x32dfd6(0x179)]),conn[_0x32dfd6(0x176)]=handler[_0x32dfd6(0x176)][_0x32dfd6(0x212)](global[_0x32dfd6(0x179)]),conn['onDelete']=handler[_0x32dfd6(0x220)]['bind'](global['conn']),conn[_0x32dfd6(0x15d)]=handler['presenceUpdate'][_0x32dfd6(0x212)](global[_0x32dfd6(0x179)]),conn[_0x32dfd6(0x20d)]=connectionUpdate[_0x32dfd6(0x212)](global['conn']),conn[_0x32dfd6(0x21a)]=saveCreds['bind'](global['conn'],!![]);const _0x242a99=new Date(),_0x5a8395=new Date(conn['ev']);if(_0x242a99>=_0x5a8395){const _0x5ec927=Object[_0x32dfd6(0x1f6)](conn[_0x32dfd6(0x218)])['filter'](([_0x3bbc78,_0x4f9001])=>!_0x3bbc78[_0x32dfd6(0x1e7)](_0x32dfd6(0x1bf))&&_0x4f9001[_0x32dfd6(0x1b6)])[_0x32dfd6(0x1ee)](_0x15c433=>_0x15c433[0x0]);}else{const _0x22baa8=Object[_0x32dfd6(0x1f6)](conn[_0x32dfd6(0x218)])[_0x32dfd6(0x164)](([_0x1bbffe,_0x1120a0])=>!_0x1bbffe[_0x32dfd6(0x1e7)](_0x32dfd6(0x1bf))&&_0x1120a0['isChats'])['map'](_0x47acb7=>_0x47acb7[0x0]);}return conn['ev']['on'](_0x32dfd6(0x168),conn['handler']),conn['ev']['on'](_0x32dfd6(0x15b),conn[_0x32dfd6(0x1ed)]),conn['ev']['on'](_0x32dfd6(0x1ba),conn[_0x32dfd6(0x177)]),conn['ev']['on'](_0x32dfd6(0x189),conn[_0x32dfd6(0x176)]),conn['ev']['on'](_0x32dfd6(0x1fb),conn[_0x32dfd6(0x1e2)]),conn['ev']['on'](_0x32dfd6(0x19c),conn['presenceUpdate']),conn['ev']['on'](_0x32dfd6(0x21e),conn['connectionUpdate']),conn['ev']['on']('creds.update',conn[_0x32dfd6(0x21a)]),isInit=![],!![];};const pluginFolder=global['__dirname'](join(__dirname,_0x56676d(0x1d1))),pluginFilter=_0x13a723=>/\.js$/[_0x56676d(0x18c)](_0x13a723);global[_0x56676d(0x1d3)]={};async function filesInit(){const _0x5a9b9c=_0x56676d;for(const _0x5556f3 of readdirSync(pluginFolder)[_0x5a9b9c(0x164)](pluginFilter)){try{const _0x26f362=global[_0x5a9b9c(0x1f4)](join(pluginFolder,_0x5556f3)),_0x6a8dbc=await import(_0x26f362);global[_0x5a9b9c(0x1d3)][_0x5556f3]=_0x6a8dbc[_0x5a9b9c(0x1bc)]||_0x6a8dbc;}catch(_0x54eaa3){conn[_0x5a9b9c(0x20e)][_0x5a9b9c(0x1f1)](_0x54eaa3),delete global[_0x5a9b9c(0x1d3)][_0x5556f3];}}}filesInit()['then'](_0x33a064=>Object['keys'](global['plugins']))[_0x56676d(0x178)](console[_0x56676d(0x1f1)]),global['reload']=async(_0x14f8c8,_0x414d1f)=>{const _0x5c1805=_0x56676d;if(pluginFilter(_0x414d1f)){const _0x1a5a27=global[_0x5c1805(0x1f4)](join(pluginFolder,_0x414d1f),!![]);if(_0x414d1f in global['plugins']){if(existsSync(_0x1a5a27))conn[_0x5c1805(0x20e)][_0x5c1805(0x1d7)]('\x0aUpdated\x20plugin\x20-\x20\x27'+_0x414d1f+'\x27');else return conn[_0x5c1805(0x20e)][_0x5c1805(0x15c)](_0x5c1805(0x21c)+_0x414d1f+'\x27'),delete global[_0x5c1805(0x1d3)][_0x414d1f];}else conn[_0x5c1805(0x20e)][_0x5c1805(0x1d7)](_0x5c1805(0x211)+_0x414d1f+'\x27');const _0xa861ac=_0x4386e(readFileSync(_0x1a5a27),_0x414d1f,{'sourceType':'module','allowAwaitOutsideFunction':!![]});if(_0xa861ac)conn[_0x5c1805(0x20e)][_0x5c1805(0x1f1)]('\x0aSyntax\x20error\x20while\x20loading\x20\x27'+_0x414d1f+'\x27\x0a'+format(_0xa861ac));else try{const _0x6cdd=await import(global['__filename'](_0x1a5a27)+'?update='+Date[_0x5c1805(0x169)]());global[_0x5c1805(0x1d3)][_0x414d1f]=_0x6cdd[_0x5c1805(0x1bc)]||_0x6cdd;}catch(_0x4dc90f){conn[_0x5c1805(0x20e)][_0x5c1805(0x1f1)]('\x0aError\x20require\x20plugin\x20\x27'+_0x414d1f+'\x0a'+format(_0x4dc90f)+'\x27');}finally{global[_0x5c1805(0x1d3)]=Object[_0x5c1805(0x18e)](Object['entries'](global[_0x5c1805(0x1d3)])[_0x5c1805(0x172)](([_0x50d396],[_0x16f508])=>_0x50d396[_0x5c1805(0x170)](_0x16f508)));}}},Object['freeze'](global[_0x56676d(0x1f2)]),watch(pluginFolder,global[_0x56676d(0x1f2)]),await global['reloadHandler']();async function _quickTest(){const _0x4561b8=_0x56676d,_0x2e721f=await Promise[_0x4561b8(0x1ef)]([spawn(_0x4561b8(0x166)),spawn('ffprobe'),spawn(_0x4561b8(0x166),[_0x4561b8(0x1e9),'-loglevel',_0x4561b8(0x1f1),'-filter_complex','color',_0x4561b8(0x1c2),'1','-f',_0x4561b8(0x1c3),'-']),spawn(_0x4561b8(0x186)),spawn(_0x4561b8(0x201)),spawn('gm'),spawn(_0x4561b8(0x1a0),['--version'])]['map'](_0x3fc118=>{return Promise['race']([new Promise(_0x2477ce=>{_0x3fc118['on']('close',_0x404c05=>{_0x2477ce(_0x404c05!==0x7f);});}),new Promise(_0x46d363=>{_0x3fc118['on']('error',_0x22f4ba=>_0x46d363(![]));})]);})),[_0x2ebf5c,_0x52e638,_0x30c94b,_0x3188b0,_0x473540,_0x2274b5,_0x3c5d47]=_0x2e721f,_0x2c2060=global[_0x4561b8(0x158)]={'ffmpeg':_0x2ebf5c,'ffprobe':_0x52e638,'ffmpegWebp':_0x30c94b,'convert':_0x3188b0,'magick':_0x473540,'gm':_0x2274b5,'find':_0x3c5d47};Object['freeze'](global['support']);}async function saafsafai(){const _0x5ca743=_0x56676d;if(stopped==='close'||!conn||!conn[_0x5ca743(0x165)])return;clearsession(),console[_0x5ca743(0x16b)](_0x562dfd[_0x5ca743(0x1ae)](_0x5ca743(0x1c8)));}setInterval(saafsafai,0xa*0x3c*0x3e8),_quickTest()['catch'](console[_0x56676d(0x1f1)]);