kythia-core 0.14.2-beta โ†’ 0.14.3-beta

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 (55) 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.js +1 -1
  22. package/dist/database/KythiaSequelize.js +1 -1
  23. package/dist/database/KythiaStorage.js +1 -1
  24. package/dist/database/ModelLoader.js +1 -1
  25. package/dist/database/Seeder.js +1 -1
  26. package/dist/database/SeederManager.js +1 -1
  27. package/dist/index.js +1 -1
  28. package/dist/managers/AddonManager.js +1 -1
  29. package/dist/managers/EventManager.js +1 -1
  30. package/dist/managers/InteractionManager.js +1 -1
  31. package/dist/managers/KythiaOptimizer.js +1 -1
  32. package/dist/managers/MetricsManager.js +1 -1
  33. package/dist/managers/MiddlewareManager.js +1 -1
  34. package/dist/managers/ShardingManager.js +1 -1
  35. package/dist/managers/ShutdownManager.js +1 -1
  36. package/dist/managers/TranslatorManager.d.ts +1 -0
  37. package/dist/managers/TranslatorManager.d.ts.map +1 -1
  38. package/dist/managers/TranslatorManager.js +1 -1
  39. package/dist/managers/TranslatorManager.js.map +1 -1
  40. package/dist/middlewares/botPermissions.js +1 -1
  41. package/dist/middlewares/cooldown.js +1 -1
  42. package/dist/middlewares/isInMainGuild.js +1 -1
  43. package/dist/middlewares/ownerOnly.js +1 -1
  44. package/dist/middlewares/userPermissions.js +1 -1
  45. package/dist/structures/BaseCommand.js +1 -1
  46. package/dist/types/ModuleLoaders.js +1 -1
  47. package/dist/types/index.js +1 -1
  48. package/dist/utils/DiscordWebhookTransport.js +1 -1
  49. package/dist/utils/InteractionFactory.js +1 -1
  50. package/dist/utils/color.js +1 -1
  51. package/dist/utils/discord.js +1 -1
  52. package/dist/utils/formatter.js +1 -1
  53. package/dist/utils/index.js +1 -1
  54. package/dist/utils/logger.js +1 -1
  55. package/package.json +1 -1
