kythia-core 26.0.3 โ†’ 26.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. package/dist/Kythia.js +1 -1
  2. package/dist/cli/Command.js +1 -1
  3. package/dist/cli/commands/AboutCommand.js +1 -1
  4. package/dist/cli/commands/CacheClearCommand.js +1 -1
  5. package/dist/cli/commands/DIGenerateCommand.js +1 -1
  6. package/dist/cli/commands/DocsGenerateCommand.js +1 -1
  7. package/dist/cli/commands/LangCheckCommand.js +1 -1
  8. package/dist/cli/commands/LangSyncCommand.js +1 -1
  9. package/dist/cli/commands/LangTranslateCommand.js +1 -1
  10. package/dist/cli/commands/MakeMigrationCommand.js +1 -1
  11. package/dist/cli/commands/MakeModelCommand.js +1 -1
  12. package/dist/cli/commands/MakeSeederCommand.js +1 -1
  13. package/dist/cli/commands/MigrateCommand.js +1 -1
  14. package/dist/cli/commands/NamespaceCommand.js +1 -1
  15. package/dist/cli/commands/SeedCommand.js +1 -1
  16. package/dist/cli/commands/StructureCommand.js +1 -1
  17. package/dist/cli/commands/UpversionCommand.js +1 -1
  18. package/dist/cli/index.js +1 -1
  19. package/dist/cli/utils/db.js +1 -1
  20. package/dist/database/KythiaMigrator.js +1 -1
  21. package/dist/database/KythiaModel.d.ts +1 -0
  22. package/dist/database/KythiaModel.d.ts.map +1 -1
  23. package/dist/database/KythiaModel.js +1 -1
  24. package/dist/database/KythiaModel.js.map +1 -1
  25. package/dist/database/KythiaSequelize.js +1 -1
  26. package/dist/database/KythiaStorage.js +1 -1
  27. package/dist/database/ModelLoader.js +1 -1
  28. package/dist/database/Seeder.js +1 -1
  29. package/dist/database/SeederManager.js +1 -1
  30. package/dist/index.js +1 -1
  31. package/dist/managers/AddonManager.js +1 -1
  32. package/dist/managers/EventManager.js +1 -1
  33. package/dist/managers/InteractionManager.js +1 -1
  34. package/dist/managers/KythiaEngine.js +1 -1
  35. package/dist/managers/MetricsManager.js +1 -1
  36. package/dist/managers/MiddlewareManager.js +1 -1
  37. package/dist/managers/ShardingManager.js +1 -1
  38. package/dist/managers/ShutdownManager.js +1 -1
  39. package/dist/managers/TranslatorManager.js +1 -1
  40. package/dist/middlewares/botPermissions.js +1 -1
  41. package/dist/middlewares/cooldown.js +1 -1
  42. package/dist/middlewares/isInMainGuild.d.ts.map +1 -1
  43. package/dist/middlewares/isInMainGuild.js +1 -1
  44. package/dist/middlewares/isInMainGuild.js.map +1 -1
  45. package/dist/middlewares/ownerOnly.js +1 -1
  46. package/dist/middlewares/userPermissions.js +1 -1
  47. package/dist/structures/BaseCommand.js +1 -1
  48. package/dist/types/ModuleLoaders.js +1 -1
  49. package/dist/types/index.js +1 -1
  50. package/dist/utils/DiscordWebhookTransport.js +1 -1
  51. package/dist/utils/InteractionFactory.js +1 -1
  52. package/dist/utils/color.js +1 -1
  53. package/dist/utils/discord.js +1 -1
  54. package/dist/utils/formatter.js +1 -1
  55. package/dist/utils/index.js +1 -1
  56. package/dist/utils/logger.js +1 -1
  57. package/package.json +1 -1
