-
-
Notifications
You must be signed in to change notification settings - Fork 85
/
Copy pathindex.js
1 lines (1 loc) · 2.08 KB
/
index.js
1
console['log']('✔️\x20Iniciando...');import{join,dirname}from'path';import{createRequire}from'module';import{fileURLToPath}from'url';import{setupMaster,fork}from'cluster';import{watchFile,unwatchFile}from'fs';import _0x2431a8 from'cfonts';import{createInterface}from'readline';import _0x479d29 from'yargs';const __dirname=dirname(fileURLToPath(import.meta['url'])),require=createRequire(__dirname),{name,author}=require(join(__dirname,'./package.json')),{say}=_0x2431a8,rl=createInterface(process['stdin'],process['stdout']);say('HADES-BOT-OMEGA\x0aCREADOR\x20YOVANI\x0aBOT\x20CREADO\x20EN\x202020\x0aLA\x20MEJOR\x20CALIDAD\x20WHATSAPP',{'font':'chrome','align':'center','gradient':['red','magenta']}),say('<|==================================================>\x0a[•]-SERVIDORM\x20=PRIVADO\x0a[•]-VERSIÓN\x20BOT\x20=20.49.12\x0a[•]-OWEN=OFC-YOVANI\x0a[•]-ESTADO=ACTIVO\x0a[•]-SUSCRÍBETE\x20AL\x20CANAL\x20DE\x20YOUTUBE\x0a[•]-GRACIAS\x20POR\x20TU\x20PREFERENCIA\x0a<|==================================================>',{'font':'console','align':'center','gradient':['red','magenta']});let isRunning=![];function start(_0x2eec28){if(isRunning)return;isRunning=!![];const _0x12ceaf=[join(__dirname,_0x2eec28),...process['argv']['slice'](0x2)];setupMaster({'exec':_0x12ceaf[0x0],'args':_0x12ceaf['slice'](0x1)});const _0xfbd23a=fork();_0xfbd23a['on']('message',_0x2fb38e=>{console['log']('[RECIBIDO]',_0x2fb38e);switch(_0x2fb38e){case'reset':_0xfbd23a['process']['kill'](),isRunning=![],start['apply'](this,arguments);break;case'uptime':_0xfbd23a['send'](process['uptime']());break;}}),_0xfbd23a['on']('exit',(_0x5ad887,_0x42abdb)=>{isRunning=![],console['error']('❌\x20An\x20unexpected\x20error\x20occurred:',_0x42abdb),_0xfbd23a['process']['kill'](),isRunning=![],start['apply'](this,arguments),process['env']['pm_id']?process['exit'](0x1):process['exit']();});const _0x237dbd=new Object(_0x479d29(process['argv']['slice'](0x2))['exitProcess'](![])['parse']());!_0x237dbd['test']&&(!rl['listenerCount']()&&rl['on']('line',_0x26f908=>{_0xfbd23a['emit']('message',_0x26f908['trim']());}));}start('main.js');