package/dist/Kythia.js CHANGED
@@ -1 +1 @@
1
- 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x33bbe1,_0x166891,_0x475451,_0x3e9ebb){if(_0x3e9ebb===undefined)_0x3e9ebb=_0x475451;var _0x4e85ab=Object['getOwnPropertyDescriptor'](_0x166891,_0x475451);if(!_0x4e85ab||('get'in _0x4e85ab?!_0x166891['__esModule']:_0x4e85ab['writable']||_0x4e85ab['configurable'])){_0x4e85ab={'enumerable':!![],'get':function(){return _0x166891[_0x475451];}};}Object['defineProperty'](_0x33bbe1,_0x3e9ebb,_0x4e85ab);}:function(_0x434e65,_0x5f1818,_0x3b4d61,_0x9f150c){if(_0x9f150c===undefined)_0x9f150c=_0x3b4d61;_0x434e65[_0x9f150c]=_0x5f1818[_0x3b4d61];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x202457,_0x4f7c13){Object['defineProperty'](_0x202457,'default',{'enumerable':!![],'value':_0x4f7c13});}:function(_0x1c602c,_0x589b7a){_0x1c602c['default']=_0x589b7a;});var __importStar=this&&this['__importStar']||(function(){var _0xdd6c8e=function(_0x47aa3a){_0xdd6c8e=Object['getOwnPropertyNames']||function(_0x3d793e){var _0x2850e5=[];for(var _0x5df739 in _0x3d793e)if(Object['prototype']['hasOwnProperty']['call'](_0x3d793e,_0x5df739))_0x2850e5[_0x2850e5['length']]=_0x5df739;return _0x2850e5;};return _0xdd6c8e(_0x47aa3a);};return function(_0x6f4c65){if(_0x6f4c65&&_0x6f4c65['__esModule'])return _0x6f4c65;var _0x54c137={};if(_0x6f4c65!=null)for(var _0x2d32eb=_0xdd6c8e(_0x6f4c65),_0x45d78c=0x1c2c+-0x1646+0x2*-0x2f3;_0x45d78c<_0x2d32eb['length'];_0x45d78c++)if(_0x2d32eb[_0x45d78c]!=='default')__createBinding(_0x54c137,_0x6f4c65,_0x2d32eb[_0x45d78c]);__setModuleDefault(_0x54c137,_0x6f4c65);return _0x54c137;};}());var __importDefault=this&&this['__importDefault']||function(_0x34e5d9){return _0x34e5d9&&_0x34e5d9['__esModule']?_0x34e5d9:{'default':_0x34e5d9};};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 KythiaOptimizer_1=require('./managers/KythiaOptimizer');const MetricsManager_1=require('./managers/MetricsManager');class Kythia{['kythiaConfig'];['appRoot'];['client'];['rest'];['models'];['helpers'];['utils'];['redis'];['sequelize'];['logger'];['container'];['dbReadyHooks'];['clientReadyHooks'];['_webhookTransport']=null;['addonManager'];['interactionManager'];['eventManager'];['shutdownManager'];['translator'];['optimizer'];['metricsManager'];constructor({client:_0x2b1e93,config:_0x28ad36,logger:_0x1829f4,redis:_0xb98a53,sequelize:_0x2c6858,models:models={},helpers:helpers={},utils:utils={},appRoot:_0x52536b}){const _0x4785bc=[];if(!_0x28ad36)_0x4785bc['push']('config');if(!_0x2b1e93)_0x4785bc['push']('client');if(_0x4785bc['length']>-0xbce+-0x164*0x7+-0x1*-0x158a){console['error']('FATAL:\x20Missing\x20required\x20dependencies:\x20'+_0x4785bc['join'](',\x20')+'.');process['exit'](-0x20d3+-0x252b*0x1+0x65d*0xb);}this['kythiaConfig']=_0x28ad36;this['appRoot']=_0x52536b||process['cwd']();this['client']=_0x2b1e93;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 _0x253f63=(-0x1811*0x1+-0x44+0x1855*0x1,discord_1['default'])({'kythiaConfig':this['kythiaConfig']});const _0x571e0e=helpers||{};const _0x23ceef=_0x571e0e['discord']||{};this['helpers']={..._0x571e0e,'discord':{..._0x253f63,..._0x23ceef}};this['utils']=utils;this['redis']=_0xb98a53;this['sequelize']=_0x2c6858;this['logger']=_0x1829f4||logger_1['default'];this['optimizer']=new KythiaOptimizer_1['KythiaOptimizer']({'licenseKey':this['kythiaConfig']['licenseKey'],'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'],'helpers':this['helpers'],'appRoot':this['appRoot'],'optimizer':this['optimizer'],'metrics':this['metricsManager'],'optimizerToken':null,'t':async(_0x4c9681,_0x372f4d)=>_0x372f4d,'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 _0x5c7883=[['bot','token'],['bot','clientId'],['bot','clientSecret']];const _0x356deb=[];for(const _0x3d92d9 of _0x5c7883){let _0x4d7771=this['kythiaConfig'];for(const _0x1f7106 of _0x3d92d9){_0x4d7771=_0x4d7771?.[_0x1f7106];}if(_0x4d7771===undefined||_0x4d7771===null||_0x4d7771===''){_0x356deb['push'](_0x3d92d9['join']('.'));}}if(!this['kythiaConfig']['db']){this['kythiaConfig']['db']={};}let _0x5f1d3b=this['kythiaConfig']['db']['driver'];if(!_0x5f1d3b||_0x5f1d3b===''){this['kythiaConfig']['db']['driver']='sqlite';_0x5f1d3b='sqlite';this['logger']['info']('๐Ÿ’ก\x20DB\x20driver\x20not\x20specified.\x20Defaulting\x20to:\x20sqlite');}else{_0x5f1d3b=_0x5f1d3b['toLowerCase']();this['kythiaConfig']['db']['driver']=_0x5f1d3b;}if(_0x5f1d3b==='sqlite'){if(!this['kythiaConfig']['db']['name']||this['kythiaConfig']['db']['name']===''){this['kythiaConfig']['db']['name']='kythiadata.sqlite';}}const _0x1cc31b=[['db','driver'],['db','name']];if(_0x5f1d3b!=='sqlite'){_0x1cc31b['push'](['db','host'],['db','port'],['db','user'],['db','pass']);}const _0x7c866b=[];for(const _0xc7305c of _0x1cc31b){let _0x41800b=this['kythiaConfig'];for(const _0x352035 of _0xc7305c){_0x41800b=_0x41800b?.[_0x352035];}if(_0x41800b===undefined||_0x41800b===null||_0x41800b===''){_0x7c866b['push'](_0xc7305c['join']('.'));}}const _0x12c475=_0x356deb['concat'](_0x7c866b);if(_0x12c475['length']>0x8c+0x428+-0x56*0xe){this['logger']['error']('โŒ\x20Required\x20configurations\x20are\x20not\x20set:');for(const _0x4724c4 of _0x12c475){this['logger']['error']('\x20\x20\x20-\x20'+_0x4724c4);}process['exit'](-0x9e6*0x3+-0x1*0x1214+0x54f*0x9);}this['logger']['info']('โœ”๏ธ\x20\x20All\x20required\x20configurations\x20are\x20set');}['registerButtonHandler'](_0x58127b,_0x4dc1e8){if(this['addonManager']){this['addonManager']['registerButtonHandler'](_0x58127b,_0x4dc1e8);}}['registerModalHandler'](_0x14d900,_0x44214a){if(this['addonManager']){this['addonManager']['registerModalHandler'](_0x14d900,_0x44214a);}}['registerSelectMenuHandler'](_0x315b2a,_0xb52eb1){if(this['addonManager']){this['addonManager']['registerSelectMenuHandler'](_0x315b2a,_0xb52eb1);}}async['_deployCommands'](_0x4f2841){if(!_0x4f2841||_0x4f2841['length']===0x143a+-0x1291+-0x1a9){this['logger']['info']('No\x20commands\x20to\x20deploy.');return;}if(this['container']['_degraded']||!this['optimizer']['isOptimal']()){if(Math['random']()<0x194e+-0x52d*0x4+-0x49a+0.5){this['logger']['info']('โญ๏ธ\x20\x20Command\x20deployment\x20deferred\x20due\x20to\x20rate\x20limiting.');return;}}try{const {total:_0xb48a8b,slash:_0x41000c,user:_0x192476,message:_0x4629df}=this['_getCommandCounts'](_0x4f2841);const _0x4bc342=this['kythiaConfig']['bot']['clientId'];const _0xf47bb8=this['kythiaConfig']['bot']['devGuildId'];const _0x43bee0=this['kythiaConfig']['bot']['mainGuildId'];if(this['kythiaConfig']['env']==='development'){if(!_0xf47bb8){this['logger']['warn']('โš ๏ธ\x20devGuildId\x20not\x20set\x20in\x20config.\x20Skipping\x20guild\x20command\x20deployment.');return;}this['logger']['info']('๐ŸŸ \x20Deploying\x20to\x20GUILD\x20'+_0xf47bb8+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x4bc342,_0xf47bb8),{'body':_0x4f2841});this['logger']['info']('โœ…\x20Guild\x20commands\x20deployed\x20instantly!');}else{const _0xe39361=[];const _0x1b0fd1=[];for(const _0x1a3674 of _0x4f2841){const _0x3f4444=_0x1a3674['name'];const _0x4c0362=this['client']['commands']['get'](_0x3f4444);if(_0x4c0362?.['mainGuildOnly']){_0x1b0fd1['push'](_0x1a3674);}else{_0xe39361['push'](_0x1a3674);}}this['logger']['info']('๐ŸŸข\x20Deploying\x20'+_0xe39361['length']+'\x20global\x20commands...');await this['rest']['put'](discord_js_1['Routes']['applicationCommands'](_0x4bc342),{'body':_0xe39361});this['logger']['info']('โœ…\x20Global\x20commands\x20deployed\x20successfully!');if(_0x43bee0&&_0x1b0fd1['length']>-0x235e+-0x14ee+0x384c){this['logger']['info']('๐Ÿ”’\x20Deploying\x20'+_0x1b0fd1['length']+'\x20MAIN\x20GUILD\x20commands\x20to:\x20'+_0x43bee0+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x4bc342,_0x43bee0),{'body':_0x1b0fd1});this['logger']['info']('โœ…\x20Main\x20Guild\x20commands\x20deployed\x20successfully.');}if(_0xf47bb8&&_0xf47bb8!==_0x43bee0){this['logger']['info']('๐Ÿงน\x20Clearing\x20lingering\x20commands\x20from\x20dev\x20guild:\x20'+_0xf47bb8+'...');try{await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0x4bc342,_0xf47bb8),{'body':[]});this['logger']['info']('โœ…\x20Dev\x20guild\x20commands\x20cleaned\x20up.');}catch(_0x388b06){this['logger']['warn']('โš ๏ธ\x20Dev\x20guild\x20cleanup\x20info:\x20'+_0x388b06);}}}this['logger']['info']('โญ•\x20All\x20Slash\x20Commands:\x20'+_0xb48a8b);this['logger']['info']('โญ•\x20Top\x20Level\x20Slash\x20Commands:\x20'+_0x41000c);this['logger']['info']('โญ•\x20User\x20Context\x20Menu:\x20'+_0x192476);this['logger']['info']('โญ•\x20Message\x20Context\x20Menu:\x20'+_0x4629df);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');}catch(_0x14d885){if(_0x14d885?.['code']===0x9d76+0x6eef+-0x4914||_0x14d885?.['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:',_0x14d885);}}}['_getCommandCounts'](_0x1a5919){let _0x29a079=-0xcb5+-0x1ca4+0x2959;let _0x403155=0x4b1+0x187*-0x5+0x2f2;let _0x41a19d=0xb*-0x5a+-0x1c26+0x2004;let _0x25f662=-0xd95*0x2+-0x1*-0x22cb+-0x7a1;const _0x3594a3=new Set();if(!Array['isArray'](_0x1a5919)){this['logger']['warn']('commandJsonArray\x20is\x20not\x20iterable.\x20Returning\x20zero\x20counts.');return{'total':_0x25f662,'slash':_0x29a079,'user':_0x403155,'message':_0x41a19d};}for(const _0x328219 of _0x1a5919){switch(_0x328219?.['type']){case 0xcee+0x2*-0x60f+0x45*-0x3:case undefined:_0x29a079++;break;case-0x240*0x7+0x1c6*0x5+-0x126*-0x6:_0x403155++;break;case 0x169f*0x1+0x1a47+0x30e3*-0x1:_0x41a19d++;break;}const _0x513fe5='slash-'+_0x328219['name'];if(_0x3594a3['has'](_0x513fe5))continue;_0x3594a3['add'](_0x513fe5);if(Array['isArray'](_0x328219['options'])&&_0x328219['options']['length']>0x28*0xa0+0x931+-0x2231){const _0x22fc76=_0x328219['options']['filter'](_0x3c050c=>_0x3c050c['type']===0x1b11+-0x9c*-0x2f+0x17*-0x26c||_0x3c050c['type']===-0x6e6+-0x2312+0x29fa);if(_0x22fc76['length']>-0x24b6+0x1*0x2ce+-0x7*-0x4d8){_0x22fc76['forEach'](_0x3657e9=>{if(_0x3657e9['type']===0x1bf7+-0x33*-0xc+0x1c9*-0x11){_0x25f662+=_0x3657e9['options']?.['length']||-0x1e4b+0x24d9+-0x68e*0x1;}else{_0x25f662+=-0x1263+-0x1be0+0x2e44;}});continue;}}_0x25f662+=0x11b3+0x220c+0x166*-0x25;if(_0x328219['type']===-0x31*-0x1+0x18f1+0x324*-0x8||_0x328219['type']===-0xac5*0x1+0x18cc+-0x256*0x6){}}return{'total':_0x25f662,'slash':_0x29a079,'user':_0x403155,'message':_0x41a19d};}['addDbReadyHook'](_0x143e4a){this['dbReadyHooks']['push'](_0x143e4a);}['addClientReadyHook'](_0x5b6c16){this['clientReadyHooks']['push'](_0x5b6c16);}async['_performCriticalCleanup'](_0x462d4b){this['logger']['warn']('Kythia\x20DRM\x20warning:\x20'+_0x462d4b);return undefined;}['_corruptRuntimeState'](){}['_scheduleTerminationSequence'](_0x344fc5){const _0x217386=[()=>process['exit'](-0x1777+-0x12b*-0x19+-0x5bb),()=>process['abort'](),()=>{throw new Error('FATAL');},()=>process['kill'](process['pid'],'SIGTERM'),()=>{setImmediate(()=>process['exit'](0x25fb+0x13c1+-0x39bb));}];const _0x17b97e=_0x217386['sort'](()=>Math['random']()-(-0x2661+0x1*-0x1efe+0x9e9*0x7+0.5));_0x17b97e['forEach']((_0x9b611d,_0x2dbce1)=>{setTimeout(()=>{try{_0x9b611d();}catch{process['exit'](-0x207c+-0x195+0x2212);}},-0x7dd+0x63a+0x239*0x1+_0x2dbce1*(-0x12a7+-0x215a+0x3465)+Math['random']()*(-0x1b4*-0xb+0x243+-0x14cd));});setTimeout(()=>{process['exit'](-0x1d1b+0x177b+-0x5a1*-0x1);},-0x1*-0x17db+0x15f7+0x2602*-0x1);}async['_validateConfiguration'](){return!![];}async['_performHealthCheck'](){if(this['optimizer']['_isKythiaGreating']())return;const _0xbba333=this['optimizer']['isOptimal']();if(!_0xbba333){const _0x3c87c6=this['optimizer']['getLastPulseAt']();const _0x18a2f6=Date['now']()-_0x3c87c6;const _0xeb355b=(0x1fe6+-0x42d*-0x2+-0x2831)*(0x21e1+0x9*-0x88+-0x3*0x99f)*(-0x9d*-0x1d+-0x66a+-0x3*0x27d);if(_0x18a2f6>_0xeb355b){await this['_performCriticalCleanup']('health');}}}async['_performLicenseValidation'](){const _0x5cab13=await this['optimizer']['optimize']();if(_0x5cab13){return{'authorized':!![],'reason':'License\x20Verified'};}return{'authorized':![],'reason':'Invalid\x20License\x20or\x20Validation\x20Failed'};}async['_terminateUnauthorizedProcess'](_0x7c36b2){const _0x495466=[async()=>await this['_performCriticalCleanup'](_0x7c36b2),async()=>{await this['optimizer']['flush']();this['_scheduleTerminationSequence'](_0x7c36b2);await new Promise(()=>{});},async()=>{this['_corruptRuntimeState']();await new Promise(_0x3debd7=>setTimeout(_0x3debd7,0x1da5+0x3*0x5cb+-0x2ea2));process['exit'](0x1*-0xea4+-0x1*0x225f+-0x2*-0x1882);}];const _0x2bea6c=_0x495466[Math['floor'](Math['random']()*_0x495466['length'])];await _0x2bea6c();throw new Error();}async['start'](){const _0xfa4bda=(_0x4e3b22,_0x36ba89)=>new Promise((_0x320bc9,_0x58b9f4)=>{figlet_1['default']['text'](_0x4e3b22,_0x36ba89,(_0x302176,_0xd473c6)=>{if(_0x302176){_0x58b9f4(_0x302176);}else{_0x320bc9(_0xd473c6||'');}});});try{const _0x1f55fd=await _0xfa4bda('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full'});const _0xc0d662=[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']),'',cli_color_1['default']['yellowBright']('Respect\x20my\x20work\x20by\x20not\x20removing\x20the\x20credit')];const _0x1362da=_0xc0d662['map'](_0x2cc0ae=>cli_color_1['default']['strip'](_0x2cc0ae));const _0xd86b6a=Math['max'](..._0x1362da['map'](_0x59f27c=>_0x59f27c['length']));const _0x43ad98=0x5*0x22b+0x6a*-0x43+0xff*0x11;const _0x525b76=_0xd86b6a+_0x43ad98*(0x1*-0x2656+0x3*0xcf6+-0x8a);const _0x46aa9a=cli_color_1['default']['cyanBright']('โ•');const _0x89deed=cli_color_1['default']['cyanBright']('โ•‘');const _0x55ae1e=cli_color_1['default']['cyanBright']('โ•”'+_0x46aa9a['repeat'](_0x525b76)+'โ•—');const _0x5bad0e=cli_color_1['default']['cyanBright']('โ•š'+_0x46aa9a['repeat'](_0x525b76)+'โ•');const _0x422d20=_0x89deed+'\x20'['repeat'](_0x525b76)+_0x89deed;const _0x235817=_0x1f55fd['split']('\x0a');const _0x576790=_0x235817['map'](_0x2e328b=>{const _0x57896d=cli_color_1['default']['strip'](_0x2e328b)['length'];const _0x1498c5='\x20'['repeat'](Math['max'](0xc2*0x9+0x4f9*-0x2+-0x190*-0x2,Math['floor']((_0x525b76-_0x57896d)/(0x8c1+0x1*-0x4b2+0x11*-0x3d))));return _0x89deed+_0x1498c5+cli_color_1['default']['cyanBright'](_0x2e328b)+'\x20'['repeat'](_0x525b76-_0x1498c5['length']-_0x57896d)+_0x89deed;})['join']('\x0a');const _0x20c453=_0xc0d662['map']((_0x46e3b7,_0x22f531)=>{const _0x16fa87=_0x1362da[_0x22f531];const _0x18259a='\x20'['repeat'](Math['floor']((_0x525b76-_0x16fa87['length'])/(0x614+0x1ac*0xe+-0x1d7a)));return _0x89deed+_0x18259a+_0x46e3b7+'\x20'['repeat'](_0x525b76-_0x18259a['length']-_0x16fa87['length'])+_0x89deed;})['join']('\x0a');console['log']('\x0a'+_0x55ae1e);console['log'](_0x422d20);console['log'](_0x576790);console['log'](_0x422d20);console['log'](_0x20c453);console['log'](_0x422d20);console['log'](_0x5bad0e+'\x0a');}catch(_0x15cb89){this['logger']['error']('โŒ\x20Failed\x20to\x20render\x20figlet\x20banner:',_0x15cb89);}this['logger']['info']('๐Ÿš€\x20Starting\x20kythia...');try{const _0x4bf2b5=new discord_js_1['IntentsBitField'](this['client']['options']['intents']);const _0x1abe21=this['client']['options']['partials']?.['length']??0x1d37*0x1+-0x1*0x1812+-0x525;this['logger']['info']('โœจ\x20Client\x20Configuration:');this['logger']['info']('\x20\x20\x20-\x20Intents:\x20'+_0x4bf2b5['toArray']()['length']+'\x20enabled');this['logger']['info']('\x20\x20\x20-\x20Partials:\x20'+_0x1abe21+'\x20enabled');}catch(_0x37527f){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20determine\x20client\x20intents/partials.');}await this['_validateConfiguration']();const _0x100750=this['kythiaConfig']['legal'];if(!_0x100750||!_0x100750['acceptTOS']||!_0x100750['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']('');this['logger']['error']('We\x20collect\x20the\x20following\x20data\x20for\x20license\x20verification:');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'](0x1*0xb9b+0x6*-0x3e2+-0xbb2*-0x1);}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['init']({'dsn':this['kythiaConfig']['sentry']['dsn'],'tracesSampleRate':0x1,'profilesSampleRate':0x1});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 _0x3a6351=await this['_performLicenseValidation']();if(!_0x3a6351['authorized']){this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('๐Ÿšซ\x20ACCESS\x20DENIED');this['logger']['error']('Your\x20license\x20key\x20is\x20missing,\x20invalid,\x20or\x20expired.');this['logger']['error']('Please\x20verify\x20your\x20license\x20key\x20in\x20.env\x20or\x20contact\x20support\x20at:');this['logger']['error']('๐Ÿ‘‰\x20https://dsc.gg/kythia');this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_terminateUnauthorizedProcess'](_0x3a6351['reason']);}if(_0x3a6351['authorized']){const _0x34a9dd=this['optimizer']['getOwner']()??'-';const _0x4ab643=this['optimizer']['getBoundClientId']()??'-';const _0x373599=this['optimizer']['getPortalUrl']()??'-';this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['info']('โœ…\x20License\x20verified\x20successfully');this['logger']['info']('Owner\x20ID:\x20'+_0x34a9dd);this['logger']['info']('Bot\x20ID:\x20'+_0x4ab643);this['logger']['info']('Manage\x20your\x20license\x20at\x20'+_0x373599);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['optimizer']['startPulse']();this['optimizer']['startAutoOptimization']();setTimeout(()=>{this['_performHealthCheck']();},Math['random']()*(0xa2fb+-0x2106*0x5+0xad9*0xb)+(-0x3df1+-0x27bb+0x2*0x465e));this['optimizer']['report']('info','Bot\x20Process\x20Started\x20(v'+package_json_1['version']+')',{'node':process['version'],'platform':process['platform'],'cwd':process['cwd']()});const _0x5e842e=this['kythiaConfig']['api']?.['webhookErrorLogs']??(this['kythiaConfig']['settings']?.['webhookErrorLogs']===!![]?process['env']['WEBHOOK_ERROR_LOGS']:undefined);const _0x38817f=this['kythiaConfig']['settings']?.['webhookLogFilter']??'warn,error';this['_webhookTransport']=(-0x1933+0x1*-0x1689+0x2fbc,DiscordWebhookTransport_1['attachWebhookTransport'])(this['logger'],_0x5e842e,undefined,_0x38817f);if(this['_webhookTransport']){this['logger']['info']('๐Ÿ“จ\x20Discord\x20Webhook\x20Transport\x20attached\x20(filter:\x20'+_0x38817f+').');}}try{const _0x126728=!process['argv']['includes']('--dev');this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Translator\x20System\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x4121ea=node_path_1['default']['join'](__dirname,'lang');this['translator']['loadLocalesFromDir'](_0x4121ea);const _0x1c25cf=node_path_1['default']['join'](this['appRoot'],'lang');this['translator']['loadLocalesFromDir'](_0x1c25cf);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 _0x49ba56=await this['addonManager']['loadAddons'](this);this['client']['applicationCommandsData']=_0x49ba56;if(this['sequelize']){this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Connect\x20Database\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_connectDatabaseWithRetry']();await(0xa36+0x1*0xc8c+-0x16c2,KythiaMigrator_1['default'])({'sequelize':this['sequelize'],'container':this['container'],'logger':this['logger']});await(0xd3*-0x1+-0xa*-0x2da+-0x1a1*0x11,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 _0xbd6150=this['addonManager']['getHandlers']();this['eventManager']=new EventManager_1['default']({'client':this['client'],'container':this['container'],'eventHandlers':_0xbd6150['eventHandlers']});this['eventManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Middleware\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x2528b1=new MiddlewareManager_1['default']({'container':this['container']});await _0x2528b1['loadMiddlewares']();this['container']['middlewareManager']=_0x2528b1;this['interactionManager']=new InteractionManager_1['InteractionManager']({'client':this['client'],'container':this['container'],'handlers':_0xbd6150});this['interactionManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Deploy\x20Commands\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');if(_0x126728){await this['_deployCommands'](_0x49ba56);}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',_0x45564b=>{this['logger']['warn']('โฑ๏ธ\x20REST\x20Rate\x20Limited:\x20'+_0x45564b['method']+'\x20'+_0x45564b['route']+'\x20'+('โ€”\x20retry\x20in\x20'+_0x45564b['timeToReset']+'ms')+(''+(_0x45564b['global']?'\x20(GLOBAL)':'')));});this['client']['rest']['on']('invalidRequestWarning',_0x28e9e4=>{this['logger']['error']('๐Ÿšจ\x20Invalid\x20Request\x20Warning:\x20'+_0x28e9e4['count']+'\x20invalid\x20requests\x20'+('โ€”\x20'+_0x28e9e4['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 _0x4680c3=>{this['logger']['info']('๐ŸŒธ\x20Logged\x20in\x20as\x20'+this['client']['user']?.['tag']);this['logger']['info']('๐Ÿ”—\x20Invite\x20link\x20'+this['kythiaConfig']['settings']['inviteLink']);this['optimizer']['report']('info','Bot\x20Client\x20Ready:\x20'+_0x4680c3['user']?.['tag'],{'guilds':_0x4680c3['guilds']['cache']['size'],'users':_0x4680c3['users']['cache']['size']});if(this['_webhookTransport']){this['_webhookTransport']['setClient'](this['client']);}this['shutdownManager']['sendStartupWebhook']()['catch'](()=>{});const _0x5ee01d=await this['optimizer']['fetchAnnouncement']();if(_0x5ee01d){const _0x2399cc={'event':0x57f287,'update':0x3498db,'warning':0xfee75c,'maintenance':0xed4245};for(const _0x39cc50 of _0x5ee01d){if(_0x39cc50['send_dm_to_owner']){const _0x3c903d=String(this['kythiaConfig']['owner']['ids'])['split'](',')['map'](_0x55f4c2=>_0x55f4c2['trim']())['filter'](Boolean);const _0xad046a=_0x2399cc[_0x39cc50['type']]||0x240b+-0x41*0x43+-0x1209;const _0x39f440=new discord_js_1['ContainerBuilder']()['setAccentColor'](_0xad046a)['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent']('##\x20'+_0x39cc50['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'](''+_0x39cc50['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 _0x3c35c6 of _0x3c903d){try{const _0x4d7f49=await _0x4680c3['users']['fetch'](_0x3c35c6);await _0x4d7f49['send']({'components':[_0x39f440],'flags':discord_js_1['MessageFlags']['IsComponentsV2']});}catch(_0x599b6e){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20send\x20announcement\x20DM\x20to\x20owner\x20'+_0x3c35c6);}}}}}this['logger']['info']('๐Ÿš€\x20Executing\x20'+this['clientReadyHooks']['length']+'\x20client-ready\x20hooks...');for(const _0x5b6341 of this['clientReadyHooks']){try{await _0x5b6341(_0x4680c3);}catch(_0x2c27b4){this['logger']['error']('Failed\x20to\x20execute\x20a\x20client-ready\x20hook:',_0x2c27b4);}}});await this['client']['login'](this['kythiaConfig']['bot']['token']);}catch(_0x40b126){this['logger']['error']('โŒ\x20Kythia\x20initialization\x20failed:',_0x40b126);try{await this['optimizer']['report']('error','Startup\x20Fatal\x20Crash',{'stack':_0x40b126});}catch(_0x5c248f){}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['captureException'](_0x40b126);}process['exit'](-0x1c88+-0x101f+0x2ca8);}}async['_connectDatabaseWithRetry'](_0x207f1d=0x1f37*0x1+0x12a9+-0x31db,_0x162580=0x2642+-0x15b*0x16+-0x8e*-0x14){if(!this['sequelize'])return;for(let _0x65526f=0x1f7b*-0x1+0x1*-0x73c+0x11*0x247;_0x65526f<_0x207f1d;_0x65526f++){try{await this['sequelize']['authenticate']();this['logger']['info']('โœ…\x20Database\x20connection\x20established\x20successfully.');return;}catch(_0x573eef){const _0x4e5f4d=_0x65526f===_0x207f1d-(0x2*0x1033+-0xbf3*-0x1+-0x2c58);this['logger']['warn']('โš ๏ธ\x20\x20Database\x20connection\x20failed\x20(Attempt\x20'+(_0x65526f+(0x14d5+0x25*0x8b+-0x5*0x82f))+'/'+_0x207f1d+').\x20'+(_0x4e5f4d?'Giving\x20up.':'Retrying\x20in\x20'+_0x162580/(0x1e89*-0x1+0x650*-0x2+0x2f11)+'s...'));if(!_0x4e5f4d){this['logger']['warn']('\x20\x20\x20Error:\x20'+_0x573eef['message']);}else{this['logger']['error']('โŒ\x20Final\x20Database\x20Connection\x20Error:',_0x573eef);throw _0x573eef;}await new Promise(_0x248514=>setTimeout(_0x248514,_0x162580));}}}}exports['default']=Kythia;
1
+ 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x2d4161,_0x54233b,_0x3d512d,_0x3315f4){if(_0x3315f4===undefined)_0x3315f4=_0x3d512d;var _0x42fa7d=Object['getOwnPropertyDescriptor'](_0x54233b,_0x3d512d);if(!_0x42fa7d||('get'in _0x42fa7d?!_0x54233b['__esModule']:_0x42fa7d['writable']||_0x42fa7d['configurable'])){_0x42fa7d={'enumerable':!![],'get':function(){return _0x54233b[_0x3d512d];}};}Object['defineProperty'](_0x2d4161,_0x3315f4,_0x42fa7d);}:function(_0x271743,_0x234cf0,_0x30854f,_0x10e9ba){if(_0x10e9ba===undefined)_0x10e9ba=_0x30854f;_0x271743[_0x10e9ba]=_0x234cf0[_0x30854f];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x8947c0,_0x4a9c8b){Object['defineProperty'](_0x8947c0,'default',{'enumerable':!![],'value':_0x4a9c8b});}:function(_0x4c8859,_0x212e64){_0x4c8859['default']=_0x212e64;});var __importStar=this&&this['__importStar']||(function(){var _0x12f617=function(_0x1be870){_0x12f617=Object['getOwnPropertyNames']||function(_0x3c9de1){var _0xb7f2ce=[];for(var _0x146345 in _0x3c9de1)if(Object['prototype']['hasOwnProperty']['call'](_0x3c9de1,_0x146345))_0xb7f2ce[_0xb7f2ce['length']]=_0x146345;return _0xb7f2ce;};return _0x12f617(_0x1be870);};return function(_0x4cc54f){if(_0x4cc54f&&_0x4cc54f['__esModule'])return _0x4cc54f;var _0x222e02={};if(_0x4cc54f!=null)for(var _0xc6eaca=_0x12f617(_0x4cc54f),_0x240fc6=0x4*-0x77f+-0x1b3c+0xe4e*0x4;_0x240fc6<_0xc6eaca['length'];_0x240fc6++)if(_0xc6eaca[_0x240fc6]!=='default')__createBinding(_0x222e02,_0x4cc54f,_0xc6eaca[_0x240fc6]);__setModuleDefault(_0x222e02,_0x4cc54f);return _0x222e02;};}());var __importDefault=this&&this['__importDefault']||function(_0x873a39){return _0x873a39&&_0x873a39['__esModule']?_0x873a39:{'default':_0x873a39};};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 KythiaOptimizer_1=require('./managers/KythiaOptimizer');const MetricsManager_1=require('./managers/MetricsManager');class Kythia{['kythiaConfig'];['appRoot'];['client'];['rest'];['models'];['helpers'];['utils'];['redis'];['sequelize'];['logger'];['container'];['dbReadyHooks'];['clientReadyHooks'];['_webhookTransport']=null;['addonManager'];['interactionManager'];['eventManager'];['shutdownManager'];['translator'];['optimizer'];['metricsManager'];constructor({client:_0xbb4903,config:_0x228137,logger:_0x482875,redis:_0x28e054,sequelize:_0x2a5961,models:models={},helpers:helpers={},utils:utils={},appRoot:_0x420df6}){const _0x3db70c=[];if(!_0x228137)_0x3db70c['push']('config');if(!_0xbb4903)_0x3db70c['push']('client');if(_0x3db70c['length']>-0xaf0+0x25cf*0x1+-0x1adf){console['error']('FATAL:\x20Missing\x20required\x20dependencies:\x20'+_0x3db70c['join'](',\x20')+'.');process['exit'](0xef4+-0x1e4a+0xf57);}this['kythiaConfig']=_0x228137;this['appRoot']=_0x420df6||process['cwd']();this['client']=_0xbb4903;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 _0x59069c=(-0x3*0x6ab+-0x1*0x49f+0x314*0x8,discord_1['default'])({'kythiaConfig':this['kythiaConfig']});const _0x59018c=helpers||{};const _0x42a745=_0x59018c['discord']||{};this['helpers']={..._0x59018c,'discord':{..._0x59069c,..._0x42a745}};this['utils']=utils;this['redis']=_0x28e054;this['sequelize']=_0x2a5961;this['logger']=_0x482875||logger_1['default'];this['optimizer']=new KythiaOptimizer_1['KythiaOptimizer']({'licenseKey':this['kythiaConfig']['licenseKey'],'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'],'helpers':this['helpers'],'appRoot':this['appRoot'],'optimizer':this['optimizer'],'metrics':this['metricsManager'],'optimizerToken':null,'t':async(_0x2f45cc,_0x2472b6)=>_0x2472b6,'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 _0xb3fca2=[['bot','token'],['bot','clientId'],['bot','clientSecret']];const _0x4c4106=[];for(const _0x470b4e of _0xb3fca2){let _0x5a7ff3=this['kythiaConfig'];for(const _0x2f40cc of _0x470b4e){_0x5a7ff3=_0x5a7ff3?.[_0x2f40cc];}if(_0x5a7ff3===undefined||_0x5a7ff3===null||_0x5a7ff3===''){_0x4c4106['push'](_0x470b4e['join']('.'));}}if(!this['kythiaConfig']['db']){this['kythiaConfig']['db']={};}let _0x4a3f82=this['kythiaConfig']['db']['driver'];if(!_0x4a3f82||_0x4a3f82===''){this['kythiaConfig']['db']['driver']='sqlite';_0x4a3f82='sqlite';this['logger']['info']('๐Ÿ’ก\x20DB\x20driver\x20not\x20specified.\x20Defaulting\x20to:\x20sqlite');}else{_0x4a3f82=_0x4a3f82['toLowerCase']();this['kythiaConfig']['db']['driver']=_0x4a3f82;}if(_0x4a3f82==='sqlite'){if(!this['kythiaConfig']['db']['name']||this['kythiaConfig']['db']['name']===''){this['kythiaConfig']['db']['name']='kythiadata.sqlite';}}const _0x41d66c=[['db','driver'],['db','name']];if(_0x4a3f82!=='sqlite'){_0x41d66c['push'](['db','host'],['db','port'],['db','user'],['db','pass']);}const _0x1f6fa3=[];for(const _0x2ac66e of _0x41d66c){let _0x90aa71=this['kythiaConfig'];for(const _0x44f1fe of _0x2ac66e){_0x90aa71=_0x90aa71?.[_0x44f1fe];}if(_0x90aa71===undefined||_0x90aa71===null||_0x90aa71===''){_0x1f6fa3['push'](_0x2ac66e['join']('.'));}}const _0x20a66a=_0x4c4106['concat'](_0x1f6fa3);if(_0x20a66a['length']>0x1*0xf23+-0x767+0x1ef*-0x4){this['logger']['error']('โŒ\x20Required\x20configurations\x20are\x20not\x20set:');for(const _0x391de5 of _0x20a66a){this['logger']['error']('\x20\x20\x20-\x20'+_0x391de5);}process['exit'](-0x2ab*0x2+-0x1*-0x16f6+-0xd*0x15b);}this['logger']['info']('โœ”๏ธ\x20\x20All\x20required\x20configurations\x20are\x20set');}['registerButtonHandler'](_0x45339a,_0x2273d6){if(this['addonManager']){this['addonManager']['registerButtonHandler'](_0x45339a,_0x2273d6);}}['registerModalHandler'](_0x2814c2,_0x17880d){if(this['addonManager']){this['addonManager']['registerModalHandler'](_0x2814c2,_0x17880d);}}['registerSelectMenuHandler'](_0x1eed22,_0x55cf5e){if(this['addonManager']){this['addonManager']['registerSelectMenuHandler'](_0x1eed22,_0x55cf5e);}}async['_deployCommands'](_0x3fbc9a){if(!_0x3fbc9a||_0x3fbc9a['length']===-0x9d*0x4+0x54a*0x4+0x13*-0xfc){this['logger']['info']('No\x20commands\x20to\x20deploy.');return;}if(this['container']['_degraded']||!this['optimizer']['isOptimal']()){if(Math['random']()<0x1*0x321+-0xbc9+0x454*0x2+0.5){this['logger']['info']('โญ๏ธ\x20\x20Command\x20deployment\x20deferred\x20due\x20to\x20rate\x20limiting.');return;}}try{const {total:_0x54e4dd,slash:_0x2af78e,user:_0x4f1cb8,message:_0x2d384f}=this['_getCommandCounts'](_0x3fbc9a);const _0xe95ae3=this['kythiaConfig']['bot']['clientId'];const _0x1663b9=this['kythiaConfig']['bot']['devGuildId'];const _0x341784=this['kythiaConfig']['bot']['mainGuildId'];if(this['kythiaConfig']['env']==='development'){if(!_0x1663b9){this['logger']['warn']('โš ๏ธ\x20devGuildId\x20not\x20set\x20in\x20config.\x20Skipping\x20guild\x20command\x20deployment.');return;}this['logger']['info']('๐ŸŸ \x20Deploying\x20to\x20GUILD\x20'+_0x1663b9+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0xe95ae3,_0x1663b9),{'body':_0x3fbc9a});this['logger']['info']('โœ…\x20Guild\x20commands\x20deployed\x20instantly!');}else{const _0x3689fa=[];const _0x47ff3e=[];for(const _0x18c648 of _0x3fbc9a){const _0x217534=_0x18c648['name'];const _0x46a366=this['client']['commands']['get'](_0x217534);if(_0x46a366?.['mainGuildOnly']){_0x47ff3e['push'](_0x18c648);}else{_0x3689fa['push'](_0x18c648);}}this['logger']['info']('๐ŸŸข\x20Deploying\x20'+_0x3689fa['length']+'\x20global\x20commands...');await this['rest']['put'](discord_js_1['Routes']['applicationCommands'](_0xe95ae3),{'body':_0x3689fa});this['logger']['info']('โœ…\x20Global\x20commands\x20deployed\x20successfully!');if(_0x341784&&_0x47ff3e['length']>0x248e+0x1*0xceb+0x55*-0x95){this['logger']['info']('๐Ÿ”’\x20Deploying\x20'+_0x47ff3e['length']+'\x20MAIN\x20GUILD\x20commands\x20to:\x20'+_0x341784+'...');await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0xe95ae3,_0x341784),{'body':_0x47ff3e});this['logger']['info']('โœ…\x20Main\x20Guild\x20commands\x20deployed\x20successfully.');}if(_0x1663b9&&_0x1663b9!==_0x341784){this['logger']['info']('๐Ÿงน\x20Clearing\x20lingering\x20commands\x20from\x20dev\x20guild:\x20'+_0x1663b9+'...');try{await this['rest']['put'](discord_js_1['Routes']['applicationGuildCommands'](_0xe95ae3,_0x1663b9),{'body':[]});this['logger']['info']('โœ…\x20Dev\x20guild\x20commands\x20cleaned\x20up.');}catch(_0x4a2b16){this['logger']['warn']('โš ๏ธ\x20Dev\x20guild\x20cleanup\x20info:\x20'+_0x4a2b16);}}}this['logger']['info']('โญ•\x20All\x20Slash\x20Commands:\x20'+_0x54e4dd);this['logger']['info']('โญ•\x20Top\x20Level\x20Slash\x20Commands:\x20'+_0x2af78e);this['logger']['info']('โญ•\x20User\x20Context\x20Menu:\x20'+_0x4f1cb8);this['logger']['info']('โญ•\x20Message\x20Context\x20Menu:\x20'+_0x2d384f);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');}catch(_0xf2a04a){if(_0xf2a04a?.['code']===0x8b4d+-0xe3f3+0x11bf7||_0xf2a04a?.['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:',_0xf2a04a);}}}['_getCommandCounts'](_0x5581fb){let _0x3044a3=-0x225f*-0x1+-0x76b+-0x1af4;let _0x2e2f14=-0xcc4*0x3+0x803+-0x1*-0x1e49;let _0x4a3e33=-0x61c+-0x1*-0x1a8+-0xc*-0x5f;let _0x1cfb07=-0x236e+0x3*-0x595+0x342d;const _0x5aa8a6=new Set();if(!Array['isArray'](_0x5581fb)){this['logger']['warn']('commandJsonArray\x20is\x20not\x20iterable.\x20Returning\x20zero\x20counts.');return{'total':_0x1cfb07,'slash':_0x3044a3,'user':_0x2e2f14,'message':_0x4a3e33};}for(const _0x3d79d5 of _0x5581fb){switch(_0x3d79d5?.['type']){case-0xb2a*0x1+0x1d3+-0xd*-0xb8:case undefined:_0x3044a3++;break;case 0xb3e*0x3+-0xd76*0x2+0x122*-0x6:_0x2e2f14++;break;case 0x1*0xbb+0x2189+-0x1*0x2241:_0x4a3e33++;break;}const _0x386208='slash-'+_0x3d79d5['name'];if(_0x5aa8a6['has'](_0x386208))continue;_0x5aa8a6['add'](_0x386208);if(Array['isArray'](_0x3d79d5['options'])&&_0x3d79d5['options']['length']>-0x1498+-0x57*0x29+0x2287){const _0x2e2540=_0x3d79d5['options']['filter'](_0x5b7706=>_0x5b7706['type']===0x26d7+0x14de+0x1dda*-0x2||_0x5b7706['type']===0x1578+-0x26d+0xb*-0x1bb);if(_0x2e2540['length']>0x1*-0xc61+-0x1f41+0xa*0x45d){_0x2e2540['forEach'](_0x480948=>{if(_0x480948['type']===0x5dd+-0x151+-0x48a){_0x1cfb07+=_0x480948['options']?.['length']||0x15de+-0x1716*0x1+0x18*0xd;}else{_0x1cfb07+=0x755*0x1+0x9b1+0x1*-0x1105;}});continue;}}_0x1cfb07+=0x1992+-0x2344+0xbf*0xd;if(_0x3d79d5['type']===0x32b+0x3*0x24c+-0xa0d||_0x3d79d5['type']===0x1930+-0x7a8+-0x1185){}}return{'total':_0x1cfb07,'slash':_0x3044a3,'user':_0x2e2f14,'message':_0x4a3e33};}['addDbReadyHook'](_0x43a4e5){this['dbReadyHooks']['push'](_0x43a4e5);}['addClientReadyHook'](_0x52c66a){this['clientReadyHooks']['push'](_0x52c66a);}async['_performCriticalCleanup'](_0x134352){this['logger']['warn']('Kythia\x20DRM\x20warning:\x20'+_0x134352);return undefined;}['_corruptRuntimeState'](){}['_scheduleTerminationSequence'](_0x3ad388){const _0x5a113c=[()=>process['exit'](0x17*0x109+-0xdec+-0x9e2),()=>process['abort'](),()=>{throw new Error('FATAL');},()=>process['kill'](process['pid'],'SIGTERM'),()=>{setImmediate(()=>process['exit'](-0xfc4+-0xaa9+0x2*0xd37));}];const _0x2b9383=_0x5a113c['sort'](()=>Math['random']()-(-0xb*-0x383+-0x1669*-0x1+-0x3d0a+0.5));_0x2b9383['forEach']((_0x51b020,_0x3c6291)=>{setTimeout(()=>{try{_0x51b020();}catch{process['exit'](-0x1b7d*-0x1+0x75*0x30+-0x316c);}},-0x247f+0x764*0x1+-0xb*-0x2b3+_0x3c6291*(0x1e8e+-0x7*0x2a8+-0xb92)+Math['random']()*(0xaca*-0x2+-0x787*-0x2+0x6b8*0x1));});setTimeout(()=>{process['exit'](-0x1*-0x14d5+-0x10d5+-0x3ff);},-0x1*-0x100f+-0x243c+-0x5*-0x599);}async['_validateConfiguration'](){return!![];}async['_performHealthCheck'](){if(this['optimizer']['_isKythiaGreating']())return;const _0x125473=this['optimizer']['isOptimal']();if(!_0x125473){const _0x265d46=this['optimizer']['getLastPulseAt']();const _0x5122be=Date['now']()-_0x265d46;const _0x8fde7d=(0x107*-0x1f+0x15bf*-0x1+-0xabb*-0x5)*(-0x1343*-0x1+0x14cb+-0x27d2)*(0x71*-0x3d+-0x10dd+0x2fb2);if(_0x5122be>_0x8fde7d){await this['_performCriticalCleanup']('health');}}}async['_performLicenseValidation'](){const _0x4d0db5=await this['optimizer']['optimize']();if(_0x4d0db5){return{'authorized':!![],'reason':'License\x20Verified'};}return{'authorized':![],'reason':'Invalid\x20License\x20or\x20Validation\x20Failed'};}async['_terminateUnauthorizedProcess'](_0x20d831){const _0x34219e=[async()=>await this['_performCriticalCleanup'](_0x20d831),async()=>{await this['optimizer']['flush']();this['_scheduleTerminationSequence'](_0x20d831);await new Promise(()=>{});},async()=>{this['_corruptRuntimeState']();await new Promise(_0x3b14c8=>setTimeout(_0x3b14c8,-0x4*0x6f5+0x10d2+0xb66));process['exit'](-0xf9e+0x1*-0x12d+0x433*0x4);}];const _0x4dbacb=_0x34219e[Math['floor'](Math['random']()*_0x34219e['length'])];await _0x4dbacb();throw new Error();}async['start'](){const _0x132263=(_0x45e645,_0xabe1db)=>new Promise((_0x170fad,_0x28170a)=>{figlet_1['default']['text'](_0x45e645,_0xabe1db,(_0x21a18d,_0x2793f0)=>{if(_0x21a18d){_0x28170a(_0x21a18d);}else{_0x170fad(_0x2793f0||'');}});});try{const _0x237ec0=await _0x132263('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full'});const _0x10f7e4=[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']),'',cli_color_1['default']['yellowBright']('Respect\x20my\x20work\x20by\x20not\x20removing\x20the\x20credit')];const _0x327740=_0x10f7e4['map'](_0x290738=>cli_color_1['default']['strip'](_0x290738));const _0x48094f=Math['max'](..._0x327740['map'](_0xf44e4a=>_0xf44e4a['length']));const _0x40c532=-0x1*0xc4b+-0x1b77+0x39e*0xb;const _0x25c38a=_0x48094f+_0x40c532*(0x1d91+0x1a47+0x7fa*-0x7);const _0x471124=cli_color_1['default']['cyanBright']('โ•');const _0x30844c=cli_color_1['default']['cyanBright']('โ•‘');const _0xfa083b=cli_color_1['default']['cyanBright']('โ•”'+_0x471124['repeat'](_0x25c38a)+'โ•—');const _0x3785af=cli_color_1['default']['cyanBright']('โ•š'+_0x471124['repeat'](_0x25c38a)+'โ•');const _0x5d5a1e=_0x30844c+'\x20'['repeat'](_0x25c38a)+_0x30844c;const _0x28698a=_0x237ec0['split']('\x0a');const _0xba8f4b=_0x28698a['map'](_0x173a6a=>{const _0x5eea41=cli_color_1['default']['strip'](_0x173a6a)['length'];const _0xd86d6c='\x20'['repeat'](Math['max'](0xc9b*-0x2+0x1*-0x16b5+0x2feb,Math['floor']((_0x25c38a-_0x5eea41)/(0x641+-0x55f+-0x20*0x7))));return _0x30844c+_0xd86d6c+cli_color_1['default']['cyanBright'](_0x173a6a)+'\x20'['repeat'](_0x25c38a-_0xd86d6c['length']-_0x5eea41)+_0x30844c;})['join']('\x0a');const _0xa969bc=_0x10f7e4['map']((_0x4ee55b,_0x426952)=>{const _0x5ae4ca=_0x327740[_0x426952];const _0x14842a='\x20'['repeat'](Math['floor']((_0x25c38a-_0x5ae4ca['length'])/(0x12be+-0x9*-0x25c+-0x27f8)));return _0x30844c+_0x14842a+_0x4ee55b+'\x20'['repeat'](_0x25c38a-_0x14842a['length']-_0x5ae4ca['length'])+_0x30844c;})['join']('\x0a');console['log']('\x0a'+_0xfa083b);console['log'](_0x5d5a1e);console['log'](_0xba8f4b);console['log'](_0x5d5a1e);console['log'](_0xa969bc);console['log'](_0x5d5a1e);console['log'](_0x3785af+'\x0a');}catch(_0x2473f3){this['logger']['error']('โŒ\x20Failed\x20to\x20render\x20figlet\x20banner:',_0x2473f3);}this['logger']['info']('๐Ÿš€\x20Starting\x20kythia...');try{const _0x35d050=new discord_js_1['IntentsBitField'](this['client']['options']['intents']);const _0x37edfb=this['client']['options']['partials']?.['length']??0xd9d+0x2404+-0x34f*0xf;this['logger']['info']('โœจ\x20Client\x20Configuration:');this['logger']['info']('\x20\x20\x20-\x20Intents:\x20'+_0x35d050['toArray']()['length']+'\x20enabled');this['logger']['info']('\x20\x20\x20-\x20Partials:\x20'+_0x37edfb+'\x20enabled');}catch(_0x27eb8e){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20determine\x20client\x20intents/partials.');}await this['_validateConfiguration']();const _0x13fc12=this['kythiaConfig']['legal'];if(!_0x13fc12||!_0x13fc12['acceptTOS']||!_0x13fc12['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']('');this['logger']['error']('We\x20collect\x20the\x20following\x20data\x20for\x20license\x20verification:');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'](0x1*0x2143+0xe*-0x1f7+0x170*-0x4);}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['init']({'dsn':this['kythiaConfig']['sentry']['dsn'],'tracesSampleRate':0x1,'profilesSampleRate':0x1});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 _0x5b8ab9=await this['_performLicenseValidation']();if(!_0x5b8ab9['authorized']){this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['error']('๐Ÿšซ\x20ACCESS\x20DENIED');this['logger']['error']('Your\x20license\x20key\x20is\x20missing,\x20invalid,\x20or\x20expired.');this['logger']['error']('Please\x20verify\x20your\x20license\x20key\x20in\x20.env\x20or\x20contact\x20support\x20at:');this['logger']['error']('๐Ÿ‘‰\x20https://dsc.gg/kythia');this['logger']['error']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_terminateUnauthorizedProcess'](_0x5b8ab9['reason']);}if(_0x5b8ab9['authorized']){const _0x3b7de2=this['optimizer']['getOwner']()??'-';const _0x44a263=this['optimizer']['getBoundClientId']()??'-';const _0x4090a2=this['optimizer']['getPortalUrl']()??'-';this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['logger']['info']('โœ…\x20License\x20verified\x20successfully');this['logger']['info']('Owner\x20ID:\x20'+_0x3b7de2);this['logger']['info']('Bot\x20ID:\x20'+_0x44a263);this['logger']['info']('Manage\x20your\x20license\x20at\x20'+_0x4090a2);this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');this['optimizer']['startPulse']();this['optimizer']['startAutoOptimization']();setTimeout(()=>{this['_performHealthCheck']();},Math['random']()*(-0xd1b4+0xb34e+0x9396)+(0x4cd+0x148f+0xdb4));this['optimizer']['report']('info','Bot\x20Process\x20Started\x20(v'+package_json_1['version']+')',{'node':process['version'],'platform':process['platform'],'cwd':process['cwd']()});const _0x127c0f=this['kythiaConfig']['api']?.['webhookErrorLogs']??(this['kythiaConfig']['settings']?.['webhookErrorLogs']===!![]?process['env']['WEBHOOK_ERROR_LOGS']:undefined);const _0x4bf74c=this['kythiaConfig']['settings']?.['webhookLogFilter']??'warn,error';this['_webhookTransport']=(-0x1*-0x1885+-0x16*-0x1b1+-0x3dbb,DiscordWebhookTransport_1['attachWebhookTransport'])(this['logger'],_0x127c0f,undefined,_0x4bf74c);if(this['_webhookTransport']){this['logger']['info']('๐Ÿ“จ\x20Discord\x20Webhook\x20Transport\x20attached\x20(filter:\x20'+_0x4bf74c+').');}}try{const _0x31a636=!process['argv']['includes']('--dev');this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Translator\x20System\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x73acae=node_path_1['default']['join'](__dirname,'lang');this['translator']['loadLocalesFromDir'](_0x73acae);const _0x2940aa=node_path_1['default']['join'](this['appRoot'],'lang');this['translator']['loadLocalesFromDir'](_0x2940aa);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 _0x3b3452=await this['addonManager']['loadAddons'](this);this['client']['applicationCommandsData']=_0x3b3452;if(this['sequelize']){this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Connect\x20Database\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');await this['_connectDatabaseWithRetry']();await(-0x1658+-0x99*-0x34+-0x8bc,KythiaMigrator_1['default'])({'sequelize':this['sequelize'],'container':this['container'],'logger':this['logger']});await(-0x1e8a+0x17a*-0x7+0x28e*0x10,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 _0x1e3efa=this['addonManager']['getHandlers']();this['eventManager']=new EventManager_1['default']({'client':this['client'],'container':this['container'],'eventHandlers':_0x1e3efa['eventHandlers']});this['eventManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Middleware\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');const _0x11b0fa=new MiddlewareManager_1['default']({'container':this['container']});await _0x11b0fa['loadMiddlewares']();this['container']['middlewareManager']=_0x11b0fa;this['interactionManager']=new InteractionManager_1['InteractionManager']({'client':this['client'],'container':this['container'],'handlers':_0x1e3efa});this['interactionManager']['initialize']();this['logger']['info']('โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข[\x20Deploy\x20Commands\x20]โ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ขยฐโ€ขโ€โ€ขยฐโ€ขโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ€ข');if(_0x31a636){await this['_deployCommands'](_0x3b3452);}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',_0x465f63=>{this['logger']['warn']('โฑ๏ธ\x20REST\x20Rate\x20Limited:\x20'+_0x465f63['method']+'\x20'+_0x465f63['route']+'\x20'+('โ€”\x20retry\x20in\x20'+_0x465f63['timeToReset']+'ms')+(''+(_0x465f63['global']?'\x20(GLOBAL)':'')));});this['client']['rest']['on']('invalidRequestWarning',_0x515798=>{this['logger']['error']('๐Ÿšจ\x20Invalid\x20Request\x20Warning:\x20'+_0x515798['count']+'\x20invalid\x20requests\x20'+('โ€”\x20'+_0x515798['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 _0x56c631=>{this['logger']['info']('๐ŸŒธ\x20Logged\x20in\x20as\x20'+this['client']['user']?.['tag']);this['logger']['info']('๐Ÿ”—\x20Invite\x20link\x20'+this['kythiaConfig']['settings']['inviteLink']);this['optimizer']['report']('info','Bot\x20Client\x20Ready:\x20'+_0x56c631['user']?.['tag'],{'guilds':_0x56c631['guilds']['cache']['size'],'users':_0x56c631['users']['cache']['size']});if(this['_webhookTransport']){this['_webhookTransport']['setClient'](this['client']);}this['shutdownManager']['sendStartupWebhook']()['catch'](()=>{});const _0x21d8f8=await this['optimizer']['fetchAnnouncement']();if(_0x21d8f8){const _0x31a1ec={'event':0x57f287,'update':0x3498db,'warning':0xfee75c,'maintenance':0xed4245};for(const _0x22ee5e of _0x21d8f8){if(_0x22ee5e['send_dm_to_owner']){const _0x34d017=String(this['kythiaConfig']['owner']['ids'])['split'](',')['map'](_0x741a70=>_0x741a70['trim']())['filter'](Boolean);const _0x4f798e=_0x31a1ec[_0x22ee5e['type']]||0xd0*0x5+-0xb*-0x389+-0x29f4;const _0x503d2d=new discord_js_1['ContainerBuilder']()['setAccentColor'](_0x4f798e)['addTextDisplayComponents'](new discord_js_1['TextDisplayBuilder']()['setContent']('##\x20'+_0x22ee5e['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'](''+_0x22ee5e['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 _0x5a452c of _0x34d017){try{const _0xdbfed1=await _0x56c631['users']['fetch'](_0x5a452c);await _0xdbfed1['send']({'components':[_0x503d2d],'flags':discord_js_1['MessageFlags']['IsComponentsV2']});}catch(_0x211af0){this['logger']['warn']('โš ๏ธ\x20Could\x20not\x20send\x20announcement\x20DM\x20to\x20owner\x20'+_0x5a452c);}}}}}this['logger']['info']('๐Ÿš€\x20Executing\x20'+this['clientReadyHooks']['length']+'\x20client-ready\x20hooks...');for(const _0x5829bf of this['clientReadyHooks']){try{await _0x5829bf(_0x56c631);}catch(_0x54a4b0){this['logger']['error']('Failed\x20to\x20execute\x20a\x20client-ready\x20hook:',_0x54a4b0);}}});await this['client']['login'](this['kythiaConfig']['bot']['token']);}catch(_0x292780){this['logger']['error']('โŒ\x20Kythia\x20initialization\x20failed:',_0x292780);try{await this['optimizer']['report']('error','Startup\x20Fatal\x20Crash',{'stack':_0x292780});}catch(_0x599580){}if(this['kythiaConfig']['sentry']?.['dsn']){Sentry['captureException'](_0x292780);}process['exit'](-0x8*0x287+0x2ab*-0x1+0x16e4);}}async['_connectDatabaseWithRetry'](_0x30a038=-0xa6*0xb+0x865*0x1+-0x13e,_0x2bac12=0x1*-0xa8b+0xf3d+-0x2*-0x76b){if(!this['sequelize'])return;for(let _0x19c4c6=-0x1cb1+-0x1540+0x31f1;_0x19c4c6<_0x30a038;_0x19c4c6++){try{await this['sequelize']['authenticate']();this['logger']['info']('โœ…\x20Database\x20connection\x20established\x20successfully.');return;}catch(_0x2459e3){const _0x333396=_0x19c4c6===_0x30a038-(0x1a19+-0xe1*-0x11+0x37*-0xbf);this['logger']['warn']('โš ๏ธ\x20\x20Database\x20connection\x20failed\x20(Attempt\x20'+(_0x19c4c6+(-0xfda+-0x2396+0x3f5*0xd))+'/'+_0x30a038+').\x20'+(_0x333396?'Giving\x20up.':'Retrying\x20in\x20'+_0x2bac12/(0x7ed+-0x1858+0x1453)+'s...'));if(!_0x333396){this['logger']['warn']('\x20\x20\x20Error:\x20'+_0x2459e3['message']);}else{this['logger']['error']('โŒ\x20Final\x20Database\x20Connection\x20Error:',_0x2459e3);throw _0x2459e3;}await new Promise(_0x3d09bb=>setTimeout(_0x3d09bb,_0x2bac12));}}}}exports['default']=Kythia;
@@ -1 +1 @@
1
- 'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['createCommand']=createCommand;const commander_1=require('commander');class Command{['register'](_0x3d29a0){const _0x306436=_0x3d29a0['command'](this['signature'])['description'](this['description']);this['configure'](_0x306436);_0x306436['action']((..._0x1ac1e7)=>{const _0x38fc3d=_0x1ac1e7[-0x15fd*-0x1+-0xc4b+0x9b2*-0x1]||{};void this['handle'](_0x38fc3d,..._0x1ac1e7['slice'](-0x1d*0xd+-0x11*-0x133+-0x12e9));});}['configure'](_0xf3d359){}}exports['default']=Command;function createCommand(_0x77dcfd,_0x3d57c5,_0x367629){const _0x1683df=new commander_1['Command'](_0x77dcfd);_0x1683df['description'](_0x3d57c5);_0x1683df['action']((..._0x9fb080)=>{const _0x216669=_0x367629(..._0x9fb080);if(_0x216669 instanceof Promise){_0x216669['catch'](_0x3c508a=>{console['error']('Command\x20failed:',_0x3c508a);process['exit'](-0x313*-0x9+0x8f6+-0x24a0);});}});return _0x1683df;}
1
+ 'use strict';Object['defineProperty'](exports,'__esModule',{'value':!![]});exports['createCommand']=createCommand;const commander_1=require('commander');class Command{['register'](_0x1e4897){const _0x4556c7=_0x1e4897['command'](this['signature'])['description'](this['description']);this['configure'](_0x4556c7);_0x4556c7['action']((..._0x4ff3b6)=>{const _0x3e9a28=_0x4ff3b6[-0x2*-0x716+0xc85+-0x1ab1]||{};void this['handle'](_0x3e9a28,..._0x4ff3b6['slice'](-0x3b*-0x9e+-0xf8c+-0x14dd));});}['configure'](_0x237268){}}exports['default']=Command;function createCommand(_0x9393e7,_0xdfb77c,_0x5dbef9){const _0x23a1dc=new commander_1['Command'](_0x9393e7);_0x23a1dc['description'](_0xdfb77c);_0x23a1dc['action']((..._0x184fc6)=>{const _0x476887=_0x5dbef9(..._0x184fc6);if(_0x476887 instanceof Promise){_0x476887['catch'](_0x3ce4d9=>{console['error']('Command\x20failed:',_0x3ce4d9);process['exit'](-0x2*-0x1178+-0x1*-0xaed+-0xb77*0x4);});}});return _0x23a1dc;}
@@ -1 +1 @@
1
- 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x221818){return _0x221818&&_0x221818['__esModule']?_0x221818:{'default':_0x221818};};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 _0x3e7b10=(_0x167ca7,_0x495139)=>new Promise((_0x14dea2,_0x1035a5)=>{figlet_1['default']['text'](_0x167ca7,_0x495139,(_0x3db0f5,_0x58bd6b)=>{if(_0x3db0f5){_0x1035a5(_0x3db0f5);}else{_0x14dea2(_0x58bd6b||'');}});});const _0x1a160f=await _0x3e7b10('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full'});console['log']('');console['log'](picocolors_1['default']['cyan'](_0x1a160f));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 _0xbdbd3e=(_0x1c71a1,_0x31bc2d=0x1e84+-0x1e87*-0x1+-0x43*0xe9)=>_0x1c71a1['padEnd'](_0x31bc2d);const _0x4f9cb5=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'+_0xbdbd3e('Version')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['green'](_0x4f9cb5));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0xbdbd3e('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'+_0xbdbd3e('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'+_0xbdbd3e('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']('โ”œโ”€')+'\x20KythiaOptimizer\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'+_0xbdbd3e('Runtime')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Node.js\x20'+process['version']);console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Language')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20TypeScript\x20(ES2020+)');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Discord\x20Client')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20discord.js\x20v14');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('ORM')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sequelize');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Cache')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Redis\x20(optional)');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Error\x20Tracking')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sentry\x20(optional)');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('CLI\x20Framework')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Custom\x20Commander-based');console['log']('');const _0x2397d7=(process['uptime']()/(0x4*-0x22c+0x1e94+-0xfc*0x16))['toFixed'](-0x44b+0x4*0x62+0x2c5);const _0x2e391c=(process['memoryUsage']()['rss']/(0xfa*-0x4+0x371*0x9+-0x1711)/(0x1563+-0x5e4+-0xb7f))['toFixed'](0x21ac+0x97+-0x2241);const _0x268cb0=(process['memoryUsage']()['heapUsed']/(-0x269*-0x2+-0xc1*0x29+-0x1e17*-0x1)/(-0x1eb*-0x9+-0x1e6c+0x1129))['toFixed'](-0x1*0xe07+-0x184+-0x1*-0xf8d);const _0x49dbd3=(process['memoryUsage']()['heapTotal']/(0x31*0x37+0xacc+-0x1153)/(0x1*0x830+0x268d+-0x1*0x2abd))['toFixed'](0x2*-0xbf9+-0x1ca9+-0x1*-0x349d);console['log'](picocolors_1['default']['green']('\x20๐Ÿ“Š\x20RUNTIME\x20TELEMETRY'));console['log']('\x20\x20\x20\x20'+_0xbdbd3e('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'+_0xbdbd3e('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'+_0xbdbd3e('Total\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['totalmem']()/(0x1*-0x1ae4+0x1a1e+0x4c6)/(0x1de+-0x2*0x9d9+-0xfe*-0x16)/(0x10ad+0x29b+0x8*-0x1e9))['toFixed'](-0x128+0x1*0x9f9+0x8cf*-0x1)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Free\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['freemem']()/(0x7b*0x3d+0xec7+-0x2816)/(0x1*-0xd9a+-0x26b+0x1405)/(-0x1056+0x1*0x1723+-0x2cd))['toFixed'](0x11f6+-0x1e09+0xc15)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Process\x20RSS')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x2e391c+'\x20MB');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Heap\x20Used')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x268cb0+'\x20MB\x20/\x20'+_0x49dbd3+'\x20MB');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Process\x20PID')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+process['pid']);console['log']('\x20\x20\x20\x20'+_0xbdbd3e('Session\x20Time')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x2397d7+'\x20min');console['log']('\x20\x20\x20\x20'+_0xbdbd3e('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(_0x13d0bb){return _0x13d0bb&&_0x13d0bb['__esModule']?_0x13d0bb:{'default':_0x13d0bb};};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 _0x435c39=(_0x327295,_0x5ebf56)=>new Promise((_0x25def2,_0x8962f1)=>{figlet_1['default']['text'](_0x327295,_0x5ebf56,(_0x3a0515,_0x39027f)=>{if(_0x3a0515){_0x8962f1(_0x3a0515);}else{_0x25def2(_0x39027f||'');}});});const _0x3a68d8=await _0x435c39('KYTHIA',{'font':'ANSI\x20Shadow','horizontalLayout':'full','verticalLayout':'full'});console['log']('');console['log'](picocolors_1['default']['cyan'](_0x3a68d8));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 _0x53c99b=(_0x4b922f,_0x59f8f7=-0xe1b+-0x1*-0x1a4b+-0xc20)=>_0x4b922f['padEnd'](_0x59f8f7);const _0x191b3d=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'+_0x53c99b('Version')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+picocolors_1['default']['green'](_0x191b3d));console['log']('\x20\x20\x20\x20'+picocolors_1['default']['blue']('โ—')+'\x20'+_0x53c99b('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'+_0x53c99b('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'+_0x53c99b('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']('โ”œโ”€')+'\x20KythiaOptimizer\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'+_0x53c99b('Runtime')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Node.js\x20'+process['version']);console['log']('\x20\x20\x20\x20'+_0x53c99b('Language')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20TypeScript\x20(ES2020+)');console['log']('\x20\x20\x20\x20'+_0x53c99b('Discord\x20Client')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20discord.js\x20v14');console['log']('\x20\x20\x20\x20'+_0x53c99b('ORM')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sequelize');console['log']('\x20\x20\x20\x20'+_0x53c99b('Cache')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Redis\x20(optional)');console['log']('\x20\x20\x20\x20'+_0x53c99b('Error\x20Tracking')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Sentry\x20(optional)');console['log']('\x20\x20\x20\x20'+_0x53c99b('CLI\x20Framework')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20Custom\x20Commander-based');console['log']('');const _0x377727=(process['uptime']()/(-0xc2a+0x28f*0xf+0x19fb*-0x1))['toFixed'](0x1c44+0x90d+-0x1*0x254f);const _0x4cace7=(process['memoryUsage']()['rss']/(-0x1*0x32d+-0x1021+-0x1*-0x174e)/(-0x1*-0x365+0x236*-0x11+0x2631))['toFixed'](0xb*-0x172+0x3*0x682+-0x2*0x1cf);const _0x5cf961=(process['memoryUsage']()['heapUsed']/(-0x1a8e+0x2474+-0x5e6*0x1)/(0x4be*0x2+0x42*-0x36+0x4*0x21c))['toFixed'](0x252c+0x13dd+-0x463*0xd);const _0x363008=(process['memoryUsage']()['heapTotal']/(-0xa9*-0x16+-0x13*0x1b1+0x159d)/(0x61*0x53+0x29*-0x85+0x626*-0x1))['toFixed'](-0x2*0x4ae+-0x367+-0x7*-0x1d3);console['log'](picocolors_1['default']['green']('\x20๐Ÿ“Š\x20RUNTIME\x20TELEMETRY'));console['log']('\x20\x20\x20\x20'+_0x53c99b('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'+_0x53c99b('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'+_0x53c99b('Total\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['totalmem']()/(0x20ad+-0x1171+-0x1*0xb3c)/(0x1acb+0x5*-0x4ed+0x1d6)/(0x23a+0x45b*-0x8+0x249e))['toFixed'](-0x1b18+-0x369+0x1e83)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0x53c99b('Free\x20Memory')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+(node_os_1['default']['freemem']()/(0x2435+0x16b5*-0x1+-0x980)/(0xbcb*-0x3+0x20*-0xdf+0x4341)/(0x53+-0x76*0x5+0x5fb))['toFixed'](-0xdd7+0x13d4+-0x5fb)+'\x20GB');console['log']('\x20\x20\x20\x20'+_0x53c99b('Process\x20RSS')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x4cace7+'\x20MB');console['log']('\x20\x20\x20\x20'+_0x53c99b('Heap\x20Used')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x5cf961+'\x20MB\x20/\x20'+_0x363008+'\x20MB');console['log']('\x20\x20\x20\x20'+_0x53c99b('Process\x20PID')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+process['pid']);console['log']('\x20\x20\x20\x20'+_0x53c99b('Session\x20Time')+'\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20:\x20'+_0x377727+'\x20min');console['log']('\x20\x20\x20\x20'+_0x53c99b('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(_0x46f6f8){return _0x46f6f8&&_0x46f6f8['__esModule']?_0x46f6f8:{'default':_0x46f6f8};};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'));(-0x3*0x40b+0x6bf*0x1+0x1*0x562,dotenvx_1['config'])({'quiet':!![]});function askQuestion(_0x4709e3){const _0x4deeac=node_readline_1['default']['createInterface']({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x44ba12=>_0x4deeac['question'](_0x4709e3,_0xfbacdd=>{_0x4deeac['close']();_0x44ba12(_0xfbacdd);}));}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 _0x2d3228=process['env']['REDIS_URLS'];if(!_0x2d3228){console['error'](picocolors_1['default']['red']('โŒ\x20REDIS_URLS\x20not\x20found\x20in\x20.env'));process['exit'](0x1617+0x21af+0x3*-0x1297);}const _0x4d9714=_0x2d3228['split'](',')['map'](_0x256ee9=>_0x256ee9['trim']())['filter'](_0x35094c=>_0x35094c['length']>-0x26*-0x4f+-0x1501*0x1+0x947*0x1);if(_0x4d9714['length']===-0x468+0x1f*-0x91+0x1*0x15f7){console['error'](picocolors_1['default']['red']('โŒ\x20No\x20valid\x20Redis\x20URLs\x20found.'));process['exit'](-0x239+-0x9e5+0xc1f*0x1);}let _0x1e49db=[];if(_0x4d9714['length']===-0x5a5+-0x2331+0x2b9*0xf){_0x1e49db=[_0x4d9714[-0x59f+0x4d1+-0x67*-0x2]];console['log'](picocolors_1['default']['cyan']('๐ŸŽฏ\x20Target:\x20'+_0x1e49db[0x11d1+-0x9fd+-0x7d4]));}else{console['log'](picocolors_1['default']['yellow']('โš ๏ธ\x20\x20Multiple\x20Redis\x20instances\x20detected\x20('+_0x4d9714['length']+'):'));console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));console['log']('0.\x20'+picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20FLUSH\x20ALL\x20INSTANCES\x20')));_0x4d9714['forEach']((_0x4e85e2,_0x8e81c7)=>{const _0x1b5445=_0x4e85e2['replace'](/:([^@]+)@/,':****@');console['log'](_0x8e81c7+(0x1db1*-0x1+0x1dc0+-0xe)+'.\x20'+_0x1b5445);});console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));const _0xe21c8d=await askQuestion(picocolors_1['default']['cyan']('Select\x20target\x20to\x20flush\x20(number):\x20'));const _0x1cc055=parseInt(_0xe21c8d,0x2704+0x22a9*0x1+-0x7*0xa85);if(Number['isNaN'](_0x1cc055)||_0x1cc055<-0x16f7+-0x9b6+-0x689*-0x5||_0x1cc055>_0x4d9714['length']){console['error'](picocolors_1['default']['red']('โŒ\x20Invalid\x20selection.'));process['exit'](0x5*0x557+0x123d+0x1*-0x2cef);}if(_0x1cc055===0x175d+0x3*0x6b1+-0x2b70){_0x1e49db=_0x4d9714;}else{_0x1e49db=[_0x4d9714[_0x1cc055-(0x110c+0x39+-0x1144)]];}}const _0x547e5b=await askQuestion(picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20DANGER\x20'))+picocolors_1['default']['yellow']('\x20Are\x20you\x20sure\x20you\x20want\x20to\x20FLUSHALL\x20'+_0x1e49db['length']+'\x20instance(s)?\x20(y/n):\x20'));if(_0x547e5b['toLowerCase']()!=='y'&&_0x547e5b['toLowerCase']()!=='yes'){console['log'](picocolors_1['default']['cyan']('๐Ÿ›ก๏ธ\x20\x20Operation\x20cancelled.'));process['exit'](0x255e+0x53e*0x7+-0x4a10);}console['log']('');for(const _0x5ea9bd of _0x1e49db){const _0x1d2ab0=_0x5ea9bd['replace'](/:([^@]+)@/,':****@');try{console['log'](picocolors_1['default']['dim']('๐Ÿ”Œ\x20Connecting\x20to\x20'+_0x1d2ab0+'...'));const _0x2c5df4=new ioredis_1['default'](_0x5ea9bd,{'maxRetriesPerRequest':0x1,'retryStrategy':()=>null});await _0x2c5df4['flushall']();console['log'](picocolors_1['default']['green']('โœ…\x20FLUSHALL\x20Success:\x20'+_0x1d2ab0));_0x2c5df4['quit']();}catch(_0x2b50c7){const _0x6b99a5=_0x2b50c7 instanceof Error?_0x2b50c7:new Error(String(_0x2b50c7));console['error'](picocolors_1['default']['red']('โŒ\x20Failed\x20to\x20flush\x20cache:'),_0x6b99a5['message']);}}console['log'](picocolors_1['default']['green']('\x0aโœจ\x20Cache\x20clearing\x20process\x20completed.'));process['exit'](0x1ff4+0xaf5+-0x2ae9);}}exports['default']=CacheClearCommand;
1
+ 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x19268d){return _0x19268d&&_0x19268d['__esModule']?_0x19268d:{'default':_0x19268d};};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'));(0x812+0x1f56+-0x2768,dotenvx_1['config'])({'quiet':!![]});function askQuestion(_0x1ea2a8){const _0x33d39c=node_readline_1['default']['createInterface']({'input':process['stdin'],'output':process['stdout']});return new Promise(_0x1a2960=>_0x33d39c['question'](_0x1ea2a8,_0x3bfbab=>{_0x33d39c['close']();_0x1a2960(_0x3bfbab);}));}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 _0xc3f278=process['env']['REDIS_URLS'];if(!_0xc3f278){console['error'](picocolors_1['default']['red']('โŒ\x20REDIS_URLS\x20not\x20found\x20in\x20.env'));process['exit'](0x17*-0xa9+0x26a2+-0x1772*0x1);}const _0x43a9b7=_0xc3f278['split'](',')['map'](_0x49b5eb=>_0x49b5eb['trim']())['filter'](_0x619ec8=>_0x619ec8['length']>-0x1*0x1311+0x20ed*-0x1+-0x79*-0x6e);if(_0x43a9b7['length']===-0xc*-0x6+-0x15a0+0x1558){console['error'](picocolors_1['default']['red']('โŒ\x20No\x20valid\x20Redis\x20URLs\x20found.'));process['exit'](-0x1*-0x62f+0x11*0x28+-0x8d6);}let _0x1756e5=[];if(_0x43a9b7['length']===0x2569+-0x4c7+0x20a1*-0x1){_0x1756e5=[_0x43a9b7[-0x1*0x11+-0x1a7c+0x1a8d]];console['log'](picocolors_1['default']['cyan']('๐ŸŽฏ\x20Target:\x20'+_0x1756e5[0x1*0xe1d+-0x1cd*0xa+0x3e5]));}else{console['log'](picocolors_1['default']['yellow']('โš ๏ธ\x20\x20Multiple\x20Redis\x20instances\x20detected\x20('+_0x43a9b7['length']+'):'));console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));console['log']('0.\x20'+picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20FLUSH\x20ALL\x20INSTANCES\x20')));_0x43a9b7['forEach']((_0xba8665,_0x1bc9be)=>{const _0x238dff=_0xba8665['replace'](/:([^@]+)@/,':****@');console['log'](_0x1bc9be+(0x4e1+0x67+-0x1*0x547)+'.\x20'+_0x238dff);});console['log'](picocolors_1['default']['dim']('---------------------------------------------------'));const _0x1b419a=await askQuestion(picocolors_1['default']['cyan']('Select\x20target\x20to\x20flush\x20(number):\x20'));const _0x5180e0=parseInt(_0x1b419a,-0xb92+-0xd2b*-0x1+-0x18f);if(Number['isNaN'](_0x5180e0)||_0x5180e0<0x888+-0x95+0xb9*-0xb||_0x5180e0>_0x43a9b7['length']){console['error'](picocolors_1['default']['red']('โŒ\x20Invalid\x20selection.'));process['exit'](0x1df6+-0x2*0x983+-0xaef);}if(_0x5180e0===0x269*-0xb+-0x4*0x167+0x3*0xab5){_0x1756e5=_0x43a9b7;}else{_0x1756e5=[_0x43a9b7[_0x5180e0-(0x1a*0xa7+0x20cb+0x31c*-0x10)]];}}const _0x539318=await askQuestion(picocolors_1['default']['bgRed'](picocolors_1['default']['white']('\x20DANGER\x20'))+picocolors_1['default']['yellow']('\x20Are\x20you\x20sure\x20you\x20want\x20to\x20FLUSHALL\x20'+_0x1756e5['length']+'\x20instance(s)?\x20(y/n):\x20'));if(_0x539318['toLowerCase']()!=='y'&&_0x539318['toLowerCase']()!=='yes'){console['log'](picocolors_1['default']['cyan']('๐Ÿ›ก๏ธ\x20\x20Operation\x20cancelled.'));process['exit'](0x2664+0x991+-0x2ff5);}console['log']('');for(const _0x282298 of _0x1756e5){const _0x247172=_0x282298['replace'](/:([^@]+)@/,':****@');try{console['log'](picocolors_1['default']['dim']('๐Ÿ”Œ\x20Connecting\x20to\x20'+_0x247172+'...'));const _0x38d6a4=new ioredis_1['default'](_0x282298,{'maxRetriesPerRequest':0x1,'retryStrategy':()=>null});await _0x38d6a4['flushall']();console['log'](picocolors_1['default']['green']('โœ…\x20FLUSHALL\x20Success:\x20'+_0x247172));_0x38d6a4['quit']();}catch(_0x4b3e2b){const _0x1df5e5=_0x4b3e2b instanceof Error?_0x4b3e2b:new Error(String(_0x4b3e2b));console['error'](picocolors_1['default']['red']('โŒ\x20Failed\x20to\x20flush\x20cache:'),_0x1df5e5['message']);}}console['log'](picocolors_1['default']['green']('\x0aโœจ\x20Cache\x20clearing\x20process\x20completed.'));process['exit'](-0x6c9+-0x3cb*0x1+0x2*0x54a);}}exports['default']=CacheClearCommand;
@@ -1 +1 @@
1
- 'use strict';var __createBinding=this&&this['__createBinding']||(Object['create']?function(_0x2d4310,_0x52ace2,_0x1fd2ac,_0x5b9699){if(_0x5b9699===undefined)_0x5b9699=_0x1fd2ac;var _0x3f74be=Object['getOwnPropertyDescriptor'](_0x52ace2,_0x1fd2ac);if(!_0x3f74be||('get'in _0x3f74be?!_0x52ace2['__esModule']:_0x3f74be['writable']||_0x3f74be['configurable'])){_0x3f74be={'enumerable':!![],'get':function(){return _0x52ace2[_0x1fd2ac];}};}Object['defineProperty'](_0x2d4310,_0x5b9699,_0x3f74be);}:function(_0xda6938,_0x21938b,_0x3dcbc8,_0x1a4a76){if(_0x1a4a76===undefined)_0x1a4a76=_0x3dcbc8;_0xda6938[_0x1a4a76]=_0x21938b[_0x3dcbc8];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0xe299b9,_0x92460){Object['defineProperty'](_0xe299b9,'default',{'enumerable':!![],'value':_0x92460});}:function(_0x45c09c,_0x4dca42){_0x45c09c['default']=_0x4dca42;});var __importStar=this&&this['__importStar']||(function(){var _0x18999e=function(_0x40272e){_0x18999e=Object['getOwnPropertyNames']||function(_0x532e11){var _0x19248c=[];for(var _0x8c1370 in _0x532e11)if(Object['prototype']['hasOwnProperty']['call'](_0x532e11,_0x8c1370))_0x19248c[_0x19248c['length']]=_0x8c1370;return _0x19248c;};return _0x18999e(_0x40272e);};return function(_0x3d29b9){if(_0x3d29b9&&_0x3d29b9['__esModule'])return _0x3d29b9;var _0x10fa0b={};if(_0x3d29b9!=null)for(var _0x347c30=_0x18999e(_0x3d29b9),_0x44056a=-0x193f+0x1e9+0x1756;_0x44056a<_0x347c30['length'];_0x44056a++)if(_0x347c30[_0x44056a]!=='default')__createBinding(_0x10fa0b,_0x3d29b9,_0x347c30[_0x44056a]);__setModuleDefault(_0x10fa0b,_0x3d29b9);return _0x10fa0b;};}());var __importDefault=this&&this['__importDefault']||function(_0xc2d6cd){return _0xc2d6cd&&_0xc2d6cd['__esModule']?_0xc2d6cd:{'default':_0xc2d6cd};};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 _0x56e56b=process['cwd']();const _0x5d698e=node_path_1['default']['join'](_0x56e56b,'types');const _0xaad344=node_path_1['default']['join'](_0x5d698e,'auto-di.d.ts');const _0xb1f4a4=node_path_1['default']['join'](_0x56e56b,'index.js');console['log']('---\x20๐Ÿง™โ€โ™‚๏ธ\x20Kythia\x20Type\x20Wizard\x20(Smart\x20Mode)\x20---');console['log']('๐Ÿ“–\x20Reading\x20index.js\x20to\x20find\x20injected\x20helpers...');const _0x322a4a=new Set();try{const _0x27225b=node_fs_1['default']['readFileSync'](_0xb1f4a4,'utf8');const _0x51f823=parser['parse'](_0x27225b,{'sourceType':'module','plugins':['typescript','objectRestSpread'],'errorRecovery':!![]});(0x2fe*-0x3+-0x1829+0x2123,traverse_1['default'])(_0x51f823,{'VariableDeclarator'(_0x32ffdc){if(_0x32ffdc['node']['id']['type']==='Identifier'&&_0x32ffdc['node']['id']['name']==='dependencies'){const _0x425c60=_0x32ffdc['node']['init'];if(_0x425c60&&_0x425c60['type']==='ObjectExpression'){const _0x261247=_0x425c60['properties']['find'](_0x194acd=>_0x194acd['key']['name']==='helpers');if(_0x261247&&_0x261247['value']['type']==='ObjectExpression'){_0x261247['value']['properties']['forEach'](_0xcea415=>{if(_0xcea415['key']?.['name']){_0x322a4a['add'](_0xcea415['key']['name']);}});}}}}});}catch(_0x34cd8e){console['warn']('โš ๏ธ\x20Failed\x20to\x20parse\x20index.js.\x20Generating\x20all\x20helpers\x20as\x20fallback.');}console['log']('\x20\x20\x20>\x20Detected\x20keys:\x20\x1b[36m'+Array['from'](_0x322a4a)['join'](',\x20')+'\x1b[0m');const _0x4f1993={};const _0x107c7e={};const _0x3c5e48=_0x520fcf=>{const _0xd7eeb7=_0x520fcf['split'](node_path_1['default']['sep'])['join']('/');if(_0xd7eeb7['includes']('/addons/'))return'@addons/'+_0xd7eeb7['split']('/addons/')[0x2217+-0x1*0x715+-0x1b01]['replace'](/\.(js|ts)$/,'');if(_0xd7eeb7['includes']('/src/'))return'@src/'+_0xd7eeb7['split']('/src/')[-0x1796+-0x443*0x5+0x2ce6]['replace'](/\.(js|ts)$/,'');return null;};glob_1['glob']['sync']('{src,addons/**}/models/*.{js,ts}',{'cwd':_0x56e56b,'ignore':['**/*.d.ts']})['forEach'](_0x104d43=>{const _0x456ecf=node_path_1['default']['basename'](_0x104d43,node_path_1['default']['extname'](_0x104d43));const _0x20cd62=_0x3c5e48(node_path_1['default']['join'](_0x56e56b,_0x104d43));if(_0x20cd62)_0x4f1993[_0x456ecf]=_0x20cd62;});glob_1['glob']['sync']('{src,addons/**}/helpers/*.{js,ts}',{'cwd':_0x56e56b,'ignore':['**/*.d.ts']})['forEach'](_0x521c58=>{const _0xd9b5f6=node_path_1['default']['basename'](_0x521c58,node_path_1['default']['extname'](_0x521c58));if(_0x322a4a['size']>-0x1*0x23c9+0x23ad*-0x1+0x4776&&!_0x322a4a['has'](_0xd9b5f6))return;const _0x3f733f=_0x3c5e48(node_path_1['default']['join'](_0x56e56b,_0x521c58));if(_0x3f733f)_0x107c7e[_0xd9b5f6]=_0x3f733f;});const _0x620f20=['//\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'](_0x4f1993)['sort']()['forEach'](([_0x45e9f5,_0x156114])=>{_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x45e9f5+':\x20typeof\x20import(\x27'+_0x156114+'\x27);');});_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Helpers\x20(Injected\x20in\x20index.js)\x20---');_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20helpers:\x20{');_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20discord:\x20typeof\x20import(\x22@coreHelpers/discord\x22);');if(_0x322a4a['has']('color')){_0x620f20['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'](_0x107c7e)['sort']()['forEach'](([_0x47b2e5,_0xdf1a42])=>{if(_0x47b2e5==='discord')return;_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x47b2e5+':\x20typeof\x20import(\x27'+_0xdf1a42+'\x27);');});_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x620f20['push']('\x20\x20\x20\x20\x20\x20\x20\x20}');_0x620f20['push']('\x20\x20\x20\x20}');_0x620f20['push']('}');if(!node_fs_1['default']['existsSync'](_0x5d698e))node_fs_1['default']['mkdirSync'](_0x5d698e,{'recursive':!![]});node_fs_1['default']['writeFileSync'](_0xaad344,_0x620f20['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(_0x417ae1,_0x36caef,_0x222554,_0x5061b5){if(_0x5061b5===undefined)_0x5061b5=_0x222554;var _0x32e3ae=Object['getOwnPropertyDescriptor'](_0x36caef,_0x222554);if(!_0x32e3ae||('get'in _0x32e3ae?!_0x36caef['__esModule']:_0x32e3ae['writable']||_0x32e3ae['configurable'])){_0x32e3ae={'enumerable':!![],'get':function(){return _0x36caef[_0x222554];}};}Object['defineProperty'](_0x417ae1,_0x5061b5,_0x32e3ae);}:function(_0x2fb2c6,_0x1a90f2,_0x3b783d,_0x2d5a13){if(_0x2d5a13===undefined)_0x2d5a13=_0x3b783d;_0x2fb2c6[_0x2d5a13]=_0x1a90f2[_0x3b783d];});var __setModuleDefault=this&&this['__setModuleDefault']||(Object['create']?function(_0x7fe93a,_0x20d766){Object['defineProperty'](_0x7fe93a,'default',{'enumerable':!![],'value':_0x20d766});}:function(_0x37af0f,_0x33a3de){_0x37af0f['default']=_0x33a3de;});var __importStar=this&&this['__importStar']||(function(){var _0x5324ef=function(_0x38f8d6){_0x5324ef=Object['getOwnPropertyNames']||function(_0x2a28fe){var _0x39209d=[];for(var _0xe5c3d0 in _0x2a28fe)if(Object['prototype']['hasOwnProperty']['call'](_0x2a28fe,_0xe5c3d0))_0x39209d[_0x39209d['length']]=_0xe5c3d0;return _0x39209d;};return _0x5324ef(_0x38f8d6);};return function(_0x4d501e){if(_0x4d501e&&_0x4d501e['__esModule'])return _0x4d501e;var _0x8b39d0={};if(_0x4d501e!=null)for(var _0x3b2110=_0x5324ef(_0x4d501e),_0xfcd8e4=0x173f+0x26*-0x59+-0xa09;_0xfcd8e4<_0x3b2110['length'];_0xfcd8e4++)if(_0x3b2110[_0xfcd8e4]!=='default')__createBinding(_0x8b39d0,_0x4d501e,_0x3b2110[_0xfcd8e4]);__setModuleDefault(_0x8b39d0,_0x4d501e);return _0x8b39d0;};}());var __importDefault=this&&this['__importDefault']||function(_0x11c245){return _0x11c245&&_0x11c245['__esModule']?_0x11c245:{'default':_0x11c245};};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 _0x3c73a0=process['cwd']();const _0x367690=node_path_1['default']['join'](_0x3c73a0,'types');const _0x573600=node_path_1['default']['join'](_0x367690,'auto-di.d.ts');const _0x502b87=node_path_1['default']['join'](_0x3c73a0,'index.js');console['log']('---\x20๐Ÿง™โ€โ™‚๏ธ\x20Kythia\x20Type\x20Wizard\x20(Smart\x20Mode)\x20---');console['log']('๐Ÿ“–\x20Reading\x20index.js\x20to\x20find\x20injected\x20helpers...');const _0x4d0664=new Set();try{const _0x2d57bf=node_fs_1['default']['readFileSync'](_0x502b87,'utf8');const _0x2afbe2=parser['parse'](_0x2d57bf,{'sourceType':'module','plugins':['typescript','objectRestSpread'],'errorRecovery':!![]});(0x2605*0x1+-0x1*-0xe13+0x2*-0x1a0c,traverse_1['default'])(_0x2afbe2,{'VariableDeclarator'(_0x5734d1){if(_0x5734d1['node']['id']['type']==='Identifier'&&_0x5734d1['node']['id']['name']==='dependencies'){const _0x5b3b64=_0x5734d1['node']['init'];if(_0x5b3b64&&_0x5b3b64['type']==='ObjectExpression'){const _0x2f1777=_0x5b3b64['properties']['find'](_0x240114=>_0x240114['key']['name']==='helpers');if(_0x2f1777&&_0x2f1777['value']['type']==='ObjectExpression'){_0x2f1777['value']['properties']['forEach'](_0x107db5=>{if(_0x107db5['key']?.['name']){_0x4d0664['add'](_0x107db5['key']['name']);}});}}}}});}catch(_0x72baac){console['warn']('โš ๏ธ\x20Failed\x20to\x20parse\x20index.js.\x20Generating\x20all\x20helpers\x20as\x20fallback.');}console['log']('\x20\x20\x20>\x20Detected\x20keys:\x20\x1b[36m'+Array['from'](_0x4d0664)['join'](',\x20')+'\x1b[0m');const _0x444a6f={};const _0x15b825={};const _0x5d6d6b=_0x311b10=>{const _0x39f359=_0x311b10['split'](node_path_1['default']['sep'])['join']('/');if(_0x39f359['includes']('/addons/'))return'@addons/'+_0x39f359['split']('/addons/')[-0x1*-0xc61+-0x1147*0x1+0xfb*0x5]['replace'](/\.(js|ts)$/,'');if(_0x39f359['includes']('/src/'))return'@src/'+_0x39f359['split']('/src/')[-0x1*-0x1ff6+-0xb93+-0x1462]['replace'](/\.(js|ts)$/,'');return null;};glob_1['glob']['sync']('{src,addons/**}/models/*.{js,ts}',{'cwd':_0x3c73a0,'ignore':['**/*.d.ts']})['forEach'](_0x58238b=>{const _0x1c8a61=node_path_1['default']['basename'](_0x58238b,node_path_1['default']['extname'](_0x58238b));const _0xeb1e54=_0x5d6d6b(node_path_1['default']['join'](_0x3c73a0,_0x58238b));if(_0xeb1e54)_0x444a6f[_0x1c8a61]=_0xeb1e54;});glob_1['glob']['sync']('{src,addons/**}/helpers/*.{js,ts}',{'cwd':_0x3c73a0,'ignore':['**/*.d.ts']})['forEach'](_0x29b4cd=>{const _0x30de0d=node_path_1['default']['basename'](_0x29b4cd,node_path_1['default']['extname'](_0x29b4cd));if(_0x4d0664['size']>0x1*0x11e9+0x4*-0x139+-0xd05&&!_0x4d0664['has'](_0x30de0d))return;const _0x3f42b1=_0x5d6d6b(node_path_1['default']['join'](_0x3c73a0,_0x29b4cd));if(_0x3f42b1)_0x15b825[_0x30de0d]=_0x3f42b1;});const _0x4f8079=['//\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'](_0x444a6f)['sort']()['forEach'](([_0x5706b7,_0x556aa])=>{_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x5706b7+':\x20typeof\x20import(\x27'+_0x556aa+'\x27);');});_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20//\x20---\x20Helpers\x20(Injected\x20in\x20index.js)\x20---');_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20helpers:\x20{');_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20discord:\x20typeof\x20import(\x22@coreHelpers/discord\x22);');if(_0x4d0664['has']('color')){_0x4f8079['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'](_0x15b825)['sort']()['forEach'](([_0x3ae6d2,_0xe013f2])=>{if(_0x3ae6d2==='discord')return;_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20'+_0x3ae6d2+':\x20typeof\x20import(\x27'+_0xe013f2+'\x27);');});_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20};');_0x4f8079['push']('\x20\x20\x20\x20\x20\x20\x20\x20}');_0x4f8079['push']('\x20\x20\x20\x20}');_0x4f8079['push']('}');if(!node_fs_1['default']['existsSync'](_0x367690))node_fs_1['default']['mkdirSync'](_0x367690,{'recursive':!![]});node_fs_1['default']['writeFileSync'](_0x573600,_0x4f8079['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(_0x21b60e){return _0x21b60e&&_0x21b60e['__esModule']?_0x21b60e:{'default':_0x21b60e};};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'](_0x20033f){_0x20033f['option']('-p,\x20--path\x20<path>','Custom\x20output\x20path\x20for\x20documentation');}async['handle'](_0x17a141){console['log'](picocolors_1['default']['cyan']('\x0a๐Ÿš€\x20Starting\x20documentation\x20generator...\x0a'));if(_0x17a141['path']){this['outputDir']=node_path_1['default']['resolve'](process['cwd'](),_0x17a141['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 _0x30626a=node_fs_1['default']['readdirSync'](this['addonsDir'],{'withFileTypes':!![]})['filter'](_0x4d845d=>_0x4d845d['isDirectory']()&&!_0x4d845d['name']['startsWith']('_'));for(const _0x506fd4 of _0x30626a){const _0x519991=node_path_1['default']['join'](this['addonsDir'],_0x506fd4['name'],'commands');if(!node_fs_1['default']['existsSync'](_0x519991))continue;console['log'](picocolors_1['default']['blue']('๐Ÿ“ฆ\x20Processing\x20Addon:\x20'+_0x506fd4['name']));this['processDirectory'](_0x519991,_0x506fd4['name']);}console['log'](picocolors_1['default']['green']('\x0aโœ…\x20Writing\x20to\x20.md\x20files...'));for(const [_0x25ff46,_0x5b2837]of Object['entries'](this['markdownBuffers'])){const _0x11cf40=node_path_1['default']['join'](this['outputDir'],_0x25ff46+'.md');node_fs_1['default']['writeFileSync'](_0x11cf40,_0x5b2837);console['log'](picocolors_1['default']['green']('\x20\x20\x20->\x20Generated:\x20'+_0x25ff46+'.md'));}console['log'](picocolors_1['default']['green']('\x0a๐ŸŽ‰\x20Finished!'));}['getSlashCommandBuilder'](_0x58f253){if(!_0x58f253)return null;return _0x58f253['slashCommand']||_0x58f253['data']||null;}['getOptionType'](_0x117fe1){switch(_0x117fe1){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'](_0x3cfc76,_0xa8b4eb=![]){let _0xdd2ce4=_0xa8b4eb?'':'###\x20โš™๏ธ\x20Options\x0a\x0a';for(const _0x208148 of _0x3cfc76){_0xdd2ce4+='-\x20**`'+_0x208148['name']+(_0x208148['required']?'*':'')+'`**\x0a';_0xdd2ce4+='\x20\x20-\x20**Description:**\x20'+_0x208148['description']+'\x0a';_0xdd2ce4+='\x20\x20-\x20**Type:**\x20'+this['getOptionType'](_0x208148['type'])+'\x0a';if(_0x208148['choices']){const _0x5fb2b4=_0x208148['choices']['map'](_0x280307=>'`'+_0x280307['name']+'`\x20(`'+_0x280307['value']+'`)')['join'](',\x20');_0xdd2ce4+='\x20\x20-\x20**Choices:**\x20'+_0x5fb2b4+'\x0a';}}return _0xdd2ce4;}['generateSubcommandDocs'](_0x5097f2,_0x470148,_0x46ac64=null,_0x5680d3=null){const _0x37acea=_0x46ac64?_0x46ac64+'\x20':'';const _0x5998d2=_0x470148['options']||[];const _0x2cc2f5=_0x5998d2['map'](_0x36dfb5=>{const _0x5d9d96='<'+_0x36dfb5['name']['toLowerCase']()+'>';return _0x36dfb5['required']?_0x5d9d96:'['+_0x5d9d96+']';})['join']('\x20');const _0x1066d0=_0x470148['description']||'';const _0x4ed6b3=_0x1066d0['charAt'](-0x6e9*0x2+0xb54+0x27e)['toUpperCase']()+_0x1066d0['slice'](0x2536+-0x1*-0x1d7b+-0x2c*0x184);let _0x81684a='**`/'+_0x5097f2+'\x20'+_0x37acea+_0x470148['name']+(_0x2cc2f5?'\x20'+_0x2cc2f5:'')+'`**\x0a';_0x81684a+='>\x20'+_0x4ed6b3+'\x0a';if(_0x5680d3&&Array['isArray'](_0x5680d3['aliases'])&&_0x5680d3['aliases']['length']>0x17c0+0x131e*-0x1+-0x4a2){_0x81684a+='>\x20_Aliases:\x20'+_0x5680d3['aliases']['map'](_0x5a8fa9=>'`'+_0x5a8fa9+'`')['join'](',\x20')+'_\x0a';}if(_0x5680d3?.['ownerOnly']){_0x81684a+='>\x20_Owner\x20Only:\x20Yes_\x0a';}if(_0x5680d3?.['cooldown']){_0x81684a+='>\x20_Cooldown:\x20'+_0x5680d3['cooldown']+'\x20seconds_\x0a';}if(_0x5680d3?.['permissions']&&_0x5680d3['permissions']['length']>0x2e9*-0x1+0x29*0xf+0x82){const _0x517f49=new discord_js_1['PermissionsBitField'](_0x5680d3['permissions'])['toArray']();_0x81684a+='>\x20_User\x20Permissions:\x20'+_0x517f49['map'](_0x25c96e=>'`'+_0x25c96e+'`')['join'](',\x20')+'_\x0a';}if(_0x5680d3?.['botPermissions']&&_0x5680d3['botPermissions']['length']>-0x20a4+0x25*-0x109+-0x7f*-0x8f){const _0x3fa077=new discord_js_1['PermissionsBitField'](_0x5680d3['botPermissions'])['toArray']();_0x81684a+='>\x20_Bot\x20Permissions:\x20'+_0x3fa077['map'](_0x5873d7=>'`'+_0x5873d7+'`')['join'](',\x20')+'_\x0a';}_0x81684a+='\x0a';if(_0x5998d2['length']>-0x1048+-0xa64+-0x239*-0xc){_0x81684a+='**Options\x20for\x20this\x20subcommand:**\x0a';_0x81684a+=this['generateOptionsDocs'](_0x5998d2,!![]);}else{_0x81684a+='\x0a';}return _0x81684a;}['generateMetadataDocs'](_0x24ab7b){let _0x59a13a='###\x20๐Ÿ“‹\x20Details\x0a\x0a';let _0x4cefa3=![];if(_0x24ab7b['aliases']&&Array['isArray'](_0x24ab7b['aliases'])&&_0x24ab7b['aliases']['length']>-0x1742+0x1ef+0x1553){_0x59a13a+='-\x20**Aliases:**\x20'+_0x24ab7b['aliases']['map'](_0x48691f=>'`'+_0x48691f+'`')['join'](',\x20')+'\x0a';_0x4cefa3=!![];}if(_0x24ab7b['ownerOnly']){_0x59a13a+='-\x20**Owner\x20Only:**\x20โœ…\x20Yes\x0a';_0x4cefa3=!![];}if(_0x24ab7b['cooldown']){_0x59a13a+='-\x20**Cooldown:**\x20'+_0x24ab7b['cooldown']+'\x20seconds\x0a';_0x4cefa3=!![];}if(_0x24ab7b['permissions']&&_0x24ab7b['permissions']['length']>0x4*0x6b+-0x19db*0x1+0x182f*0x1){const _0x15b954=new discord_js_1['PermissionsBitField'](_0x24ab7b['permissions'])['toArray']();_0x59a13a+='-\x20**User\x20Permissions:**\x20`'+_0x15b954['join']('`,\x20`')+'`\x0a';_0x4cefa3=!![];}if(_0x24ab7b['botPermissions']&&_0x24ab7b['botPermissions']['length']>-0xcfb+-0x1cbc+0x1*0x29b7){const _0x30bd42=new discord_js_1['PermissionsBitField'](_0x24ab7b['botPermissions'])['toArray']();_0x59a13a+='-\x20**Bot\x20Permissions:**\x20`'+_0x30bd42['join']('`,\x20`')+'`\x0a';_0x4cefa3=!![];}return _0x4cefa3?_0x59a13a:'';}['generateCommandMarkdown'](_0x16bf33,_0x2ac7b3,_0x40311c=null){const _0x25f292=_0x16bf33['name'];let _0xa6f9c7='###\x20๐Ÿ’พ\x20`/'+_0x25f292+'`\x0a\x0a';_0xa6f9c7+='**Description:**\x20'+_0x16bf33['description']+'\x0a\x0a';_0xa6f9c7+=this['generateMetadataDocs'](_0x2ac7b3);const _0x5e4c9a=_0x16bf33['options']?.['filter'](_0x5694e1=>_0x5694e1['type']===discord_js_1['ApplicationCommandOptionType']['Subcommand']||_0x5694e1['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);const _0x17acbf=_0x16bf33['options']?.['filter'](_0xd6f94e=>_0xd6f94e['type']!==discord_js_1['ApplicationCommandOptionType']['Subcommand']&&_0xd6f94e['type']!==discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);_0xa6f9c7+='###\x20๐Ÿ’ป\x20Usage\x0a\x0a';if(_0x5e4c9a&&_0x5e4c9a['length']>0x2*-0x5d+-0x71*0x13+-0x1*-0x91d){_0x5e4c9a['forEach'](_0x241775=>{if(_0x241775['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){_0x241775['options']['forEach'](_0x5278e6=>{const _0x86b5f4=(_0x5278e6['options']||[])['map'](_0x2245be=>_0x2245be['required']?'<'+_0x2245be['name']+'>':'['+_0x2245be['name']+']')['join']('\x20');_0xa6f9c7+='`/'+_0x25f292+'\x20'+_0x241775['name']+'\x20'+_0x5278e6['name']+(_0x86b5f4?'\x20'+_0x86b5f4:'')+'`\x0a';});}else{const _0x1fd109=(_0x241775['options']||[])['map'](_0x20e890=>_0x20e890['required']?'<'+_0x20e890['name']+'>':'['+_0x20e890['name']+']')['join']('\x20');_0xa6f9c7+='`/'+_0x25f292+'\x20'+_0x241775['name']+(_0x1fd109?'\x20'+_0x1fd109:'')+'`\x0a';}});_0xa6f9c7+='\x0a';}else if(_0x17acbf&&_0x17acbf['length']>-0x1*-0x14e7+0x4a1+-0x2*0xcc4){const _0x3a42d2=_0x17acbf['map'](_0x421ddb=>_0x421ddb['required']?'<'+_0x421ddb['name']+'>':'['+_0x421ddb['name']+']')['join']('\x20');_0xa6f9c7+='`/'+_0x25f292+(_0x3a42d2?'\x20'+_0x3a42d2:'')+'`\x0a\x0a';}else{_0xa6f9c7+='`/'+_0x25f292+'`\x0a\x0a';}if(_0x5e4c9a&&_0x5e4c9a['length']>-0x243+-0xe60+0x10a3){_0xa6f9c7+='###\x20๐Ÿ”ง\x20Subcommands\x0a\x0a';for(const _0x15c6da of _0x5e4c9a){if(_0x15c6da['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){for(const _0x344f9e of _0x15c6da['options']){const _0x23d5c7=_0x40311c?.[_0x344f9e['name']]?_0x40311c[_0x344f9e['name']]:null;_0xa6f9c7+=this['generateSubcommandDocs'](_0x25f292,_0x344f9e,_0x15c6da['name'],_0x23d5c7);}}else{const _0x4faf53=_0x40311c?.[_0x15c6da['name']]?_0x40311c[_0x15c6da['name']]:null;_0xa6f9c7+=this['generateSubcommandDocs'](_0x25f292,_0x15c6da,null,_0x4faf53);}}}else if(_0x17acbf&&_0x17acbf['length']>-0x122f+-0x2211+0x3440){_0xa6f9c7+=this['generateOptionsDocs'](_0x17acbf);}return _0xa6f9c7;}['processSplitCommandDirectory'](_0x1d20c9,_0x5b37bd){console['log']('[SPLIT]\x20Assembling\x20\x27'+_0x5b37bd+'\x27\x20from\x20folder...');try{const _0x126edc=node_path_1['default']['join'](_0x1d20c9,'_command.js');const _0x1ea617=require(_0x126edc);if(_0x1ea617['ownerOnly']||_0x1ea617['teamOnly'])return;const _0x340ad3=this['getSlashCommandBuilder'](_0x1ea617);if(!_0x340ad3)return;const _0x2f1a3e={};const _0x3e50a5=node_fs_1['default']['readdirSync'](_0x1d20c9,{'withFileTypes':!![]});for(const _0x531007 of _0x3e50a5){const _0x13ef3e=node_path_1['default']['join'](_0x1d20c9,_0x531007['name']);if(_0x531007['isFile']()&&_0x531007['name']['endsWith']('.js')&&_0x531007['name']!=='_command.js'){const _0x4fed7a=require(_0x13ef3e);const _0x2ea500=_0x4fed7a['data']||_0x4fed7a['slashCommand'];if(!_0x2ea500)continue;const _0x3d7b00=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0x2ea500==='function'){_0x2ea500(_0x3d7b00);}else if(typeof _0x2ea500==='object'){_0x3d7b00['setName'](_0x2ea500['name'])['setDescription'](_0x2ea500['description']);if(_0x2ea500['options']){_0x3d7b00['options']=_0x2ea500['options'];}}if(_0x3d7b00['name']){_0x340ad3['addSubcommand'](_0x3d7b00);_0x2f1a3e[_0x3d7b00['name']]={'aliases':_0x4fed7a['aliases'],'ownerOnly':_0x4fed7a['ownerOnly'],'cooldown':_0x4fed7a['cooldown'],'permissions':_0x4fed7a['permissions'],'botPermissions':_0x4fed7a['botPermissions']};}}else if(_0x531007['isDirectory']()&&!_0x531007['name']['startsWith']('_')){const _0x19cb1c=node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x13ef3e,'_group.js'))?node_path_1['default']['join'](_0x13ef3e,'_group.js'):node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x13ef3e,'_command.js'))?node_path_1['default']['join'](_0x13ef3e,'_command.js'):null;if(!_0x19cb1c)continue;const _0x2b2d80=require(_0x19cb1c);const _0x45ef37=_0x2b2d80['data']||_0x2b2d80['slashCommand'];if(!_0x45ef37)continue;const _0x131568=new discord_js_1['SlashCommandSubcommandGroupBuilder']();if(typeof _0x45ef37==='function'){_0x45ef37(_0x131568);}else{_0x131568['setName'](_0x45ef37['name'])['setDescription'](_0x45ef37['description']);}const _0x3ae6ad=node_fs_1['default']['readdirSync'](_0x13ef3e)['filter'](_0x4f26e7=>_0x4f26e7['endsWith']('.js')&&!_0x4f26e7['startsWith']('_'));for(const _0x1005c8 of _0x3ae6ad){const _0x1c4f93=require(node_path_1['default']['join'](_0x13ef3e,_0x1005c8));const _0xd14cfd=_0x1c4f93['data']||_0x1c4f93['slashCommand'];if(!_0xd14cfd)continue;const _0x1cac33=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0xd14cfd==='function'){_0xd14cfd(_0x1cac33);}else{_0x1cac33['setName'](_0xd14cfd['name'])['setDescription'](_0xd14cfd['description']);if(_0xd14cfd['options'])_0x1cac33['options']=_0xd14cfd['options'];}_0x131568['addSubcommand'](_0x1cac33);_0x2f1a3e[_0x1cac33['name']]={'aliases':_0x1c4f93['aliases'],'permissions':_0x1c4f93['permissions']};}_0x340ad3['addSubcommandGroup'](_0x131568);}}const _0x505901=_0x340ad3['toJSON']();const _0x1af29a=this['generateCommandMarkdown'](_0x505901,_0x1ea617,_0x2f1a3e);if(!this['markdownBuffers'][_0x5b37bd]){this['markdownBuffers'][_0x5b37bd]='##\x20๐Ÿ“\x20Command\x20Category:\x20'+(_0x5b37bd['charAt'](-0x233f+0xf12+0x142d)['toUpperCase']()+_0x5b37bd['slice'](-0x1f7a+-0x12*0x6e+0x2737))+'\x0a\x0a';}this['markdownBuffers'][_0x5b37bd]+=_0x1af29a+'\x0a\x0a';}catch(_0x22867e){console['error']('โŒ\x20Failed\x20to\x20assemble\x20split\x20command\x20in\x20'+_0x5b37bd+':',_0x22867e);}}['processSimpleDirectory'](_0x23d0a0,_0x4f5659){const _0x4b4911=node_fs_1['default']['readdirSync'](_0x23d0a0)['filter'](_0x2a3fe8=>_0x2a3fe8['endsWith']('.js')&&!_0x2a3fe8['startsWith']('_'));for(const _0x136bb5 of _0x4b4911){try{const _0x5e3e76=node_path_1['default']['join'](_0x23d0a0,_0x136bb5);const _0xcbe312=require(_0x5e3e76);if(_0xcbe312['ownerOnly']||_0xcbe312['teamOnly'])continue;const _0x2f4200=this['getSlashCommandBuilder'](_0xcbe312);if(!_0x2f4200)continue;let _0x5be1aa;if(typeof _0x2f4200['toJSON']==='function'){_0x5be1aa=_0x2f4200['toJSON']();}else{_0x5be1aa=_0x2f4200;}const _0x2bc1c7=this['generateCommandMarkdown'](_0x5be1aa,_0xcbe312);if(!this['markdownBuffers'][_0x4f5659]){this['markdownBuffers'][_0x4f5659]='##\x20๐Ÿ“\x20Command\x20Category:\x20'+(_0x4f5659['charAt'](0x202*-0x1+-0x1e68+0x206a)['toUpperCase']()+_0x4f5659['slice'](-0x10b1+-0x1f25+-0x14b*-0x25))+'\x0a\x0a';}this['markdownBuffers'][_0x4f5659]+=_0x2bc1c7+'\x0a\x0a';console['log']('['+_0x4f5659['toUpperCase']()+']\x20Added\x20\x27'+(_0x5be1aa['name']||_0x136bb5)+'\x27\x20to\x20buffer');}catch(_0x3da2c0){console['error']('โŒ\x20Failed\x20to\x20process\x20file\x20'+_0x136bb5+'\x20in\x20category\x20'+_0x4f5659+':\x20'+_0x3da2c0['message']);}}}['processDirectory'](_0x387965,_0x407db3){const _0x3da876=node_path_1['default']['join'](_0x387965,'_command.js');if(node_fs_1['default']['existsSync'](_0x3da876)){this['processSplitCommandDirectory'](_0x387965,_0x407db3);}else{this['processSimpleDirectory'](_0x387965,_0x407db3);const _0x2f3b52=node_fs_1['default']['readdirSync'](_0x387965,{'withFileTypes':!![]});for(const _0x752e60 of _0x2f3b52){if(_0x752e60['isDirectory']()&&!_0x752e60['name']['startsWith']('_')){const _0x3430e1=node_path_1['default']['join'](_0x387965,_0x752e60['name']);const _0x46ef3d=_0x407db3;this['processDirectory'](_0x3430e1,_0x46ef3d);}}}}['registerModuleAliases'](_0x5b666f){try{const _0x26f967=node_path_1['default']['join'](_0x5b666f,'package.json');if(!node_fs_1['default']['existsSync'](_0x26f967))return;const _0x58980b=JSON['parse'](node_fs_1['default']['readFileSync'](_0x26f967,'utf8'));const _0xe08667=_0x58980b['_moduleAliases'];if(!_0xe08667||typeof _0xe08667!=='object')return;const _0xc8e82f=require('node:module');const _0x5735b3=_0xc8e82f['_resolveFilename'];_0xc8e82f['_resolveFilename']=function(_0x178828,_0x36ec7d){for(const [_0x2a1cbe,_0x560018]of Object['entries'](_0xe08667)){if(_0x178828===_0x2a1cbe||_0x178828['startsWith'](_0x2a1cbe+'/')){const _0x564028=_0x178828['substring'](_0x2a1cbe['length']);const _0x3b62bc=node_path_1['default']['join'](_0x5b666f,_0x560018,_0x564028);return _0x5735b3['call'](this,_0x3b62bc,_0x36ec7d);}}return _0x5735b3['call'](this,_0x178828,_0x36ec7d);};console['log'](picocolors_1['default']['green']('\x20\x20\x20โœ“\x20Registered\x20'+Object['keys'](_0xe08667)['length']+'\x20module\x20alias(es)'));}catch(_0x43a66f){}}}exports['default']=DocsGenerateCommand;
1
+ 'use strict';var __importDefault=this&&this['__importDefault']||function(_0x2c40c6){return _0x2c40c6&&_0x2c40c6['__esModule']?_0x2c40c6:{'default':_0x2c40c6};};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'](_0x67f8ca){_0x67f8ca['option']('-p,\x20--path\x20<path>','Custom\x20output\x20path\x20for\x20documentation');}async['handle'](_0x491d63){console['log'](picocolors_1['default']['cyan']('\x0a๐Ÿš€\x20Starting\x20documentation\x20generator...\x0a'));if(_0x491d63['path']){this['outputDir']=node_path_1['default']['resolve'](process['cwd'](),_0x491d63['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 _0x312f15=node_fs_1['default']['readdirSync'](this['addonsDir'],{'withFileTypes':!![]})['filter'](_0x198984=>_0x198984['isDirectory']()&&!_0x198984['name']['startsWith']('_'));for(const _0x52331b of _0x312f15){const _0x2b8087=node_path_1['default']['join'](this['addonsDir'],_0x52331b['name'],'commands');if(!node_fs_1['default']['existsSync'](_0x2b8087))continue;console['log'](picocolors_1['default']['blue']('๐Ÿ“ฆ\x20Processing\x20Addon:\x20'+_0x52331b['name']));this['processDirectory'](_0x2b8087,_0x52331b['name']);}console['log'](picocolors_1['default']['green']('\x0aโœ…\x20Writing\x20to\x20.md\x20files...'));for(const [_0x150f84,_0x4b803f]of Object['entries'](this['markdownBuffers'])){const _0x543d2c=node_path_1['default']['join'](this['outputDir'],_0x150f84+'.md');node_fs_1['default']['writeFileSync'](_0x543d2c,_0x4b803f);console['log'](picocolors_1['default']['green']('\x20\x20\x20->\x20Generated:\x20'+_0x150f84+'.md'));}console['log'](picocolors_1['default']['green']('\x0a๐ŸŽ‰\x20Finished!'));}['getSlashCommandBuilder'](_0x2e82df){if(!_0x2e82df)return null;return _0x2e82df['slashCommand']||_0x2e82df['data']||null;}['getOptionType'](_0x40a5b6){switch(_0x40a5b6){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'](_0x1a6359,_0xaed181=![]){let _0x46a260=_0xaed181?'':'###\x20โš™๏ธ\x20Options\x0a\x0a';for(const _0x16d39d of _0x1a6359){_0x46a260+='-\x20**`'+_0x16d39d['name']+(_0x16d39d['required']?'*':'')+'`**\x0a';_0x46a260+='\x20\x20-\x20**Description:**\x20'+_0x16d39d['description']+'\x0a';_0x46a260+='\x20\x20-\x20**Type:**\x20'+this['getOptionType'](_0x16d39d['type'])+'\x0a';if(_0x16d39d['choices']){const _0x57a62b=_0x16d39d['choices']['map'](_0x5e3a74=>'`'+_0x5e3a74['name']+'`\x20(`'+_0x5e3a74['value']+'`)')['join'](',\x20');_0x46a260+='\x20\x20-\x20**Choices:**\x20'+_0x57a62b+'\x0a';}}return _0x46a260;}['generateSubcommandDocs'](_0xe5883a,_0x29dc70,_0x460a99=null,_0x548eb1=null){const _0x14e388=_0x460a99?_0x460a99+'\x20':'';const _0x2872bf=_0x29dc70['options']||[];const _0x4ec9ac=_0x2872bf['map'](_0x4e7749=>{const _0x3c7359='<'+_0x4e7749['name']['toLowerCase']()+'>';return _0x4e7749['required']?_0x3c7359:'['+_0x3c7359+']';})['join']('\x20');const _0x27b3ae=_0x29dc70['description']||'';const _0x30a92e=_0x27b3ae['charAt'](0x8b*0x2f+-0x1*-0x15d7+-0x2f5c)['toUpperCase']()+_0x27b3ae['slice'](0x1*0x21dd+-0x1bb*-0x1+-0x2397);let _0x1c57f6='**`/'+_0xe5883a+'\x20'+_0x14e388+_0x29dc70['name']+(_0x4ec9ac?'\x20'+_0x4ec9ac:'')+'`**\x0a';_0x1c57f6+='>\x20'+_0x30a92e+'\x0a';if(_0x548eb1&&Array['isArray'](_0x548eb1['aliases'])&&_0x548eb1['aliases']['length']>-0x77*0x1+0x75*-0x29+0x1334){_0x1c57f6+='>\x20_Aliases:\x20'+_0x548eb1['aliases']['map'](_0x55adac=>'`'+_0x55adac+'`')['join'](',\x20')+'_\x0a';}if(_0x548eb1?.['ownerOnly']){_0x1c57f6+='>\x20_Owner\x20Only:\x20Yes_\x0a';}if(_0x548eb1?.['cooldown']){_0x1c57f6+='>\x20_Cooldown:\x20'+_0x548eb1['cooldown']+'\x20seconds_\x0a';}if(_0x548eb1?.['permissions']&&_0x548eb1['permissions']['length']>-0x5bd+-0x205f+0x261c){const _0x4fe7cf=new discord_js_1['PermissionsBitField'](_0x548eb1['permissions'])['toArray']();_0x1c57f6+='>\x20_User\x20Permissions:\x20'+_0x4fe7cf['map'](_0x1074bd=>'`'+_0x1074bd+'`')['join'](',\x20')+'_\x0a';}if(_0x548eb1?.['botPermissions']&&_0x548eb1['botPermissions']['length']>-0x40*-0x20+-0x1*-0x4ba+-0xcba){const _0x294c0b=new discord_js_1['PermissionsBitField'](_0x548eb1['botPermissions'])['toArray']();_0x1c57f6+='>\x20_Bot\x20Permissions:\x20'+_0x294c0b['map'](_0xa842ff=>'`'+_0xa842ff+'`')['join'](',\x20')+'_\x0a';}_0x1c57f6+='\x0a';if(_0x2872bf['length']>-0x1a81+-0xb40+0x25c1){_0x1c57f6+='**Options\x20for\x20this\x20subcommand:**\x0a';_0x1c57f6+=this['generateOptionsDocs'](_0x2872bf,!![]);}else{_0x1c57f6+='\x0a';}return _0x1c57f6;}['generateMetadataDocs'](_0x20bcbc){let _0x2c449c='###\x20๐Ÿ“‹\x20Details\x0a\x0a';let _0x2f8c65=![];if(_0x20bcbc['aliases']&&Array['isArray'](_0x20bcbc['aliases'])&&_0x20bcbc['aliases']['length']>0x2400+0x4f5*-0x1+-0x1f0b){_0x2c449c+='-\x20**Aliases:**\x20'+_0x20bcbc['aliases']['map'](_0x2f0c57=>'`'+_0x2f0c57+'`')['join'](',\x20')+'\x0a';_0x2f8c65=!![];}if(_0x20bcbc['ownerOnly']){_0x2c449c+='-\x20**Owner\x20Only:**\x20โœ…\x20Yes\x0a';_0x2f8c65=!![];}if(_0x20bcbc['cooldown']){_0x2c449c+='-\x20**Cooldown:**\x20'+_0x20bcbc['cooldown']+'\x20seconds\x0a';_0x2f8c65=!![];}if(_0x20bcbc['permissions']&&_0x20bcbc['permissions']['length']>-0xb8d*0x3+0x2ab+0x5c*0x59){const _0x2c9a2a=new discord_js_1['PermissionsBitField'](_0x20bcbc['permissions'])['toArray']();_0x2c449c+='-\x20**User\x20Permissions:**\x20`'+_0x2c9a2a['join']('`,\x20`')+'`\x0a';_0x2f8c65=!![];}if(_0x20bcbc['botPermissions']&&_0x20bcbc['botPermissions']['length']>-0x1*-0x24cd+0x206d+0x229d*-0x2){const _0x41cdb0=new discord_js_1['PermissionsBitField'](_0x20bcbc['botPermissions'])['toArray']();_0x2c449c+='-\x20**Bot\x20Permissions:**\x20`'+_0x41cdb0['join']('`,\x20`')+'`\x0a';_0x2f8c65=!![];}return _0x2f8c65?_0x2c449c:'';}['generateCommandMarkdown'](_0xf276fc,_0x26a296,_0x5279bc=null){const _0x3a2848=_0xf276fc['name'];let _0xb3c838='###\x20๐Ÿ’พ\x20`/'+_0x3a2848+'`\x0a\x0a';_0xb3c838+='**Description:**\x20'+_0xf276fc['description']+'\x0a\x0a';_0xb3c838+=this['generateMetadataDocs'](_0x26a296);const _0x320638=_0xf276fc['options']?.['filter'](_0x56ba24=>_0x56ba24['type']===discord_js_1['ApplicationCommandOptionType']['Subcommand']||_0x56ba24['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);const _0x1130e7=_0xf276fc['options']?.['filter'](_0x6e0fb=>_0x6e0fb['type']!==discord_js_1['ApplicationCommandOptionType']['Subcommand']&&_0x6e0fb['type']!==discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']);_0xb3c838+='###\x20๐Ÿ’ป\x20Usage\x0a\x0a';if(_0x320638&&_0x320638['length']>-0x31c*-0x2+0x3*-0x125+-0x1f*0x17){_0x320638['forEach'](_0x5d2f98=>{if(_0x5d2f98['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){_0x5d2f98['options']['forEach'](_0x3d0970=>{const _0x2879db=(_0x3d0970['options']||[])['map'](_0x34dc36=>_0x34dc36['required']?'<'+_0x34dc36['name']+'>':'['+_0x34dc36['name']+']')['join']('\x20');_0xb3c838+='`/'+_0x3a2848+'\x20'+_0x5d2f98['name']+'\x20'+_0x3d0970['name']+(_0x2879db?'\x20'+_0x2879db:'')+'`\x0a';});}else{const _0x108c58=(_0x5d2f98['options']||[])['map'](_0x3f0e31=>_0x3f0e31['required']?'<'+_0x3f0e31['name']+'>':'['+_0x3f0e31['name']+']')['join']('\x20');_0xb3c838+='`/'+_0x3a2848+'\x20'+_0x5d2f98['name']+(_0x108c58?'\x20'+_0x108c58:'')+'`\x0a';}});_0xb3c838+='\x0a';}else if(_0x1130e7&&_0x1130e7['length']>0xc02+0x12da+-0xf6e*0x2){const _0x50dfb8=_0x1130e7['map'](_0x1a7b0f=>_0x1a7b0f['required']?'<'+_0x1a7b0f['name']+'>':'['+_0x1a7b0f['name']+']')['join']('\x20');_0xb3c838+='`/'+_0x3a2848+(_0x50dfb8?'\x20'+_0x50dfb8:'')+'`\x0a\x0a';}else{_0xb3c838+='`/'+_0x3a2848+'`\x0a\x0a';}if(_0x320638&&_0x320638['length']>0x1017+0x1786+-0x1*0x279d){_0xb3c838+='###\x20๐Ÿ”ง\x20Subcommands\x0a\x0a';for(const _0x4e7a83 of _0x320638){if(_0x4e7a83['type']===discord_js_1['ApplicationCommandOptionType']['SubcommandGroup']){for(const _0x4cea17 of _0x4e7a83['options']){const _0x1f0f65=_0x5279bc?.[_0x4cea17['name']]?_0x5279bc[_0x4cea17['name']]:null;_0xb3c838+=this['generateSubcommandDocs'](_0x3a2848,_0x4cea17,_0x4e7a83['name'],_0x1f0f65);}}else{const _0x2c7184=_0x5279bc?.[_0x4e7a83['name']]?_0x5279bc[_0x4e7a83['name']]:null;_0xb3c838+=this['generateSubcommandDocs'](_0x3a2848,_0x4e7a83,null,_0x2c7184);}}}else if(_0x1130e7&&_0x1130e7['length']>-0x1945*-0x1+0x15ab+-0x2ef0){_0xb3c838+=this['generateOptionsDocs'](_0x1130e7);}return _0xb3c838;}['processSplitCommandDirectory'](_0x1aa997,_0x5e366b){console['log']('[SPLIT]\x20Assembling\x20\x27'+_0x5e366b+'\x27\x20from\x20folder...');try{const _0x265a2f=node_path_1['default']['join'](_0x1aa997,'_command.js');const _0x2c63d6=require(_0x265a2f);if(_0x2c63d6['ownerOnly']||_0x2c63d6['teamOnly'])return;const _0x50ae=this['getSlashCommandBuilder'](_0x2c63d6);if(!_0x50ae)return;const _0x54a41c={};const _0x256ad6=node_fs_1['default']['readdirSync'](_0x1aa997,{'withFileTypes':!![]});for(const _0x36f90d of _0x256ad6){const _0x373e83=node_path_1['default']['join'](_0x1aa997,_0x36f90d['name']);if(_0x36f90d['isFile']()&&_0x36f90d['name']['endsWith']('.js')&&_0x36f90d['name']!=='_command.js'){const _0x5982cd=require(_0x373e83);const _0x5bf4ca=_0x5982cd['data']||_0x5982cd['slashCommand'];if(!_0x5bf4ca)continue;const _0x12f5e8=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0x5bf4ca==='function'){_0x5bf4ca(_0x12f5e8);}else if(typeof _0x5bf4ca==='object'){_0x12f5e8['setName'](_0x5bf4ca['name'])['setDescription'](_0x5bf4ca['description']);if(_0x5bf4ca['options']){_0x12f5e8['options']=_0x5bf4ca['options'];}}if(_0x12f5e8['name']){_0x50ae['addSubcommand'](_0x12f5e8);_0x54a41c[_0x12f5e8['name']]={'aliases':_0x5982cd['aliases'],'ownerOnly':_0x5982cd['ownerOnly'],'cooldown':_0x5982cd['cooldown'],'permissions':_0x5982cd['permissions'],'botPermissions':_0x5982cd['botPermissions']};}}else if(_0x36f90d['isDirectory']()&&!_0x36f90d['name']['startsWith']('_')){const _0x529c9f=node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x373e83,'_group.js'))?node_path_1['default']['join'](_0x373e83,'_group.js'):node_fs_1['default']['existsSync'](node_path_1['default']['join'](_0x373e83,'_command.js'))?node_path_1['default']['join'](_0x373e83,'_command.js'):null;if(!_0x529c9f)continue;const _0x1c81c9=require(_0x529c9f);const _0x58bdda=_0x1c81c9['data']||_0x1c81c9['slashCommand'];if(!_0x58bdda)continue;const _0x28f0f5=new discord_js_1['SlashCommandSubcommandGroupBuilder']();if(typeof _0x58bdda==='function'){_0x58bdda(_0x28f0f5);}else{_0x28f0f5['setName'](_0x58bdda['name'])['setDescription'](_0x58bdda['description']);}const _0x464801=node_fs_1['default']['readdirSync'](_0x373e83)['filter'](_0x4da662=>_0x4da662['endsWith']('.js')&&!_0x4da662['startsWith']('_'));for(const _0x322d6c of _0x464801){const _0x3bd520=require(node_path_1['default']['join'](_0x373e83,_0x322d6c));const _0x3dde84=_0x3bd520['data']||_0x3bd520['slashCommand'];if(!_0x3dde84)continue;const _0x231e1c=new discord_js_1['SlashCommandSubcommandBuilder']();if(typeof _0x3dde84==='function'){_0x3dde84(_0x231e1c);}else{_0x231e1c['setName'](_0x3dde84['name'])['setDescription'](_0x3dde84['description']);if(_0x3dde84['options'])_0x231e1c['options']=_0x3dde84['options'];}_0x28f0f5['addSubcommand'](_0x231e1c);_0x54a41c[_0x231e1c['name']]={'aliases':_0x3bd520['aliases'],'permissions':_0x3bd520['permissions']};}_0x50ae['addSubcommandGroup'](_0x28f0f5);}}const _0x147e3f=_0x50ae['toJSON']();const _0x57cf12=this['generateCommandMarkdown'](_0x147e3f,_0x2c63d6,_0x54a41c);if(!this['markdownBuffers'][_0x5e366b]){this['markdownBuffers'][_0x5e366b]='##\x20๐Ÿ“\x20Command\x20Category:\x20'+(_0x5e366b['charAt'](0x97a*0x3+-0x17ed+-0x481)['toUpperCase']()+_0x5e366b['slice'](-0x2684+-0x8ba+0x2f3f))+'\x0a\x0a';}this['markdownBuffers'][_0x5e366b]+=_0x57cf12+'\x0a\x0a';}catch(_0x57d884){console['error']('โŒ\x20Failed\x20to\x20assemble\x20split\x20command\x20in\x20'+_0x5e366b+':',_0x57d884);}}['processSimpleDirectory'](_0x162a43,_0x330cfe){const _0x22b9a2=node_fs_1['default']['readdirSync'](_0x162a43)['filter'](_0x4ef5eb=>_0x4ef5eb['endsWith']('.js')&&!_0x4ef5eb['startsWith']('_'));for(const _0x336efc of _0x22b9a2){try{const _0x4cdc21=node_path_1['default']['join'](_0x162a43,_0x336efc);const _0x21fd8a=require(_0x4cdc21);if(_0x21fd8a['ownerOnly']||_0x21fd8a['teamOnly'])continue;const _0x1a31cb=this['getSlashCommandBuilder'](_0x21fd8a);if(!_0x1a31cb)continue;let _0x2af4fa;if(typeof _0x1a31cb['toJSON']==='function'){_0x2af4fa=_0x1a31cb['toJSON']();}else{_0x2af4fa=_0x1a31cb;}const _0x4138e1=this['generateCommandMarkdown'](_0x2af4fa,_0x21fd8a);if(!this['markdownBuffers'][_0x330cfe]){this['markdownBuffers'][_0x330cfe]='##\x20๐Ÿ“\x20Command\x20Category:\x20'+(_0x330cfe['charAt'](0x49*-0x65+0x1*0xc0d+0x10c0)['toUpperCase']()+_0x330cfe['slice'](0xd*0xa3+0x1*0x18a4+-0x20ea*0x1))+'\x0a\x0a';}this['markdownBuffers'][_0x330cfe]+=_0x4138e1+'\x0a\x0a';console['log']('['+_0x330cfe['toUpperCase']()+']\x20Added\x20\x27'+(_0x2af4fa['name']||_0x336efc)+'\x27\x20to\x20buffer');}catch(_0x2dbf17){console['error']('โŒ\x20Failed\x20to\x20process\x20file\x20'+_0x336efc+'\x20in\x20category\x20'+_0x330cfe+':\x20'+_0x2dbf17['message']);}}}['processDirectory'](_0x3471fd,_0x7eef2c){const _0x1f4023=node_path_1['default']['join'](_0x3471fd,'_command.js');if(node_fs_1['default']['existsSync'](_0x1f4023)){this['processSplitCommandDirectory'](_0x3471fd,_0x7eef2c);}else{this['processSimpleDirectory'](_0x3471fd,_0x7eef2c);const _0x285d15=node_fs_1['default']['readdirSync'](_0x3471fd,{'withFileTypes':!![]});for(const _0x2a5005 of _0x285d15){if(_0x2a5005['isDirectory']()&&!_0x2a5005['name']['startsWith']('_')){const _0x5e7cdf=node_path_1['default']['join'](_0x3471fd,_0x2a5005['name']);const _0x210518=_0x7eef2c;this['processDirectory'](_0x5e7cdf,_0x210518);}}}}['registerModuleAliases'](_0x16fc01){try{const _0x334c39=node_path_1['default']['join'](_0x16fc01,'package.json');if(!node_fs_1['default']['existsSync'](_0x334c39))return;const _0x17a617=JSON['parse'](node_fs_1['default']['readFileSync'](_0x334c39,'utf8'));const _0x4418fc=_0x17a617['_moduleAliases'];if(!_0x4418fc||typeof _0x4418fc!=='object')return;const _0x57889f=require('node:module');const _0xad6fb9=_0x57889f['_resolveFilename'];_0x57889f['_resolveFilename']=function(_0x3e0ce4,_0x5740a1){for(const [_0x17ae31,_0x2d21eb]of Object['entries'](_0x4418fc)){if(_0x3e0ce4===_0x17ae31||_0x3e0ce4['startsWith'](_0x17ae31+'/')){const _0x1377b7=_0x3e0ce4['substring'](_0x17ae31['length']);const _0x539de4=node_path_1['default']['join'](_0x16fc01,_0x2d21eb,_0x1377b7);return _0xad6fb9['call'](this,_0x539de4,_0x5740a1);}}return _0xad6fb9['call'](this,_0x3e0ce4,_0x5740a1);};console['log'](picocolors_1['default']['green']('\x20\x20\x20โœ“\x20Registered\x20'+Object['keys'](_0x4418fc)['length']+'\x20module\x20alias(es)'));}catch(_0x334727){}}}exports['default']=DocsGenerateCommand;