UNPKG

@bastion/tesseract

Version:

The heart and soul of the Bastion bot.

1 lines 2.55 kB
const a11_0x280040=a11_0x4ca8;(function(_0x34a82e,_0x63531){const _0x500247=a11_0x4ca8,_0x171d12=_0x34a82e();while(!![]){try{const _0x1321fa=parseInt(_0x500247(0x116))/0x1+-parseInt(_0x500247(0x125))/0x2+parseInt(_0x500247(0x128))/0x3*(-parseInt(_0x500247(0x11e))/0x4)+parseInt(_0x500247(0x11a))/0x5*(parseInt(_0x500247(0x117))/0x6)+-parseInt(_0x500247(0x124))/0x7+-parseInt(_0x500247(0x11c))/0x8*(parseInt(_0x500247(0x114))/0x9)+-parseInt(_0x500247(0x115))/0xa*(-parseInt(_0x500247(0x121))/0xb);if(_0x1321fa===_0x63531)break;else _0x171d12['push'](_0x171d12['shift']());}catch(_0xd200dd){_0x171d12['push'](_0x171d12['shift']());}}}(a11_0x2cd2,0x51867));const a11_0x4598ed=(function(){let _0x58159f=!![];return function(_0xf37756,_0x3ed490){const _0x32f083=_0x58159f?function(){const _0x5af6c9=a11_0x4ca8;if(_0x3ed490){const _0x3144cc=_0x3ed490[_0x5af6c9(0x11d)](_0xf37756,arguments);return _0x3ed490=null,_0x3144cc;}}:function(){};return _0x58159f=![],_0x32f083;};}()),a11_0x575f8a=a11_0x4598ed(this,function(){const _0xa76912=a11_0x4ca8;return a11_0x575f8a[_0xa76912(0x119)]()[_0xa76912(0x127)]('(((.+)+)+)+$')[_0xa76912(0x119)]()[_0xa76912(0x11b)](a11_0x575f8a)['search'](_0xa76912(0x120));});a11_0x575f8a();import a11_0x3b10fe from'dotenv';import{REST,Routes}from'discord.js';import a11_0x26b08b from'../TesseractLogger.js';import a11_0x20eaa9 from'../TesseractSettings.js';import a11_0x513435 from'../utils/getCommands.js';function a11_0x4ca8(_0x4e9dda,_0x469c7d){const _0x5c9cd8=a11_0x2cd2();return a11_0x4ca8=function(_0x575f8a,_0x4598ed){_0x575f8a=_0x575f8a-0x113;let _0x2cd2c4=_0x5c9cd8[_0x575f8a];return _0x2cd2c4;},a11_0x4ca8(_0x4e9dda,_0x469c7d);}function a11_0x2cd2(){const _0x4b2ced=['put','4020373KzIDHe','724558nrrAne','error','search','8241EwgyiO','applicationCommands','1031517GhrFXw','5020760VacdIR','361518AYzFYI','18kTQkdG','Successfully\x20published\x20commands\x20to\x20Discord.','toString','1002045hkhqhF','constructor','8inIWOL','apply','116elxyWc','token','(((.+)+)+)+$','11qMUHhS','info'];a11_0x2cd2=function(){return _0x4b2ced;};return a11_0x2cd2();}a11_0x3b10fe['config']();const settings=new a11_0x20eaa9(),rest=new REST({'version':'10'})['setToken'](settings[a11_0x280040(0x11f)]),exec=async()=>{const _0x34a329=a11_0x280040;try{a11_0x26b08b['info']('Publishing\x20commands\x20to\x20Discord...'),await rest[_0x34a329(0x123)](Routes[_0x34a329(0x113)](settings['id']),{'body':a11_0x513435()}),a11_0x26b08b[_0x34a329(0x122)](_0x34a329(0x118));}catch(_0xd27c40){a11_0x26b08b[_0x34a329(0x126)](_0xd27c40);}};export{exec};