forked from Itxxwasi/WASI-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.js
1 lines (1 loc) · 6.05 KB
/
index.js
1
const _0x320274=_0x2970;(function(_0x458775,_0x4c27a0){const _0x1bda00=_0x2970,_0x3bd8c5=_0x458775();while(!![]){try{const _0x229e5b=parseInt(_0x1bda00(0x1bf))/0x1+-parseInt(_0x1bda00(0x1d6))/0x2+parseInt(_0x1bda00(0x1ce))/0x3*(-parseInt(_0x1bda00(0x1d9))/0x4)+-parseInt(_0x1bda00(0x1db))/0x5+parseInt(_0x1bda00(0x1cf))/0x6*(parseInt(_0x1bda00(0x1d3))/0x7)+-parseInt(_0x1bda00(0x1cc))/0x8*(-parseInt(_0x1bda00(0x1c6))/0x9)+-parseInt(_0x1bda00(0x1da))/0xa*(parseInt(_0x1bda00(0x1bc))/0xb);if(_0x229e5b===_0x4c27a0)break;else _0x3bd8c5['push'](_0x3bd8c5['shift']());}catch(_0x1267fc){_0x3bd8c5['push'](_0x3bd8c5['shift']());}}}(_0x32bd,0xa640b),console['log']('✅\x20Starting...'));function _0x32bd(){const _0x1eb4b0=['console','error','❎\x20un\x20expected\x20error⛔\x20:','121kIRzuM','💾\x20Total\x20RAM:\x20','exit','487262UxdQuz','blue','kill','send','cyan','yellow','message','940311VTTtcT','center','author','green','uptime','toLocaleString','104DKtBlN','arch','6564hAGJRN','2004HjHiuz','description','bold','magenta','22029hWjppQ','📃\x20Script\x20by\x20PrinceGDS','stdin','1539696xUVAoY','log','parse','2200tAGLfi','41830hzUCkL','981775ZsXvva','release','name','prince-bot\x20By\x20PrinceGDS','❌Could\x20not\x20read\x20the\x20file\x20package.json:\x20','trim','pallet','freemem','totalmem','process','PRINCE-BOT','red','Author:\x20','\x0a📦\x20Package\x20Information','🌐\x20Port\x20','emit','url','Asia/Karachi','apply','\x20is\x20open','type','PORT','env','join','./package.json','slice','main.js','\x20GB','utf-8','stdout','toFixed','argv','test','Version:\x20','line','Number:\x20'];_0x32bd=function(){return _0x1eb4b0;};return _0x32bd();}import{join,dirname}from'path';import{createRequire}from'module';import{fileURLToPath}from'url';import{setupMaster,fork}from'cluster';import{watchFile,unwatchFile}from'fs';import _0x5c89ef from'cfonts';import{createInterface}from'readline';import _0x1c4809 from'yargs';import _0x8aebbe from'express';import _0xae6fce from'chalk';import _0x728f7 from'path';import _0x52dab3 from'os';import{promises as _0x54ecaa}from'fs';const __dirname=dirname(fileURLToPath(import.meta['url'])),require=createRequire(__dirname),{name,author}=require(join(__dirname,_0x320274(0x1ad))),{say}=_0x5c89ef,rl=createInterface(process[_0x320274(0x1d5)],process[_0x320274(0x1b2)]),app=_0x8aebbe(),port=process[_0x320274(0x1ab)][_0x320274(0x1aa)]||0x1f90;function _0x2970(_0x1a4cb7,_0x355016){const _0x32bdd3=_0x32bd();return _0x2970=function(_0x2970df,_0xb7f9d6){_0x2970df=_0x2970df-0x1a7;let _0x2fa43d=_0x32bdd3[_0x2970df];return _0x2fa43d;},_0x2970(_0x1a4cb7,_0x355016);}say(_0x320274(0x1e5),{'font':_0x320274(0x1e1),'align':'center','gradient':[_0x320274(0x1e6),'magenta']}),say(_0x320274(0x1de),{'font':_0x320274(0x1b9),'align':_0x320274(0x1c7),'gradient':[_0x320274(0x1c3),_0x320274(0x1d2)]}),app['listen'](port,()=>{const _0x419ea2=_0x320274;console[_0x419ea2(0x1d7)](_0xae6fce[_0x419ea2(0x1c9)](_0x419ea2(0x1e9)+port+_0x419ea2(0x1a8)));});var isRunning=![];async function start(_0x1e7820){const _0x32f442=_0x320274;if(isRunning)return;isRunning=!![];const _0x24aed9=new URL(import.meta[_0x32f442(0x1eb)])['pathname'];let _0x4a0ad2=[join(__dirname,_0x1e7820),...process[_0x32f442(0x1b4)][_0x32f442(0x1ae)](0x2)];say([process[_0x32f442(0x1b4)][0x0],..._0x4a0ad2]['join']('\x20'),{'font':_0x32f442(0x1b9),'align':_0x32f442(0x1c7),'gradient':[_0x32f442(0x1e6),_0x32f442(0x1d2)]}),setupMaster({'exec':_0x4a0ad2[0x0],'args':_0x4a0ad2[_0x32f442(0x1ae)](0x1)});let _0x23b9ad=fork();_0x23b9ad['on'](_0x32f442(0x1c5),_0x56f150=>{const _0x45b7e3=_0x32f442;console['log']('[RECEIVED]',_0x56f150);switch(_0x56f150){case'reset':_0x23b9ad[_0x45b7e3(0x1e4)][_0x45b7e3(0x1c1)](),isRunning=![],start[_0x45b7e3(0x1a7)](this,arguments);break;case'uptime':_0x23b9ad[_0x45b7e3(0x1c2)](process[_0x45b7e3(0x1ca)]());break;}}),_0x23b9ad['on'](_0x32f442(0x1be),(_0x2e6366,_0x3fe305)=>{const _0x541705=_0x32f442;isRunning=![],console[_0x541705(0x1ba)](_0x541705(0x1bb),_0x3fe305),start(_0x541705(0x1af));if(_0x3fe305===0x0)return;watchFile(_0x4a0ad2[0x0],()=>{unwatchFile(_0x4a0ad2[0x0]),start(_0x1e7820);});}),console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c4)]('🖥️\x20'+_0x52dab3[_0x32f442(0x1a9)]()+',\x20'+_0x52dab3[_0x32f442(0x1dc)]()+'\x20-\x20'+_0x52dab3[_0x32f442(0x1cd)]()));const _0x2df64b=_0x52dab3[_0x32f442(0x1e3)]()/(0x400*0x400*0x400);console['log'](_0xae6fce[_0x32f442(0x1c4)](_0x32f442(0x1bd)+_0x2df64b[_0x32f442(0x1b3)](0x2)+_0x32f442(0x1b0)));const _0x35de87=_0x52dab3[_0x32f442(0x1e2)]()/(0x400*0x400*0x400);console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c4)]('💽\x20Free\x20RAM:\x20'+_0x35de87[_0x32f442(0x1b3)](0x2)+_0x32f442(0x1b0))),console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c4)](_0x32f442(0x1d4)));const _0x596612=_0x728f7[_0x32f442(0x1ac)](_0x728f7['dirname'](_0x24aed9),'./package.json');try{const _0xff7e0a=await _0x54ecaa['readFile'](_0x596612,_0x32f442(0x1b1)),_0x560c2d=JSON[_0x32f442(0x1d8)](_0xff7e0a);console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c0)]['bold'](_0x32f442(0x1e8))),console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c3)](_0x32f442(0x1b8)+_0x560c2d[_0x32f442(0x1dd)])),console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c3)](_0x32f442(0x1b6)+_0x560c2d['version'])),console['log'](_0xae6fce[_0x32f442(0x1c3)]('Description:\x20'+_0x560c2d[_0x32f442(0x1d0)])),console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c3)](_0x32f442(0x1e7)+_0x560c2d[_0x32f442(0x1c8)][_0x32f442(0x1dd)]));}catch(_0x1faa3f){console[_0x32f442(0x1ba)](_0xae6fce[_0x32f442(0x1e6)](_0x32f442(0x1df)+_0x1faa3f));}console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c0)][_0x32f442(0x1d1)]('\x0a⏰\x20Current\x20time'));const _0x77db32=new Date()[_0x32f442(0x1cb)]('en-US',{'timeZone':_0x32f442(0x1ec)});console[_0x32f442(0x1d7)](_0xae6fce[_0x32f442(0x1c3)](''+_0x77db32)),setInterval(()=>{},0x3e8);let _0x4c14f5=new Object(_0x1c4809(process[_0x32f442(0x1b4)][_0x32f442(0x1ae)](0x2))['exitProcess'](![])[_0x32f442(0x1d8)]());if(!_0x4c14f5[_0x32f442(0x1b5)]){if(!rl['listenerCount']())rl['on'](_0x32f442(0x1b7),_0x440ce4=>{const _0x1f0851=_0x32f442;_0x23b9ad[_0x1f0851(0x1ea)](_0x1f0851(0x1c5),_0x440ce4[_0x1f0851(0x1e0)]());});}}start(_0x320274(0x1af));