@bastion/tesseract
Version:
The heart and soul of the Bastion bot.
1 lines • 3.17 kB
JavaScript
const a1_0x303d3f=a1_0x507f;function a1_0x9e99(){const _0x389bb9=['nsfw','toString','toJSON','enabled','description','unsafe','3730fUlCrh','boolean','2wDvEZK','387976TUkmYe','options','910140aTrrDg','219496JJZnxZ','(((.+)+)+)+$','308526nnNTOM','userPermissions','search','4048AfBIim','owner','constructor','clientPermissions','group','ChatInput','714lFXSjh','type','521619tzeArL','name','9QyfDeD'];a1_0x9e99=function(){return _0x389bb9;};return a1_0x9e99();}(function(_0x3839af,_0x175acc){const _0x59469c=a1_0x507f,_0x1f0703=_0x3839af();while(!![]){try{const _0x411239=-parseInt(_0x59469c(0x1f7))/0x1*(-parseInt(_0x59469c(0x1f3))/0x2)+parseInt(_0x59469c(0x1f9))/0x3+parseInt(_0x59469c(0x1fc))/0x4+parseInt(_0x59469c(0x1f1))/0x5*(-parseInt(_0x59469c(0x1e6))/0x6)+parseInt(_0x59469c(0x1e8))/0x7+parseInt(_0x59469c(0x1f4))/0x8*(-parseInt(_0x59469c(0x1ea))/0x9)+-parseInt(_0x59469c(0x1f6))/0xa;if(_0x411239===_0x175acc)break;else _0x1f0703['push'](_0x1f0703['shift']());}catch(_0x4f3ee7){_0x1f0703['push'](_0x1f0703['shift']());}}}(a1_0x9e99,0x2966e));const a1_0x644cb1=(function(){let _0x41a901=!![];return function(_0xc09e9d,_0x575ea9){const _0x4f1e73=_0x41a901?function(){if(_0x575ea9){const _0x2318be=_0x575ea9['apply'](_0xc09e9d,arguments);return _0x575ea9=null,_0x2318be;}}:function(){};return _0x41a901=![],_0x4f1e73;};}()),a1_0x1eb012=a1_0x644cb1(this,function(){const _0x13a967=a1_0x507f;return a1_0x1eb012[_0x13a967(0x1ec)]()[_0x13a967(0x1fb)](_0x13a967(0x1f8))['toString']()[_0x13a967(0x1fe)](a1_0x1eb012)[_0x13a967(0x1fb)](_0x13a967(0x1f8));});function a1_0x507f(_0x2b1cfb,_0x14a977){const _0x116da6=a1_0x9e99();return a1_0x507f=function(_0x1eb012,_0x644cb1){_0x1eb012=_0x1eb012-0x1e3;let _0x9e9902=_0x116da6[_0x1eb012];return _0x9e9902;},a1_0x507f(_0x2b1cfb,_0x14a977);}a1_0x1eb012();import{EventEmitter}from'node:events';import{ApplicationCommandType}from'discord.js';class TesseractCommand extends EventEmitter{[a1_0x303d3f(0x1e4)];['type'];[a1_0x303d3f(0x1e9)];[a1_0x303d3f(0x1ef)];[a1_0x303d3f(0x1ee)];['options'];['unsafe'];[a1_0x303d3f(0x1eb)];[a1_0x303d3f(0x1fd)];[a1_0x303d3f(0x1e3)];['userPermissions'];constructor(_0x32b1f9){const _0x2a2344=a1_0x303d3f;super(),this[_0x2a2344(0x1e7)]=_0x32b1f9['type']||ApplicationCommandType[_0x2a2344(0x1e5)],this[_0x2a2344(0x1e9)]=_0x32b1f9['name'],this[_0x2a2344(0x1ef)]=_0x32b1f9[_0x2a2344(0x1ef)],this[_0x2a2344(0x1ee)]=typeof _0x32b1f9[_0x2a2344(0x1ee)]===_0x2a2344(0x1f2)?_0x32b1f9[_0x2a2344(0x1ee)]:!![],this[_0x2a2344(0x1f5)]=_0x32b1f9[_0x2a2344(0x1f5)]||[],this[_0x2a2344(0x1f0)]=_0x32b1f9[_0x2a2344(0x1f0)]||![],this[_0x2a2344(0x1eb)]=_0x32b1f9[_0x2a2344(0x1eb)]||![],this[_0x2a2344(0x1fd)]=_0x32b1f9[_0x2a2344(0x1fd)]||![],this[_0x2a2344(0x1e3)]=_0x32b1f9[_0x2a2344(0x1e3)]||[],this[_0x2a2344(0x1fa)]=_0x32b1f9[_0x2a2344(0x1fa)]||[];}[a1_0x303d3f(0x1ed)]=()=>{const _0x520897=a1_0x303d3f,_0x4ef869={'type':this[_0x520897(0x1e7)],'name':this[_0x520897(0x1e9)],'description':this[_0x520897(0x1ef)]};return this['type']===ApplicationCommandType[_0x520897(0x1e5)]&&(_0x4ef869[_0x520897(0x1f5)]=this['options']),_0x4ef869;};[a1_0x303d3f(0x1ec)]=()=>this[a1_0x303d3f(0x1e9)];}export default TesseractCommand;