forked from OFC-YOVANI/HADES-BOT-OMEGA
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 2.07 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 _0x389dcc from'cfonts';import{createInterface}from'readline';import _0x3c47ff from'yargs';const __dirname=dirname(fileURLToPath(import.meta['url'])),require=createRequire(__dirname),{name,author}=require(join(__dirname,'./package.json')),{say}=_0x389dcc,rl=createInterface(process['stdin'],process['stdout']);say('HADES-BOT-MD\x0aYOVANI\x20CREATOR\x0aBOT\x20CREATED\x20IN\x202019\x0aTHE\x20BEST\x20QUALITY\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(_0x30d7e4){if(isRunning)return;isRunning=!![];const _0x190ace=[join(__dirname,_0x30d7e4),...process['argv']['slice'](0x2)];setupMaster({'exec':_0x190ace[0x0],'args':_0x190ace['slice'](0x1)});const _0x453eba=fork();_0x453eba['on']('message',_0xa8772=>{console['log']('[RECIBIDO]',_0xa8772);switch(_0xa8772){case'reset':_0x453eba['process']['kill'](),isRunning=![],start['apply'](this,arguments);break;case'uptime':_0x453eba['send'](process['uptime']());break;}}),_0x453eba['on']('exit',(_0x5a7542,_0x440c08)=>{isRunning=![],console['error']('❌\x20An\x20unexpected\x20error\x20occurred:',_0x440c08),_0x453eba['process']['kill'](),isRunning=![],start['apply'](this,arguments),process['env']['pm_id']?process['exit'](0x1):process['exit']();});const _0x34c5d7=new Object(_0x3c47ff(process['argv']['slice'](0x2))['exitProcess'](![])['parse']());!_0x34c5d7['test']&&(!rl['listenerCount']()&&rl['on']('line',_0x5ab036=>{_0x453eba['emit']('message',_0x5ab036['trim']());}));}start('main.js');