forked from Keithkeizzah/KEITH-MD
-
Notifications
You must be signed in to change notification settings - Fork 0
/
commandHandler.js
1 lines (1 loc) · 2.74 KB
/
commandHandler.js
1
const _0x42b0f2=_0x3154;function _0x81b9(){const _0x4f729f=['121872OAqsIj','basename','push','forEach','path','1078365DsoOGj','statSync','join','isDirector','1425176GJNDqO','exports','4093749VeFoTS','NFglg','789078TbaQda','aTNeO','5965fKzMvU','FHhbE','78IqxwXf','1591933SWzeiz','BojMx','endsWith','readdirSyn','Cmds','24NLqWJI','.js'];_0x81b9=function(){return _0x4f729f;};return _0x81b9();}(function(_0xb878bd,_0xc904d){const _0x4ef644=_0x3154,_0x1c8bb5=_0xb878bd();while(!![]){try{const _0x100292=-parseInt(_0x4ef644(0x19f))/(0xa9f*-0x3+0x2489+-0x4ab)*(-parseInt(_0x4ef644(0x1a1))/(0x1ce1+-0xd31*-0x1+-0x2a10))+-parseInt(_0x4ef644(0x1a7))/(0x121+-0x2251+0xb11*0x3)*(parseInt(_0x4ef644(0x1a9))/(0x1c63+-0x31*-0x65+0x47*-0xac))+parseInt(_0x4ef644(0x1ae))/(0xf6f+-0x1fae+0x1044)+-parseInt(_0x4ef644(0x19d))/(0x1*0x1906+0xcaf*0x1+0x25af*-0x1)+-parseInt(_0x4ef644(0x1a2))/(-0x1944+-0x1*0x122c+0x2b77)+-parseInt(_0x4ef644(0x199))/(0x1*0x1f63+0x293*-0xb+0x1*-0x30a)+parseInt(_0x4ef644(0x19b))/(-0xc3a+0xb3c+0x1*0x107);if(_0x100292===_0xc904d)break;else _0x1c8bb5['push'](_0x1c8bb5['shift']());}catch(_0x598434){_0x1c8bb5['push'](_0x1c8bb5['shift']());}}}(_0x81b9,0x2938a+-0x3703a+0x2d7*0xf6));function _0x3154(_0x1f8eba,_0x310696){const _0x22f7f4=_0x81b9();return _0x3154=function(_0x2514b6,_0x4cdfe5){_0x2514b6=_0x2514b6-(0x1eb3+-0x24f5+0x7db);let _0x1b0047=_0x22f7f4[_0x2514b6];return _0x1b0047;},_0x3154(_0x1f8eba,_0x310696);}const fs=require('fs'),path=require(_0x42b0f2(0x1ad)),cmdsDir=path[_0x42b0f2(0x1b0)](__dirname,_0x42b0f2(0x1a6));function findAllCommandFiles(_0x453bbb){const _0x49e614=_0x42b0f2,_0x73d4d7={'NFglg':function(_0x8ecad7,_0x4980f0){return _0x8ecad7(_0x4980f0);},'BojMx':_0x49e614(0x1a8)};let _0x5949b9=[],_0x179127=0xe*-0x19c+-0x1*-0x8cb+0xdbd;function _0x570611(_0xd9bf3f){const _0x3daa7d=_0x49e614,_0x344297=fs[_0x3daa7d(0x1a5)+'c'](_0xd9bf3f);for(const _0x4f25a4 of _0x344297){const _0xc5b8ec=path[_0x3daa7d(0x1b0)](_0xd9bf3f,_0x4f25a4),_0x3c870a=fs[_0x3daa7d(0x1af)](_0xc5b8ec);if(_0x3c870a[_0x3daa7d(0x1b1)+'y']())_0x73d4d7[_0x3daa7d(0x19c)](_0x570611,_0xc5b8ec);else _0x4f25a4[_0x3daa7d(0x1a4)](_0x73d4d7[_0x3daa7d(0x1a3)])&&(_0x5949b9[_0x3daa7d(0x1ab)](_0xc5b8ec),_0x179127++);}}return _0x73d4d7[_0x49e614(0x19c)](_0x570611,_0x453bbb),{'commandFiles':_0x5949b9,'totalCommands':_0x179127};}const {commandFiles,totalCommands}=findAllCommandFiles(cmdsDir),commands={};commandFiles[_0x42b0f2(0x1ac)](_0x55a1d4=>{const _0x3a841a=_0x42b0f2,_0x22f9aa={'FHhbE':_0x3a841a(0x1a8),'aTNeO':function(_0x506db7,_0xb4b125){return _0x506db7(_0xb4b125);}},_0x4ca0b6=path[_0x3a841a(0x1aa)](_0x55a1d4,_0x22f9aa[_0x3a841a(0x1a0)]),_0xb8765b=_0x22f9aa[_0x3a841a(0x19e)](require,_0x55a1d4);commands[_0x4ca0b6]=_0xb8765b;}),module[_0x42b0f2(0x19a)]={'commands':commands,'totalCommands':totalCommands};