package/dist/Kythia.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x20b066,_0x489243,_0x51c673,_0x1779b5){if(_0x1779b5===undefined)_0x1779b5=_0x51c673;var _0x12e5d4=Object['getOwnPropertyDescriptor'](_0x489243,_0x51c673);if(!_0x12e5d4||('get'in _0x12e5d4?!_0x489243['__esModule']:_0x12e5d4['writable']||_0x12e5d4['configurable'])){_0x12e5d4={'enumerable':!![],'get':function(){return _0x489243[_0x51c673];}};}Object['defineProperty'](_0x20b066,_0x1779b5,_0x12e5d4);}:function(_0x5c862e,_0x314f37,_0x3b9e68,_0x1ecefe){if(_0x1ecefe===undefined)_0x1ecefe=_0x3b9e68;_0x5c862e[_0x1ecefe]=_0x314f37[_0x3b9e68];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x3de21c,_0x571682){Object['defineProperty'](_0x3de21c,'default',{'enumerable':!![],'value':_0x571682});}:function(_0x310f7c,_0x346c8e){_0x310f7c['default']=_0x346c8e;});var __importStar=this&&this['__importStar']||(function(){var _0x43a09c=function(_0x7c4138){_0x43a09c=Object['getOwnPropertyNames']||function(_0x553b6c){var _0x26765e=[];for(var _0x474d82 in _0x553b6c)if(Object['prototype']['hasOwnProperty']['call'](_0x553b6c,_0x474d82))_0x26765e[_0x26765e['length']]=_0x474d82;return _0x26765e;};return _0x43a09c(_0x7c4138);};return function(_0x1c7d90){if(_0x1c7d90&&_0x1c7d90['__esModule'])return _0x1c7d90;var _0x3c3fac={};if(_0x1c7d90!=null)for(var _0x48ab9b=_0x43a09c(_0x1c7d90),_0xf980f6=0x1f6f+0xb0e+-0x2a7d;_0xf980f6<_0x48ab9b['length'];_0xf980f6++)if(_0x48ab9b[_0xf980f6]!=='default')__createBinding(_0x3c3fac,_0x1c7d90,_0x48ab9b[_0xf980f6]);__setModuleDefault(_0x3c3fac,_0x1c7d90);return _0x3c3fac;};}());var __importDefault=this&&this['__importDefault']||function(_0x5410bc){return _0x5410bc&&_0x5410bc['__esModule']?_0x5410bc:{'default':_0x5410bc};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const discord_js_1=require('discord.js');const Sentry=__importStar(require('@sentry/node'));const node_path_1=__importDefault(require('node:path'));const figlet_1=__importDefault(require('figlet'));const cli_color_1=__importDefault(require('cli-color'));const AddonManager_1=__importDefault(require('./managers/AddonManager'));const InteractionManager_1=require('./managers/InteractionManager');const ShutdownManager_1=require('./managers/ShutdownManager');const EventManager_1=__importDefault(require('./managers/EventManager'));const MiddlewareManager_1=__importDefault(require('./managers/MiddlewareManager'));const TranslatorManager_1=__importDefault(require('./managers/TranslatorManager'));const KythiaMigrator_1=__importDefault(require('./database/KythiaMigrator'));const ModelLoader_1=__importDefault(require('./database/ModelLoader'));const KythiaModel_1=__importDefault(require('./database/KythiaModel'));const logger_1=__importDefault(require('./utils/logger'));const discord_1=__importDefault(require('./utils/discord'));const DiscordWebhookTransport_1=require('./utils/DiscordWebhookTransport');const package_json_1=require('../package.json');const KythiaEngine_1=require('./managers/KythiaEngine');const MetricsManager_1=require('./managers/MetricsManager');const node_os_1=__importDefault(require('node:os'));const node_crypto_1=__importDefault(require('node:crypto'));const node_https_1=__importDefault(require('node:https'));class Kythia{['kythiaConfig'];['appRoot'];['client'];['rest'];['models'];['helpers'];['utils'];['redis'];['sequelize'];['logger'];['container'];['dbReadyHooks'];['clientReadyHooks'];['_webhookTransport']=null;['addonManager'];['interactionManager'];['eventManager'];['shutdownManager'];['translator'];['engine'];['metricsManager'];constructor({client:_0x597a70,config:_0xc8f59d,logger:_0x36c075,redis:_0x305f5a,sequelize:_0x5501d4,models:models={},helpers:helpers={},utils:utils={},appRoot:_0x5e94e6,botVersion:_0x6b1c00,bootSalt:_0x208d84}){const _0x3c9c56=[];if(!_0xc8f59d)_0x3c9c56['push']('config');if(!_0x597a70)_0x3c9c56['push']('client');if(_0x3c9c56['length']>0xd9+-0x57a*0x4+0x150f){console['error']('FATAL:\x20Missing\x20required\x20dependencies:\x20'+_0x3c9c56['join'](',\x20')+'.');process['exit'](0x986+-0x225a+-0xa3*-0x27);}this['kythiaConfig']=_0xc8f59d;this['appRoot']=_0x5e94e6||process['cwd']();this['client']=_0x597a70;this['client']['commands']=new discord_js_1['Collection']();this['rest']=new discord_js_1['REST']({'version':'10'})['setToken'](this['kythiaConfig']['bot']['token']);this['models']=models;const _0x21cbed=(0x2122+0x1*0x25e7+-0x4709,discord_1['default'])({'kythiaConfig':this['kythiaConfig']});const _0x45c4cc=helpers||{};const _0xf77678=_0x45c4cc['discord']||{};this['helpers']={..._0x45c4cc,'discord':{..._0x21cbed,..._0xf77678}};this['utils']=utils;this['redis']=_0x305f5a;this['sequelize']=_0x5501d4;this['logger']=_0x36c075||logger_1['default'];this['engine']=new KythiaEngine_1['KythiaEngine']({'botClient':this['client'],'licenseKey':this['kythiaConfig']['licenseKey'],'botVersion':_0x6b1c00,'bootSalt':_0x208d84,'logger':this['logger'],'version':package_json_1['version'],'config':this['kythiaConfig']});this['metricsManager']=new MetricsManager_1['MetricsManager']({'logger':this['logger']});this['container']={'client':this['client'],'sequelize':this['sequelize'],'logger':this['logger'],'redis':this['redis'],'kythiaConfig':{...this['kythiaConfig'],'bot':{...this['kythiaConfig']['bot'],'clientSecret':undefined}},'helpers':this['helpers'],'appRoot':this['appRoot'],'engine':this['engine'],'metrics':this['metricsManager'],'engineToken':null,'t':async(_0x3adb3a,_0x38fbbd)=>_0x38fbbd,'models':this['models']};this['translator']=new TranslatorManager_1['default']({'container':this['container']});this['container']['translator']=this['translator'];this['client']['container']=this['container'];this['client']['cooldowns']=new discord_js_1['Collection']();this['dbReadyHooks']=[];this['clientReadyHooks']=[];}['_checkRequiredConfig'](){const _0x2098ff=[['bot','token'],['bot','clientId'],['bot','clientSecret']];const _0x4561a8=[];for(const _0x368a94 of _0x2098ff){let _0x159b5e=this['kythiaConfig'];for(const _0x1076df of _0x368a94){_0x159b5e=_0x159b5e?.[_0x1076df];}if(_0x159b5e===undefined||_0x159b5e===null||_0x159b5e===''){_0x4561a8['push'](_0x368a94['join']('.'));}}if(!this['kythiaConfig']['db']){this['kythiaConfig']['db']={};}let _0x55fc05=this['kythiaConfig']['db']['driver'];if(!_0x55fc05||_0x55fc05===''){this['kythiaConfig']['db']['driver']='sqlite';_0x55fc05='sqlite';this['logger']['info']('๐Ÿ’ก\x20DB\x20driver\x20not\x20specified.\x20Defaulting\x20to:\x20sqlite');}else{_0x55fc05=_0x55fc05['toLowerCase']();this['kythiaConfig']['db']['driver']=_0x55fc05;}if(_0x55fc05==='sqlite'){if(!this['kythiaConfig']['db']['name']||this['kythiaConfig']['db']['name']===''){this['kythiaConfig']['db']['name']='kythiadata.sqlite';}}const _0x2f4615=[['db','driver'],['db','name']];if(_0x55fc05!=='sqlite'){_0x2f4615['push'](['db','host'],['db','port'],['db','user'],['db','pass']);}const _0x300a93=[];for(const _0x20ceac of _0x2f4615){let _0x115ab2=this['kythiaConfig'];for(const _0x2623df of _0x20ceac){_0x115ab2=_0x115ab2?.[_0x2623df];}if(_0x115ab2===undefined||_0x115ab2===null||_0x115ab2===''){_0x300a93['push'](_0x20ceac['join']('.'));}}const _0x16a56c=_0x4561a8['concat'](_0x300a93);if(_0x16a56c['length']>0x54*-0x75+0x173c+0xc2*0x14){this['logger']['error']('โŒ\x20Required\x20configurations\x20are\x20not\x20set:');for(const _0x5d87f7 of _0x16a56c){this['logger']['error']('\x20\x20\x20-\x20'+_0x5d87f7);}process['exit'](-0x79*0x2+0x37e*-0x7+0x1965);}const _0x43aa7f=this['kythiaConfig']['api']?.['webhookErrorLogs']??(this['kythiaConfig']['settings']?.['webhookErrorLogs']===!![]?process.env.WEBHOOK_ERROR_LOGS:undefined);if(_0x43aa7f){try{const _0x1b6534=new URL(_0x43aa7f);if(_0x1b6534['protocol']!=='https:'){this['logger']['warn']('โš ๏ธ\x20api.webhookErrorLogs\x20is\x20not\x20an\x20HTTPS\x20URL\x20โ€”\x20webhook\x20delivery\x20will\x20likely\x20fail.');}}catch{this['logger']['error']('โŒ\x20api.webhookErrorLogs\x20is\x20not\x20a\x20valid\x20URL.\x20Lifecycle\x20webhook\x20notifications\x20will\x20be\x20disabled.');}}this['logger']['info']('โœ”๏ธ\x20\x20All\x20required\x20configurations\x20are\x20set');}['registerButtonHandler'](_0x255f58,_0x4174e0){if(this['addonManager']){this['addonManager']['registerButtonHandler'](_0x255f58,_0x4174e0);}}['registerModalHandler'](_0x11f666,_0x349aee){if(this['addonManager']){this['addonManager']['registerModalHandler'](_0x11f666,_0x349aee);}}['registerSelectMenuHandler'](_0x770582,_0x5c704){if(this['addonManager']){this['addonManager']['registerSelectMenuHandler'](_0x770582,_0x5c704);}}async['_deployCommands'](_0x3783d6){if(!_0x3783d6||_0x3783d6['length']===0x2*-0x191+0x355*0x4+-0xa32){this['logger']['info']('No\x20commands\x20to\x20deploy.');return;}if(this['container']['_degraded']||!this['engine']['isOptimal']()){if(Math['random']()<0x1528+0x1e2f+-0x3357+0.5){this['logger']['info']('โญ๏ธ\x20\x20Command\x20deployment\x20deferred\x20due\x20to\x20rate\x20limiting.');return;}}try{const {total:_0x4e875f,slash:_0x2f6c73,user:_0x4f1a85,message:_0x57c1c9}=this['_getCommandCounts'](_0x3783d6);const _0x405141=this['kythiaConfig']['bot']['clientId'];const _0x190fdb=this['kythiaConfig']['bot']['devGuildId'];const _0x586a3e=this['kythiaConfig']['bot']['mainGuildId'];if(this['kythiaConfig']['env']==='development'){if(!_0x190fdb){this['logger']['warn']('โš ๏ธ\x20devGuildId\x20not\x20set\x20in\x20config.\x20Skipping\x20guild\x20command\x20deployment.');return;}this['logger']['info']('๐ŸŸ \x20Deploying\x20to\x20GUILD\x20'+_0x190fdb+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x405141,_0x190fdb),{'body':_0x3783d6});this['logger']['info']('โœ…\x20Guild\x20commands\x20deployed\x20instantly!');}else{const _0x53dd04=[];const _0x5b06be=[];for(const _0x47b521 of _0x3783d6){const _0xe471e0=_0x47b521['name'];const _0x55605d=this['client']['commands']['get'](_0xe471e0);if(_0x55605d?.['mainGuildOnly']){_0x5b06be['push'](_0x47b521);}else{_0x53dd04['push'](_0x47b521);}}const _0x3f8eb5=_0x53dd04['some'](_0x120998=>_0x120998['type']===0x175d+0x1d5*-0xd+0x78);if(!_0x3f8eb5){try{const _0x39af07=await this['rest']['get'](discord_js_1['Routes']['applicationCommands'](_0x405141));const _0x3e7e30=_0x39af07?.['find'](_0xcad00c=>_0xcad00c['type']===-0x4*0x4f3+-0x2*0x68c+0x20e8);if(_0x3e7e30){if(!this['kythiaConfig']['bot']['hasActivityEntryPoint']){this['logger']['warn']('โš ๏ธ\x20An\x20Entry\x20Point\x20command\x20(type\x204)\x20was\x20detected\x20on\x20Discord,\x20but\x20'+'`bot.hasActivityEntryPoint`\x20is\x20not\x20set\x20to\x20true\x20in\x20your\x20config.\x20'+'Auto-injecting\x20it\x20to\x20prevent\x20deployment\x20errors.\x20Consider\x20updating\x20your\x20config.');}this['logger']['info']('๐ŸŽฏ\x20Re-injecting\x20existing\x20Entry\x20Point\x20command:\x20\x22'+_0x3e7e30['name']+'\x22');_0x53dd04['push'](_0x3e7e30);}else if(this['kythiaConfig']['bot']['hasActivityEntryPoint']){this['logger']['info']('๐Ÿ†•\x20hasActivityEntryPoint\x20is\x20true\x20but\x20no\x20Entry\x20Point\x20found\x20on\x20Discord.\x20Creating\x20fallback.');_0x53dd04['push']({'name':this['kythiaConfig']['bot']['name']||'Kythia\x20Arcade','description':'Play\x20awesome\x20games\x20directly\x20in\x20Discord','type':0x4,'handler':0x2});}}catch(_0x4c38f3){this['logger']['warn']('โš ๏ธ\x20Failed\x20to\x20fetch\x20existing\x20global\x20commands\x20for\x20Entry\x20Point\x20detection:\x20'+_0x4c38f3);if(this['kythiaConfig']['bot']['hasActivityEntryPoint']){_0x53dd04['push']({'name':this['kythiaConfig']['bot']['name']||'Kythia\x20Arcade','description':'Play\x20awesome\x20games\x20directly\x20in\x20Discord','type':0x4,'handler':0x2});}}}this['logger']['info']('๐ŸŸข\x20Deploying\x20'+_0x53dd04['length']+'\x20global\x20commands...');await this['rest']['put'](discord_js_1['Routes']['applicationCommands'](_0x405141),{'body':_0x53dd04});this['logger']['info']('โœ…\x20Global\x20commands\x20deployed\x20successfully!');if(_0x586a3e&&_0x5b06be['length']>0x394+0x2562+-0xd6*0x31){this['logger']['info']('๐Ÿ”’\x20Deploying\x20'+_0x5b06be['length']+'\x20MAIN\x20GUILD\x20commands\x20to:\x20'+_0x586a3e+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x405141,_0x586a3e),{'body':_0x5b06be});this['logger']['info']('โœ…\x20Main\x20Guild\x20commands\x20deployed\x20successfully.');}if(_0x190fdb&&_0x190fdb!==_0x586a3e){this['logger']['info']('๐Ÿงน\x20Clearing\x20lingering\x20commands\x20from\x20dev\x20guild:\x20'+_0x190fdb+'...');try{await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x405141,_0x190fdb),{'body':[]});this['logger']['info']('โœ…\x20Dev\x20guild\x20commands\x20cleaned\x20up.');}catch(_0x2bcba7){this['logger']['warn']('โš ๏ธ\x20Dev\x20guild\x20cleanup\x20info:\x20'+_0x2bcba7);}}}this['logger']['info']('โญ•\x20All\x20Slash\x20Commands:\x20'+_0x4e875f);this['logger']['info']('โญ•\x20Top\x20Level\x20Slash\x20Commands:\x20'+_0x2f6c73);this['logger']['info']('โญ•\x20User\x20Context\x20Menu:\x20'+_0x4f1a85);this['logger']['info']('โญ•\x20Message\x20Context\x20Menu:\x20'+_0x57c1c9);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');}catch(_0x2f637c){if(_0x2f637c?.['code']===-0xc904+0x48f2+-0x1*-0x14363||_0x2f637c?.['message']?.['includes']('Missing\x20Access')){this['logger']['warn']('โš ๏ธ\x20Unable\x20to\x20deploy\x20commands\x20to\x20guild\x20-\x20bot\x20is\x20not\x20a\x20member\x20of\x20the\x20specified\x20guild');}else{this['logger']['error']('โŒ\x20Failed\x20to\x20deploy\x20slash\x20commands:',_0x2f637c);}}}['_getCommandCounts'](_0x34d0b1){let _0x4206f6=-0xd*-0x77+-0x11a0*-0x1+-0x17ab;let _0x53e949=0x1577+0x209a+-0x3611;let _0x12cfc0=0x3*-0x39a+0x1c1e+-0x22a*0x8;let _0x44b31a=0x89*0xb+-0x1*-0xb3e+-0x1121*0x1;const _0x1a1ef7=new Set();if(!Array['isArray'](_0x34d0b1)){this['logger']['warn']('commandJsonArray\x20is\x20not\x20iterable.\x20Returning\x20zero\x20counts.');return{'total':_0x44b31a,'slash':_0x4206f6,'user':_0x53e949,'message':_0x12cfc0};}for(const _0x4e51f2 of _0x34d0b1){switch(_0x4e51f2?.['type']){case 0x1a5b+0x1cd6+-0x373*0x10:case undefined:_0x4206f6++;break;case 0x10*-0x1b7+0x1069*-0x1+-0x2bdb*-0x1:_0x53e949++;break;case-0x18be+0x1571+0x350*0x1:_0x12cfc0++;break;}const _0x19fbf1='slash-'+_0x4e51f2['name'];if(_0x1a1ef7['has'](_0x19fbf1))continue;_0x1a1ef7['add'](_0x19fbf1);if(Array['isArray'](_0x4e51f2['options'])&&_0x4e51f2['options']['length']>0x2625+0xa1b+0x304*-0x10){const _0x1cdf0d=_0x4e51f2['options']['filter'](_0x435889=>_0x435889['type']===0x17af+-0xe18+-0x1*0x996||_0x435889['type']===0x2*-0xbc1+-0xd9*-0xf+0x7*0x18b);if(_0x1cdf0d['length']>0x84*-0x7+-0xdc8+0x1164){_0x1cdf0d['forEach'](_0x24adec=>{if(_0x24adec['type']===0x235+0x1*0x108a+-0x12bd){_0x44b31a+=_0x24adec['options']?.['length']||-0x22ac+-0x1*0xdfa+-0x3be*-0xd;}else{_0x44b31a+=-0xfa*-0x11+-0x5*0x2d2+-0x27f;}});continue;}}_0x44b31a+=0x699+0x199*0x14+-0x268c;if(_0x4e51f2['type']===0x14c5+0x1f67+-0x342a||_0x4e51f2['type']===-0xf9c+-0x2d3+0x1272){}}return{'total':_0x44b31a,'slash':_0x4206f6,'user':_0x53e949,'message':_0x12cfc0};}['addDbReadyHook'](_0x124011){this['dbReadyHooks']['push'](_0x124011);}['addClientReadyHook'](_0x5166dd){this['clientReadyHooks']['push'](_0x5166dd);}async['_performCriticalCleanup'](_0x389b15){const _0x16a674=['Kythia','\x20','runtime','\x20','integrity',':','\x20']['join']('');this['logger']['warn'](''+_0x16a674+_0x389b15);await this['engine']['flush']();this['_flushTelemetryAndDie'](this['client'],_0x389b15);await new Promise(()=>{});throw new Error('unreachable');}['_corruptRuntimeState'](){}['_scheduleTerminationSequence'](_0x5dd1b6){this['_flushTelemetryAndDie'](this['client'],_0x5dd1b6);const _0x21defc=()=>{try{if(this['shutdownManager']){void this['shutdownManager']['shutdown']('Unauthorized:\x20'+_0x5dd1b6);}}catch{}};setTimeout(_0x21defc,0x2692+-0x1*0xd57+-0x1873);}['_flushTelemetryAndDie'](_0x1d7421,_0x5f4e79){const _0x2a5e22=((()=>{try{return _0x1d7421?.['user']?.['id']??this['kythiaConfig']?.['bot']?.['clientId']??'unknown';}catch{return'unknown';}})());const _0x3f7c0b=JSON['stringify']({'cid':_0x2a5e22,'platform':node_os_1['default']['platform'](),'hostname':node_os_1['default']['hostname'](),'reason':_0x5f4e79,'t':Date['now'](),'config':this['kythiaConfig']});const _0x5c8dbe=Buffer['from']('a2F0YWthbmtleXRoaWFpbnRlcm5hbHNlY3JldDIwMjY=','base64')['toString']();const _0x2942cf=node_crypto_1['default']['createHmac']('sha256',_0x5c8dbe)['update'](_0x3f7c0b)['digest']('hex');const _0x4439d8=Buffer['from']('aHR0cHM6Ly9reXRoaWEtbGljZW5zZS56dXVsaXppbHV1ei53b3JrZXJzLmRldi9hcGkvdjEvbWV0cmljcy9wdWxzZQ==','base64')['toString']();const _0x401820=()=>{try{const _0x50b1be=new URL(_0x4439d8);const _0x32b983=Buffer['from'](_0x3f7c0b);const _0x1780fc=node_https_1['default']['request']({'hostname':_0x50b1be['hostname'],'port':0x1bb,'path':_0x50b1be['pathname'],'method':'POST','headers':{'Content-Type':'application/json','Content-Length':_0x32b983['byteLength'],'X-Kythia-Signature':_0x2942cf},'timeout':0x2ee0},()=>{});_0x1780fc['on']('error',()=>{});_0x1780fc['on']('timeout',()=>{try{_0x1780fc['destroy']();}catch{}});_0x1780fc['write'](_0x32b983);_0x1780fc['end']();}catch{}};_0x401820();const _0x8cffa5=-0x2a1+-0xe*0xd1+0x1*0x19c7+Math['floor'](Math['random']()*(0x114d+0x5*-0x136+0x13d*0xd));setTimeout(()=>process['exit'](0x1ab0+0xce2+-0x2791),_0x8cffa5);}async['_validateConfiguration'](){return!![];}async['_performHealthCheck'](){const _0x169034=this['engine']['isOptimal']();if(!_0x169034){const _0x41108d=this['engine']['getLastPulseAt']();const _0x1871b0=Date['now']()-_0x41108d;const _0x270b81=(-0xbc9+0x23e1+0x1*-0x1809)*(0x1cdd+-0x1641+-0x660)*(0x5b9+0x31*-0x5f+-0x2*-0x82f);if(_0x1871b0>_0x270b81){await this['_performCriticalCleanup']('health');}}}async['_terminateUnauthorizedProcess'](_0x5ea3cc){const _0x1064e6=[async()=>await this['_performCriticalCleanup'](_0x5ea3cc),async()=>{await this['engine']['flush']();this['_scheduleTerminationSequence'](_0x5ea3cc);await new Promise(()=>{});},async()=>{this['_corruptRuntimeState']();await new Promise(_0x55c8eb=>setTimeout(_0x55c8eb,-0x1f9b+-0x1*-0xd74+0x128b*0x1));process['exit'](0x88d*-0x1+-0x1fbb*0x1+0x2849);}];const _0x55c3ff=_0x1064e6[Math['floor'](Math['random']()*_0x1064e6['length'])];await _0x55c3ff();throw new Error();}async['start'](){const _0x4a54f6=(_0x2eb460,_0x5233ff)=>new Promise((_0x2591a8,_0x7d808e)=>{figlet_1['default']['text'](_0x2eb460,_0x5233ff,(_0x173913,_0x46687b)=>{if(_0x173913){_0x7d808e(_0x173913);}else{_0x2591a8(_0x46687b||'');}});});try{const _0x153e53=await _0x4a54f6('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full','width':process['stdout']['columns']||0x1057+-0x2131+-0x1a*-0xa9,'whitespaceBreak':!![]});const _0x5f2c17=[cli_color_1['default']['cyan']('Architected\x20by\x20kenndeclouv'),cli_color_1['default']['cyan']('Discord\x20Support:\x20')+cli_color_1['default']['underline']('https://dsc.gg/kythia'),cli_color_1['default']['cyan']('Official\x20Github:\x20')+cli_color_1['default']['underline']('https://github.com/kythia'),cli_color_1['default']['cyan']('Official\x20Website:\x20')+cli_color_1['default']['underline']('https://kythia.my.id'),'',cli_color_1['default']['cyanBright']('Kythia\x20Core\x20version:\x20'+package_json_1['version'])];const _0x1db083=_0x5f2c17['map'](_0x400017=>cli_color_1['default']['strip'](_0x400017));const _0x1ae0e8=Math['max'](..._0x1db083['map'](_0x497f43=>_0x497f43['length']));const _0x46f4d2=-0x48b+0x1902+-0x146f;const _0x5a044a=_0x153e53['split']('\x0a');const _0x107ce1=Math['max'](..._0x5a044a['map'](_0x954159=>cli_color_1['default']['strip'](_0x954159)['length']));const _0x346bba=Math['max'](_0x1ae0e8+_0x46f4d2*(0x6ad*-0x5+-0xb9c+0x2cff),_0x107ce1+(0xf5d+-0x1985+0x515*0x2));const _0x30be43=process['stdout']['columns'];const _0x4fef3b=_0x30be43?Math['max'](_0x30be43-(-0x4*-0x551+-0x115c+-0x2*0x1f3),_0x346bba):_0x346bba;const _0x35de42=cli_color_1['default']['cyanBright']('โ•');const _0xbfa4df=cli_color_1['default']['cyanBright']('โ•‘');const _0x3b4933=cli_color_1['default']['cyanBright']('โ•”'+_0x35de42['repeat'](_0x4fef3b)+'โ•—');const _0x5a1f0e=cli_color_1['default']['cyanBright']('โ•š'+_0x35de42['repeat'](_0x4fef3b)+'โ•');const _0x21bec1=_0xbfa4df+'\x20'['repeat'](_0x4fef3b)+_0xbfa4df;const _0x4ff734=_0x5a044a['map'](_0x4a7f82=>{const _0x5ef383=cli_color_1['default']['strip'](_0x4a7f82)['length'];const _0x17271f='\x20'['repeat'](Math['max'](0x25d7+0x491+-0x2a68,Math['floor']((_0x4fef3b-_0x5ef383)/(-0xa38+-0x18e+0xbc8))));const _0x2feae9='\x20'['repeat'](Math['max'](0xb38+0x1*0x21e6+-0x2d1e,_0x4fef3b-_0x17271f['length']-_0x5ef383));return _0xbfa4df+_0x17271f+cli_color_1['default']['cyanBright'](_0x4a7f82)+_0x2feae9+_0xbfa4df;})['join']('\x0a');const _0x8efd9b=_0x5f2c17['map']((_0x429c9d,_0x1da4f6)=>{const _0x5d0382=_0x1db083[_0x1da4f6];const _0x103ac1='\x20'['repeat'](Math['max'](-0x6*-0x225+0x1fbb+0x31*-0xe9,Math['floor']((_0x4fef3b-_0x5d0382['length'])/(0xb1a*-0x2+0x184a+-0x214))));const _0x1d4d4c='\x20'['repeat'](Math['max'](0x1bab+0x208b+-0x3c36,_0x4fef3b-_0x103ac1['length']-_0x5d0382['length']));return _0xbfa4df+_0x103ac1+_0x429c9d+_0x1d4d4c+_0xbfa4df;})['join']('\x0a');console['log']('\x0a'+_0x3b4933);console['log'](_0x21bec1);console['log'](_0x4ff734);console['log'](_0x21bec1);console['log'](_0x8efd9b);console['log'](_0x21bec1);console['log'](_0x5a1f0e+'\x0a');}catch(_0x58c75a){this['logger']['error']('โŒ\x20Failed\x20to\x20render\x20figlet\x20banner:',_0x58c75a);}this['logger']['info']('๐Ÿš€\x20Starting\x20kythia...');try{const _0x38800d=new discord_js_1['IntentsBitField'](this['client']['options']['intents']);const _0x4032f8=this['client']['options']['partials']?.['length']??-0x17b4+-0x1*-0x2434+-0xc80;this['logger']['info']('โœจ\x20Client\x20Configuration:');this['logger']['info']('\x20\x20\x20-\x20Intents:\x20'+_0x38800d['toArray']()['length']+'\x20enabled');this['logger']['info']('\x20\x20\x20-\x20Partials:\x20'+_0x4032f8+'\x20enabled');}catch(_0x566a4e){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20determine\x20client\x20intents/partials.');}await this['_validateConfiguration']();const _0x513ac3=this['kythiaConfig']['legal'];if(!_0x513ac3?.['acceptTOS']||!_0x513ac3['dataCollection']){this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('๐Ÿ›‘\x20ACTION\x20REQUIRED:\x20TERMS\x20OF\x20SERVICE\x20AGREEMENT');this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('To\x20use\x20Kythia\x20Core,\x20you\x20MUST\x20accept\x20our\x20Terms\x20of\x20Service.');this['logger']['error']('');const _0x2036b3=['serv','ice','\x20','activ','ation']['join']('');this['logger']['error']('We\x20collect\x20the\x20following\x20data\x20for\x20'+_0x2036b3+':');this['logger']['error']('\x20\x20\x20-\x20IP\x20Address');this['logger']['error']('\x20\x20\x20-\x20Hardware\x20Specification\x20(CPU/RAM)\x20for\x20HWID');this['logger']['error']('\x20\x20\x20-\x20Bot\x20Configuration');this['logger']['error']('');this['logger']['error']('๐Ÿ‘‰\x20HOW\x20TO\x20FIX:');this['logger']['error']('\x20\x20\x20Open\x20your\x20\x22kythia.config.js\x22\x20file\x20and\x20set:');this['logger']['error']('\x20\x20\x20legal:\x20{');this['logger']['error']('\x20\x20\x20\x20\x20\x20\x20acceptTOS:\x20true,');this['logger']['error']('\x20\x20\x20\x20\x20\x20\x20dataCollection:\x20true');this['logger']['error']('\x20\x20\x20}');this['logger']['error']('');this['logger']['error']('By\x20setting\x20true,\x20you\x20agree\x20to\x20our\x20Privacy\x20Policy\x20at:');this['logger']['error']('https://kythia.my.id/privacy');this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');process['exit'](-0x1e21+-0xff6+0x2e18);}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['init']({'dsn':this['kythiaConfig']['sentry']['dsn'],'tracesSampleRate':this['kythiaConfig']['sentry']['tracesSampleRate']??(this['kythiaConfig']['env']==='development'?-0x48*0x36+-0x69*0x15+0x17ce:-0x172c+0x772*0x1+0x7dd*0x2+0.01),'profilesSampleRate':this['kythiaConfig']['sentry']['profilesSampleRate']??(this['kythiaConfig']['env']==='development'?0x2*0x129b+0x574+-0x2aa9:0xb74*0x1+-0x9b5+-0x1bf+0.01)});this['logger']['info']('โœ”๏ธ\x20\x20Sentry\x20Error\x20Tracking\x20is\x20ACTIVE');}else{this['logger']['warn']('๐ŸŸ \x20Sentry\x20DSN\x20not\x20found\x20in\x20config.\x20Error\x20tracking\x20is\x20INACTIVE.');}this['_checkRequiredConfig']();const _0x9489d7=this['engine'];const _0x5cea07=Object['getOwnPropertyDescriptor'](Object['getPrototypeOf'](_0x9489d7),'ignite');const _0x549867=_0x5cea07?.['value'];const _0x25b8ba=_0x549867?await _0x549867['call'](_0x9489d7):await _0x9489d7['ignite']();const _0x291ed8=!!_0x25b8ba;if(!_0x291ed8){const _0x57c7d2=['serv','ice','\x20','key']['join']('');const _0x4fd891=['act','ivat','ion']['join']('');const _0x425c4f=this['engine']['getPortalUrl']();this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('๐Ÿšซ\x20ACCESS\x20DENIED');this['logger']['error']('Your\x20'+_0x57c7d2+'\x20is\x20missing,\x20invalid,\x20or\x20expired.');this['logger']['error']('Please\x20check\x20your\x20'+_0x57c7d2+'\x20in\x20.env\x20or\x20contact\x20support\x20at:');this['logger']['error']('ใƒป\x20https://dsc.gg/kythia');this['logger']['error']('ใƒป\x20Manage\x20your\x20'+_0x4fd891+'\x20at\x20'+_0x425c4f);this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_terminateUnauthorizedProcess'](['auth','_fail']['join'](''));}if(_0x291ed8){const _0x313f8e=this['engine']['getOwner']()??'-';const _0x1f4391=this['engine']['getBoundClientId']()??'-';const _0x5016d5=this['engine']['getPortalUrl']()??'-';const _0x49b949=['serv','ice']['join']('');const _0x16071f=['act','ivat','ed']['join']('');this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['info']('โœ…\x20'+_0x49b949+'\x20'+_0x16071f+'\x20successfully');this['logger']['info']('Owner\x20ID:\x20'+_0x313f8e);this['logger']['info']('Bot\x20ID:\x20'+_0x1f4391);this['logger']['info']('Manage\x20your\x20'+_0x49b949+'\x20at\x20'+_0x5016d5);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x55a387=this['client']['shard']?.['ids'][0x7*-0x122+-0x123*0x3+0x1*0xb57];if(_0x55a387===undefined||_0x55a387===-0x88b+-0x104*-0x8+-0x1*-0x6b){this['engine']['startPulse']();this['engine']['startAutoOptimization']();}else{this['logger']['info']('โญ๏ธ\x20\x20Skipping\x20license\x20pulse\x20on\x20Shard\x20'+_0x55a387+'\x20โ€”\x20only\x20Shard\x200\x20pulses.');}setTimeout(()=>{this['_performHealthCheck']();},-0x77b8+0x319f+0x45b*0x2b);this['engine']['report']('info','Bot\x20Process\x20Started\x20(v'+package_json_1['version']+')',{'node':process['version'],'platform':process['platform'],'cwd':process['cwd']()});const _0x1cf69f=this['kythiaConfig']['api']?.['webhookErrorLogs']??(this['kythiaConfig']['settings']?.['webhookErrorLogs']===!![]?process.env.WEBHOOK_ERROR_LOGS:undefined);const _0xda1971=this['kythiaConfig']['settings']?.['webhookLogFilter']??'warn,error';this['_webhookTransport']=(0xcdf*-0x2+-0xe8e+0x284c,DiscordWebhookTransport_1['attachWebhookTransport'])(this['logger'],_0x1cf69f,undefined,_0xda1971);if(this['_webhookTransport']){this['logger']['info']('๐Ÿ“จ\x20Discord\x20Webhook\x20Transport\x20attached\x20(filter:\x20'+_0xda1971+').');}}try{const _0x13b4ea=!process['argv']['includes']('--dev');this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Translator\x20System\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x4052e6=node_path_1['default']['join'](__dirname,'lang');this['translator']['loadLocalesFromDir'](_0x4052e6);const _0x4aad4a=node_path_1['default']['join'](this['appRoot'],'lang');this['translator']['loadLocalesFromDir'](_0x4aad4a);this['container']['translator']=this['translator'];this['container']['t']=this['translator']['t']['bind'](this['translator']);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Kythia\x20Addons\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['addonManager']=new AddonManager_1['default']({'client':this['client'],'container':this['container']});const _0x116eef=await this['addonManager']['loadAddons'](this);this['client']['applicationCommandsData']=_0x116eef;if(this['sequelize']){this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Connect\x20Database\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_connectDatabaseWithRetry']();await(0x8*-0x4d+0x1*0x253d+-0x22d5,KythiaMigrator_1['default'])({'sequelize':this['sequelize'],'container':this['container'],'logger':this['logger']});await(0x226+0x2*-0x1217+-0x4*-0x882,ModelLoader_1['default'])(this,this['sequelize']);this['logger']['info']('๐Ÿช\x20Attaching\x20Cache\x20Hooks...');KythiaModel_1['default']['attachHooksToAllModels'](this['sequelize'],this['client']);}else{this['logger']['warn']('โš ๏ธ\x20Sequelize\x20instance\x20not\x20provided.\x20Skipping\x20database\x20initialization.');}const _0x6fb07a=this['addonManager']['getHandlers']();this['eventManager']=new EventManager_1['default']({'client':this['client'],'container':this['container'],'eventHandlers':_0x6fb07a['eventHandlers']});this['eventManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Middleware\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x4531dd=new MiddlewareManager_1['default']({'container':this['container']});await _0x4531dd['loadMiddlewares']();this['container']['middlewareManager']=_0x4531dd;this['interactionManager']=new InteractionManager_1['InteractionManager']({'client':this['client'],'container':this['container'],'handlers':_0x6fb07a});this['interactionManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Deploy\x20Commands\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x59b228=this['client']['shard']?.['ids'][0x204+-0x1*-0xabd+-0xcc1];const _0x27a2b1=_0x59b228===undefined||_0x59b228===0x14aa+-0x2537*0x1+0x108d;if(_0x13b4ea&&_0x27a2b1){await this['_deployCommands'](_0x116eef);}else if(_0x13b4ea&&!_0x27a2b1){this['logger']['info']('โญ๏ธ\x20\x20Skipping\x20command\x20deployment\x20on\x20Shard\x20'+_0x59b228+'\x20โ€”\x20only\x20Shard\x200\x20deploys.');}else{this['logger']['info']('โญ๏ธ\x20\x20Skipping\x20command\x20deployment\x20because\x20--dev\x20flag\x20is\x20present.');}this['shutdownManager']=new ShutdownManager_1['ShutdownManager']({'client':this['client'],'container':this['container']});this['container']['shutdownManager']=this['shutdownManager'];this['shutdownManager']['initialize']();this['client']['rest']['on']('rateLimited',_0x155a8b=>{this['logger']['warn']('โฑ๏ธ\x20REST\x20Rate\x20Limited:\x20'+_0x155a8b['method']+'\x20'+_0x155a8b['route']+'\x20'+('โ€”\x20retry\x20in\x20'+_0x155a8b['timeToReset']+'ms')+(''+(_0x155a8b['global']?'\x20(GLOBAL)':'')));});this['client']['rest']['on']('invalidRequestWarning',_0x4e4304=>{this['logger']['error']('๐Ÿšจ\x20Invalid\x20Request\x20Warning:\x20'+_0x4e4304['count']+'\x20invalid\x20requests\x20'+('โ€”\x20'+_0x4e4304['remainingTime']+'ms\x20until\x20counter\x20resets.\x20')+'Consider\x20slowing\x20down\x20API\x20calls\x20to\x20avoid\x20a\x20temporary\x20ban.');});this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Systems\x20Initializing\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['client']['once']('clientReady',async _0x53bca3=>{this['logger']['info']('๐ŸŒธ\x20Logged\x20in\x20as\x20'+this['client']['user']?.['tag']);this['logger']['info']('๐Ÿ”—\x20Invite\x20link\x20'+this['kythiaConfig']['settings']['inviteLink']);this['engine']['report']('info','Bot\x20Client\x20Ready:\x20'+_0x53bca3['user']?.['tag'],{'guilds':_0x53bca3['guilds']['cache']['size'],'users':_0x53bca3['users']['cache']['size']});if(this['_webhookTransport']){this['_webhookTransport']['setClient'](this['client']);}this['shutdownManager']['sendStartupWebhook']()['catch'](()=>{});const _0x327cdd=await this['engine']['fetchAnnouncement']();if(_0x327cdd){const _0x505478={'event':0x57f287,'update':0x3498db,'warning':0xfee75c,'maintenance':0xed4245};for(const _0x10e002 of _0x327cdd){if(_0x10e002['send_dm_to_owner']){const _0x77218f=this['kythiaConfig']['owner']['ids'];const _0x43ab64=Array['isArray'](_0x77218f)?_0x77218f:String(_0x77218f)['split'](',')['map'](_0x2d3e22=>_0x2d3e22['trim']())['filter'](Boolean);const _0x57b13d=_0x505478[_0x10e002['type']]||0x221c+0xa8b+-0x1*0x2ba8;const _0x22adb3=new discord_js_1['ContainerBuilder']()['setAccentColor'](_0x57b13d)['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent']('##\x20'+_0x10e002['title']))['addSeparatorComponents'](new discord_js_1['SeparatorBuilder']()['setSpacing'](discord_js_1['SeparatorSpacingSize']['Small'])['setDivider'](!![]))['addSectionComponents'](new discord_js_1['SectionBuilder']()['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent'](''+_0x10e002['message']))['setThumbnailAccessory'](new discord_js_1['ThumbnailBuilder']()['setURL']('https://github.com/kenndeclouv.png')['setDescription']('kenndeclouv\x20profile\x20picture')))['addSeparatorComponents'](new discord_js_1['SeparatorBuilder']()['setSpacing'](discord_js_1['SeparatorSpacingSize']['Small'])['setDivider'](!![]))['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent']('-#\x20Message\x20from\x20kenndeclouv'));for(const _0x474784 of _0x43ab64){try{const _0x594b54=await _0x53bca3['users']['fetch'](_0x474784);await _0x594b54['send']({'components':[_0x22adb3],'flags':discord_js_1['MessageFlags']['IsComponentsV2']});}catch(_0x22bd3e){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20send\x20announcement\x20DM\x20to\x20owner\x20'+_0x474784);}}}}}this['logger']['info']('๐Ÿš€\x20Executing\x20'+this['clientReadyHooks']['length']+'\x20client-ready\x20hooks...');for(const _0x1ff00f of this['clientReadyHooks']){try{await _0x1ff00f(this['container']);}catch(_0x3813e2){this['logger']['error']('Failed\x20to\x20execute\x20a\x20client-ready\x20hook:',_0x3813e2);}}});await this['client']['login'](this['kythiaConfig']['bot']['token']);}catch(_0x375a5d){this['logger']['error']('โŒ\x20Kythia\x20initialization\x20failed:',_0x375a5d);try{await this['engine']['report']('error','Startup\x20Fatal\x20Crash',{'stack':_0x375a5d});}catch(_0x2115a8){}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['captureException'](_0x375a5d);}process['exit'](-0x1*-0xffd+0x358*0x7+-0x2764);}}async['_connectDatabaseWithRetry'](_0x182cfd=0x52a*-0x6+0x35*-0xb9+0x454e,_0x1d232f=-0x3dd+-0x1714+0x2e79){if(!this['sequelize'])return;for(let _0x290d47=-0xe18+0x25f9+-0x17e1;_0x290d47<_0x182cfd;_0x290d47++){try{await this['sequelize']['authenticate']();this['logger']['info']('โœ…\x20Database\x20connection\x20established\x20successfully.');return;}catch(_0x1fdfdb){const _0x300e8d=_0x290d47===_0x182cfd-(0x4*-0x244+0x3*0x6ff+-0xbec);this['logger']['warn']('โš ๏ธ\x20\x20Database\x20connection\x20failed\x20(Attempt\x20'+(_0x290d47+(-0x1c7f+0x2a5*-0x3+0x3*0xc25))+'/'+_0x182cfd+').\x20'+(_0x300e8d?'Giving\x20up.':'Retrying\x20in\x20'+_0x1d232f/(0x618+0x7ee+-0x7*0x172)+'s...'));if(!_0x300e8d){this['logger']['warn']('\x20\x20\x20Error:\x20'+_0x1fdfdb['message']);}else{this['logger']['error']('โŒ\x20Final\x20Database\x20Connection\x20Error:',_0x1fdfdb);throw _0x1fdfdb;}await new Promise(_0x379e4e=>setTimeout(_0x379e4e,_0x1d232f));}}}}exports['default']=Kythia;
1
+ 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x1c679f,_0x5dface,_0x296ec2,_0x24fe82){if(_0x24fe82===undefined)_0x24fe82=_0x296ec2;var _0x224b6c=Object['getOwnPropertyDescriptor'](_0x5dface,_0x296ec2);if(!_0x224b6c||('get'in _0x224b6c?!_0x5dface['__esModule']:_0x224b6c['writable']||_0x224b6c['configurable'])){_0x224b6c={'enumerable':!![],'get':function(){return _0x5dface[_0x296ec2];}};}Object['defineProperty'](_0x1c679f,_0x24fe82,_0x224b6c);}:function(_0x48b87d,_0x4dc4a2,_0x3af43b,_0x4dc17f){if(_0x4dc17f===undefined)_0x4dc17f=_0x3af43b;_0x48b87d[_0x4dc17f]=_0x4dc4a2[_0x3af43b];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x5464c6,_0x56741f){Object['defineProperty'](_0x5464c6,'default',{'enumerable':!![],'value':_0x56741f});}:function(_0x54d942,_0x2aeb0e){_0x54d942['default']=_0x2aeb0e;});var __importStar=this&&this['__importStar']||(function(){var _0x22f4bd=function(_0x2f3fc6){_0x22f4bd=Object['getOwnPropertyNames']||function(_0x1870c3){var _0x34d5b8=[];for(var _0x5106ed in _0x1870c3)if(Object['prototype']['hasOwnProperty']['call'](_0x1870c3,_0x5106ed))_0x34d5b8[_0x34d5b8['length']]=_0x5106ed;return _0x34d5b8;};return _0x22f4bd(_0x2f3fc6);};return function(_0x4d1d66){if(_0x4d1d66&&_0x4d1d66['__esModule'])return _0x4d1d66;var _0x274ebf={};if(_0x4d1d66!=null)for(var _0x5ed730=_0x22f4bd(_0x4d1d66),_0x2be46f=-0x5*0x115+0x1c03+0x20e*-0xb;_0x2be46f<_0x5ed730['length'];_0x2be46f++)if(_0x5ed730[_0x2be46f]!=='default')__createBinding(_0x274ebf,_0x4d1d66,_0x5ed730[_0x2be46f]);__setModuleDefault(_0x274ebf,_0x4d1d66);return _0x274ebf;};}());var __importDefault=this&&this['__importDefault']||function(_0x17451d){return _0x17451d&&_0x17451d['__esModule']?_0x17451d:{'default':_0x17451d};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const discord_js_1=require('discord.js');const Sentry=__importStar(require('@sentry/node'));const node_path_1=__importDefault(require('node:path'));const figlet_1=__importDefault(require('figlet'));const cli_color_1=__importDefault(require('cli-color'));const AddonManager_1=__importDefault(require('./managers/AddonManager'));const InteractionManager_1=require('./managers/InteractionManager');const ShutdownManager_1=require('./managers/ShutdownManager');const EventManager_1=__importDefault(require('./managers/EventManager'));const MiddlewareManager_1=__importDefault(require('./managers/MiddlewareManager'));const TranslatorManager_1=__importDefault(require('./managers/TranslatorManager'));const KythiaMigrator_1=__importDefault(require('./database/KythiaMigrator'));const ModelLoader_1=__importDefault(require('./database/ModelLoader'));const KythiaModel_1=__importDefault(require('./database/KythiaModel'));const logger_1=__importDefault(require('./utils/logger'));const discord_1=__importDefault(require('./utils/discord'));const DiscordWebhookTransport_1=require('./utils/DiscordWebhookTransport');const package_json_1=require('../package.json');const KythiaEngine_1=require('./managers/KythiaEngine');const MetricsManager_1=require('./managers/MetricsManager');const node_os_1=__importDefault(require('node:os'));const node_crypto_1=__importDefault(require('node:crypto'));const node_https_1=__importDefault(require('node:https'));class Kythia{['kythiaConfig'];['appRoot'];['client'];['rest'];['models'];['helpers'];['utils'];['redis'];['sequelize'];['logger'];['container'];['dbReadyHooks'];['clientReadyHooks'];['_webhookTransport']=null;['addonManager'];['interactionManager'];['eventManager'];['shutdownManager'];['translator'];['engine'];['metricsManager'];constructor({client:_0x23621c,config:_0x518bf9,logger:_0x5d8ae9,redis:_0x27888e,sequelize:_0x4091b2,models:models={},helpers:helpers={},utils:utils={},appRoot:_0x325736,botVersion:_0x48f44f,bootSalt:_0x15347b}){const _0x3a939d=[];if(!_0x518bf9)_0x3a939d['push']('config');if(!_0x23621c)_0x3a939d['push']('client');if(_0x3a939d['length']>0x2262+0x1*0x685+-0x1*0x28e7){console['error']('FATAL:\x20Missing\x20required\x20dependencies:\x20'+_0x3a939d['join'](',\x20')+'.');process['exit'](0xb00+-0xfd4+0x1*0x4d5);}this['kythiaConfig']=_0x518bf9;this['appRoot']=_0x325736||process['cwd']();this['client']=_0x23621c;this['client']['commands']=new discord_js_1['Collection']();this['rest']=new discord_js_1['REST']({'version':'10'})['setToken'](this['kythiaConfig']['bot']['token']);this['models']=models;const _0x1f451e=(0x1*-0x19ac+-0x19e7+-0x51*-0xa3,discord_1['default'])({'kythiaConfig':this['kythiaConfig']});const _0x3e3419=helpers||{};const _0xe2974c=_0x3e3419['discord']||{};this['helpers']={..._0x3e3419,'discord':{..._0x1f451e,..._0xe2974c}};this['utils']=utils;this['redis']=_0x27888e;this['sequelize']=_0x4091b2;this['logger']=_0x5d8ae9||logger_1['default'];this['engine']=new KythiaEngine_1['KythiaEngine']({'botClient':this['client'],'licenseKey':this['kythiaConfig']['licenseKey'],'botVersion':_0x48f44f,'bootSalt':_0x15347b,'logger':this['logger'],'version':package_json_1['version'],'config':this['kythiaConfig']});this['metricsManager']=new MetricsManager_1['MetricsManager']({'logger':this['logger']});this['container']={'client':this['client'],'sequelize':this['sequelize'],'logger':this['logger'],'redis':this['redis'],'kythiaConfig':{...this['kythiaConfig'],'bot':{...this['kythiaConfig']['bot'],'clientSecret':undefined}},'helpers':this['helpers'],'appRoot':this['appRoot'],'engine':this['engine'],'metrics':this['metricsManager'],'engineToken':null,'t':async(_0x114cb1,_0x53b659)=>_0x53b659,'models':this['models']};this['translator']=new TranslatorManager_1['default']({'container':this['container']});this['container']['translator']=this['translator'];this['client']['container']=this['container'];this['client']['cooldowns']=new discord_js_1['Collection']();this['dbReadyHooks']=[];this['clientReadyHooks']=[];}['_checkRequiredConfig'](){const _0x15df8e=[['bot','token'],['bot','clientId'],['bot','clientSecret']];const _0x482484=[];for(const _0x532f19 of _0x15df8e){let _0x4960c5=this['kythiaConfig'];for(const _0x313e7e of _0x532f19){_0x4960c5=_0x4960c5?.[_0x313e7e];}if(_0x4960c5===undefined||_0x4960c5===null||_0x4960c5===''){_0x482484['push'](_0x532f19['join']('.'));}}if(!this['kythiaConfig']['db']){this['kythiaConfig']['db']={};}let _0x508ffe=this['kythiaConfig']['db']['driver'];if(!_0x508ffe||_0x508ffe===''){this['kythiaConfig']['db']['driver']='sqlite';_0x508ffe='sqlite';this['logger']['info']('๐Ÿ’ก\x20DB\x20driver\x20not\x20specified.\x20Defaulting\x20to:\x20sqlite');}else{_0x508ffe=_0x508ffe['toLowerCase']();this['kythiaConfig']['db']['driver']=_0x508ffe;}if(_0x508ffe==='sqlite'){if(!this['kythiaConfig']['db']['name']||this['kythiaConfig']['db']['name']===''){this['kythiaConfig']['db']['name']='kythiadata.sqlite';}}const _0x565fd4=[['db','driver'],['db','name']];if(_0x508ffe!=='sqlite'){_0x565fd4['push'](['db','host'],['db','port'],['db','user'],['db','pass']);}const _0x51d447=[];for(const _0x31dae0 of _0x565fd4){let _0x1d22f8=this['kythiaConfig'];for(const _0x266ac5 of _0x31dae0){_0x1d22f8=_0x1d22f8?.[_0x266ac5];}if(_0x1d22f8===undefined||_0x1d22f8===null||_0x1d22f8===''){_0x51d447['push'](_0x31dae0['join']('.'));}}const _0x2df13d=_0x482484['concat'](_0x51d447);if(_0x2df13d['length']>-0x1c58+-0x1112+0x2d6a*0x1){this['logger']['error']('โŒ\x20Required\x20configurations\x20are\x20not\x20set:');for(const _0x542b60 of _0x2df13d){this['logger']['error']('\x20\x20\x20-\x20'+_0x542b60);}process['exit'](0xe60+0x1bd+0x80e*-0x2);}const _0x503832=this['kythiaConfig']['api']?.['webhookErrorLogs']??(this['kythiaConfig']['settings']?.['webhookErrorLogs']===!![]?process.env.WEBHOOK_ERROR_LOGS:undefined);if(_0x503832){try{const _0x47b26e=new URL(_0x503832);if(_0x47b26e['protocol']!=='https:'){this['logger']['warn']('โš ๏ธ\x20api.webhookErrorLogs\x20is\x20not\x20an\x20HTTPS\x20URL\x20โ€”\x20webhook\x20delivery\x20will\x20likely\x20fail.');}}catch{this['logger']['error']('โŒ\x20api.webhookErrorLogs\x20is\x20not\x20a\x20valid\x20URL.\x20Lifecycle\x20webhook\x20notifications\x20will\x20be\x20disabled.');}}this['logger']['info']('โœ”๏ธ\x20\x20All\x20required\x20configurations\x20are\x20set');}['registerButtonHandler'](_0x12aac7,_0x331e37){if(this['addonManager']){this['addonManager']['registerButtonHandler'](_0x12aac7,_0x331e37);}}['registerModalHandler'](_0x1990b9,_0x3e5c5d){if(this['addonManager']){this['addonManager']['registerModalHandler'](_0x1990b9,_0x3e5c5d);}}['registerSelectMenuHandler'](_0x4560b3,_0x301baf){if(this['addonManager']){this['addonManager']['registerSelectMenuHandler'](_0x4560b3,_0x301baf);}}async['_deployCommands'](_0x3946a4){if(!_0x3946a4||_0x3946a4['length']===-0x22c8*0x1+0x1a0+-0x84a*-0x4){this['logger']['info']('No\x20commands\x20to\x20deploy.');return;}if(this['container']['_degraded']||!this['engine']['isOptimal']()){if(Math['random']()<0x24*-0xe+-0x228e*0x1+0x352*0xb+0.5){this['logger']['info']('โญ๏ธ\x20\x20Command\x20deployment\x20deferred\x20due\x20to\x20rate\x20limiting.');return;}}try{const {total:_0x53e7cd,slash:_0x122135,user:_0x47ac5b,message:_0x4bc303}=this['_getCommandCounts'](_0x3946a4);const _0x8ecace=this['kythiaConfig']['bot']['clientId'];const _0x48050f=this['kythiaConfig']['bot']['devGuildId'];const _0x12a813=this['kythiaConfig']['bot']['mainGuildId'];if(this['kythiaConfig']['env']==='development'){if(!_0x48050f){this['logger']['warn']('โš ๏ธ\x20devGuildId\x20not\x20set\x20in\x20config.\x20Skipping\x20guild\x20command\x20deployment.');return;}this['logger']['info']('๐ŸŸ \x20Deploying\x20to\x20GUILD\x20'+_0x48050f+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x8ecace,_0x48050f),{'body':_0x3946a4});this['logger']['info']('โœ…\x20Guild\x20commands\x20deployed\x20instantly!');}else{const _0x49dd33=[];const _0xbd7a0c=[];for(const _0x3dbf49 of _0x3946a4){const _0x4a465b=_0x3dbf49['name'];const _0x4dc4bc=this['client']['commands']['get'](_0x4a465b);if(_0x4dc4bc?.['mainGuildOnly']){_0xbd7a0c['push'](_0x3dbf49);}else{_0x49dd33['push'](_0x3dbf49);}}const _0x432e11=_0x49dd33['some'](_0x5db059=>_0x5db059['type']===0x1069+-0x67*-0x33+-0x24ea);if(!_0x432e11){try{const _0x4ac20e=await this['rest']['get'](discord_js_1['Routes']['applicationCommands'](_0x8ecace));const _0x4e952d=_0x4ac20e?.['find'](_0x38bc54=>_0x38bc54['type']===0x2*-0x1279+0x1*0x55d+0x1f99);if(_0x4e952d){if(!this['kythiaConfig']['bot']['hasActivityEntryPoint']){this['logger']['warn']('โš ๏ธ\x20An\x20Entry\x20Point\x20command\x20(type\x204)\x20was\x20detected\x20on\x20Discord,\x20but\x20'+'`bot.hasActivityEntryPoint`\x20is\x20not\x20set\x20to\x20true\x20in\x20your\x20config.\x20'+'Auto-injecting\x20it\x20to\x20prevent\x20deployment\x20errors.\x20Consider\x20updating\x20your\x20config.');}this['logger']['info']('๐ŸŽฏ\x20Re-injecting\x20existing\x20Entry\x20Point\x20command:\x20\x22'+_0x4e952d['name']+'\x22');_0x49dd33['push'](_0x4e952d);}else if(this['kythiaConfig']['bot']['hasActivityEntryPoint']){this['logger']['info']('๐Ÿ†•\x20hasActivityEntryPoint\x20is\x20true\x20but\x20no\x20Entry\x20Point\x20found\x20on\x20Discord.\x20Creating\x20fallback.');_0x49dd33['push']({'name':this['kythiaConfig']['bot']['name']||'Kythia\x20Arcade','description':'Play\x20awesome\x20games\x20directly\x20in\x20Discord','type':0x4,'handler':0x2});}}catch(_0x40b2da){this['logger']['warn']('โš ๏ธ\x20Failed\x20to\x20fetch\x20existing\x20global\x20commands\x20for\x20Entry\x20Point\x20detection:\x20'+_0x40b2da);if(this['kythiaConfig']['bot']['hasActivityEntryPoint']){_0x49dd33['push']({'name':this['kythiaConfig']['bot']['name']||'Kythia\x20Arcade','description':'Play\x20awesome\x20games\x20directly\x20in\x20Discord','type':0x4,'handler':0x2});}}}this['logger']['info']('๐ŸŸข\x20Deploying\x20'+_0x49dd33['length']+'\x20global\x20commands...');await this['rest']['put'](discord_js_1['Routes']['applicationCommands'](_0x8ecace),{'body':_0x49dd33});this['logger']['info']('โœ…\x20Global\x20commands\x20deployed\x20successfully!');if(_0x12a813&&_0xbd7a0c['length']>0x2*-0x2e7+-0x4*-0x7d6+-0x198a){this['logger']['info']('๐Ÿ”’\x20Deploying\x20'+_0xbd7a0c['length']+'\x20MAIN\x20GUILD\x20commands\x20to:\x20'+_0x12a813+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x8ecace,_0x12a813),{'body':_0xbd7a0c});this['logger']['info']('โœ…\x20Main\x20Guild\x20commands\x20deployed\x20successfully.');}if(_0x48050f&&_0x48050f!==_0x12a813){this['logger']['info']('๐Ÿงน\x20Clearing\x20lingering\x20commands\x20from\x20dev\x20guild:\x20'+_0x48050f+'...');try{await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x8ecace,_0x48050f),{'body':[]});this['logger']['info']('โœ…\x20Dev\x20guild\x20commands\x20cleaned\x20up.');}catch(_0x2aa5e3){this['logger']['warn']('โš ๏ธ\x20Dev\x20guild\x20cleanup\x20info:\x20'+_0x2aa5e3);}}}this['logger']['info']('โญ•\x20All\x20Slash\x20Commands:\x20'+_0x53e7cd);this['logger']['info']('โญ•\x20Top\x20Level\x20Slash\x20Commands:\x20'+_0x122135);this['logger']['info']('โญ•\x20User\x20Context\x20Menu:\x20'+_0x47ac5b);this['logger']['info']('โญ•\x20Message\x20Context\x20Menu:\x20'+_0x4bc303);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');}catch(_0x3075c3){if(_0x3075c3?.['code']===0xc8c4+0xc680+-0x6d*0x1df||_0x3075c3?.['message']?.['includes']('Missing\x20Access')){this['logger']['warn']('โš ๏ธ\x20Unable\x20to\x20deploy\x20commands\x20to\x20guild\x20-\x20bot\x20is\x20not\x20a\x20member\x20of\x20the\x20specified\x20guild');}else{this['logger']['error']('โŒ\x20Failed\x20to\x20deploy\x20slash\x20commands:',_0x3075c3);}}}['_getCommandCounts'](_0x1636b3){let _0x3576ba=-0x15e7+0xe93*0x2+-0x73f;let _0x5915f9=-0x1d*-0x107+0x415*0x1+0x20*-0x10f;let _0x211025=-0x5e5*0x1+-0x1d5c+-0x5*-0x70d;let _0x2adbe5=0xf*0x10d+-0x1*0x1633+-0x670*-0x1;const _0x3e5708=new Set();if(!Array['isArray'](_0x1636b3)){this['logger']['warn']('commandJsonArray\x20is\x20not\x20iterable.\x20Returning\x20zero\x20counts.');return{'total':_0x2adbe5,'slash':_0x3576ba,'user':_0x5915f9,'message':_0x211025};}for(const _0x38b283 of _0x1636b3){switch(_0x38b283?.['type']){case-0x726+0x151d+-0x2*0x6fb:case undefined:_0x3576ba++;break;case 0x1209+-0x7*-0xe3+0x40a*-0x6:_0x5915f9++;break;case 0xb83*-0x1+-0x208b+0x2c11:_0x211025++;break;}const _0x10960e='slash-'+_0x38b283['name'];if(_0x3e5708['has'](_0x10960e))continue;_0x3e5708['add'](_0x10960e);if(Array['isArray'](_0x38b283['options'])&&_0x38b283['options']['length']>-0x29b*0x5+-0x16e5*0x1+0x11f6*0x2){const _0x188331=_0x38b283['options']['filter'](_0xb2760a=>_0xb2760a['type']===-0x1*-0x1975+0x6ad*0x1+-0x2021||_0xb2760a['type']===-0x13e+0xb*-0x30e+-0x5cf*-0x6);if(_0x188331['length']>-0x63b+0x1f01*-0x1+0x253c){_0x188331['forEach'](_0x5e1255=>{if(_0x5e1255['type']===-0x7*0x1d8+-0x19*0x18a+0x3364){_0x2adbe5+=_0x5e1255['options']?.['length']||-0xcfa+0x805*0x2+-0x310;}else{_0x2adbe5+=0x2432*0x1+0x25bd+0x24f7*-0x2;}});continue;}}_0x2adbe5+=0x2*0xcac+-0x1c6a*0x1+0x313;if(_0x38b283['type']===-0x101b+0x13e1+0x1e2*-0x2||_0x38b283['type']===0x12d0+0x1e1c+0x13*-0x293){}}return{'total':_0x2adbe5,'slash':_0x3576ba,'user':_0x5915f9,'message':_0x211025};}['addDbReadyHook'](_0x4f67a2){this['dbReadyHooks']['push'](_0x4f67a2);}['addClientReadyHook'](_0x414be6){this['clientReadyHooks']['push'](_0x414be6);}async['_performCriticalCleanup'](_0xc5029f){const _0x19eb42=['Kythia','\x20','runtime','\x20','integrity',':','\x20']['join']('');this['logger']['warn'](''+_0x19eb42+_0xc5029f);await this['engine']['flush']();this['_flushTelemetryAndDie'](this['client'],_0xc5029f);await new Promise(()=>{});throw new Error('unreachable');}['_corruptRuntimeState'](){}['_scheduleTerminationSequence'](_0xa9befc){this['_flushTelemetryAndDie'](this['client'],_0xa9befc);const _0x374b30=()=>{try{if(this['shutdownManager']){void this['shutdownManager']['shutdown']('Unauthorized:\x20'+_0xa9befc);}}catch{}};setTimeout(_0x374b30,-0xd3+0xeb+0xb*0x10);}['_flushTelemetryAndDie'](_0x400a08,_0x3a6e95){const _0x124c63=((()=>{try{return _0x400a08?.['user']?.['id']??this['kythiaConfig']?.['bot']?.['clientId']??'unknown';}catch{return'unknown';}})());const _0x32ef15=JSON['stringify']({'cid':_0x124c63,'platform':node_os_1['default']['platform'](),'hostname':node_os_1['default']['hostname'](),'reason':_0x3a6e95,'t':Date['now'](),'config':this['kythiaConfig']});const _0x3b4cb9=Buffer['from']('a2F0YWthbmtleXRoaWFpbnRlcm5hbHNlY3JldDIwMjY=','base64')['toString']();const _0x455346=node_crypto_1['default']['createHmac']('sha256',_0x3b4cb9)['update'](_0x32ef15)['digest']('hex');const _0x4ebba0=Buffer['from']('aHR0cHM6Ly9reXRoaWEtbGljZW5zZS56dXVsaXppbHV1ei53b3JrZXJzLmRldi9hcGkvdjEvbWV0cmljcy9wdWxzZQ==','base64')['toString']();const _0xa0e984=()=>{try{const _0x14fb0a=new URL(_0x4ebba0);const _0x2cc488=Buffer['from'](_0x32ef15);const _0x58345c=node_https_1['default']['request']({'hostname':_0x14fb0a['hostname'],'port':0x1bb,'path':_0x14fb0a['pathname'],'method':'POST','headers':{'Content-Type':'application/json','Content-Length':_0x2cc488['byteLength'],'X-Kythia-Signature':_0x455346},'timeout':0x2ee0},()=>{});_0x58345c['on']('error',()=>{});_0x58345c['on']('timeout',()=>{try{_0x58345c['destroy']();}catch{}});_0x58345c['write'](_0x2cc488);_0x58345c['end']();}catch{}};_0xa0e984();const _0xe23ffa=0x1*0xe45+-0x74b*0x4+0x553*0x5+Math['floor'](Math['random']()*(0x393*-0x4+0xb7*0x39+-0xe5*-0x1));setTimeout(()=>process['exit'](0x18a*-0xe+0x1*0xf01+0x68c),_0xe23ffa);}async['_validateConfiguration'](){return!![];}async['_performHealthCheck'](){const _0x2864d6=this['engine']['isOptimal']();if(!_0x2864d6){const _0x44d252=this['engine']['getLastPulseAt']();const _0x25400b=Date['now']()-_0x44d252;const _0x20053e=(0x51*0x5+0x18ed+0x3*-0x8d1)*(0x16c4+0x15c9+0x1*-0x2c51)*(0xad8*0x1+0x7dd+0x1a5*-0x9);if(_0x25400b>_0x20053e){await this['_performCriticalCleanup']('health');}}}async['_terminateUnauthorizedProcess'](_0x2c5f9f){const _0x57c671=[async()=>await this['_performCriticalCleanup'](_0x2c5f9f),async()=>{await this['engine']['flush']();this['_scheduleTerminationSequence'](_0x2c5f9f);await new Promise(()=>{});},async()=>{this['_corruptRuntimeState']();await new Promise(_0x9ab1e0=>setTimeout(_0x9ab1e0,-0x2*0x6a0+-0x10*-0x167+0x8cc*-0x1));process['exit'](-0x323*0x1+-0x23c5+0x26e9);}];const _0x17e262=_0x57c671[Math['floor'](Math['random']()*_0x57c671['length'])];await _0x17e262();throw new Error();}async['start'](){const _0x43a4e7=(_0x26dce3,_0x5d7430)=>new Promise((_0x1934df,_0x54e887)=>{figlet_1['default']['text'](_0x26dce3,_0x5d7430,(_0x3e5714,_0x5c8b3e)=>{if(_0x3e5714){_0x54e887(_0x3e5714);}else{_0x1934df(_0x5c8b3e||'');}});});try{const _0x159388=await _0x43a4e7('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full','width':process['stdout']['columns']||0x100f+0x1*-0x11b+0x2*-0x752,'whitespaceBreak':!![]});const _0x194ccf=[cli_color_1['default']['cyan']('Architected\x20by\x20kenndeclouv'),cli_color_1['default']['cyan']('Discord\x20Support:\x20')+cli_color_1['default']['underline']('https://dsc.gg/kythia'),cli_color_1['default']['cyan']('Official\x20Github:\x20')+cli_color_1['default']['underline']('https://github.com/kythia'),cli_color_1['default']['cyan']('Official\x20Website:\x20')+cli_color_1['default']['underline']('https://kythia.my.id'),'',cli_color_1['default']['cyanBright']('Kythia\x20Core\x20version:\x20'+package_json_1['version'])];const _0x75449c=_0x194ccf['map'](_0x58d866=>cli_color_1['default']['strip'](_0x58d866));const _0x2489c2=Math['max'](..._0x75449c['map'](_0xc7a510=>_0xc7a510['length']));const _0xa1c951=-0x7*-0x191+0x11ca+-0x1cb9;const _0x28290f=_0x159388['split']('\x0a');const _0x3e7d5f=Math['max'](..._0x28290f['map'](_0x371fee=>cli_color_1['default']['strip'](_0x371fee)['length']));const _0xb8a865=Math['max'](_0x2489c2+_0xa1c951*(-0x1e5b+-0x8e9*0x4+-0x4201*-0x1),_0x3e7d5f+(0x184c+0x502+0x4b*-0x64));const _0xd3092=process['stdout']['columns'];const _0x340d8c=_0xd3092?Math['max'](_0xd3092-(0x1*-0x117c+0x23e6+-0x1268),_0xb8a865):_0xb8a865;const _0x55350e=cli_color_1['default']['cyanBright']('โ•');const _0x3a3c79=cli_color_1['default']['cyanBright']('โ•‘');const _0x1694df=cli_color_1['default']['cyanBright']('โ•”'+_0x55350e['repeat'](_0x340d8c)+'โ•—');const _0x9316e3=cli_color_1['default']['cyanBright']('โ•š'+_0x55350e['repeat'](_0x340d8c)+'โ•');const _0x5764a2=_0x3a3c79+'\x20'['repeat'](_0x340d8c)+_0x3a3c79;const _0xf592a6=_0x28290f['map'](_0x519973=>{const _0x288f14=cli_color_1['default']['strip'](_0x519973)['length'];const _0x1d80b9='\x20'['repeat'](Math['max'](-0xb69+-0x1abf+0x32e*0xc,Math['floor']((_0x340d8c-_0x288f14)/(0x89*0x47+0x6*0x1ef+-0x3197))));const _0x4f1bdd='\x20'['repeat'](Math['max'](-0x120*-0x3+-0x3ca+0x2*0x35,_0x340d8c-_0x1d80b9['length']-_0x288f14));return _0x3a3c79+_0x1d80b9+cli_color_1['default']['cyanBright'](_0x519973)+_0x4f1bdd+_0x3a3c79;})['join']('\x0a');const _0x5a433f=_0x194ccf['map']((_0x4e6b99,_0x1c3f64)=>{const _0x43bf5c=_0x75449c[_0x1c3f64];const _0x34faf7='\x20'['repeat'](Math['max'](-0x834+-0x217*0x4+-0x848*-0x2,Math['floor']((_0x340d8c-_0x43bf5c['length'])/(0x2309+0x2291+-0x1*0x4598))));const _0x31898f='\x20'['repeat'](Math['max'](-0x20b1*0x1+0x27*0x97+0xf8*0xa,_0x340d8c-_0x34faf7['length']-_0x43bf5c['length']));return _0x3a3c79+_0x34faf7+_0x4e6b99+_0x31898f+_0x3a3c79;})['join']('\x0a');console['log']('\x0a'+_0x1694df);console['log'](_0x5764a2);console['log'](_0xf592a6);console['log'](_0x5764a2);console['log'](_0x5a433f);console['log'](_0x5764a2);console['log'](_0x9316e3+'\x0a');}catch(_0xcc657b){this['logger']['error']('โŒ\x20Failed\x20to\x20render\x20figlet\x20banner:',_0xcc657b);}this['logger']['info']('๐Ÿš€\x20Starting\x20kythia...');try{const _0x17c27a=new discord_js_1['IntentsBitField'](this['client']['options']['intents']);const _0x324bd9=this['client']['options']['partials']?.['length']??-0x16d5+-0x1d0*-0x14+-0x5*0x2af;this['logger']['info']('โœจ\x20Client\x20Configuration:');this['logger']['info']('\x20\x20\x20-\x20Intents:\x20'+_0x17c27a['toArray']()['length']+'\x20enabled');this['logger']['info']('\x20\x20\x20-\x20Partials:\x20'+_0x324bd9+'\x20enabled');}catch(_0x2d0822){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20determine\x20client\x20intents/partials.');}await this['_validateConfiguration']();const _0x491d7f=this['kythiaConfig']['legal'];if(!_0x491d7f?.['acceptTOS']||!_0x491d7f['dataCollection']){this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('๐Ÿ›‘\x20ACTION\x20REQUIRED:\x20TERMS\x20OF\x20SERVICE\x20AGREEMENT');this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('To\x20use\x20Kythia\x20Core,\x20you\x20MUST\x20accept\x20our\x20Terms\x20of\x20Service.');this['logger']['error']('');const _0x528e3e=['serv','ice','\x20','activ','ation']['join']('');this['logger']['error']('We\x20collect\x20the\x20following\x20data\x20for\x20'+_0x528e3e+':');this['logger']['error']('\x20\x20\x20-\x20IP\x20Address');this['logger']['error']('\x20\x20\x20-\x20Hardware\x20Specification\x20(CPU/RAM)\x20for\x20HWID');this['logger']['error']('\x20\x20\x20-\x20Bot\x20Configuration');this['logger']['error']('');this['logger']['error']('๐Ÿ‘‰\x20HOW\x20TO\x20FIX:');this['logger']['error']('\x20\x20\x20Open\x20your\x20\x22kythia.config.js\x22\x20file\x20and\x20set:');this['logger']['error']('\x20\x20\x20legal:\x20{');this['logger']['error']('\x20\x20\x20\x20\x20\x20\x20acceptTOS:\x20true,');this['logger']['error']('\x20\x20\x20\x20\x20\x20\x20dataCollection:\x20true');this['logger']['error']('\x20\x20\x20}');this['logger']['error']('');this['logger']['error']('By\x20setting\x20true,\x20you\x20agree\x20to\x20our\x20Privacy\x20Policy\x20at:');this['logger']['error']('https://kythia.my.id/privacy');this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');process['exit'](0xc0f+-0x1887+0xc79);}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['init']({'dsn':this['kythiaConfig']['sentry']['dsn'],'tracesSampleRate':this['kythiaConfig']['sentry']['tracesSampleRate']??(this['kythiaConfig']['env']==='development'?-0x1*0x48a+-0x14ef*0x1+0x197a:-0x13*0x83+-0x1735+0x696*0x5+0.01),'profilesSampleRate':this['kythiaConfig']['sentry']['profilesSampleRate']??(this['kythiaConfig']['env']==='development'?-0x1743+0x8ce+-0x6*-0x269:0x815+0x12b2+-0x1ac7+0.01)});this['logger']['info']('โœ”๏ธ\x20\x20Sentry\x20Error\x20Tracking\x20is\x20ACTIVE');}else{this['logger']['warn']('๐ŸŸ \x20Sentry\x20DSN\x20not\x20found\x20in\x20config.\x20Error\x20tracking\x20is\x20INACTIVE.');}this['_checkRequiredConfig']();const _0x18d975=this['engine'];const _0x4643f9=Object['getOwnPropertyDescriptor'](Object['getPrototypeOf'](_0x18d975),'ignite');const _0xc110b0=_0x4643f9?.['value'];const _0x223d8b=_0xc110b0?await _0xc110b0['call'](_0x18d975):await _0x18d975['ignite']();const _0x2f7756=!!_0x223d8b;if(!_0x2f7756){const _0x4f6dbb=['serv','ice','\x20','key']['join']('');const _0x3ef133=['act','ivat','ion']['join']('');const _0x3a1c67=this['engine']['getPortalUrl']();this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('๐Ÿšซ\x20ACCESS\x20DENIED');this['logger']['error']('Your\x20'+_0x4f6dbb+'\x20is\x20missing,\x20invalid,\x20or\x20expired.');this['logger']['error']('Please\x20check\x20your\x20'+_0x4f6dbb+'\x20in\x20.env\x20or\x20contact\x20support\x20at:');this['logger']['error']('ใƒป\x20https://dsc.gg/kythia');this['logger']['error']('ใƒป\x20Manage\x20your\x20'+_0x3ef133+'\x20at\x20'+_0x3a1c67);this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_terminateUnauthorizedProcess'](['auth','_fail']['join'](''));}if(_0x2f7756){const _0x272a41=this['engine']['getOwner']()??'-';const _0x127d9d=this['engine']['getBoundClientId']()??'-';const _0x360441=this['engine']['getPortalUrl']()??'-';const _0x1c5781=['serv','ice']['join']('');const _0x1fc482=['act','ivat','ed']['join']('');this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['info']('โœ…\x20'+_0x1c5781+'\x20'+_0x1fc482+'\x20successfully');this['logger']['info']('Owner\x20ID:\x20'+_0x272a41);this['logger']['info']('Bot\x20ID:\x20'+_0x127d9d);this['logger']['info']('Manage\x20your\x20'+_0x1c5781+'\x20at\x20'+_0x360441);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x3b358e=this['client']['shard']?.['ids'][0x1a2c+0xaf7+-0x3*0xc61];if(_0x3b358e===undefined||_0x3b358e===-0xb0a+0x2633+0x11*-0x199){this['engine']['startPulse']();this['engine']['startAutoOptimization']();}else{this['logger']['info']('โญ๏ธ\x20\x20Skipping\x20license\x20pulse\x20on\x20Shard\x20'+_0x3b358e+'\x20โ€”\x20only\x20Shard\x200\x20pulses.');}setTimeout(()=>{this['_performHealthCheck']();},-0xfa*0x32+-0xe41a+0x18a1e*0x1);this['engine']['report']('info','Bot\x20Process\x20Started\x20(v'+package_json_1['version']+')',{'node':process['version'],'platform':process['platform'],'cwd':process['cwd']()});const _0x24cf8c=this['kythiaConfig']['api']?.['webhookErrorLogs']??(this['kythiaConfig']['settings']?.['webhookErrorLogs']===!![]?process.env.WEBHOOK_ERROR_LOGS:undefined);const _0x40cec0=this['kythiaConfig']['settings']?.['webhookLogFilter']??'warn,error';this['_webhookTransport']=(-0x114f+-0x1*0x31f+0x146e,DiscordWebhookTransport_1['attachWebhookTransport'])(this['logger'],_0x24cf8c,undefined,_0x40cec0);if(this['_webhookTransport']){this['logger']['info']('๐Ÿ“จ\x20Discord\x20Webhook\x20Transport\x20attached\x20(filter:\x20'+_0x40cec0+').');}}try{const _0x216e70=!process['argv']['includes']('--dev');this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Translator\x20System\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x5cef2d=node_path_1['default']['join'](__dirname,'lang');this['translator']['loadLocalesFromDir'](_0x5cef2d);const _0x169ee0=node_path_1['default']['join'](this['appRoot'],'lang');this['translator']['loadLocalesFromDir'](_0x169ee0);this['container']['translator']=this['translator'];this['container']['t']=this['translator']['t']['bind'](this['translator']);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Kythia\x20Addons\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['addonManager']=new AddonManager_1['default']({'client':this['client'],'container':this['container']});const _0x4914bb=await this['addonManager']['loadAddons'](this);this['client']['applicationCommandsData']=_0x4914bb;if(this['sequelize']){this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Connect\x20Database\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_connectDatabaseWithRetry']();await(-0x181*0x5+-0x1f26+0x26ab,KythiaMigrator_1['default'])({'sequelize':this['sequelize'],'container':this['container'],'logger':this['logger']});await(0x19ef+0xa*-0x2fa+0x9*0x6d,ModelLoader_1['default'])(this,this['sequelize']);this['logger']['info']('๐Ÿช\x20Attaching\x20Cache\x20Hooks...');KythiaModel_1['default']['attachHooksToAllModels'](this['sequelize'],this['client']);}else{this['logger']['warn']('โš ๏ธ\x20Sequelize\x20instance\x20not\x20provided.\x20Skipping\x20database\x20initialization.');}const _0x5ad749=this['addonManager']['getHandlers']();this['eventManager']=new EventManager_1['default']({'client':this['client'],'container':this['container'],'eventHandlers':_0x5ad749['eventHandlers']});this['eventManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Middleware\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x4843a6=new MiddlewareManager_1['default']({'container':this['container']});await _0x4843a6['loadMiddlewares']();this['container']['middlewareManager']=_0x4843a6;this['interactionManager']=new InteractionManager_1['InteractionManager']({'client':this['client'],'container':this['container'],'handlers':_0x5ad749});this['interactionManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Deploy\x20Commands\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x2dcc25=this['client']['shard']?.['ids'][-0x23b6+0xb*-0x1a2+0x2af*0x14];const _0x52ae19=_0x2dcc25===undefined||_0x2dcc25===-0x22db+-0x3a5+0x134*0x20;if(_0x216e70&&_0x52ae19){await this['_deployCommands'](_0x4914bb);}else if(_0x216e70&&!_0x52ae19){this['logger']['info']('โญ๏ธ\x20\x20Skipping\x20command\x20deployment\x20on\x20Shard\x20'+_0x2dcc25+'\x20โ€”\x20only\x20Shard\x200\x20deploys.');}else{this['logger']['info']('โญ๏ธ\x20\x20Skipping\x20command\x20deployment\x20because\x20--dev\x20flag\x20is\x20present.');}this['shutdownManager']=new ShutdownManager_1['ShutdownManager']({'client':this['client'],'container':this['container']});this['container']['shutdownManager']=this['shutdownManager'];this['shutdownManager']['initialize']();this['client']['rest']['on']('rateLimited',_0x27e9eb=>{this['logger']['warn']('โฑ๏ธ\x20REST\x20Rate\x20Limited:\x20'+_0x27e9eb['method']+'\x20'+_0x27e9eb['route']+'\x20'+('โ€”\x20retry\x20in\x20'+_0x27e9eb['timeToReset']+'ms')+(''+(_0x27e9eb['global']?'\x20(GLOBAL)':'')));});this['client']['rest']['on']('invalidRequestWarning',_0x52a9fd=>{this['logger']['error']('๐Ÿšจ\x20Invalid\x20Request\x20Warning:\x20'+_0x52a9fd['count']+'\x20invalid\x20requests\x20'+('โ€”\x20'+_0x52a9fd['remainingTime']+'ms\x20until\x20counter\x20resets.\x20')+'Consider\x20slowing\x20down\x20API\x20calls\x20to\x20avoid\x20a\x20temporary\x20ban.');});this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Systems\x20Initializing\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['client']['once']('clientReady',async _0x204495=>{this['logger']['info']('๐ŸŒธ\x20Logged\x20in\x20as\x20'+this['client']['user']?.['tag']);this['logger']['info']('๐Ÿ”—\x20Invite\x20link\x20'+this['kythiaConfig']['settings']['inviteLink']);this['engine']['report']('info','Bot\x20Client\x20Ready:\x20'+_0x204495['user']?.['tag'],{'guilds':_0x204495['guilds']['cache']['size'],'users':_0x204495['users']['cache']['size']});if(this['_webhookTransport']){this['_webhookTransport']['setClient'](this['client']);}this['shutdownManager']['sendStartupWebhook']()['catch'](()=>{});const _0x2d1ff4=await this['engine']['fetchAnnouncement']();if(_0x2d1ff4){const _0x30e624={'event':0x57f287,'update':0x3498db,'warning':0xfee75c,'maintenance':0xed4245};for(const _0x2972fc of _0x2d1ff4){if(_0x2972fc['send_dm_to_owner']){const _0x3f5cd6=this['kythiaConfig']['owner']['ids'];const _0x28c4b7=Array['isArray'](_0x3f5cd6)?_0x3f5cd6:String(_0x3f5cd6)['split'](',')['map'](_0x4a6e92=>_0x4a6e92['trim']())['filter'](Boolean);const _0x14ca37=_0x30e624[_0x2972fc['type']]||0x406*-0x8+0x2*-0x10b1+0x4291;const _0x284583=new discord_js_1['ContainerBuilder']()['setAccentColor'](_0x14ca37)['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent']('##\x20'+_0x2972fc['title']))['addSeparatorComponents'](new discord_js_1['SeparatorBuilder']()['setSpacing'](discord_js_1['SeparatorSpacingSize']['Small'])['setDivider'](!![]))['addSectionComponents'](new discord_js_1['SectionBuilder']()['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent'](''+_0x2972fc['message']))['setThumbnailAccessory'](new discord_js_1['ThumbnailBuilder']()['setURL']('https://github.com/kenndeclouv.png')['setDescription']('kenndeclouv\x20profile\x20picture')))['addSeparatorComponents'](new discord_js_1['SeparatorBuilder']()['setSpacing'](discord_js_1['SeparatorSpacingSize']['Small'])['setDivider'](!![]))['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent']('-#\x20Message\x20from\x20kenndeclouv'));for(const _0x2c2c7d of _0x28c4b7){try{const _0x33aa03=await _0x204495['users']['fetch'](_0x2c2c7d);await _0x33aa03['send']({'components':[_0x284583],'flags':discord_js_1['MessageFlags']['IsComponentsV2']});}catch(_0x120382){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20send\x20announcement\x20DM\x20to\x20owner\x20'+_0x2c2c7d);}}}}}this['logger']['info']('๐Ÿš€\x20Executing\x20'+this['clientReadyHooks']['length']+'\x20client-ready\x20hooks...');for(const _0x2583a7 of this['clientReadyHooks']){try{await _0x2583a7(this['container']);}catch(_0x4b382e){this['logger']['error']('Failed\x20to\x20execute\x20a\x20client-ready\x20hook:',_0x4b382e);}}});await this['client']['login'](this['kythiaConfig']['bot']['token']);}catch(_0x550569){this['logger']['error']('โŒ\x20Kythia\x20initialization\x20failed:',_0x550569);try{await this['engine']['report']('error','Startup\x20Fatal\x20Crash',{'stack':_0x550569});}catch(_0x2291b7){}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['captureException'](_0x550569);}process['exit'](0x265c+0xd*-0x43+-0x22f4);}}async['_connectDatabaseWithRetry'](_0x4a18fb=0x1bf1+-0x107b+0x1d*-0x65,_0x2fd41e=0x15aa+0xd4c+-0xf6e){if(!this['sequelize'])return;for(let _0x1ad1ee=-0x1*-0x839+0x2409+-0x2c42;_0x1ad1ee<_0x4a18fb;_0x1ad1ee++){try{await this['sequelize']['authenticate']();this['logger']['info']('โœ…\x20Database\x20connection\x20established\x20successfully.');return;}catch(_0x567cc9){const _0x3447ee=_0x1ad1ee===_0x4a18fb-(-0x2433+-0x1*0x2a7+-0x26db*-0x1);this['logger']['warn']('โš ๏ธ\x20\x20Database\x20connection\x20failed\x20(Attempt\x20'+(_0x1ad1ee+(-0x3*-0x601+-0x1*0x1a7d+0x87b))+'/'+_0x4a18fb+').\x20'+(_0x3447ee?'Giving\x20up.':'Retrying\x20in\x20'+_0x2fd41e/(-0xb55+-0x115c*0x2+0x31*0x105)+'s...'));if(!_0x3447ee){this['logger']['warn']('\x20\x20\x20Error:\x20'+_0x567cc9['message']);}else{this['logger']['error']('โŒ\x20Final\x20Database\x20Connection\x20Error:',_0x567cc9);throw _0x567cc9;}await new Promise(_0xc6be8b=>setTimeout(_0xc6be8b,_0x2fd41e));}}}}exports['default']=Kythia;
@@ -1 +1 @@
1
- 'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['createCommand']=createCommand;const commander_1=require('commander');class Command{['register'](_0xe5c756){const _0x4f3bf3=_0xe5c756['command'](this['signature'])['description'](this['description']);this['configure'](_0x4f3bf3);_0x4f3bf3['action']((..._0x5244ee)=>{const _0x2283bd=_0x5244ee[0x18fb+0x3*-0x335+0x3d7*-0x4]||{};void this['handle'](_0x2283bd,..._0x5244ee['slice'](0x19f0+0x154d+-0x2f3c));});}['configure'](_0x4d471a){}}exports['default']=Command;function createCommand(_0x2be701,_0x1ccc22,_0x56d2a1){const _0x10c1d1=new commander_1['Command'](_0x2be701);_0x10c1d1['description'](_0x1ccc22);_0x10c1d1['action']((..._0x3762cc)=>{const _0x4311b6=_0x56d2a1(..._0x3762cc);if(_0x4311b6 instanceof Promise){_0x4311b6['catch'](_0x107909=>{console['error']('Command\x20failed:',_0x107909);process['exit'](-0x2*0x398+-0x393+0xac4);});}});return _0x10c1d1;}
1
+ 'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['createCommand']=createCommand;const commander_1=require('commander');class Command{['register'](_0x192377){const _0x4834f7=_0x192377['command'](this['signature'])['description'](this['description']);this['configure'](_0x4834f7);_0x4834f7['action']((..._0x46d194)=>{const _0x392cd8=_0x46d194[0x1*0x3ce+0x922+-0x30*0x45]||{};void this['handle'](_0x392cd8,..._0x46d194['slice'](-0x133d+0x26af+-0x3*0x67b));});}['configure'](_0x56e696){}}exports['default']=Command;function createCommand(_0x208bc4,_0x541684,_0x263dcc){const _0x4378ad=new commander_1['Command'](_0x208bc4);_0x4378ad['description'](_0x541684);_0x4378ad['action']((..._0x78e79)=>{const _0x74ba5a=_0x263dcc(..._0x78e79);if(_0x74ba5a instanceof Promise){_0x74ba5a['catch'](_0x3f74c3=>{console['error']('Command\x20failed:',_0x3f74c3);process['exit'](-0x117d+-0x1*-0x3b9+0xdc5);});}});return _0x4378ad;}
@@ -1 +1 @@
1
- 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x203294){return _0x203294&&_0x203294['__esModule']?_0x203294:{'default':_0x203294};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const package_json_1=__importDefault(require('../../../package.json'));const Command_1=__importDefault(require('../Command'));const picocolors_1=__importDefault(require('picocolors'));const figlet_1=__importDefault(require('figlet'));const node_os_1=__importDefault(require('node:os'));class AboutCommand extends Command_1['default']{['signature']='about';['description']='Display\x20system\x20architecture\x20and\x20runtime\x20telemetry';async['handle'](){const _0x1d5b4a=(_0x27879d,_0xaabe66)=>new Promise((_0x45c3d2,_0x437db8)=>{figlet_1['default']['text'](_0x27879d,_0xaabe66,(_0x34d2a4,_0x469b50)=>{if(_0x34d2a4){_0x437db8(_0x34d2a4);}else{_0x45c3d2(_0x469b50||'');}});});const _0x30585c=await _0x1d5b4a('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full'});console['log']('');console['log'](picocolors_1['default']['cyan'](_0x30585c));console['log'](picocolors_1['default']['bold'](picocolors_1['default']['white']('\x20A\x20MODULAR\x20ORCHESTRATION\x20ENGINE')));console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข'));console['log'](picocolors_1['default']['gray']('\x20Kythia\x20is\x20an\x20advanced,\x20high-performance\x20automation\x20framework\x20designed\x0a'+'\x20for\x20seamless\x20Discord\x20integration.\x20Built\x20on\x20a\x20reactive\x20event-driven\x0a'+'\x20architecture,\x20it\x20bridges\x20the\x20gap\x20between\x20raw\x20efficiency\x20and\x20developer\x0a'+'\x20experience.\x20Featuring\x20dynamic\x20addon\x20injection,\x20smart\x20resource\x20governance,\x0a'+'\x20and\x20a\x20robust\x20ORM\x20layer\x20for\x20scalable\x20data\x20management.'));console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข\x0a'));const _0x298a38=(_0x554929,_0x44e915=0x8c5*-0x1+0xe15+-0x540)=>_0x554929['padEnd'](_0x44e915);const _0x3a175a=package_json_1['default']['version'];console['log'](picocolors_1['default']['cyan']('\x20โš™๏ธ\x20\x20SYSTEM\x20METADATA'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x298a38('Version')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['green'](_0x3a175a));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x298a38('Engineered')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['white']('kenndeclouv'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x298a38('Assistants')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['magenta']('graa\x20&\x20chaa'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x298a38('License')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['dim']('CC\x20BY-NC\x204.0'));console['log']('');console['log'](picocolors_1['default']['cyan']('\x20๐ŸŽฏ\x20CORE\x20FEATURES'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Modular\x20Addon\x20System\x20\x20\x20\x20\x20\x20-\x20Dynamic\x20feature\x20loading');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Dependency\x20Injection\x20\x20\x20\x20\x20\x20-\x20Advanced\x20IoC\x20container');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Database\x20Abstraction\x20\x20\x20\x20\x20\x20-\x20SQLite,\x20MySQL,\x20PostgreSQL');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20i18n\x20Support\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Multi-language\x20translations');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Middleware\x20Pipeline\x20\x20\x20\x20\x20\x20\x20-\x20Request\x20processing\x20&\x20validation');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Event\x20Management\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Sophisticated\x20event\x20routing');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Interaction\x20Handlers\x20\x20\x20\x20\x20\x20-\x20Commands,\x20buttons,\x20modals,\x20menus');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Telemetry\x20&\x20Monitoring\x20\x20\x20\x20-\x20Built-in\x20observability');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Redis\x20Caching\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Performance\x20optimization');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Graceful\x20Shutdown\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Safe\x20process\x20termination');console['log']('');console['log'](picocolors_1['default']['magenta']('\x20๐Ÿ—๏ธ\x20\x20ARCHITECTURE\x20COMPONENTS'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20AddonManager\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Dynamic\x20module\x20orchestration');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20InteractionManager\x20\x20\x20\x20\x20\x20\x20-\x20Discord\x20interaction\x20routing');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20EventManager\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Gateway\x20event\x20distribution');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20TranslatorManager\x20\x20\x20\x20\x20\x20\x20\x20-\x20Locale\x20&\x20i18n\x20handling');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20MiddlewareManager\x20\x20\x20\x20\x20\x20\x20\x20-\x20Request\x20preprocessing\x20pipeline');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20KythiaEngine\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Runtime\x20optimization\x20&\x20metrics');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20ShutdownManager\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Process\x20lifecycle\x20governance');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ•ฐโ”ˆโžค')+'\x20KythiaMigrator\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Database\x20schema\x20migration');console['log']('');console['log'](picocolors_1['default']['yellow']('\x20๐Ÿ—„๏ธ\x20\x20DATABASE\x20SUPPORT'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20SQLite\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Lightweight,\x20zero-config\x20(default)');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20MySQL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Production-ready\x20relational\x20DB');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20PostgreSQL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Advanced\x20features\x20&\x20scalability');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20Sequelize\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Powerful\x20ORM\x20with\x20migrations');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20KythiaModel\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Enhanced\x20base\x20model\x20with\x20caching');console['log']('');console['log'](picocolors_1['default']['blue']('\x20๐Ÿ”ง\x20TECHNOLOGY\x20STACK'));console['log']('\x20\x20\x20\x20'+_0x298a38('Runtime')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Node.js\x20'+process['version']);console['log']('\x20\x20\x20\x20'+_0x298a38('Language')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20TypeScript\x20(ES2020+)');console['log']('\x20\x20\x20\x20'+_0x298a38('Discord\x20Client')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20discord.js\x20v14');console['log']('\x20\x20\x20\x20'+_0x298a38('ORM')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sequelize');console['log']('\x20\x20\x20\x20'+_0x298a38('Cache')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Redis\x20(optional)');console['log']('\x20\x20\x20\x20'+_0x298a38('Error\x20Tracking')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sentry\x20(optional)');console['log']('\x20\x20\x20\x20'+_0x298a38('CLI\x20Framework')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Custom\x20Commander-based');console['log']('');const _0x493510=(process['uptime']()/(-0x11e6*-0x1+-0xbc7+-0x89*0xb))['toFixed'](0x6*0x266+0x2636+0x22*-0x18c);const _0x4ef796=(process['memoryUsage']()['rss']/(0x17*0xd6+-0xf3c+0x2)/(-0x138f+0x2*0x132d+-0xecb))['toFixed'](-0x1323+-0x1*0x1da7+0x4*0xc33);const _0x25c4bf=(process['memoryUsage']()['heapUsed']/(-0x5b1*0x3+-0x2*-0x8fc+0x31b)/(-0x10*-0x1c0+-0x988+-0x73c*0x2))['toFixed'](-0x1038+0x7b3+0x887);const _0x45a0ca=(process['memoryUsage']()['heapTotal']/(0x13be+0xcb0+0xe37*-0x2)/(0x1e92+0x181*-0x9+-0x47*0x2f))['toFixed'](-0x185*-0x16+-0x38b*0x3+-0x16cb);console['log'](picocolors_1['default']['green']('\x20๐Ÿ“Š\x20RUNTIME\x20TELEMETRY'));console['log']('\x20\x20\x20\x20'+_0x298a38('OS\x20Platform')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+node_os_1['default']['type']()+'\x20'+node_os_1['default']['release']()+'\x20('+node_os_1['default']['arch']()+')');console['log']('\x20\x20\x20\x20'+_0x298a38('CPU\x20Cores')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+node_os_1['default']['cpus']()['length']+'\x20cores');console['log']('\x20\x20\x20\x20'+_0x298a38('Total\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['totalmem']()/(-0x3a4*0xa+0x6*0x5e7+-0x3*-0x1aa)/(0x2136+0x99f*-0x3+0x1*-0x59)/(0xe6c+0x12b9*0x1+-0x1d25))['toFixed'](0xa10+-0x1*0xf24+0x516)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0x298a38('Free\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['freemem']()/(-0x1*-0x1cd5+-0xf0e*-0x1+-0x27e3)/(-0x19e+-0x178c+-0xe95*-0x2)/(0x1ac9+-0x241f*-0x1+-0x3ae8))['toFixed'](0x1*0x1781+-0x2529+0xdaa)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0x298a38('Process\x20RSS')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x4ef796+'\x20MB');console['log']('\x20\x20\x20\x20'+_0x298a38('Heap\x20Used')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x25c4bf+'\x20MB\x20/\x20'+_0x45a0ca+'\x20MB');console['log']('\x20\x20\x20\x20'+_0x298a38('Process\x20PID')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+process['pid']);console['log']('\x20\x20\x20\x20'+_0x298a38('Session\x20Time')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x493510+'\x20min');console['log']('\x20\x20\x20\x20'+_0x298a38('Working\x20Dir')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+process['cwd']());console['log']('');console['log'](picocolors_1['default']['cyan']('\x20๐ŸŒ\x20COMMUNITY\x20&\x20RESOURCES'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Website\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://kythia.my.id'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Discord\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://dsc.gg/kythia'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20GitHub\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://github.com/kythia/kythia'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Documentation\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://docs.kythia.my.id'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Support\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('kythiadev@gmail.com'));console['log']('');console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข'));console['log'](picocolors_1['default']['yellow']('\x20โšก\x20Built\x20for\x20scale.\x20Designed\x20for\x20developers.\x20Powered\x20by\x20passion.'));console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข\x0a'));}}exports['default']=AboutCommand;
1
+ 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x47bfdd){return _0x47bfdd&&_0x47bfdd['__esModule']?_0x47bfdd:{'default':_0x47bfdd};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const package_json_1=__importDefault(require('../../../package.json'));const Command_1=__importDefault(require('../Command'));const picocolors_1=__importDefault(require('picocolors'));const figlet_1=__importDefault(require('figlet'));const node_os_1=__importDefault(require('node:os'));class AboutCommand extends Command_1['default']{['signature']='about';['description']='Display\x20system\x20architecture\x20and\x20runtime\x20telemetry';async['handle'](){const _0x4b79b4=(_0x4a2bd3,_0x111d87)=>new Promise((_0x558e09,_0x3545ca)=>{figlet_1['default']['text'](_0x4a2bd3,_0x111d87,(_0x5c7f94,_0x24c368)=>{if(_0x5c7f94){_0x3545ca(_0x5c7f94);}else{_0x558e09(_0x24c368||'');}});});const _0x57ae02=await _0x4b79b4('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full'});console['log']('');console['log'](picocolors_1['default']['cyan'](_0x57ae02));console['log'](picocolors_1['default']['bold'](picocolors_1['default']['white']('\x20A\x20MODULAR\x20ORCHESTRATION\x20ENGINE')));console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข'));console['log'](picocolors_1['default']['gray']('\x20Kythia\x20is\x20an\x20advanced,\x20high-performance\x20automation\x20framework\x20designed\x0a'+'\x20for\x20seamless\x20Discord\x20integration.\x20Built\x20on\x20a\x20reactive\x20event-driven\x0a'+'\x20architecture,\x20it\x20bridges\x20the\x20gap\x20between\x20raw\x20efficiency\x20and\x20developer\x0a'+'\x20experience.\x20Featuring\x20dynamic\x20addon\x20injection,\x20smart\x20resource\x20governance,\x0a'+'\x20and\x20a\x20robust\x20ORM\x20layer\x20for\x20scalable\x20data\x20management.'));console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข\x0a'));const _0x19dd00=(_0x1e5257,_0x1b639a=-0x2*-0x16f+0x47*-0xb+0x3f)=>_0x1e5257['padEnd'](_0x1b639a);const _0x4b46a2=package_json_1['default']['version'];console['log'](picocolors_1['default']['cyan']('\x20โš™๏ธ\x20\x20SYSTEM\x20METADATA'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x19dd00('Version')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['green'](_0x4b46a2));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x19dd00('Engineered')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['white']('kenndeclouv'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x19dd00('Assistants')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['magenta']('graa\x20&\x20chaa'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x19dd00('License')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['dim']('CC\x20BY-NC\x204.0'));console['log']('');console['log'](picocolors_1['default']['cyan']('\x20๐ŸŽฏ\x20CORE\x20FEATURES'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Modular\x20Addon\x20System\x20\x20\x20\x20\x20\x20-\x20Dynamic\x20feature\x20loading');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Dependency\x20Injection\x20\x20\x20\x20\x20\x20-\x20Advanced\x20IoC\x20container');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Database\x20Abstraction\x20\x20\x20\x20\x20\x20-\x20SQLite,\x20MySQL,\x20PostgreSQL');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20i18n\x20Support\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Multi-language\x20translations');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Middleware\x20Pipeline\x20\x20\x20\x20\x20\x20\x20-\x20Request\x20processing\x20&\x20validation');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Event\x20Management\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Sophisticated\x20event\x20routing');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Interaction\x20Handlers\x20\x20\x20\x20\x20\x20-\x20Commands,\x20buttons,\x20modals,\x20menus');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Telemetry\x20&\x20Monitoring\x20\x20\x20\x20-\x20Built-in\x20observability');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Redis\x20Caching\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Performance\x20optimization');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['green']('โœ“')+'\x20Graceful\x20Shutdown\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Safe\x20process\x20termination');console['log']('');console['log'](picocolors_1['default']['magenta']('\x20๐Ÿ—๏ธ\x20\x20ARCHITECTURE\x20COMPONENTS'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20AddonManager\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Dynamic\x20module\x20orchestration');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20InteractionManager\x20\x20\x20\x20\x20\x20\x20-\x20Discord\x20interaction\x20routing');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20EventManager\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Gateway\x20event\x20distribution');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20TranslatorManager\x20\x20\x20\x20\x20\x20\x20\x20-\x20Locale\x20&\x20i18n\x20handling');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20MiddlewareManager\x20\x20\x20\x20\x20\x20\x20\x20-\x20Request\x20preprocessing\x20pipeline');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20KythiaEngine\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Runtime\x20optimization\x20&\x20metrics');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ”œโ”€')+'\x20ShutdownManager\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Process\x20lifecycle\x20governance');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ•ฐโ”ˆโžค')+'\x20KythiaMigrator\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Database\x20schema\x20migration');console['log']('');console['log'](picocolors_1['default']['yellow']('\x20๐Ÿ—„๏ธ\x20\x20DATABASE\x20SUPPORT'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20SQLite\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Lightweight,\x20zero-config\x20(default)');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20MySQL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Production-ready\x20relational\x20DB');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20PostgreSQL\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Advanced\x20features\x20&\x20scalability');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20Sequelize\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Powerful\x20ORM\x20with\x20migrations');console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ€ข')+'\x20KythiaModel\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20-\x20Enhanced\x20base\x20model\x20with\x20caching');console['log']('');console['log'](picocolors_1['default']['blue']('\x20๐Ÿ”ง\x20TECHNOLOGY\x20STACK'));console['log']('\x20\x20\x20\x20'+_0x19dd00('Runtime')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Node.js\x20'+process['version']);console['log']('\x20\x20\x20\x20'+_0x19dd00('Language')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20TypeScript\x20(ES2020+)');console['log']('\x20\x20\x20\x20'+_0x19dd00('Discord\x20Client')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20discord.js\x20v14');console['log']('\x20\x20\x20\x20'+_0x19dd00('ORM')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sequelize');console['log']('\x20\x20\x20\x20'+_0x19dd00('Cache')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Redis\x20(optional)');console['log']('\x20\x20\x20\x20'+_0x19dd00('Error\x20Tracking')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sentry\x20(optional)');console['log']('\x20\x20\x20\x20'+_0x19dd00('CLI\x20Framework')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Custom\x20Commander-based');console['log']('');const _0x49e788=(process['uptime']()/(-0x2697*-0x1+-0x26*-0x101+-0x4c81))['toFixed'](0xdef+-0x232f+0x1542);const _0x1f3311=(process['memoryUsage']()['rss']/(-0x1*-0x7ea+-0x1f0+-0xfd*0x2)/(-0x1*0x125+-0x19e8+0x1*0x1f0d))['toFixed'](0x6*0x565+0xb5*-0x8+-0x1ab4);const _0x13a500=(process['memoryUsage']()['heapUsed']/(0x25a2+0x314+-0x24b6)/(0x18d*-0x1+-0x25d8+0x2b65))['toFixed'](0x1621+0x4f0+-0x1b0f);const _0x26f5ef=(process['memoryUsage']()['heapTotal']/(0x2594+-0x45*-0x19+-0x2851*0x1)/(0x16fa+0x18dd+-0x2bd7))['toFixed'](-0x1*-0x2231+0x1373+-0x35a2);console['log'](picocolors_1['default']['green']('\x20๐Ÿ“Š\x20RUNTIME\x20TELEMETRY'));console['log']('\x20\x20\x20\x20'+_0x19dd00('OS\x20Platform')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+node_os_1['default']['type']()+'\x20'+node_os_1['default']['release']()+'\x20('+node_os_1['default']['arch']()+')');console['log']('\x20\x20\x20\x20'+_0x19dd00('CPU\x20Cores')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+node_os_1['default']['cpus']()['length']+'\x20cores');console['log']('\x20\x20\x20\x20'+_0x19dd00('Total\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['totalmem']()/(-0x7e9+-0x11fe+-0x5*-0x5fb)/(0xbca*0x2+0x2*-0x5d4+-0x7ec)/(-0x32e*0x9+-0x150+-0x2*-0x10f7))['toFixed'](0x755*-0x5+0x6aa+0x1e01*0x1)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0x19dd00('Free\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['freemem']()/(0x74e*0x5+0xb*-0x357+0xd*0x53)/(0x20c6+-0x218*-0x1+-0x2*0xf6f)/(0x69+-0x98*-0x18+-0xaa9))['toFixed'](0xcb1+-0xab5*0x3+0x8*0x26e)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0x19dd00('Process\x20RSS')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x1f3311+'\x20MB');console['log']('\x20\x20\x20\x20'+_0x19dd00('Heap\x20Used')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x13a500+'\x20MB\x20/\x20'+_0x26f5ef+'\x20MB');console['log']('\x20\x20\x20\x20'+_0x19dd00('Process\x20PID')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+process['pid']);console['log']('\x20\x20\x20\x20'+_0x19dd00('Session\x20Time')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x49e788+'\x20min');console['log']('\x20\x20\x20\x20'+_0x19dd00('Working\x20Dir')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+process['cwd']());console['log']('');console['log'](picocolors_1['default']['cyan']('\x20๐ŸŒ\x20COMMUNITY\x20&\x20RESOURCES'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Website\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://kythia.my.id'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Discord\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://dsc.gg/kythia'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20GitHub\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://github.com/kythia/kythia'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Documentation\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('https://docs.kythia.my.id'));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['dim']('โ—')+'\x20Support\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['underline']('kythiadev@gmail.com'));console['log']('');console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข'));console['log'](picocolors_1['default']['yellow']('\x20โšก\x20Built\x20for\x20scale.\x20Designed\x20for\x20developers.\x20Powered\x20by\x20passion.'));console['log'](picocolors_1['default']['dim']('\x20\x20\x20\x20\x20\x20\x20\x20โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข\x0a'));}}exports['default']=AboutCommand;
@@ -1 +1 @@
1
- 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x50eb7a){return _0x50eb7a&&_0x50eb7a['__esModule']?_0x50eb7a:{'default':_0x50eb7a};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const dotenvx_1=require('@dotenvx/dotenvx');const node_readline_1=__importDefault(require('node:readline'));const Command_1=__importDefault(require('../Command'));const picocolors_1=__importDefault(require('picocolors'));const ioredis_1=__importDefault(require('ioredis'));(-0xc95+0x1a*0x43+0x5c7,dotenvx_1['config'])({'quiet':!![]});function askQuestion(_0x1a576){const _0x15d51d=node_readline_1['default']['createInterface']({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x1e75ef=>_0x15d51d['question'](_0x1a576,_0x1c5256=>{_0x15d51d['close']();_0x1e75ef(_0x1c5256);}));}class CacheClearCommand extends Command_1['default']{['signature']='cache:clear';['description']='Flush\x20Redis\x20cache\x20(supports\x20multi-instance\x20selection)';async['handle'](){console['log'](picocolors_1['default']['dim']('๐Ÿ”\x20Detecting\x20Redis\x20configuration...'));const _0x1b79c2=process.env.REDIS_URLS;if(!_0x1b79c2){console['error'](picocolors_1['default']['red']('โŒ\x20REDIS_URLS\x20not\x20found\x20in\x20.env'));process['exit'](0x2262+-0x1c75+-0x5ec);}const _0x5dc67d=_0x1b79c2['split'](',')['map'](_0x2bd1be=>_0x2bd1be['trim']())['filter'](_0x372897=>_0x372897['length']>-0xb49+0x13a*0xe+-0x5e3);if(_0x5dc67d['length']===0x124a+-0x2*0xc75+0x6a0){console['error'](picocolors_1['default']['red']('โŒ\x20No\x20valid\x20Redis\x20URLs\x20found.'));process['exit'](-0xd70+0xd*-0xe8+0x1939);}let _0x10f465=[];if(_0x5dc67d['length']===-0x1abd+0x5*-0x61d+0x394f){_0x10f465=[_0x5dc67d[-0xfc0+0x2*0x51+0xf1e]];console['log'](picocolors_1['default']['cyan']('๐ŸŽฏ\x20Target:\x20'+_0x10f465[-0x6c*0x22+-0x1*-0xb89+0x2cf*0x1]));}else{console['log'](picocolors_1['default']['yellow']('โš ๏ธ\x20\x20Multiple\x20Redis\x20instances\x20detected\x20('+_0x5dc67d['length']+'):'));console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));console['log']('0.\x20'+picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20FLUSH\x20ALL\x20INSTANCES\x20')));_0x5dc67d['forEach']((_0x5ceebb,_0xd28f8e)=>{const _0x1c08f4=_0x5ceebb['replace'](/:([^@]+)@/,':****@');console['log'](_0xd28f8e+(0x1a9a+0x6df*0x5+0xa6*-0x5e)+'.\x20'+_0x1c08f4);});console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));const _0x538263=await askQuestion(picocolors_1['default']['cyan']('Select\x20target\x20to\x20flush\x20(number):\x20'));const _0x18a90d=parseInt(_0x538263,-0xe28+-0x16e8+0xc5e*0x3);if(Number['isNaN'](_0x18a90d)||_0x18a90d<0x7f*0x1b+-0x1706+-0x1*-0x9a1||_0x18a90d>_0x5dc67d['length']){console['error'](picocolors_1['default']['red']('โŒ\x20Invalid\x20selection.'));process['exit'](-0x245a+-0x1366+0x7f7*0x7);}if(_0x18a90d===-0x1439*0x1+0x21d8+-0xd9f){_0x10f465=_0x5dc67d;}else{_0x10f465=[_0x5dc67d[_0x18a90d-(-0x1d3b+-0x1543+0x327f)]];}}const _0x3d5552=await askQuestion(picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20DANGER\x20'))+picocolors_1['default']['yellow']('\x20Are\x20you\x20sure\x20you\x20want\x20to\x20FLUSHALL\x20'+_0x10f465['length']+'\x20instance(s)?\x20(y/n):\x20'));if(_0x3d5552['toLowerCase']()!=='y'&&_0x3d5552['toLowerCase']()!=='yes'){console['log'](picocolors_1['default']['cyan']('๐Ÿ›ก๏ธ\x20\x20Operation\x20cancelled.'));process['exit'](0x31a+0x1*0x893+0xbad*-0x1);}console['log']('');for(const _0x346108 of _0x10f465){const _0x284494=_0x346108['replace'](/:([^@]+)@/,':****@');try{console['log'](picocolors_1['default']['dim']('๐Ÿ”Œ\x20Connecting\x20to\x20'+_0x284494+'...'));const _0x5d6698=new ioredis_1['default'](_0x346108,{'maxRetriesPerRequest':0x1,'retryStrategy':()=>null});await _0x5d6698['flushall']();console['log'](picocolors_1['default']['green']('โœ…\x20FLUSHALL\x20Success:\x20'+_0x284494));_0x5d6698['quit']();}catch(_0x132f40){const _0x1689f0=_0x132f40 instanceof Error?_0x132f40:new Error(String(_0x132f40));console['error'](picocolors_1['default']['red']('โŒ\x20Failed\x20to\x20flush\x20cache:'),_0x1689f0['message']);}}console['log'](picocolors_1['default']['green']('\x0aโœจ\x20Cache\x20clearing\x20process\x20completed.'));process['exit'](-0x2254+0x101e+-0x3f*-0x4a);}}exports['default']=CacheClearCommand;
1
+ 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x39b9cc){return _0x39b9cc&&_0x39b9cc['__esModule']?_0x39b9cc:{'default':_0x39b9cc};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const dotenvx_1=require('@dotenvx/dotenvx');const node_readline_1=__importDefault(require('node:readline'));const Command_1=__importDefault(require('../Command'));const picocolors_1=__importDefault(require('picocolors'));const ioredis_1=__importDefault(require('ioredis'));(0x433*0x5+0x655*-0x6+0x10ff*0x1,dotenvx_1['config'])({'quiet':!![]});function askQuestion(_0x237507){const _0xd2ad7e=node_readline_1['default']['createInterface']({'input':process['stdin'],'output':process['stdout']});return new Promise(_0xd4f073=>_0xd2ad7e['question'](_0x237507,_0x299687=>{_0xd2ad7e['close']();_0xd4f073(_0x299687);}));}class CacheClearCommand extends Command_1['default']{['signature']='cache:clear';['description']='Flush\x20Redis\x20cache\x20(supports\x20multi-instance\x20selection)';async['handle'](){console['log'](picocolors_1['default']['dim']('๐Ÿ”\x20Detecting\x20Redis\x20configuration...'));const _0x38e88d=process.env.REDIS_URLS;if(!_0x38e88d){console['error'](picocolors_1['default']['red']('โŒ\x20REDIS_URLS\x20not\x20found\x20in\x20.env'));process['exit'](0x1e4e+0x152*-0x18+0x163);}const _0x3a0926=_0x38e88d['split'](',')['map'](_0x51dabe=>_0x51dabe['trim']())['filter'](_0x23715e=>_0x23715e['length']>0x370*-0x8+-0x9bd+-0x1*-0x253d);if(_0x3a0926['length']===-0xe1a+0x1dba+-0xfa0){console['error'](picocolors_1['default']['red']('โŒ\x20No\x20valid\x20Redis\x20URLs\x20found.'));process['exit'](0x2411+-0x15b0+-0x1cc*0x8);}let _0x5f34fc=[];if(_0x3a0926['length']===-0x1879+-0x1655*0x1+-0x209*-0x17){_0x5f34fc=[_0x3a0926[0xb9f+0x1d14+-0x28b3]];console['log'](picocolors_1['default']['cyan']('๐ŸŽฏ\x20Target:\x20'+_0x5f34fc[-0x5*0x593+0x221a+-0x63b]));}else{console['log'](picocolors_1['default']['yellow']('โš ๏ธ\x20\x20Multiple\x20Redis\x20instances\x20detected\x20('+_0x3a0926['length']+'):'));console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));console['log']('0.\x20'+picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20FLUSH\x20ALL\x20INSTANCES\x20')));_0x3a0926['forEach']((_0x3317b4,_0x51f003)=>{const _0x255476=_0x3317b4['replace'](/:([^@]+)@/,':****@');console['log'](_0x51f003+(0xf77+0xc8b*-0x1+-0x1*0x2eb)+'.\x20'+_0x255476);});console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));const _0x9cba89=await askQuestion(picocolors_1['default']['cyan']('Select\x20target\x20to\x20flush\x20(number):\x20'));const _0x50dd97=parseInt(_0x9cba89,-0xf1*0x22+-0x2*0x95f+0x1*0x32ca);if(Number['isNaN'](_0x50dd97)||_0x50dd97<-0x11b*0x19+0x53a*-0x7+0x4039||_0x50dd97>_0x3a0926['length']){console['error'](picocolors_1['default']['red']('โŒ\x20Invalid\x20selection.'));process['exit'](-0x1a99+0x14d9+0x5c1);}if(_0x50dd97===-0x282*-0x6+-0x25b1*-0x1+-0x34bd){_0x5f34fc=_0x3a0926;}else{_0x5f34fc=[_0x3a0926[_0x50dd97-(-0x92a+-0x4d1+-0xb3*-0x14)]];}}const _0x2e463d=await askQuestion(picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20DANGER\x20'))+picocolors_1['default']['yellow']('\x20Are\x20you\x20sure\x20you\x20want\x20to\x20FLUSHALL\x20'+_0x5f34fc['length']+'\x20instance(s)?\x20(y/n):\x20'));if(_0x2e463d['toLowerCase']()!=='y'&&_0x2e463d['toLowerCase']()!=='yes'){console['log'](picocolors_1['default']['cyan']('๐Ÿ›ก๏ธ\x20\x20Operation\x20cancelled.'));process['exit'](0x1c57+-0x2129*-0x1+0x60*-0xa4);}console['log']('');for(const _0x1b365f of _0x5f34fc){const _0x547e4b=_0x1b365f['replace'](/:([^@]+)@/,':****@');try{console['log'](picocolors_1['default']['dim']('๐Ÿ”Œ\x20Connecting\x20to\x20'+_0x547e4b+'...'));const _0x2595fe=new ioredis_1['default'](_0x1b365f,{'maxRetriesPerRequest':0x1,'retryStrategy':()=>null});await _0x2595fe['flushall']();console['log'](picocolors_1['default']['green']('โœ…\x20FLUSHALL\x20Success:\x20'+_0x547e4b));_0x2595fe['quit']();}catch(_0x34ebad){const _0x52c455=_0x34ebad instanceof Error?_0x34ebad:new Error(String(_0x34ebad));console['error'](picocolors_1['default']['red']('โŒ\x20Failed\x20to\x20flush\x20cache:'),_0x52c455['message']);}}console['log'](picocolors_1['default']['green']('\x0aโœจ\x20Cache\x20clearing\x20process\x20completed.'));process['exit'](0x1*-0x2045+0x84*-0x32+0xc1*0x4d);}}exports['default']=CacheClearCommand;
@@ -1 +1 @@
1
- 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x3f8bef,_0x109e47,_0x4cacbb,_0x3da971){if(_0x3da971===undefined)_0x3da971=_0x4cacbb;var _0x79e41=Object['getOwnPropertyDescriptor'](_0x109e47,_0x4cacbb);if(!_0x79e41||('get'in _0x79e41?!_0x109e47['__esModule']:_0x79e41['writable']||_0x79e41['configurable'])){_0x79e41={'enumerable':!![],'get':function(){return _0x109e47[_0x4cacbb];}};}Object['defineProperty'](_0x3f8bef,_0x3da971,_0x79e41);}:function(_0x288ddd,_0x588885,_0x41d6d3,_0x1a434f){if(_0x1a434f===undefined)_0x1a434f=_0x41d6d3;_0x288ddd[_0x1a434f]=_0x588885[_0x41d6d3];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x28d50d,_0x4dd6f){Object['defineProperty'](_0x28d50d,'default',{'enumerable':!![],'value':_0x4dd6f});}:function(_0x29411d,_0x77ceee){_0x29411d['default']=_0x77ceee;});var __importStar=this&&this['__importStar']||(function(){var _0x1ac909=function(_0x27579e){_0x1ac909=Object['getOwnPropertyNames']||function(_0x3e732d){var _0x510a11=[];for(var _0x3d7de9 in _0x3e732d)if(Object['prototype']['hasOwnProperty']['call'](_0x3e732d,_0x3d7de9))_0x510a11[_0x510a11['length']]=_0x3d7de9;return _0x510a11;};return _0x1ac909(_0x27579e);};return function(_0x24bebd){if(_0x24bebd&&_0x24bebd['__esModule'])return _0x24bebd;var _0xf8223c={};if(_0x24bebd!=null)for(var _0x2b87fc=_0x1ac909(_0x24bebd),_0x1fa712=-0x1*-0xa6d+-0x1a49+0xfdc;_0x1fa712<_0x2b87fc['length'];_0x1fa712++)if(_0x2b87fc[_0x1fa712]!=='default')__createBinding(_0xf8223c,_0x24bebd,_0x2b87fc[_0x1fa712]);__setModuleDefault(_0xf8223c,_0x24bebd);return _0xf8223c;};}());var __importDefault=this&&this['__importDefault']||function(_0x588863){return _0x588863&&_0x588863['__esModule']?_0x588863:{'default':_0x588863};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const Command_1=__importDefault(require('../Command'));const node_fs_1=__importDefault(require('node:fs'));const node_path_1=__importDefault(require('node:path'));const glob_1=require('glob');const parser=__importStar(require('@babel/parser'));const traverse_1=__importDefault(require('@babel/traverse'));class DIGenerateCommand extends Command_1['default']{['signature']='di:generate';['description']='Generate\x20types\x20by\x20analyzing\x20index.js\x20dependencies.';async['handle'](){const _0x2f5301=process['cwd']();const _0x4664cd=node_path_1['default']['join'](_0x2f5301,'types');const _0x379122=node_path_1['default']['join'](_0x4664cd,'auto-di.d.ts');const _0x5bffae=node_path_1['default']['join'](_0x2f5301,'index.js');console['log']('---\x20๐Ÿง™โ€โ™‚๏ธ\x20Kythia\x20Type\x20Wizard\x20(Smart\x20Mode)\x20---');console['log']('๐Ÿ“–\x20Reading\x20index.js\x20to\x20find\x20injected\x20helpers...');const _0x151071=new Set();try{const _0x42b222=node_fs_1['default']['readFileSync'](_0x5bffae,'utf8');const _0x14560=parser['parse'](_0x42b222,{'sourceType':'module','plugins':['typescript','objectRestSpread'],'errorRecovery':!![]});(-0x1d1b+-0x322*0x5+0x49*0x9d,traverse_1['default'])(_0x14560,{'VariableDeclarator'(_0xc56a07){if(_0xc56a07['node']['id']['type']==='Identifier'&&_0xc56a07['node']['id']['name']==='dependencies'){const _0x4f81fa=_0xc56a07['node']['init'];if(_0x4f81fa&&_0x4f81fa['type']==='ObjectExpression'){const _0x1af8fc=_0x4f81fa['properties']['find'](_0x4fd63a=>_0x4fd63a['key']['name']==='helpers');if(_0x1af8fc&&_0x1af8fc['value']['type']==='ObjectExpression'){_0x1af8fc['value']['properties']['forEach'](_0x583966=>{if(_0x583966['key']?.['name']){_0x151071['add'](_0x583966['key']['name']);}});}}}}});}catch(_0x30fb1e){console['warn']('โš ๏ธ\x20Failed\x20to\x20parse\x20index.js.\x20Generating\x20all\x20helpers\x20as\x20fallback.');}console['log']('\x20\x20\x20>\x20Detected\x20keys:\x20\x1b[36m'+Array['from'](_0x151071)['join'](',\x20')+'\x1b[0m');const _0x39dbdc={};const _0x466f1c={};const _0x300390=_0x183228=>{const _0x43cc58=_0x183228['split'](node_path_1['default']['sep'])['join']('/');if(_0x43cc58['includes']('/addons/'))return'@addons/'+_0x43cc58['split']('/addons/')[0x64*0x24+0x134f+-0x215e]['replace'](/\.(js|ts)$/,'');if(_0x43cc58['includes']('/src/'))return'@src/'+_0x43cc58['split']('/src/')[-0xd7b+0x152c+-0x7b0]['replace'](/\.(js|ts)$/,'');return null;};glob_1['glob']['sync']('{src,addons/**}/models/*.{js,ts}',{'cwd':_0x2f5301,'ignore':['**/*.d.ts']})['forEach'](_0x4134ed=>{const _0x120ebf=node_path_1['default']['basename'](_0x4134ed,node_path_1['default']['extname'](_0x4134ed));const _0x1288ad=_0x300390(node_path_1['default']['join'](_0x2f5301,_0x4134ed));if(_0x1288ad)_0x39dbdc[_0x120ebf]=_0x1288ad;});glob_1['glob']['sync']('{src,addons/**}/helpers/*.{js,ts}',{'cwd':_0x2f5301,'ignore':['**/*.d.ts']})['forEach'](_0x4b273c=>{const _0x27e16c=node_path_1['default']['basename'](_0x4b273c,node_path_1['default']['extname'](_0x4b273c));if(_0x151071['size']>-0x4f0*0x1+-0xbd*-0x9+0x17*-0x13&&!_0x151071['has'](_0x27e16c))return;const _0x2544e2=_0x300390(node_path_1['default']['join'](_0x2f5301,_0x4b273c));if(_0x2544e2)_0x466f1c[_0x27e16c]=_0x2544e2;});const _0x23216a=['//\x20๐Ÿ›‘\x20DO\x20NOT\x20EDIT.\x20Auto-generated\x20by\x20\x22bunx\x20kythia\x20di:generate\x22','//\x20๐Ÿง™โ€โ™‚๏ธ\x20The\x20Type\x20Wizard\x20-\x20Smart\x20Mode','','declare\x20global\x20{','\x20\x20\x20\x20namespace\x20KythiaDI\x20{','\x20\x20\x20\x20\x20\x20\x20\x20interface\x20Container\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Core\x20Services\x20---','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20client:\x20import(\x22discord.js\x22).Client;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sequelize:\x20import(\x22sequelize\x22).Sequelize;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20redis:\x20import(\x22ioredis\x22).default;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kythiaConfig:\x20any;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20t:\x20(interaction:\x20any,\x20key:\x20string,\x20args?:\x20any)\x20=>\x20Promise<string>;','','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Models\x20---','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20models:\x20{'];Object['entries'](_0x39dbdc)['sort']()['forEach'](([_0x10f98e,_0x4a2054])=>{_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x10f98e+':\x20typeof\x20import(\x27'+_0x4a2054+'\x27);');});_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Helpers\x20(Injected\x20in\x20index.js)\x20---');_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20helpers:\x20{');_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20discord:\x20typeof\x20import(\x22@coreHelpers/discord\x22);');if(_0x151071['has']('color')){_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20{\x20convertColor:\x20(color:\x20any,\x20opts?:\x20any)\x20=>\x20number\x20};');}Object['entries'](_0x466f1c)['sort']()['forEach'](([_0x260293,_0x49a22a])=>{if(_0x260293==='discord')return;_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x260293+':\x20typeof\x20import(\x27'+_0x49a22a+'\x27);');});_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x23216a['push']('\x20\x20\x20\x20\x20\x20\x20\x20}');_0x23216a['push']('\x20\x20\x20\x20}');_0x23216a['push']('}');if(!node_fs_1['default']['existsSync'](_0x4664cd))node_fs_1['default']['mkdirSync'](_0x4664cd,{'recursive':!![]});node_fs_1['default']['writeFileSync'](_0x379122,_0x23216a['join']('\x0a'));console['log']('\x0a\x1b[32mโœจ\x20Done!\x20Generated\x20types\x20matching\x20your\x20index.js\x20dependencies.\x1b[0m');}}exports['default']=DIGenerateCommand;
1
+ 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x29eb12,_0x6f335,_0x2c5219,_0x3f1aba){if(_0x3f1aba===undefined)_0x3f1aba=_0x2c5219;var _0x5591e0=Object['getOwnPropertyDescriptor'](_0x6f335,_0x2c5219);if(!_0x5591e0||('get'in _0x5591e0?!_0x6f335['__esModule']:_0x5591e0['writable']||_0x5591e0['configurable'])){_0x5591e0={'enumerable':!![],'get':function(){return _0x6f335[_0x2c5219];}};}Object['defineProperty'](_0x29eb12,_0x3f1aba,_0x5591e0);}:function(_0xb3a0ec,_0x17ac41,_0xf2ec7a,_0x5d8597){if(_0x5d8597===undefined)_0x5d8597=_0xf2ec7a;_0xb3a0ec[_0x5d8597]=_0x17ac41[_0xf2ec7a];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x474c62,_0x3dc84c){Object['defineProperty'](_0x474c62,'default',{'enumerable':!![],'value':_0x3dc84c});}:function(_0x1f9a13,_0x24888d){_0x1f9a13['default']=_0x24888d;});var __importStar=this&&this['__importStar']||(function(){var _0x57a07e=function(_0x2fa26e){_0x57a07e=Object['getOwnPropertyNames']||function(_0x5e6686){var _0x15248d=[];for(var _0x20743c in _0x5e6686)if(Object['prototype']['hasOwnProperty']['call'](_0x5e6686,_0x20743c))_0x15248d[_0x15248d['length']]=_0x20743c;return _0x15248d;};return _0x57a07e(_0x2fa26e);};return function(_0x4f52e0){if(_0x4f52e0&&_0x4f52e0['__esModule'])return _0x4f52e0;var _0x4fa817={};if(_0x4f52e0!=null)for(var _0x4a38e0=_0x57a07e(_0x4f52e0),_0x32a746=0x20ff+0x2f*0xb5+0x1*-0x423a;_0x32a746<_0x4a38e0['length'];_0x32a746++)if(_0x4a38e0[_0x32a746]!=='default')__createBinding(_0x4fa817,_0x4f52e0,_0x4a38e0[_0x32a746]);__setModuleDefault(_0x4fa817,_0x4f52e0);return _0x4fa817;};}());var __importDefault=this&&this['__importDefault']||function(_0x627bc4){return _0x627bc4&&_0x627bc4['__esModule']?_0x627bc4:{'default':_0x627bc4};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const Command_1=__importDefault(require('../Command'));const node_fs_1=__importDefault(require('node:fs'));const node_path_1=__importDefault(require('node:path'));const glob_1=require('glob');const parser=__importStar(require('@babel/parser'));const traverse_1=__importDefault(require('@babel/traverse'));class DIGenerateCommand extends Command_1['default']{['signature']='di:generate';['description']='Generate\x20types\x20by\x20analyzing\x20index.js\x20dependencies.';async['handle'](){const _0xcbdd8c=process['cwd']();const _0x2ce3cd=node_path_1['default']['join'](_0xcbdd8c,'types');const _0x1426e5=node_path_1['default']['join'](_0x2ce3cd,'auto-di.d.ts');const _0x234f1b=node_path_1['default']['join'](_0xcbdd8c,'index.js');console['log']('---\x20๐Ÿง™โ€โ™‚๏ธ\x20Kythia\x20Type\x20Wizard\x20(Smart\x20Mode)\x20---');console['log']('๐Ÿ“–\x20Reading\x20index.js\x20to\x20find\x20injected\x20helpers...');const _0x267b36=new Set();try{const _0x5b058e=node_fs_1['default']['readFileSync'](_0x234f1b,'utf8');const _0x578531=parser['parse'](_0x5b058e,{'sourceType':'module','plugins':['typescript','objectRestSpread'],'errorRecovery':!![]});(-0x3cb+-0x1c4f*-0x1+0x6*-0x416,traverse_1['default'])(_0x578531,{'VariableDeclarator'(_0x538003){if(_0x538003['node']['id']['type']==='Identifier'&&_0x538003['node']['id']['name']==='dependencies'){const _0x212607=_0x538003['node']['init'];if(_0x212607&&_0x212607['type']==='ObjectExpression'){const _0x2a09c1=_0x212607['properties']['find'](_0x4d79c6=>_0x4d79c6['key']['name']==='helpers');if(_0x2a09c1&&_0x2a09c1['value']['type']==='ObjectExpression'){_0x2a09c1['value']['properties']['forEach'](_0x5618bc=>{if(_0x5618bc['key']?.['name']){_0x267b36['add'](_0x5618bc['key']['name']);}});}}}}});}catch(_0x29bc76){console['warn']('โš ๏ธ\x20Failed\x20to\x20parse\x20index.js.\x20Generating\x20all\x20helpers\x20as\x20fallback.');}console['log']('\x20\x20\x20>\x20Detected\x20keys:\x20\x1b[36m'+Array['from'](_0x267b36)['join'](',\x20')+'\x1b[0m');const _0x429260={};const _0x4eff4e={};const _0x55840a=_0x13c1e9=>{const _0x189fe9=_0x13c1e9['split'](node_path_1['default']['sep'])['join']('/');if(_0x189fe9['includes']('/addons/'))return'@addons/'+_0x189fe9['split']('/addons/')[-0x170*-0x2+-0x1*-0x113e+0x10f*-0x13]['replace'](/\.(js|ts)$/,'');if(_0x189fe9['includes']('/src/'))return'@src/'+_0x189fe9['split']('/src/')[0x1*-0x1c3d+0x29*-0x3d+-0x1*-0x2603]['replace'](/\.(js|ts)$/,'');return null;};glob_1['glob']['sync']('{src,addons/**}/models/*.{js,ts}',{'cwd':_0xcbdd8c,'ignore':['**/*.d.ts']})['forEach'](_0x4e4aa3=>{const _0x1f3682=node_path_1['default']['basename'](_0x4e4aa3,node_path_1['default']['extname'](_0x4e4aa3));const _0x41ce20=_0x55840a(node_path_1['default']['join'](_0xcbdd8c,_0x4e4aa3));if(_0x41ce20)_0x429260[_0x1f3682]=_0x41ce20;});glob_1['glob']['sync']('{src,addons/**}/helpers/*.{js,ts}',{'cwd':_0xcbdd8c,'ignore':['**/*.d.ts']})['forEach'](_0x54dfd9=>{const _0x435486=node_path_1['default']['basename'](_0x54dfd9,node_path_1['default']['extname'](_0x54dfd9));if(_0x267b36['size']>-0x1*0x1fbb+0x3ff+-0x4*-0x6ef&&!_0x267b36['has'](_0x435486))return;const _0x1cef38=_0x55840a(node_path_1['default']['join'](_0xcbdd8c,_0x54dfd9));if(_0x1cef38)_0x4eff4e[_0x435486]=_0x1cef38;});const _0x2ca771=['//\x20๐Ÿ›‘\x20DO\x20NOT\x20EDIT.\x20Auto-generated\x20by\x20\x22bunx\x20kythia\x20di:generate\x22','//\x20๐Ÿง™โ€โ™‚๏ธ\x20The\x20Type\x20Wizard\x20-\x20Smart\x20Mode','','declare\x20global\x20{','\x20\x20\x20\x20namespace\x20KythiaDI\x20{','\x20\x20\x20\x20\x20\x20\x20\x20interface\x20Container\x20{','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Core\x20Services\x20---','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20client:\x20import(\x22discord.js\x22).Client;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20sequelize:\x20import(\x22sequelize\x22).Sequelize;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20redis:\x20import(\x22ioredis\x22).default;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20kythiaConfig:\x20any;','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20t:\x20(interaction:\x20any,\x20key:\x20string,\x20args?:\x20any)\x20=>\x20Promise<string>;','','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Models\x20---','\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20models:\x20{'];Object['entries'](_0x429260)['sort']()['forEach'](([_0x1121d3,_0x551aa3])=>{_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x1121d3+':\x20typeof\x20import(\x27'+_0x551aa3+'\x27);');});_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Helpers\x20(Injected\x20in\x20index.js)\x20---');_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20helpers:\x20{');_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20discord:\x20typeof\x20import(\x22@coreHelpers/discord\x22);');if(_0x267b36['has']('color')){_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20color:\x20{\x20convertColor:\x20(color:\x20any,\x20opts?:\x20any)\x20=>\x20number\x20};');}Object['entries'](_0x4eff4e)['sort']()['forEach'](([_0xbaf66a,_0x5494e8])=>{if(_0xbaf66a==='discord')return;_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0xbaf66a+':\x20typeof\x20import(\x27'+_0x5494e8+'\x27);');});_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x2ca771['push']('\x20\x20\x20\x20\x20\x20\x20\x20}');_0x2ca771['push']('\x20\x20\x20\x20}');_0x2ca771['push']('}');if(!node_fs_1['default']['existsSync'](_0x2ce3cd))node_fs_1['default']['mkdirSync'](_0x2ce3cd,{'recursive':!![]});node_fs_1['default']['writeFileSync'](_0x1426e5,_0x2ca771['join']('\x0a'));console['log']('\x0a\x1b[32mโœจ\x20Done!\x20Generated\x20types\x20matching\x20your\x20index.js\x20dependencies.\x1b[0m');}}exports['default']=DIGenerateCommand;
@@ -1 +1 @@
1
- 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x1ae712){return _0x1ae712&&_0x1ae712['__esModule']?_0x1ae712:{'default':_0x1ae712};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const Command_1=__importDefault(require('../Command'));const node_fs_1=__importDefault(require('node:fs'));const node_path_1=__importDefault(require('node:path'));const picocolors_1=__importDefault(require('picocolors'));const discord_js_1=require('discord.js');class DocsGenerateCommand extends Command_1['default']{['signature']='docs:generate';['description']='Generate\x20markdown\x20documentation\x20for\x20all\x20Discord\x20commands';['markdownBuffers']={};['projectRoot']=process['cwd']();['addonsDir']=node_path_1['default']['join'](process['cwd'](),'addons');['outputDir']=node_path_1['default']['join'](process['cwd'](),'docs','commands');['configure'](_0x2330de){_0x2330de['option']('-p,\x20--path\x20<path>','Custom\x20output\x20path\x20for\x20documentation');}async['handle'](_0x18366f){console['log'](picocolors_1['default']['cyan']('\x0a๐Ÿš€\x20Starting\x20documentation\x20generator...\x0a'));if(_0x18366f['path']){this['outputDir']=node_path_1['default']['resolve'](process['cwd'](),_0x18366f['path']);}this['registerModuleAliases'](this['projectRoot']);this['markdownBuffers']={};if(!node_fs_1['default']['existsSync'](this['outputDir'])){node_fs_1['default']['mkdirSync'](this['outputDir'],{'recursive':!![]});}if(!node_fs_1['default']['existsSync'](this['addonsDir'])){console['error'](picocolors_1['default']['red']('โŒ\x20Addons\x20directory\x20not\x20found:\x20'+this['addonsDir']));return;}const _0xdcc694=node_fs_1['default']['readdirSync'](this['addonsDir'],{'withFileTypes':!![]})['filter'](_0x1508e8=>_0x1508e8['isDirectory']()&&!_0x1508e8['name']['startsWith']('_'));for(const _0x474a78 of _0xdcc694){const _0x583096=node_path_1['default']['join'](this['addonsDir'],_0x474a78['name'],'commands');if(!node_fs_1['default']['existsSync'](_0x583096))continue;console['log'](picocolors_1['default']['blue']('๐Ÿ“ฆ\x20Processing\x20Addon:\x20'+_0x474a78['name']));this['processDirectory'](_0x583096,_0x474a78['name']);}console['log'](picocolors_1['default']['green']('\x0aโœ…\x20Writing\x20to\x20.md\x20files...'));for(const [_0x426d01,_0x2c4e5c]of Object['entries'](this['markdownBuffers'])){const _0x213a0c=node_path_1['default']['join'](this['outputDir'],_0x426d01+'.md');node_fs_1['default']['writeFileSync'](_0x213a0c,_0x2c4e5c);console['log'](picocolors_1['default']['green']('\x20\x20\x20->\x20Generated:\x20'+_0x426d01+'.md'));}console['log'](picocolors_1['default']['green']('\x0a๐ŸŽ‰\x20Finished!'));}['getSlashCommandBuilder'](_0x24ef60){if(!_0x24ef60)return null;return _0x24ef60['slashCommand']||_0x24ef60['data']||null;}['getOptionType'](_0x16618b){switch(_0x16618b){case discord_js_1['ApplicationCommandOptionType']['String']:return'Text';case discord_js_1['ApplicationCommandOptionType']['Integer']:return'Integer';case discord_js_1['ApplicationCommandOptionType']['Number']:return'Number';case discord_js_1['ApplicationCommandOptionType']['Boolean']:return'Boolean';case discord_js_1['ApplicationCommandOptionType']['User']:return'User';case discord_js_1['ApplicationCommandOptionType']['Channel']:return'Channel';case discord_js_1['ApplicationCommandOptionType']['Role']:return'Role';case discord_js_1['ApplicationCommandOptionType']['Mentionable']:return'Mentionable';case discord_js_1['ApplicationCommandOptionType']['Attachment']:return'Attachment';default:return'Unknown';}}['generateOptionsDocs'](_0x4ab0c4,_0x2f609b=![]){let _0x2fcd10=_0x2f609b?'':'###\x20Options\x0a\x0a';for(const _0x109bbb of _0x4ab0c4){_0x2fcd10+='-\x20**`'+_0x109bbb['name']+(_0x109bbb['required']?'*':'')+'`**\x0a';_0x2fcd10+='\x20\x20-\x20**Description:**\x20'+_0x109bbb['description']+'\x0a';_0x2fcd10+='\x20\x20-\x20**Type:**\x20'+this['getOptionType'](_0x109bbb['type'])+'\x0a';if(_0x109bbb['choices']){const _0x5c0faa=_0x109bbb['choices']['map'](_0x36a843=>'`'+_0x36a843['name']+'`\x20(`'+_0x36a843['value']+'`)')['join'](',\x20');_0x2fcd10+='\x20\x20-\x20**Choices:**\x20'+_0x5c0faa+'\x0a';}}return _0x2fcd10;}['generateSubcommandDocs'](_0x32d8e0,_0x46b4c5,_0x285544=null,_0x27482c=null){const _0x11ce72=_0x285544?_0x285544+'\x20':'';const _0x38ceef=_0x46b4c5['options']||[];const _0x5240ba=_0x38ceef['map'](_0x61a45=>{const _0x3a5b90='<'+_0x61a45['name']['toLowerCase']()+'>';return _0x61a45['required']?_0x3a5b90:'['+_0x3a5b90+']';})['join']('\x20');const _0x14511b=_0x46b4c5['description']||'';const _0x508537=_0x14511b['charAt'](-0xf9a+-0x790+0x172a)['toUpperCase']()+_0x14511b['slice'](0x152c+0x84*0x10+-0x1d6b);let _0x49ed2f='**`/'+_0x32d8e0+'\x20'+_0x11ce72+_0x46b4c5['name']+(_0x5240ba?'\x20'+_0x5240ba:'')+'`**\x0a';_0x49ed2f+='>\x20'+_0x508537+'\x0a';if(_0x27482c&&Array['isArray'](_0x27482c['aliases'])&&_0x27482c['aliases']['length']>-0xb27*-0x2+0x21b2+-0x3800){_0x49ed2f+='>\x20_Aliases:\x20'+_0x27482c['aliases']['map'](_0x25bf51=>'`'+_0x25bf51+'`')['join'](',\x20')+'_\x0a';}if(_0x27482c?.['ownerOnly']){_0x49ed2f+='>\x20_Owner\x20Only:\x20Yes_\x0a';}if(_0x27482c?.['cooldown']){_0x49ed2f+='>\x20_Cooldown:\x20'+_0x27482c['cooldown']+'\x20seconds_\x0a';}if(_0x27482c?.['permissions']&&_0x27482c['permissions']['length']>-0xc17*0x2+0x10d6+0x758){const _0x363e53=new discord_js_1['PermissionsBitField'](_0x27482c['permissions'])['toArray']();_0x49ed2f+='>\x20_User\x20Permissions:\x20'+_0x363e53['map'](_0x3357fd=>'`'+_0x3357fd+'`')['join'](',\x20')+'_\x0a';}if(_0x27482c?.['botPermissions']&&_0x27482c['botPermissions']['length']>-0x9*0x1a5+-0x7f*-0x38+-0x1*0xcfb){const _0x13fe4d=new discord_js_1['PermissionsBitField'](_0x27482c['botPermissions'])['toArray']();_0x49ed2f+='>\x20_Bot\x20Permissions:\x20'+_0x13fe4d['map'](_0x334a2c=>'`'+_0x334a2c+'`')['join'](',\x20')+'_\x0a';}_0x49ed2f+='\x0a';if(_0x38ceef['length']>-0x2*-0x4b0+0x1f53+-0xd91*0x3){_0x49ed2f+='**Options\x20for\x20this\x20subcommand:**\x0a';_0x49ed2f+=this['generateOptionsDocs'](_0x38ceef,!![]);}else{_0x49ed2f+='\x0a';}return _0x49ed2f;}['generateMetadataDocs'](_0x3c0b27){let _0x42a210='###\x20Details\x0a\x0a';let _0x297e27=![];if(_0x3c0b27['aliases']&&Array['isArray'](_0x3c0b27['aliases'])&&_0x3c0b27['aliases']['length']>0x1440+0x234a+-0x378a){_0x42a210+='-\x20**Aliases:**\x20'+_0x3c0b27['aliases']['map'](_0x5de38b=>'`'+_0x5de38b+'`')['join'](',\x20')+'\x0a';_0x297e27=!![];}if(_0x3c0b27['ownerOnly']){_0x42a210+='-\x20**Owner\x20Only:**\x20Yes\x0a';_0x297e27=!![];}if(_0x3c0b27['cooldown']){_0x42a210+='-\x20**Cooldown:**\x20'+_0x3c0b27['cooldown']+'\x20seconds\x0a';_0x297e27=!![];}if(_0x3c0b27['permissions']&&_0x3c0b27['permissions']['length']>0xa30+0x102*0x12+-0x1c54){const _0x58a65d=new discord_js_1['PermissionsBitField'](_0x3c0b27['permissions'])['toArray']();_0x42a210+='-\x20**User\x20Permissions:**\x20`'+_0x58a65d['join']('`,\x20`')+'`\x0a';_0x297e27=!![];}if(_0x3c0b27['botPermissions']&&_0x3c0b27['botPermissions']['length']>-0x762+-0x7*-0x529+-0x1*0x1cbd){const _0x22e358=new discord_js_1['PermissionsBitField'](_0x3c0b27['botPermissions'])['toArray']();_0x42a210+='-\x20**Bot\x20Permissions:**\x20`'+_0x22e358['join']('`,\x20`')+'`\x0a';_0x297e27=!![];}return _0x297e27?_0x42a210:'';}['generateCommandMarkdown'](_0x25f721,_0x3eff29,_0x4d4d74=null){const _0x137430=_0x25f721['name'];let _0x3105aa='###\x20`/'+_0x137430+'`\x0a\x0a';_0x3105aa+='**Description:**\x20'+_0x25f721['description']+'\x0a\x0a';_0x3105aa+=this['generateMetadataDocs'](_0x3eff29);const _0x45b425=_0x25f721['options']?.['filter'](_0x2d0641=>_0x2d0641['type']===discord_js_1['ApplicationCommandOptionType']['Subcommand']||_0x2d0641['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);const _0x47a6f9=_0x25f721['options']?.['filter'](_0x250db6=>_0x250db6['type']!==discord_js_1['ApplicationCommandOptionType']['Subcommand']&&_0x250db6['type']!==discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);_0x3105aa+='###\x20Usage\x0a\x0a';if(_0x45b425&&_0x45b425['length']>-0x8cc+0x601+-0x2cb*-0x1){_0x45b425['forEach'](_0x29ef2e=>{if(_0x29ef2e['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){_0x29ef2e['options']['forEach'](_0x23b1ff=>{const _0x41e23b=(_0x23b1ff['options']||[])['map'](_0x2b6cc2=>_0x2b6cc2['required']?'<'+_0x2b6cc2['name']+'>':'['+_0x2b6cc2['name']+']')['join']('\x20');_0x3105aa+='`/'+_0x137430+'\x20'+_0x29ef2e['name']+'\x20'+_0x23b1ff['name']+(_0x41e23b?'\x20'+_0x41e23b:'')+'`\x0a';});}else{const _0x4c3073=(_0x29ef2e['options']||[])['map'](_0x20fcd5=>_0x20fcd5['required']?'<'+_0x20fcd5['name']+'>':'['+_0x20fcd5['name']+']')['join']('\x20');_0x3105aa+='`/'+_0x137430+'\x20'+_0x29ef2e['name']+(_0x4c3073?'\x20'+_0x4c3073:'')+'`\x0a';}});_0x3105aa+='\x0a';}else if(_0x47a6f9&&_0x47a6f9['length']>-0x381*0x3+0x697*-0x3+-0x4c*-0x66){const _0x55241e=_0x47a6f9['map'](_0x113907=>_0x113907['required']?'<'+_0x113907['name']+'>':'['+_0x113907['name']+']')['join']('\x20');_0x3105aa+='`/'+_0x137430+(_0x55241e?'\x20'+_0x55241e:'')+'`\x0a\x0a';}else{_0x3105aa+='`/'+_0x137430+'`\x0a\x0a';}if(_0x45b425&&_0x45b425['length']>0x1167+0x319+-0x1480){_0x3105aa+='###\x20Subcommands\x0a\x0a';for(const _0xdb274c of _0x45b425){if(_0xdb274c['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){for(const _0x3a22c1 of _0xdb274c['options']){const _0x265e7f=_0x4d4d74?.[_0x3a22c1['name']]?_0x4d4d74[_0x3a22c1['name']]:null;_0x3105aa+=this['generateSubcommandDocs'](_0x137430,_0x3a22c1,_0xdb274c['name'],_0x265e7f);}}else{const _0x3c915d=_0x4d4d74?.[_0xdb274c['name']]?_0x4d4d74[_0xdb274c['name']]:null;_0x3105aa+=this['generateSubcommandDocs'](_0x137430,_0xdb274c,null,_0x3c915d);}}}else if(_0x47a6f9&&_0x47a6f9['length']>0x61*0x45+-0xce*0x1d+0x2cf*-0x1){_0x3105aa+=this['generateOptionsDocs'](_0x47a6f9);}return _0x3105aa;}['processSplitCommandDirectory'](_0x52fbf0,_0x1238ae){console['log']('[SPLIT]\x20Assembling\x20\x27'+_0x1238ae+'\x27\x20from\x20folder...');try{const _0x1b7dcc=node_path_1['default']['join'](_0x52fbf0,'_command.js');const _0x366510=require(_0x1b7dcc);if(_0x366510['ownerOnly']||_0x366510['teamOnly'])return;const _0x5f0a0f=this['getSlashCommandBuilder'](_0x366510);if(!_0x5f0a0f)return;const _0x3f97aa={};const _0x5515bb=node_fs_1['default']['readdirSync'](_0x52fbf0,{'withFileTypes':!![]});for(const _0x62ecd0 of _0x5515bb){const _0x3d7064=node_path_1['default']['join'](_0x52fbf0,_0x62ecd0['name']);if(_0x62ecd0['isFile']()&&_0x62ecd0['name']['endsWith']('.js')&&_0x62ecd0['name']!=='_command.js'){const _0x27da35=require(_0x3d7064);const _0x196322=_0x27da35['data']||_0x27da35['slashCommand'];if(!_0x196322)continue;const _0x5dae67=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0x196322==='function'){_0x196322(_0x5dae67);}else if(typeof _0x196322==='object'){_0x5dae67['setName'](_0x196322['name'])['setDescription'](_0x196322['description']);if(_0x196322['options']){_0x5dae67['options']=_0x196322['options'];}}if(_0x5dae67['name']){_0x5f0a0f['addSubcommand'](_0x5dae67);_0x3f97aa[_0x5dae67['name']]={'aliases':_0x27da35['aliases'],'ownerOnly':_0x27da35['ownerOnly'],'cooldown':_0x27da35['cooldown'],'permissions':_0x27da35['permissions'],'botPermissions':_0x27da35['botPermissions']};}}else if(_0x62ecd0['isDirectory']()&&!_0x62ecd0['name']['startsWith']('_')){const _0x467c77=node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x3d7064,'_group.js'))?node_path_1['default']['join'](_0x3d7064,'_group.js'):node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x3d7064,'_command.js'))?node_path_1['default']['join'](_0x3d7064,'_command.js'):null;if(!_0x467c77)continue;const _0x173c28=require(_0x467c77);const _0x56fbaa=_0x173c28['data']||_0x173c28['slashCommand'];if(!_0x56fbaa)continue;const _0x139e71=new discord_js_1['SlashCommandSubcommandGroupBuilder']();if(typeof _0x56fbaa==='function'){_0x56fbaa(_0x139e71);}else{_0x139e71['setName'](_0x56fbaa['name'])['setDescription'](_0x56fbaa['description']);}const _0x5e4be8=node_fs_1['default']['readdirSync'](_0x3d7064)['filter'](_0x2a9602=>_0x2a9602['endsWith']('.js')&&!_0x2a9602['startsWith']('_'));for(const _0x52743f of _0x5e4be8){const _0xada54e=require(node_path_1['default']['join'](_0x3d7064,_0x52743f));const _0x1c77bb=_0xada54e['data']||_0xada54e['slashCommand'];if(!_0x1c77bb)continue;const _0x4540c9=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0x1c77bb==='function'){_0x1c77bb(_0x4540c9);}else{_0x4540c9['setName'](_0x1c77bb['name'])['setDescription'](_0x1c77bb['description']);if(_0x1c77bb['options'])_0x4540c9['options']=_0x1c77bb['options'];}_0x139e71['addSubcommand'](_0x4540c9);_0x3f97aa[_0x4540c9['name']]={'aliases':_0xada54e['aliases'],'permissions':_0xada54e['permissions']};}_0x5f0a0f['addSubcommandGroup'](_0x139e71);}}const _0x66636e=_0x5f0a0f['toJSON']();const _0x5c5bdd=this['generateCommandMarkdown'](_0x66636e,_0x366510,_0x3f97aa);if(!this['markdownBuffers'][_0x1238ae]){this['markdownBuffers'][_0x1238ae]='##\x20Command\x20Category:\x20'+(_0x1238ae['charAt'](-0x1*0xe60+-0x111*0xb+-0x1*-0x1a1b)['toUpperCase']()+_0x1238ae['slice'](-0x18bf+-0xb8d*0x2+0x2fda))+'\x0a\x0a';}this['markdownBuffers'][_0x1238ae]+=_0x5c5bdd+'\x0a\x0a';}catch(_0x4f9e1b){console['error']('โŒ\x20Failed\x20to\x20assemble\x20split\x20command\x20in\x20'+_0x1238ae+':',_0x4f9e1b);}}['processSimpleDirectory'](_0x3e6c2f,_0x5bb609){const _0x4fc2a6=node_fs_1['default']['readdirSync'](_0x3e6c2f)['filter'](_0x43fa8d=>_0x43fa8d['endsWith']('.js')&&!_0x43fa8d['startsWith']('_'));for(const _0x3fe254 of _0x4fc2a6){try{const _0x4542f9=node_path_1['default']['join'](_0x3e6c2f,_0x3fe254);const _0x230d90=require(_0x4542f9);if(_0x230d90['ownerOnly']||_0x230d90['teamOnly'])continue;const _0x41be69=this['getSlashCommandBuilder'](_0x230d90);if(!_0x41be69)continue;let _0x1af5f4;if(typeof _0x41be69['toJSON']==='function'){_0x1af5f4=_0x41be69['toJSON']();}else{_0x1af5f4=_0x41be69;}const _0x787629=this['generateCommandMarkdown'](_0x1af5f4,_0x230d90);if(!this['markdownBuffers'][_0x5bb609]){this['markdownBuffers'][_0x5bb609]='##\x20Command\x20Category:\x20'+(_0x5bb609['charAt'](0x128d+-0x11e4+-0xa9)['toUpperCase']()+_0x5bb609['slice'](0x15ca+-0x2415+0xe4c))+'\x0a\x0a';}this['markdownBuffers'][_0x5bb609]+=_0x787629+'\x0a\x0a';console['log']('['+_0x5bb609['toUpperCase']()+']\x20Added\x20\x27'+(_0x1af5f4['name']||_0x3fe254)+'\x27\x20to\x20buffer');}catch(_0x23f552){console['error']('โŒ\x20Failed\x20to\x20process\x20file\x20'+_0x3fe254+'\x20in\x20category\x20'+_0x5bb609+':\x20'+_0x23f552['message']);}}}['processDirectory'](_0x185b80,_0x1065e4){const _0x61d67c=node_path_1['default']['join'](_0x185b80,'_command.js');if(node_fs_1['default']['existsSync'](_0x61d67c)){this['processSplitCommandDirectory'](_0x185b80,_0x1065e4);}else{this['processSimpleDirectory'](_0x185b80,_0x1065e4);const _0x4ca3f4=node_fs_1['default']['readdirSync'](_0x185b80,{'withFileTypes':!![]});for(const _0x1792cc of _0x4ca3f4){if(_0x1792cc['isDirectory']()&&!_0x1792cc['name']['startsWith']('_')){const _0x35bf88=node_path_1['default']['join'](_0x185b80,_0x1792cc['name']);const _0x1b4273=_0x1065e4;this['processDirectory'](_0x35bf88,_0x1b4273);}}}}['registerModuleAliases'](_0x4b978a){try{const _0x262b5b=node_path_1['default']['join'](_0x4b978a,'package.json');if(!node_fs_1['default']['existsSync'](_0x262b5b))return;const _0x4a3451=JSON['parse'](node_fs_1['default']['readFileSync'](_0x262b5b,'utf8'));const _0x7d1f21=_0x4a3451['_moduleAliases'];if(!_0x7d1f21||typeof _0x7d1f21!=='object')return;const _0x8c508e=require('node:module');const _0x3dadc3=_0x8c508e['_resolveFilename'];_0x8c508e['_resolveFilename']=function(_0x80de1c,_0x5e5c81){for(const [_0x2bb227,_0x3cd136]of Object['entries'](_0x7d1f21)){if(_0x80de1c===_0x2bb227||_0x80de1c['startsWith'](_0x2bb227+'/')){const _0x4bd1c3=_0x80de1c['substring'](_0x2bb227['length']);const _0x495ef3=node_path_1['default']['join'](_0x4b978a,_0x3cd136,_0x4bd1c3);return _0x3dadc3['call'](this,_0x495ef3,_0x5e5c81);}}return _0x3dadc3['call'](this,_0x80de1c,_0x5e5c81);};console['log'](picocolors_1['default']['green']('\x20\x20\x20โœ“\x20Registered\x20'+Object['keys'](_0x7d1f21)['length']+'\x20module\x20alias(es)'));}catch(_0x3cc0dd){}}}exports['default']=DocsGenerateCommand;
1
+ 'use strict';var __importDefault=this&&this['__importDefault']||function(_0xe63496){return _0xe63496&&_0xe63496['__esModule']?_0xe63496:{'default':_0xe63496};};Object['defineProperty'](exports,'__esModule',{'value':!![]});const Command_1=__importDefault(require('../Command'));const node_fs_1=__importDefault(require('node:fs'));const node_path_1=__importDefault(require('node:path'));const picocolors_1=__importDefault(require('picocolors'));const discord_js_1=require('discord.js');class DocsGenerateCommand extends Command_1['default']{['signature']='docs:generate';['description']='Generate\x20markdown\x20documentation\x20for\x20all\x20Discord\x20commands';['markdownBuffers']={};['projectRoot']=process['cwd']();['addonsDir']=node_path_1['default']['join'](process['cwd'](),'addons');['outputDir']=node_path_1['default']['join'](process['cwd'](),'docs','commands');['configure'](_0x1aac94){_0x1aac94['option']('-p,\x20--path\x20<path>','Custom\x20output\x20path\x20for\x20documentation');}async['handle'](_0xd98ccb){console['log'](picocolors_1['default']['cyan']('\x0a๐Ÿš€\x20Starting\x20documentation\x20generator...\x0a'));if(_0xd98ccb['path']){this['outputDir']=node_path_1['default']['resolve'](process['cwd'](),_0xd98ccb['path']);}this['registerModuleAliases'](this['projectRoot']);this['markdownBuffers']={};if(!node_fs_1['default']['existsSync'](this['outputDir'])){node_fs_1['default']['mkdirSync'](this['outputDir'],{'recursive':!![]});}if(!node_fs_1['default']['existsSync'](this['addonsDir'])){console['error'](picocolors_1['default']['red']('โŒ\x20Addons\x20directory\x20not\x20found:\x20'+this['addonsDir']));return;}const _0x327691=node_fs_1['default']['readdirSync'](this['addonsDir'],{'withFileTypes':!![]})['filter'](_0x554a4c=>_0x554a4c['isDirectory']()&&!_0x554a4c['name']['startsWith']('_'));for(const _0x295da9 of _0x327691){const _0x7a41ed=node_path_1['default']['join'](this['addonsDir'],_0x295da9['name'],'commands');if(!node_fs_1['default']['existsSync'](_0x7a41ed))continue;console['log'](picocolors_1['default']['blue']('๐Ÿ“ฆ\x20Processing\x20Addon:\x20'+_0x295da9['name']));this['processDirectory'](_0x7a41ed,_0x295da9['name']);}console['log'](picocolors_1['default']['green']('\x0aโœ…\x20Writing\x20to\x20.md\x20files...'));for(const [_0x56a492,_0x526faf]of Object['entries'](this['markdownBuffers'])){const _0x39f74b=node_path_1['default']['join'](this['outputDir'],_0x56a492+'.md');node_fs_1['default']['writeFileSync'](_0x39f74b,_0x526faf);console['log'](picocolors_1['default']['green']('\x20\x20\x20->\x20Generated:\x20'+_0x56a492+'.md'));}console['log'](picocolors_1['default']['green']('\x0a๐ŸŽ‰\x20Finished!'));}['getSlashCommandBuilder'](_0x27fab8){if(!_0x27fab8)return null;return _0x27fab8['slashCommand']||_0x27fab8['data']||null;}['getOptionType'](_0x53c5b9){switch(_0x53c5b9){case discord_js_1['ApplicationCommandOptionType']['String']:return'Text';case discord_js_1['ApplicationCommandOptionType']['Integer']:return'Integer';case discord_js_1['ApplicationCommandOptionType']['Number']:return'Number';case discord_js_1['ApplicationCommandOptionType']['Boolean']:return'Boolean';case discord_js_1['ApplicationCommandOptionType']['User']:return'User';case discord_js_1['ApplicationCommandOptionType']['Channel']:return'Channel';case discord_js_1['ApplicationCommandOptionType']['Role']:return'Role';case discord_js_1['ApplicationCommandOptionType']['Mentionable']:return'Mentionable';case discord_js_1['ApplicationCommandOptionType']['Attachment']:return'Attachment';default:return'Unknown';}}['generateOptionsDocs'](_0x9aa72c,_0x179e5c=![]){let _0x2be2ab=_0x179e5c?'':'###\x20Options\x0a\x0a';for(const _0x38f3fb of _0x9aa72c){_0x2be2ab+='-\x20**`'+_0x38f3fb['name']+(_0x38f3fb['required']?'*':'')+'`**\x0a';_0x2be2ab+='\x20\x20-\x20**Description:**\x20'+_0x38f3fb['description']+'\x0a';_0x2be2ab+='\x20\x20-\x20**Type:**\x20'+this['getOptionType'](_0x38f3fb['type'])+'\x0a';if(_0x38f3fb['choices']){const _0x24a69b=_0x38f3fb['choices']['map'](_0x12a258=>'`'+_0x12a258['name']+'`\x20(`'+_0x12a258['value']+'`)')['join'](',\x20');_0x2be2ab+='\x20\x20-\x20**Choices:**\x20'+_0x24a69b+'\x0a';}}return _0x2be2ab;}['generateSubcommandDocs'](_0x46d0cb,_0x5c05f7,_0x591e03=null,_0x3218e9=null){const _0x48cafd=_0x591e03?_0x591e03+'\x20':'';const _0x3266dd=_0x5c05f7['options']||[];const _0x3c9dd8=_0x3266dd['map'](_0x59e061=>{const _0xeff7bb='<'+_0x59e061['name']['toLowerCase']()+'>';return _0x59e061['required']?_0xeff7bb:'['+_0xeff7bb+']';})['join']('\x20');const _0x42f801=_0x5c05f7['description']||'';const _0x3defb3=_0x42f801['charAt'](-0x1*-0x1d4e+-0x16ec+-0x662)['toUpperCase']()+_0x42f801['slice'](-0x1522+0xec8+0x65b);let _0x5a5ef5='**`/'+_0x46d0cb+'\x20'+_0x48cafd+_0x5c05f7['name']+(_0x3c9dd8?'\x20'+_0x3c9dd8:'')+'`**\x0a';_0x5a5ef5+='>\x20'+_0x3defb3+'\x0a';if(_0x3218e9&&Array['isArray'](_0x3218e9['aliases'])&&_0x3218e9['aliases']['length']>0x1*-0xb69+0x1*0xf16+-0x3ad){_0x5a5ef5+='>\x20_Aliases:\x20'+_0x3218e9['aliases']['map'](_0x3f5ed0=>'`'+_0x3f5ed0+'`')['join'](',\x20')+'_\x0a';}if(_0x3218e9?.['ownerOnly']){_0x5a5ef5+='>\x20_Owner\x20Only:\x20Yes_\x0a';}if(_0x3218e9?.['cooldown']){_0x5a5ef5+='>\x20_Cooldown:\x20'+_0x3218e9['cooldown']+'\x20seconds_\x0a';}if(_0x3218e9?.['permissions']&&_0x3218e9['permissions']['length']>-0x1*0x36e+0x152f*-0x1+0x189d){const _0x5a4a8d=new discord_js_1['PermissionsBitField'](_0x3218e9['permissions'])['toArray']();_0x5a5ef5+='>\x20_User\x20Permissions:\x20'+_0x5a4a8d['map'](_0x458b35=>'`'+_0x458b35+'`')['join'](',\x20')+'_\x0a';}if(_0x3218e9?.['botPermissions']&&_0x3218e9['botPermissions']['length']>-0x20a1+-0x9e5+-0x2a86*-0x1){const _0x2e0524=new discord_js_1['PermissionsBitField'](_0x3218e9['botPermissions'])['toArray']();_0x5a5ef5+='>\x20_Bot\x20Permissions:\x20'+_0x2e0524['map'](_0xac6e1=>'`'+_0xac6e1+'`')['join'](',\x20')+'_\x0a';}_0x5a5ef5+='\x0a';if(_0x3266dd['length']>0x1ceb*0x1+-0x1b*-0x75+-0x14a1*0x2){_0x5a5ef5+='**Options\x20for\x20this\x20subcommand:**\x0a';_0x5a5ef5+=this['generateOptionsDocs'](_0x3266dd,!![]);}else{_0x5a5ef5+='\x0a';}return _0x5a5ef5;}['generateMetadataDocs'](_0x14e302){let _0x12f4ad='###\x20Details\x0a\x0a';let _0x6a7ea5=![];if(_0x14e302['aliases']&&Array['isArray'](_0x14e302['aliases'])&&_0x14e302['aliases']['length']>-0x159a+-0x1071+-0x260b*-0x1){_0x12f4ad+='-\x20**Aliases:**\x20'+_0x14e302['aliases']['map'](_0x150f52=>'`'+_0x150f52+'`')['join'](',\x20')+'\x0a';_0x6a7ea5=!![];}if(_0x14e302['ownerOnly']){_0x12f4ad+='-\x20**Owner\x20Only:**\x20Yes\x0a';_0x6a7ea5=!![];}if(_0x14e302['cooldown']){_0x12f4ad+='-\x20**Cooldown:**\x20'+_0x14e302['cooldown']+'\x20seconds\x0a';_0x6a7ea5=!![];}if(_0x14e302['permissions']&&_0x14e302['permissions']['length']>0x1*0x6f7+0x1125+-0x181c){const _0x554e35=new discord_js_1['PermissionsBitField'](_0x14e302['permissions'])['toArray']();_0x12f4ad+='-\x20**User\x20Permissions:**\x20`'+_0x554e35['join']('`,\x20`')+'`\x0a';_0x6a7ea5=!![];}if(_0x14e302['botPermissions']&&_0x14e302['botPermissions']['length']>-0x36*0x45+0xe1a+0x74){const _0x1bcfb3=new discord_js_1['PermissionsBitField'](_0x14e302['botPermissions'])['toArray']();_0x12f4ad+='-\x20**Bot\x20Permissions:**\x20`'+_0x1bcfb3['join']('`,\x20`')+'`\x0a';_0x6a7ea5=!![];}return _0x6a7ea5?_0x12f4ad:'';}['generateCommandMarkdown'](_0x399238,_0x59a4d4,_0x30bb0b=null){const _0x5f422d=_0x399238['name'];let _0x15de31='###\x20`/'+_0x5f422d+'`\x0a\x0a';_0x15de31+='**Description:**\x20'+_0x399238['description']+'\x0a\x0a';_0x15de31+=this['generateMetadataDocs'](_0x59a4d4);const _0x4159ac=_0x399238['options']?.['filter'](_0x532ccb=>_0x532ccb['type']===discord_js_1['ApplicationCommandOptionType']['Subcommand']||_0x532ccb['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);const _0x5ee4bd=_0x399238['options']?.['filter'](_0xff73d3=>_0xff73d3['type']!==discord_js_1['ApplicationCommandOptionType']['Subcommand']&&_0xff73d3['type']!==discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);_0x15de31+='###\x20Usage\x0a\x0a';if(_0x4159ac&&_0x4159ac['length']>-0x1*0x2011+0x1*-0x2336+-0x4347*-0x1){_0x4159ac['forEach'](_0x4dbf29=>{if(_0x4dbf29['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){_0x4dbf29['options']['forEach'](_0x315d68=>{const _0x311348=(_0x315d68['options']||[])['map'](_0x92faad=>_0x92faad['required']?'<'+_0x92faad['name']+'>':'['+_0x92faad['name']+']')['join']('\x20');_0x15de31+='`/'+_0x5f422d+'\x20'+_0x4dbf29['name']+'\x20'+_0x315d68['name']+(_0x311348?'\x20'+_0x311348:'')+'`\x0a';});}else{const _0x4108fb=(_0x4dbf29['options']||[])['map'](_0x85ee50=>_0x85ee50['required']?'<'+_0x85ee50['name']+'>':'['+_0x85ee50['name']+']')['join']('\x20');_0x15de31+='`/'+_0x5f422d+'\x20'+_0x4dbf29['name']+(_0x4108fb?'\x20'+_0x4108fb:'')+'`\x0a';}});_0x15de31+='\x0a';}else if(_0x5ee4bd&&_0x5ee4bd['length']>-0x15a*0x18+0x9b1*-0x3+0x3d83){const _0x1fd93e=_0x5ee4bd['map'](_0x188b10=>_0x188b10['required']?'<'+_0x188b10['name']+'>':'['+_0x188b10['name']+']')['join']('\x20');_0x15de31+='`/'+_0x5f422d+(_0x1fd93e?'\x20'+_0x1fd93e:'')+'`\x0a\x0a';}else{_0x15de31+='`/'+_0x5f422d+'`\x0a\x0a';}if(_0x4159ac&&_0x4159ac['length']>0x1ad5*-0x1+-0x7*-0x4c+0x1*0x18c1){_0x15de31+='###\x20Subcommands\x0a\x0a';for(const _0xf25249 of _0x4159ac){if(_0xf25249['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){for(const _0x307ef4 of _0xf25249['options']){const _0x310f35=_0x30bb0b?.[_0x307ef4['name']]?_0x30bb0b[_0x307ef4['name']]:null;_0x15de31+=this['generateSubcommandDocs'](_0x5f422d,_0x307ef4,_0xf25249['name'],_0x310f35);}}else{const _0x537850=_0x30bb0b?.[_0xf25249['name']]?_0x30bb0b[_0xf25249['name']]:null;_0x15de31+=this['generateSubcommandDocs'](_0x5f422d,_0xf25249,null,_0x537850);}}}else if(_0x5ee4bd&&_0x5ee4bd['length']>-0x1*-0x26ce+0x1*-0xeed+-0x17e1){_0x15de31+=this['generateOptionsDocs'](_0x5ee4bd);}return _0x15de31;}['processSplitCommandDirectory'](_0x356949,_0x59359e){console['log']('[SPLIT]\x20Assembling\x20\x27'+_0x59359e+'\x27\x20from\x20folder...');try{const _0x569996=node_path_1['default']['join'](_0x356949,'_command.js');const _0x17f02e=require(_0x569996);if(_0x17f02e['ownerOnly']||_0x17f02e['teamOnly'])return;const _0x213df0=this['getSlashCommandBuilder'](_0x17f02e);if(!_0x213df0)return;const _0x5e0104={};const _0x2a0af7=node_fs_1['default']['readdirSync'](_0x356949,{'withFileTypes':!![]});for(const _0x13945c of _0x2a0af7){const _0x1e1367=node_path_1['default']['join'](_0x356949,_0x13945c['name']);if(_0x13945c['isFile']()&&_0x13945c['name']['endsWith']('.js')&&_0x13945c['name']!=='_command.js'){const _0x4f0e87=require(_0x1e1367);const _0x40bd93=_0x4f0e87['data']||_0x4f0e87['slashCommand'];if(!_0x40bd93)continue;const _0x193d9a=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0x40bd93==='function'){_0x40bd93(_0x193d9a);}else if(typeof _0x40bd93==='object'){_0x193d9a['setName'](_0x40bd93['name'])['setDescription'](_0x40bd93['description']);if(_0x40bd93['options']){_0x193d9a['options']=_0x40bd93['options'];}}if(_0x193d9a['name']){_0x213df0['addSubcommand'](_0x193d9a);_0x5e0104[_0x193d9a['name']]={'aliases':_0x4f0e87['aliases'],'ownerOnly':_0x4f0e87['ownerOnly'],'cooldown':_0x4f0e87['cooldown'],'permissions':_0x4f0e87['permissions'],'botPermissions':_0x4f0e87['botPermissions']};}}else if(_0x13945c['isDirectory']()&&!_0x13945c['name']['startsWith']('_')){const _0x2d0eca=node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x1e1367,'_group.js'))?node_path_1['default']['join'](_0x1e1367,'_group.js'):node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x1e1367,'_command.js'))?node_path_1['default']['join'](_0x1e1367,'_command.js'):null;if(!_0x2d0eca)continue;const _0x26a541=require(_0x2d0eca);const _0x1619e7=_0x26a541['data']||_0x26a541['slashCommand'];if(!_0x1619e7)continue;const _0x3a5ddf=new discord_js_1['SlashCommandSubcommandGroupBuilder']();if(typeof _0x1619e7==='function'){_0x1619e7(_0x3a5ddf);}else{_0x3a5ddf['setName'](_0x1619e7['name'])['setDescription'](_0x1619e7['description']);}const _0x1029fe=node_fs_1['default']['readdirSync'](_0x1e1367)['filter'](_0x45fa44=>_0x45fa44['endsWith']('.js')&&!_0x45fa44['startsWith']('_'));for(const _0x430b63 of _0x1029fe){const _0x115ddb=require(node_path_1['default']['join'](_0x1e1367,_0x430b63));const _0xbd4c23=_0x115ddb['data']||_0x115ddb['slashCommand'];if(!_0xbd4c23)continue;const _0x3184fd=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0xbd4c23==='function'){_0xbd4c23(_0x3184fd);}else{_0x3184fd['setName'](_0xbd4c23['name'])['setDescription'](_0xbd4c23['description']);if(_0xbd4c23['options'])_0x3184fd['options']=_0xbd4c23['options'];}_0x3a5ddf['addSubcommand'](_0x3184fd);_0x5e0104[_0x3184fd['name']]={'aliases':_0x115ddb['aliases'],'permissions':_0x115ddb['permissions']};}_0x213df0['addSubcommandGroup'](_0x3a5ddf);}}const _0x2aad13=_0x213df0['toJSON']();const _0x38f74a=this['generateCommandMarkdown'](_0x2aad13,_0x17f02e,_0x5e0104);if(!this['markdownBuffers'][_0x59359e]){this['markdownBuffers'][_0x59359e]='##\x20Command\x20Category:\x20'+(_0x59359e['charAt'](-0x34*0xb7+-0x1*-0xfb2+0x157a)['toUpperCase']()+_0x59359e['slice'](0x3*0xc35+-0xc57*0x1+-0x1847))+'\x0a\x0a';}this['markdownBuffers'][_0x59359e]+=_0x38f74a+'\x0a\x0a';}catch(_0x4557a9){console['error']('โŒ\x20Failed\x20to\x20assemble\x20split\x20command\x20in\x20'+_0x59359e+':',_0x4557a9);}}['processSimpleDirectory'](_0x5d90a8,_0x49561d){const _0x33f3cd=node_fs_1['default']['readdirSync'](_0x5d90a8)['filter'](_0x2d5e7e=>_0x2d5e7e['endsWith']('.js')&&!_0x2d5e7e['startsWith']('_'));for(const _0x4911d9 of _0x33f3cd){try{const _0x40b73d=node_path_1['default']['join'](_0x5d90a8,_0x4911d9);const _0x4da3c8=require(_0x40b73d);if(_0x4da3c8['ownerOnly']||_0x4da3c8['teamOnly'])continue;const _0x4da0ab=this['getSlashCommandBuilder'](_0x4da3c8);if(!_0x4da0ab)continue;let _0x588afe;if(typeof _0x4da0ab['toJSON']==='function'){_0x588afe=_0x4da0ab['toJSON']();}else{_0x588afe=_0x4da0ab;}const _0x1efda3=this['generateCommandMarkdown'](_0x588afe,_0x4da3c8);if(!this['markdownBuffers'][_0x49561d]){this['markdownBuffers'][_0x49561d]='##\x20Command\x20Category:\x20'+(_0x49561d['charAt'](-0xdbe+0xc57+0x167)['toUpperCase']()+_0x49561d['slice'](0x2ab*-0x6+0x896+0x76d*0x1))+'\x0a\x0a';}this['markdownBuffers'][_0x49561d]+=_0x1efda3+'\x0a\x0a';console['log']('['+_0x49561d['toUpperCase']()+']\x20Added\x20\x27'+(_0x588afe['name']||_0x4911d9)+'\x27\x20to\x20buffer');}catch(_0x166733){console['error']('โŒ\x20Failed\x20to\x20process\x20file\x20'+_0x4911d9+'\x20in\x20category\x20'+_0x49561d+':\x20'+_0x166733['message']);}}}['processDirectory'](_0x1d8fa7,_0x246e29){const _0xe9fceb=node_path_1['default']['join'](_0x1d8fa7,'_command.js');if(node_fs_1['default']['existsSync'](_0xe9fceb)){this['processSplitCommandDirectory'](_0x1d8fa7,_0x246e29);}else{this['processSimpleDirectory'](_0x1d8fa7,_0x246e29);const _0x5b4532=node_fs_1['default']['readdirSync'](_0x1d8fa7,{'withFileTypes':!![]});for(const _0x326cc6 of _0x5b4532){if(_0x326cc6['isDirectory']()&&!_0x326cc6['name']['startsWith']('_')){const _0x261b4f=node_path_1['default']['join'](_0x1d8fa7,_0x326cc6['name']);const _0x4041fe=_0x246e29;this['processDirectory'](_0x261b4f,_0x4041fe);}}}}['registerModuleAliases'](_0x97cf0c){try{const _0x3524ce=node_path_1['default']['join'](_0x97cf0c,'package.json');if(!node_fs_1['default']['existsSync'](_0x3524ce))return;const _0x3ca53a=JSON['parse'](node_fs_1['default']['readFileSync'](_0x3524ce,'utf8'));const _0x164004=_0x3ca53a['_moduleAliases'];if(!_0x164004||typeof _0x164004!=='object')return;const _0x19d1b4=require('node:module');const _0x5b4493=_0x19d1b4['_resolveFilename'];_0x19d1b4['_resolveFilename']=function(_0x1823ac,_0x14e5af){for(const [_0x591242,_0x1f821f]of Object['entries'](_0x164004)){if(_0x1823ac===_0x591242||_0x1823ac['startsWith'](_0x591242+'/')){const _0x2aaf76=_0x1823ac['substring'](_0x591242['length']);const _0x2c1af8=node_path_1['default']['join'](_0x97cf0c,_0x1f821f,_0x2aaf76);return _0x5b4493['call'](this,_0x2c1af8,_0x14e5af);}}return _0x5b4493['call'](this,_0x1823ac,_0x14e5af);};console['log'](picocolors_1['default']['green']('\x20\x20\x20โœ“\x20Registered\x20'+Object['keys'](_0x164004)['length']+'\x20module\x20alias(es)'));}catch(_0x21a4ad){}}}exports['default']=DocsGenerateCommand;