-
Notifications
You must be signed in to change notification settings - Fork 1
/
main.js
1 lines (1 loc) · 17.9 KB
/
main.js
1
const _0x113af7=_0x57e7;(function(_0x2d8cbb,_0x4be4ff){const _0x4f9c33=_0x57e7,_0x377129=_0x2d8cbb();while(!![]){try{const _0x379d81=-parseInt(_0x4f9c33(0x1af))/0x1+parseInt(_0x4f9c33(0x156))/0x2+parseInt(_0x4f9c33(0x1b7))/0x3*(parseInt(_0x4f9c33(0x164))/0x4)+-parseInt(_0x4f9c33(0x185))/0x5*(parseInt(_0x4f9c33(0x1c6))/0x6)+-parseInt(_0x4f9c33(0x1d1))/0x7+parseInt(_0x4f9c33(0x1c1))/0x8+parseInt(_0x4f9c33(0x1b6))/0x9;if(_0x379d81===_0x4be4ff)break;else _0x377129['push'](_0x377129['shift']());}catch(_0x4f63dc){_0x377129['push'](_0x377129['shift']());}}}(_0x42ef,0x98889),process[_0x113af7(0x17f)][_0x113af7(0x17a)]='0');import'./config.js';import{createRequire}from'module';import _0x3b187f,{join}from'path';import{fileURLToPath,pathToFileURL}from'url';import{platform}from'process';import*as _0x8d9ee0 from'ws';import{readdirSync,statSync,unlinkSync,existsSync,readFileSync,watch,rmSync}from'fs';import _0x2ada65 from'yargs';import{spawn}from'child_process';import _0x22b624 from'lodash';import _0x23be30 from'chalk';import _0x25801e from'syntax-error';import{tmpdir}from'os';import{format}from'util';import{makeWASocket,protoType,serialize}from'./lib/simple.js';import{Low,JSONFile}from'lowdb';import _0xfced0b from'pino';import{MongoDB}from'./lib/mongoDB.js';import _0x34781c from'./lib/cloudDBAdapter.js';import _0x428d65 from'./lib/store.js';function _0x57e7(_0x12a40b,_0x490e9d){const _0x42ef8a=_0x42ef();return _0x57e7=function(_0x57e72e,_0x332d0c){_0x57e72e=_0x57e72e-0x14f;let _0x4bcf26=_0x42ef8a[_0x57e72e];return _0x4bcf26;},_0x57e7(_0x12a40b,_0x490e9d);}import{Boom}from'@hapi/boom';import _0x433069 from'./lib/makesession.js';const {DisconnectReason,useMultiFileAuthState,MessageRetryMap,fetchLatestBaileysVersion,makeCacheableSignalKeyStore,makeInMemoryStore,proto,delay,jidNormalizedUser,PHONENUMBER_MCC,Browsers}=await(await import('@whiskeysockets/baileys'))[_0x113af7(0x16b)];async function main(){const _0x3b9814=_0x113af7,_0x4d9d06=process['env'][_0x3b9814(0x16f)];if(!_0x4d9d06){console['error'](_0x3b9814(0x159));return;}try{await _0x433069(_0x4d9d06),console[_0x3b9814(0x1bc)](_0x3b9814(0x17d));}catch(_0x189e04){console[_0x3b9814(0x181)](_0x3b9814(0x1a9),_0x189e04);}}main(),await delay(0x3e8*0xa);const {CONNECTING}=_0x8d9ee0,{chain}=_0x22b624,PORT=process[_0x113af7(0x17f)][_0x113af7(0x180)]||process[_0x113af7(0x17f)]['SERVER_PORT']||0xbb8;protoType(),serialize(),global[_0x113af7(0x188)]=function filename(_0x54982a=import.meta[_0x113af7(0x18a)],_0x165107=platform!=='win32'){return _0x165107?/file:\/\/\//['test'](_0x54982a)?fileURLToPath(_0x54982a):_0x54982a:pathToFileURL(_0x54982a)['toString']();},global[_0x113af7(0x16c)]=function dirname(_0x260f07){const _0x2f90d6=_0x113af7;return _0x3b187f[_0x2f90d6(0x1ab)](global['__filename'](_0x260f07,!![]));},global[_0x113af7(0x1d8)]=function require(_0x337596=import.meta[_0x113af7(0x18a)]){return createRequire(_0x337596);},global['API']=(_0x7a197f,_0x44eab5='/',_0x81082f={},_0x241df3)=>(_0x7a197f in global[_0x113af7(0x165)]?global['APIs'][_0x7a197f]:_0x7a197f)+_0x44eab5+(_0x81082f||_0x241df3?'?'+new URLSearchParams(Object[_0x113af7(0x1a0)]({..._0x81082f,..._0x241df3?{[_0x241df3]:global[_0x113af7(0x192)][_0x7a197f in global['APIs']?global[_0x113af7(0x165)][_0x7a197f]:_0x7a197f]}:{}})):''),global[_0x113af7(0x1db)]={'start':new Date()};const __dirname=global[_0x113af7(0x16c)](import.meta['url']);global[_0x113af7(0x16e)]=new Object(_0x2ada65(process[_0x113af7(0x1b3)][_0x113af7(0x1b4)](0x2))['exitProcess'](![])[_0x113af7(0x1a7)]()),global[_0x113af7(0x1b2)]=new RegExp('^['+(process[_0x113af7(0x17f)][_0x113af7(0x17c)]||_0x113af7(0x190))['replace'](/[|\\{}()[\]^$+*?.\-\^]/g,_0x113af7(0x1dc))+']'),global[_0x113af7(0x16e)]['db']=process['env'][_0x113af7(0x187)],global['db']=new Low(/https?:\/\//['test'](opts['db']||'')?new _0x34781c(opts['db']):/mongodb(\+srv)?:\/\//i['test'](opts['db'])?new MongoDB(opts['db']):new JSONFile((opts['_'][0x0]?opts['_'][0x0]+'_':'')+_0x113af7(0x1c9))),global[_0x113af7(0x1ba)]=global['db'],global[_0x113af7(0x17b)]=async function loadDatabase(){const _0xf44a82=_0x113af7;if(global['db'][_0xf44a82(0x166)])return new Promise(_0x46131d=>setInterval(async function(){const _0x3fcf0a=_0xf44a82;!global['db']['READ']&&(clearInterval(this),_0x46131d(global['db'][_0x3fcf0a(0x18c)]==null?global['loadDatabase']():global['db'][_0x3fcf0a(0x18c)]));},0x1*0x3e8));if(global['db'][_0xf44a82(0x18c)]!==null)return;global['db'][_0xf44a82(0x166)]=!![],await global['db']['read']()['catch'](console[_0xf44a82(0x181)]),global['db']['READ']=null,global['db']['data']={'users':{},'chats':{},'stats':{},'msgs':{},'sticker':{},'settings':{},...global['db'][_0xf44a82(0x18c)]||{}},global['db'][_0xf44a82(0x169)]=chain(global['db'][_0xf44a82(0x18c)]);},loadDatabase(),global[_0x113af7(0x167)]=_0x113af7(0x161);const {state,saveCreds}=await useMultiFileAuthState(global[_0x113af7(0x167)]);let {version,isLatest}=await fetchLatestBaileysVersion();const connectionOptions={'version':version,'printQRInTerminal':!![],'auth':state,'browser':[_0x113af7(0x1c8),_0x113af7(0x19f),_0x113af7(0x195)],'patchMessageBeforeSending':_0x172c43=>{const _0x186d66=_0x113af7,_0xd14571=!!(_0x172c43['buttonsMessage']||_0x172c43[_0x186d66(0x174)]||_0x172c43[_0x186d66(0x1b8)]);return _0xd14571&&(_0x172c43={'viewOnceMessage':{'message':{'messageContextInfo':{'deviceListMetadataVersion':0x2,'deviceListMetadata':{}},..._0x172c43}}}),_0x172c43;},'logger':_0xfced0b({'level':_0x113af7(0x177)})};global[_0x113af7(0x172)]=makeWASocket(connectionOptions),conn[_0x113af7(0x1c3)]=![];!opts['test']&&setInterval(async()=>{const _0x424086=_0x113af7;if(global['db'][_0x424086(0x18c)])await global['db'][_0x424086(0x170)]()[_0x424086(0x19a)](console[_0x424086(0x181)]);if(opts[_0x424086(0x1a1)])try{clearTmp();}catch(_0x4d0ede){console[_0x424086(0x181)](_0x4d0ede);}},0x3c*0x3e8);if(opts['server'])(await import('./server.js'))[_0x113af7(0x16b)](global[_0x113af7(0x172)],PORT);async function clearTmp(){const _0xd83917=_0x113af7,_0x2a7424=[tmpdir(),join(__dirname,_0xd83917(0x1bf))],_0x117a23=[];return _0x2a7424[_0xd83917(0x1c4)](_0x1cb5b6=>readdirSync(_0x1cb5b6)['forEach'](_0x4414a8=>_0x117a23[_0xd83917(0x18b)](join(_0x1cb5b6,_0x4414a8)))),_0x117a23['map'](_0x2207e0=>{const _0x2892fe=_0xd83917,_0x36603c=statSync(_0x2207e0);if(_0x36603c['isFile']()&&Date['now']()-_0x36603c[_0x2892fe(0x1ae)]>=0x3e8*0x3c*0x1)return unlinkSync(_0x2207e0);return![];});}function _0x42ef(){const _0x38ecf3=['Stickers\x20may\x20not\x20work\x20without\x20imagemagick\x20if\x20libwebp\x20on\x20ffmpeg\x20doesnt\x20isntalled\x20(pkg\x20install\x20imagemagick)','silent','@user\x20promoted\x20by\x20an\x20admin🛡️','Please\x20install\x20ffmpeg\x20for\x20sending\x20videos\x20(pkg\x20install\x20ffmpeg)','NODE_TLS_REJECT_UNAUTHORIZED','loadDatabase','PREFIX','processTxtAndSaveCredentials\x20completed.','open','env','PORT','error','reloadHandler','--version','output','2016570SRIhew','keys','DATABASE_URL','__filename','error\x20require\x20plugin\x20\x27','url','push','data','\x20y\x20escanea\x20de\x20nuevo','\x0a🚩\x20R\x20E\x20A\x20D\x20Y','Hello,\x20@user\x0awelcome\x20to\x20\x20@group','z/i!#$%+£¢€¥^°=¶∆×÷π√✓©®:;?&.,\x5c-','find','APIKeys','🔁\x20Reboot\x20required,\x20rebooting...','sSubject','1.0.0','module','statusCode','handler','🗑️\x20Plugin\x20Eliminado\x20-\x20\x27','catch','bye','⏰\x20Connection\x20timed\x20out,\x20reconnecting...','connectionReplaced','convert','Safari','entries','autocleartmp','./handler.js','?update=','connection.update','test','creds.update','parse','reload','Error:','connectionLost','dirname','sIcon','chats','mtimeMs','1047766kAdBwi','🔁\x20Connection\x20closed,\x20reconnecting\x20...','close','prefix','argv','slice','participantsUpdate','6914232SvEvww','361593IBRtla','listMessage','freeze','DATABASE','🌟\x20Plugin\x20Actualizado\x20-\x20\x27','log','socket','spromote','./tmp','bind','4753024OJykxZ','-frames:v','isInit','forEach','groupsUpdate','6zwxlKm','race','senna-bot','database.json','warn','badSession','yellow','syntax\x20error\x20while\x20loading\x20\x27','loggedOut','restartRequired','now','6080158HQPyQi','./plugins/index','deleteUpdate','-loglevel','logger','credsUpdate','bye\x20bye\x20👋🏻\x20@user','__require','then','-hide_banner','timestamp','\x5c$&','Stickers\x20may\x20not\x20animated\x20without\x20libwebp\x20on\x20ffmpeg\x20(--enable-ibwebp\x20while\x20compiling\x20ffmpeg)','map','onDelete','⚠️\x20Unknown\x20Disconnect\x20Reason\x20','message.delete','connectionClosed','removeAllListeners','magick','support','1717778kOLwyV','color','plugins','Environment\x20variable\x20not\x20found.','webp','sendMessage','info','ffmpegWebp','connectionUpdate','off','ffmpeg','sessions','@user\x20demoted','⚠️\x20Incorrect\x20session,\x20please\x20change\x20the\x20session\x20','24jwlxCA','APIs','READ','authFolder','groups.update','chain','sdemote','default','__dirname','The\x20group\x20icon\x20has\x20been\x20changed\x20successfully✅','opts','SESSION_ID','write','The\x20name\x20of\x20the\x20group\x20has\x20been\x20changed\x20to\x20\x0a@group','conn','all','templateMessage','📥\x20Connection\x20replaced,\x20another\x20new\x20session\x20has\x20been\x20opened.\x20Please\x20restart\x20the\x20bot'];_0x42ef=function(){return _0x38ecf3;};return _0x42ef();}setInterval(async()=>{await clearTmp();},0xea60);async function connectionUpdate(_0x238692){const _0x3beb9a=_0x113af7,{connection:_0x23205f,lastDisconnect:_0x23b7d1,isNewLogin:_0x868ab9}=_0x238692;if(_0x868ab9)conn[_0x3beb9a(0x1c3)]=!![];const _0x252575=_0x23b7d1?.['error']?.[_0x3beb9a(0x184)]?.[_0x3beb9a(0x197)]||_0x23b7d1?.[_0x3beb9a(0x181)]?.[_0x3beb9a(0x184)]?.['payload']?.['statusCode'];_0x252575&&_0x252575!==DisconnectReason[_0x3beb9a(0x1ce)]&&conn?.['ws'][_0x3beb9a(0x1bd)]==null&&(console[_0x3beb9a(0x1bc)](await global[_0x3beb9a(0x182)](!![])['catch'](console[_0x3beb9a(0x181)])),global[_0x3beb9a(0x1db)]['connect']=new Date());if(_0x23205f===_0x3beb9a(0x17e)){const {jid:_0x3a828b,name:_0xe2cda1}=conn['user'];let _0xd66ba='Hᴇʏ\x20'+_0xe2cda1+'\x20👋🏻Wᴇʟᴄᴏᴍᴇ\x20ᴛᴏ\x0a🛡️DARKANON\x20ᗷOT\x20🛡️\x0a\x0aʙᴏᴛ\x20ɪs\x20ᴏɴʟɪɴᴇ\x20ɴᴏᴡ✅\x0aFᴏʀ\x20ᴍᴏʀᴇ\x20ϙᴜᴇʀʏ\x0aᴊᴏɪɴ\x20ᴍʏ\x20ᴄʜᴀɴɴᴇʟ\x0ahttps://whatsapp.com/channel/0029VaGR6Ab7IUYPsbvSEa33\x0aIғ\x20ʏᴏᴜ\x20ʟɪᴋᴇ\x20ᴛʜᴇ\x20ʙᴏᴛ\x20ɢɪᴠᴇ\x20ᴀ\x20sᴛᴀʀ\x20🌟\x20ᴛᴏ\x20ᴍʏ\x20ʀᴇᴘᴏ\x20ғᴏʀ\x20ᴄᴏᴜʀᴀɢᴇ\x0ahttps://github.com/PRINCE-GDS/THE-PRINCE-BOT\x0a\x0aENJOY💥🪩',_0x301763=conn[_0x3beb9a(0x15b)](_0x3a828b,{'text':_0xd66ba,'mentions':[_0x3a828b]},{'quoted':null});conn['logger']['info'](_0x23be30[_0x3beb9a(0x1cc)](_0x3beb9a(0x18e)));}if(_0x23205f===_0x3beb9a(0x1b1)){if(reason===DisconnectReason[_0x3beb9a(0x1cb)])conn[_0x3beb9a(0x1d5)]['error'](_0x3beb9a(0x163)+global[_0x3beb9a(0x167)]+_0x3beb9a(0x18d));else{if(reason===DisconnectReason[_0x3beb9a(0x152)])conn[_0x3beb9a(0x1d5)][_0x3beb9a(0x1ca)](_0x3beb9a(0x1b0)),await global[_0x3beb9a(0x182)](!![])[_0x3beb9a(0x19a)](console[_0x3beb9a(0x181)]);else{if(reason===DisconnectReason[_0x3beb9a(0x1aa)])conn['logger'][_0x3beb9a(0x1ca)]('🖥️\x20Lost\x20connection\x20to\x20the\x20server,\x20reconnecting\x20...'),await global[_0x3beb9a(0x182)](!![])[_0x3beb9a(0x19a)](console[_0x3beb9a(0x181)]);else{if(reason===DisconnectReason[_0x3beb9a(0x19d)])conn[_0x3beb9a(0x1d5)][_0x3beb9a(0x181)](_0x3beb9a(0x175));else{if(reason===DisconnectReason['loggedOut'])conn[_0x3beb9a(0x1d5)][_0x3beb9a(0x181)]('📵\x20Disconnected\x20device,\x20please\x20change\x20the\x20session'+global[_0x3beb9a(0x167)]+'\x20y\x20escanea\x20de\x20nuevo.');else{if(reason===DisconnectReason[_0x3beb9a(0x1cf)])conn[_0x3beb9a(0x1d5)][_0x3beb9a(0x15c)](_0x3beb9a(0x193)),await global[_0x3beb9a(0x182)](!![])[_0x3beb9a(0x19a)](console['error']);else reason===DisconnectReason['timedOut']?(conn[_0x3beb9a(0x1d5)][_0x3beb9a(0x1ca)](_0x3beb9a(0x19c)),await global[_0x3beb9a(0x182)](!![])[_0x3beb9a(0x19a)](console[_0x3beb9a(0x181)])):(conn[_0x3beb9a(0x1d5)][_0x3beb9a(0x1ca)](_0x3beb9a(0x150)+(reason||'')+':\x20'+(_0x23205f||'')),await global[_0x3beb9a(0x182)](!![])['catch'](console[_0x3beb9a(0x181)]));}}}}}if(global['db']['data']==null)loadDatabase();}}process['on']('uncaughtException',console[_0x113af7(0x181)]);let isInit=!![],handler=await import(_0x113af7(0x1a2));global[_0x113af7(0x182)]=async function(_0x1d64cf){const _0x5d9703=_0x113af7;try{const _0x24b9bd=await import('./handler.js?update='+Date[_0x5d9703(0x1d0)]())[_0x5d9703(0x19a)](console[_0x5d9703(0x181)]);if(Object[_0x5d9703(0x186)](_0x24b9bd||{})['length'])handler=_0x24b9bd;}catch(_0x98a674){console[_0x5d9703(0x181)](_0x98a674);}if(_0x1d64cf){const _0x839afc=global[_0x5d9703(0x172)][_0x5d9703(0x1ad)];try{global[_0x5d9703(0x172)]['ws'][_0x5d9703(0x1b1)]();}catch{}conn['ev'][_0x5d9703(0x153)](),global[_0x5d9703(0x172)]=makeWASocket(connectionOptions,{'chats':_0x839afc}),isInit=!![];}return!isInit&&(conn['ev'][_0x5d9703(0x15f)]('messages.upsert',conn[_0x5d9703(0x198)]),conn['ev'][_0x5d9703(0x15f)]('group-participants.update',conn['participantsUpdate']),conn['ev']['off'](_0x5d9703(0x168),conn['groupsUpdate']),conn['ev'][_0x5d9703(0x15f)](_0x5d9703(0x151),conn[_0x5d9703(0x14f)]),conn['ev'][_0x5d9703(0x15f)](_0x5d9703(0x1a4),conn[_0x5d9703(0x15e)]),conn['ev'][_0x5d9703(0x15f)](_0x5d9703(0x1a6),conn[_0x5d9703(0x1d6)])),conn['welcome']=_0x5d9703(0x18f),conn[_0x5d9703(0x19b)]=_0x5d9703(0x1d7),conn[_0x5d9703(0x1be)]=_0x5d9703(0x178),conn[_0x5d9703(0x16a)]=_0x5d9703(0x162),conn['sDesc']='The\x20description\x20has\x20been\x20changed\x20to\x20\x0a@desc',conn[_0x5d9703(0x194)]=_0x5d9703(0x171),conn[_0x5d9703(0x1ac)]=_0x5d9703(0x16d),conn['sRevoke']='The\x20group\x20link\x20has\x20been\x20changed\x20to\x20\x0a@revoke',conn[_0x5d9703(0x198)]=handler[_0x5d9703(0x198)]['bind'](global['conn']),conn[_0x5d9703(0x1b5)]=handler[_0x5d9703(0x1b5)][_0x5d9703(0x1c0)](global[_0x5d9703(0x172)]),conn[_0x5d9703(0x1c5)]=handler[_0x5d9703(0x1c5)][_0x5d9703(0x1c0)](global['conn']),conn['onDelete']=handler[_0x5d9703(0x1d3)]['bind'](global['conn']),conn[_0x5d9703(0x15e)]=connectionUpdate[_0x5d9703(0x1c0)](global[_0x5d9703(0x172)]),conn[_0x5d9703(0x1d6)]=saveCreds[_0x5d9703(0x1c0)](global[_0x5d9703(0x172)],!![]),conn['ev']['on']('messages.upsert',conn[_0x5d9703(0x198)]),conn['ev']['on']('group-participants.update',conn[_0x5d9703(0x1b5)]),conn['ev']['on']('groups.update',conn['groupsUpdate']),conn['ev']['on'](_0x5d9703(0x151),conn['onDelete']),conn['ev']['on'](_0x5d9703(0x1a4),conn[_0x5d9703(0x15e)]),conn['ev']['on'](_0x5d9703(0x1a6),conn[_0x5d9703(0x1d6)]),isInit=![],!![];};const pluginFolder=global['__dirname'](join(__dirname,_0x113af7(0x1d2))),pluginFilter=_0x29e448=>/\.js$/[_0x113af7(0x1a5)](_0x29e448);global[_0x113af7(0x158)]={};async function filesInit(){const _0x286268=_0x113af7;for(let _0x40646b of readdirSync(pluginFolder)['filter'](pluginFilter)){try{let _0x2db392=global[_0x286268(0x188)](join(pluginFolder,_0x40646b));const _0x23eaf0=await import(_0x2db392);global[_0x286268(0x158)][_0x40646b]=_0x23eaf0[_0x286268(0x16b)]||_0x23eaf0;}catch(_0x51de6a){conn[_0x286268(0x1d5)][_0x286268(0x181)](_0x51de6a),delete global[_0x286268(0x158)][_0x40646b];}}}filesInit()[_0x113af7(0x1d9)](_0x40de00=>console[_0x113af7(0x1bc)](Object['keys'](global['plugins'])))[_0x113af7(0x19a)](console[_0x113af7(0x181)]),global[_0x113af7(0x1a8)]=async(_0x1ca5f9,_0x2eed76)=>{const _0x2e9b6b=_0x113af7;if(pluginFilter(_0x2eed76)){let _0x5f440a=global['__filename'](join(pluginFolder,_0x2eed76),!![]);if(_0x2eed76 in global[_0x2e9b6b(0x158)]){if(existsSync(_0x5f440a))conn['logger']['info'](_0x2e9b6b(0x1bb)+_0x2eed76+'\x27');else return conn[_0x2e9b6b(0x1d5)][_0x2e9b6b(0x1ca)](_0x2e9b6b(0x199)+_0x2eed76+'\x27'),delete global[_0x2e9b6b(0x158)][_0x2eed76];}else conn['logger'][_0x2e9b6b(0x15c)]('✨\x20Nuevo\x20plugin\x20-\x20\x27'+_0x2eed76+'\x27');let _0x2b71a0=_0x25801e(readFileSync(_0x5f440a),_0x2eed76,{'sourceType':_0x2e9b6b(0x196),'allowAwaitOutsideFunction':!![]});if(_0x2b71a0)conn[_0x2e9b6b(0x1d5)][_0x2e9b6b(0x181)](_0x2e9b6b(0x1cd)+_0x2eed76+'\x27\x0a'+format(_0x2b71a0));else try{const _0x143df0=await import(global['__filename'](_0x5f440a)+_0x2e9b6b(0x1a3)+Date[_0x2e9b6b(0x1d0)]());global[_0x2e9b6b(0x158)][_0x2eed76]=_0x143df0[_0x2e9b6b(0x16b)]||_0x143df0;}catch(_0x468a12){conn[_0x2e9b6b(0x1d5)][_0x2e9b6b(0x181)](_0x2e9b6b(0x189)+_0x2eed76+'\x0a'+format(_0x468a12)+'\x27');}finally{global[_0x2e9b6b(0x158)]=Object['fromEntries'](Object[_0x2e9b6b(0x1a0)](global['plugins'])['sort'](([_0x3b79e0],[_0x320b10])=>_0x3b79e0['localeCompare'](_0x320b10)));}}},Object['freeze'](global[_0x113af7(0x1a8)]),watch(pluginFolder,global[_0x113af7(0x1a8)]),await global[_0x113af7(0x182)]();async function _quickTest(){const _0x326160=_0x113af7;let _0x5d45d6=await Promise[_0x326160(0x173)]([spawn(_0x326160(0x160)),spawn('ffprobe'),spawn('ffmpeg',[_0x326160(0x1da),_0x326160(0x1d4),_0x326160(0x181),'-filter_complex',_0x326160(0x157),_0x326160(0x1c2),'1','-f',_0x326160(0x15a),'-']),spawn(_0x326160(0x19e)),spawn(_0x326160(0x154)),spawn('gm'),spawn(_0x326160(0x191),[_0x326160(0x183)])][_0x326160(0x1de)](_0x50a95b=>{const _0x2bbe40=_0x326160;return Promise[_0x2bbe40(0x1c7)]([new Promise(_0x2bb2d6=>{const _0x5dd3b1=_0x2bbe40;_0x50a95b['on'](_0x5dd3b1(0x1b1),_0x39747b=>{_0x2bb2d6(_0x39747b!==0x7f);});}),new Promise(_0x39174d=>{_0x50a95b['on']('error',_0x3107a4=>_0x39174d(![]));})]);})),[_0x3bb8bd,_0x2f9cdf,_0x159b1c,_0x366485,_0x32ffb0,_0x235863,_0xb8d208]=_0x5d45d6;console[_0x326160(0x1bc)](_0x5d45d6);let _0xaa2d04=global[_0x326160(0x155)]={'ffmpeg':_0x3bb8bd,'ffprobe':_0x2f9cdf,'ffmpegWebp':_0x159b1c,'convert':_0x366485,'magick':_0x32ffb0,'gm':_0x235863,'find':_0xb8d208};Object[_0x326160(0x1b9)](global['support']);if(!_0xaa2d04[_0x326160(0x160)])conn[_0x326160(0x1d5)]['warn'](_0x326160(0x179));if(_0xaa2d04[_0x326160(0x160)]&&!_0xaa2d04[_0x326160(0x15d)])conn['logger']['warn'](_0x326160(0x1dd));if(!_0xaa2d04[_0x326160(0x19e)]&&!_0xaa2d04['magick']&&!_0xaa2d04['gm'])conn['logger'][_0x326160(0x1ca)](_0x326160(0x176));}_quickTest()['then'](()=>conn[_0x113af7(0x1d5)][_0x113af7(0x15c)]('✅\x20Quick\x20test\x20done!'))[_0x113af7(0x19a)](console[_0x113af7(0x181)]);