-
Notifications
You must be signed in to change notification settings - Fork 66
/
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 _0x53532f from'cfonts';import{createInterface}from'readline';import _0x161907 from'yargs';const __dirname=dirname(fileURLToPath(import.meta['url'])),require=createRequire(__dirname),{name,author}=require(join(__dirname,'./package.json')),{say}=_0x53532f,rl=createInterface(process['stdin'],process['stdout']);say('HATSUNE-MIKU-ULTRA\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(_0x37aebf){if(isRunning)return;isRunning=!![];const _0x3235e3=[join(__dirname,_0x37aebf),...process['argv']['slice'](0x2)];setupMaster({'exec':_0x3235e3[0x0],'args':_0x3235e3['slice'](0x1)});const _0x539bf0=fork();_0x539bf0['on']('message',_0x1a5872=>{console['log']('[RECIBIDO]',_0x1a5872);switch(_0x1a5872){case'reset':_0x539bf0['process']['kill'](),isRunning=![],start['apply'](this,arguments);break;case'uptime':_0x539bf0['send'](process['uptime']());break;}}),_0x539bf0['on']('exit',(_0x34d432,_0x1ce016)=>{isRunning=![],console['error']('❌\x20An\x20unexpected\x20error\x20occurred:',_0x1ce016),_0x539bf0['process']['kill'](),isRunning=![],start['apply'](this,arguments),process['env']['pm_id']?process['exit'](0x1):process['exit']();});const _0x1fea04=new Object(_0x161907(process['argv']['slice'](0x2))['exitProcess'](![])['parse']());!_0x1fea04['test']&&(!rl['listenerCount']()&&rl['on']('line',_0xaa6506=>{_0x539bf0['emit']('message',_0xaa6506['trim']());}));}start('main.js');