From 425f21a1f2264b87a44593f22e7ebc4fe3b3617a Mon Sep 17 00:00:00 2001 From: ShadowVirtual Date: Mon, 1 Apr 2024 19:02:22 -0800 Subject: [PATCH] Replaced with new code --- config.js | 93 +- eggactyl_config.yml | 8 + helpers/api.js | 190 +- helpers/createTicket.js | 174 +- helpers/cron.js | 170 +- helpers/helper.js | 100 +- helpers/interaction.js | 311 ++- helpers/ready.js | 92 +- index.js | 228 ++- package-lock.json | 2530 ++++++++++++++++++++++++ package.json | 3 +- slash-commands/create-question.js | 133 +- slash-commands/create-ticket-option.js | 116 +- slash-commands/help.js | 101 +- slash-commands/info.js | 130 +- slash-commands/link.js | 99 +- slash-commands/remove-question.js | 101 +- slash-commands/remove-ticket-option.js | 113 +- slash-commands/review.js | 170 +- slash-commands/send-ticket-message.js | 121 +- slash-commands/settings.js | 105 +- slash-commands/support.js | 112 +- 22 files changed, 5130 insertions(+), 70 deletions(-) create mode 100644 eggactyl_config.yml create mode 100644 package-lock.json diff --git a/config.js b/config.js index cb50623..aa34e0c 100644 --- a/config.js +++ b/config.js @@ -1,73 +1,64 @@ module.exports = { - bot_token: "", //your discord bot token - guild_id: "", // your discord server id - licenseKey: "", // your License Key - domainIP: "", - api_role_id: "", // Verify Role - api_url: "https://YOURDOMAIN/api/v1", - auth_url: "https://YOURDOMAIN/oauth/discord/connect", // required Discord OAuth. AdminPanel -> Configuration -> Oauth - api_token: "", // Admin Panel -> Create a new token under API Token. The token must have all permissions - - notification_channelID: "", - review_channelID: "", + bot_token: "MTIyMzk5MTMzMTkyNDM0NDk1Mg.Gw9D1I.oo70_KeMM4KsXMlBBAZ8NYOMfsCUML7DMt2SQ8", // Your Discord bot token + guild_id: "1199858405486100602", // Your Discord server ID + domainIP: "shadowhost.icu", // IP address of your domain + api_role_id: "1223991994360004698", // Role ID for verification purposes + api_url: "https://shadowhost.icu/api/v1", // Base URL for your API + auth_url: "https://shadowhost.icu/oauth/discord/connect", // URL for Discord OAuth (Required for Discord OAuth. Configure in Admin Panel -> Configuration -> Oauth) + api_token: "TS9IgrHbSB2PeJcVJdWgHamJ5E76wMDryQIbZeYTFC8MOn57dDP6ZXjSirAZ", // API token from your Admin Panel. Must have all permissions (Admin Panel -> Create a new token under API Token) + + notification_channelID: "1223992373478948995", // Channel ID for sending notification messages + review_channelID: "1223992395071230003", // Channel ID for posting review messages + + // Array of roles associated with specific packages package_roles: [ { - roleID: "", // Discord Role ID - packageID: 1 + roleID: "", // Discord Role ID for package 1 + packageID: 1 // Corresponding package ID }, - { - roleID: "", + { + roleID: "", // Discord Role ID for package 2 packageID: 2 }, - { - roleID: "", + { + roleID: "", // Add more roles and package IDs as needed packageID: 3 }, - { - roleID: "", - packageID: 4 - }, - { - roleID: "", - packageID: 5 - }, + // Continue adding roles and package IDs ], - support_topics: [ // Max 25 Topics ( Discord Limit ) + // Support topics for user assistance + support_topics: [ { name: "Support 1 bla bla bla", value: "1", response: "123", footer: "" , image: false, thumbnail: false }, { name: "Support 2 bla bla bla", value: "2", response: "123 \n Test \n Hilfe", image: false, thumbnail: false }, - { name: "Support 3 bla bla bla", value: "3", response: "123", footer: "" , image: false, thumbnail: false }, - { name: "Support 4 bla bla bla", value: "4", response: "123", footer: "" , image: false, thumbnail: false }, + // Add more support topics as needed ], - review_products: [ // Max 25 Topics ( Discord Limit ) - { name: "NGoGAuther", value: "1" }, + // Products available for review + review_products: [ + { name: "Idk", value: "1" }, { name: "Review 2 bla bla bla", value: "2" }, - { name: "Review 3 bla bla bla", value: "3" }, - { name: "Review 4 bla bla bla", value: "4" }, + // Add more review products as needed ], - mysql: { // MYSQL Requried for Ticket - host: "localhost", - user: "root", - password: "", - database: "", - port: 3306, + // SQLite configuration + sqlite: { + dbPath: "./data/database.sqlite", // Path to your SQLite database file }, - ticket_settings: { - embed_color: "Green", - ticket_message: "Welcome {user},\nSupport will get in test ahb you shortly.", - ticket_thumbnail: "https://i.imgur.com/ApeRvJk.png", - - buttoncloseemoji: '😂', - buttoncloselabel: "Schließen", - buttonclosestyle: "Secondary", - - buttoncreateemoji: "🎫", - buttoncreatelabel: "Öffnen", - buttoncreatestyle: "Secondary", - }, + // Settings for the ticket system + ticket_settings: { + embed_color: "Green", // Embed color for the ticket messages + ticket_message: "Welcome {user},\nSupport will get in touch with you shortly.", // Welcome message for new tickets + ticket_thumbnail: "https://i.imgur.com/ApeRvJk.png", // Thumbnail image for ticket messages + buttoncloseemoji: '😂', // Emoji for the close button + buttoncloselabel: "Close", // Label for the close button + buttonclosestyle: "Secondary", // Style for the close button + + buttoncreateemoji: "🎫", // Emoji for the create ticket button + buttoncreatelabel: "Open Ticket", // Label for the create ticket button + buttoncreatestyle: "Secondary", // Style for the create ticket button + }, }; diff --git a/eggactyl_config.yml b/eggactyl_config.yml new file mode 100644 index 0000000..95506ea --- /dev/null +++ b/eggactyl_config.yml @@ -0,0 +1,8 @@ +version: 2 +lang: en +software: + type: discord_node + node_version: "16" + package_manager: npm +bot: + start_file: index.js diff --git a/helpers/api.js b/helpers/api.js index a653c23..e4fe4cd 100644 --- a/helpers/api.js +++ b/helpers/api.js @@ -1 +1,189 @@ -const a0_0x5691dc=a0_0x123b;(function(_0x2f2ce7,_0x1e25b9){const _0x588091=a0_0x123b,_0x3dbabb=_0x2f2ce7();while(!![]){try{const _0x12c62a=-parseInt(_0x588091(0x93))/0x1+-parseInt(_0x588091(0xa0))/0x2+-parseInt(_0x588091(0xbd))/0x3+-parseInt(_0x588091(0xcb))/0x4+parseInt(_0x588091(0xcd))/0x5*(parseInt(_0x588091(0xba))/0x6)+-parseInt(_0x588091(0xb1))/0x7*(-parseInt(_0x588091(0xd0))/0x8)+parseInt(_0x588091(0x92))/0x9;if(_0x12c62a===_0x1e25b9)break;else _0x3dbabb['push'](_0x3dbabb['shift']());}catch(_0x4ea274){_0x3dbabb['push'](_0x3dbabb['shift']());}}}(a0_0x3b20,0xf2278));const a0_0x1c225b=(function(){let _0x26ff6f=!![];return function(_0x3098f9,_0x33f4a0){const _0x4039b1=_0x26ff6f?function(){const _0x4f570f=a0_0x123b;if(_0x33f4a0){if('nXTMw'===_0x4f570f(0xd2))_0xb23b49(_0x40168f['data']);else{const _0x1febc4=_0x33f4a0[_0x4f570f(0xc7)](_0x3098f9,arguments);return _0x33f4a0=null,_0x1febc4;}}}:function(){};return _0x26ff6f=![],_0x4039b1;};}()),a0_0x19978d=a0_0x1c225b(this,function(){const _0x87cbbf=a0_0x123b;return a0_0x19978d['toString']()['search']('(((.+)+)+)'+'+$')['toString']()[_0x87cbbf(0x99)+'r'](a0_0x19978d)[_0x87cbbf(0xc0)]('(((.+)+)+)'+'+$');});a0_0x19978d();function a0_0x3b20(){const _0x1085d1=['uSRob','constructo','ge=','split','push','headers','action','exports','520816fvtLqh','then','sOtdb','request','fxSqm','Okbaj','stateObjec','test','input','data','method','umWEN','age=','call',']=active&p','length','0-9a-zA-Z_','677362UCjrTg','kuQwZ','function\x20*','string','XrGaR','GET','orders?fil','ilter[data','ldvOe','129618ilwpWM','next_page_','../config','5865807ULDhth','gger','$]*)','search','ections?pa','PICmS','LYjWC','/users?fil','JAQRQ','debu','apply','\x5c+\x5c+\x20*(?:[','users?page','Ppckh','5632416YtyKeV','/oauth-con','355pkfvrq','url','page=','96cmLCnb','ixWxT','aWQrC','axios','dxctC','rders','oauth-conn','nections?f','->id]=','counter','&include=o','Bearer\x20','a-zA-Z_$][','init','Authorizat','lOpoi','ter[email]','LMhjW','chain','32101749sLyWzb','1646221nKPXKR','ion','catch','\x5c(\x20*\x5c)','while\x20(tru'];a0_0x3b20=function(){return _0x1085d1;};return a0_0x3b20();}const a0_0x102e8c=(function(){let _0x5c7e41=!![];return function(_0xa34e2c,_0x312be1){const _0x1e35f5=_0x5c7e41?function(){const _0x31a158=a0_0x123b;if(_0x312be1){const _0x245e03=_0x312be1[_0x31a158(0xc7)](_0xa34e2c,arguments);return _0x312be1=null,_0x245e03;}}:function(){};return _0x5c7e41=![],_0x1e35f5;};}());(function(){a0_0x102e8c(this,function(){const _0x57d3d7=a0_0x123b;if(_0x57d3d7(0xb9)!=='ldvOe')_0x528ed2('0');else{const _0xbf92e=new RegExp(_0x57d3d7(0xb3)+_0x57d3d7(0x96)),_0x35370f=new RegExp('\x5c+\x5c+\x20*(?:['+'a-zA-Z_$]['+_0x57d3d7(0xb0)+_0x57d3d7(0xbf),'i'),_0x339327=a0_0x4ec4cc(_0x57d3d7(0x8c));!_0xbf92e['test'](_0x339327+'chain')||!_0x35370f[_0x57d3d7(0xa7)](_0x339327+'input')?_0x339327('0'):_0x57d3d7(0xa5)===_0x57d3d7(0xc2)?_0x9343c4(this,function(){const _0x32227c=_0x57d3d7,_0x5e2634=new _0x36ec6f(_0x32227c(0xb3)+_0x32227c(0x96)),_0x5a8134=new _0x487472(_0x32227c(0xc8)+_0x32227c(0x8b)+_0x32227c(0xb0)+_0x32227c(0xbf),'i'),_0x50fe68=_0x4c69f4('init');!_0x5e2634[_0x32227c(0xa7)](_0x50fe68+_0x32227c(0x91))||!_0x5a8134[_0x32227c(0xa7)](_0x50fe68+_0x32227c(0xa8))?_0x50fe68('0'):_0x53ff55();})():a0_0x4ec4cc();}})();}());const axios=require(a0_0x5691dc(0xd3)),{api_url,api_token}=require(a0_0x5691dc(0xbc));module[a0_0x5691dc(0x9f)]={'getUser':async function(_0x3587a7){const _0x4bbc44=a0_0x5691dc,_0x18e41e={};_0x18e41e[_0x4bbc44(0x8d)+_0x4bbc44(0x94)]=_0x4bbc44(0x8a)+api_token;const _0x50a9eb={};_0x50a9eb[_0x4bbc44(0xaa)]=_0x4bbc44(0xb6),_0x50a9eb[_0x4bbc44(0xce)]=api_url+(_0x4bbc44(0xc4)+_0x4bbc44(0x8f)+'=')+_0x3587a7+(_0x4bbc44(0x89)+_0x4bbc44(0xd5)),_0x50a9eb[_0x4bbc44(0x9d)]=_0x18e41e;let _0x35c1d4=_0x50a9eb;return new Promise(function(_0x328bf9,_0x1b762c){const _0xe2241a=_0x4bbc44;_0xe2241a(0xa4)!==_0xe2241a(0xa4)?_0x280815['request'](_0x16d1f1)[_0xe2241a(0xa1)](_0x3eaf43=>{const _0x4f4683=_0xe2241a;_0x41d119(_0x3eaf43[_0x4f4683(0xa9)]);})[_0xe2241a(0x95)](_0x2a0259=>{_0x3f3794(![]);}):axios[_0xe2241a(0xa3)](_0x35c1d4)['then'](_0xf8546a=>{const _0x2f13b7=_0xe2241a;_0x328bf9(_0xf8546a[_0x2f13b7(0xa9)]);})[_0xe2241a(0x95)](_0x1e9c4a=>{const _0x1ad254=_0xe2241a;_0x1ad254(0xb2)===_0x1ad254(0xb2)?_0x328bf9(![]):_0x565165[_0x1ad254(0xa3)](_0x207545)[_0x1ad254(0xa1)](_0x4d3a12=>{const _0x471c16=_0x1ad254;_0x21af2e(_0x4d3a12[_0x471c16(0xa9)]);})[_0x1ad254(0x95)](_0x5bdc47=>{_0x4c62d3(![]);});});});},'getDiscordUser':async function(_0x17a450){const _0x6b6c40=a0_0x5691dc,_0x108855={};_0x108855[_0x6b6c40(0x8d)+_0x6b6c40(0x94)]='Bearer\x20'+api_token;const _0x14dab5={};_0x14dab5['method']=_0x6b6c40(0xb6),_0x14dab5[_0x6b6c40(0xce)]=api_url+('/oauth-con'+_0x6b6c40(0xd7)+_0x6b6c40(0xb8)+_0x6b6c40(0x87))+_0x17a450,_0x14dab5[_0x6b6c40(0x9d)]=_0x108855;let _0x37e146=_0x14dab5;return new Promise(function(_0x2fe4ec,_0x11e844){const _0x3a0c57=_0x6b6c40;axios[_0x3a0c57(0xa3)](_0x37e146)[_0x3a0c57(0xa1)](_0x54a58b=>{const _0x8e22d4=_0x3a0c57;_0x2fe4ec(_0x54a58b[_0x8e22d4(0xa9)]);})[_0x3a0c57(0x95)](_0xa96b95=>{_0x2fe4ec(![]);});});},'getNewOauths':async function(){const _0x5c81a7=a0_0x5691dc,_0x447e11={};_0x447e11['Authorizat'+'ion']='Bearer\x20'+api_token;const _0x239a7a={};_0x239a7a['method']=_0x5c81a7(0xb6),_0x239a7a[_0x5c81a7(0xce)]=api_url+('/oauth-con'+'nections?d'+'ate=3days'),_0x239a7a['headers']=_0x447e11;let _0x5b41a7=_0x239a7a;return new Promise(function(_0x1a2033,_0x3efbb7){const _0x551a33=_0x5c81a7;axios[_0x551a33(0xa3)](_0x5b41a7)[_0x551a33(0xa1)](_0x11e80d=>{_0x1a2033(_0x11e80d['data']);})[_0x551a33(0x95)](_0x432895=>{_0x1a2033(![]);});});},'getOauthUsers':async function(){const _0x38384e=a0_0x5691dc;let _0x4450b1=0x1,_0x51c057=[],_0x1795bb=![];while(!_0x1795bb){if(_0x38384e(0xab)!==_0x38384e(0xab))(function(){return![];}[_0x38384e(0x99)+'r'](_0x38384e(0xc6)+_0x38384e(0xbe))[_0x38384e(0xc7)]('stateObjec'+'t'));else{let _0x1a365c=await pagination(_0x38384e(0xd6)+_0x38384e(0xc1)+_0x38384e(0x9a)+_0x4450b1);_0x51c057['push'](..._0x1a365c['data']);if(!_0x1a365c[_0x38384e(0xbb)+_0x38384e(0xce)])_0x1795bb=!![];else _0x4450b1=_0x1a365c[_0x38384e(0xbb)+'url'][_0x38384e(0x9b)](_0x38384e(0xcf))[0x1];}}return _0x51c057;},'getActiveOrders':async function(){const _0x4c808e=a0_0x5691dc;let _0x23c335=0x1,_0x3becc5=[],_0x55415c=![];while(!_0x55415c){let _0x43ec80=await pagination(_0x4c808e(0xb7)+'ter[status'+_0x4c808e(0xae)+_0x4c808e(0xac)+_0x23c335);_0x3becc5['push'](..._0x43ec80['data']);if(!_0x43ec80[_0x4c808e(0xbb)+_0x4c808e(0xce)])_0x55415c=!![];else _0x23c335=_0x43ec80[_0x4c808e(0xbb)+_0x4c808e(0xce)][_0x4c808e(0x9b)]('page=')[0x1];}return _0x3becc5;},'getAllUsers':async function(){const _0x5af0df=a0_0x5691dc;let _0x66b7e9=0x1,_0x4dd437=[],_0x3d3b75=![];while(!_0x3d3b75){let _0x3e0308=await pagination(_0x5af0df(0xc9)+'='+_0x66b7e9);_0x4dd437[_0x5af0df(0x9c)](..._0x3e0308['data']);if(!_0x3e0308[_0x5af0df(0xbb)+_0x5af0df(0xce)])_0x3d3b75=!![];else _0x66b7e9=_0x3e0308[_0x5af0df(0xbb)+'url'][_0x5af0df(0x9b)](_0x5af0df(0xcf))[0x1];}return _0x4dd437;}};function a0_0x123b(_0xb3985a,_0x188c09){const _0x1b87f9=a0_0x3b20();return a0_0x123b=function(_0x4ec4cc,_0x102e8c){_0x4ec4cc=_0x4ec4cc-0x87;let _0x35ca96=_0x1b87f9[_0x4ec4cc];return _0x35ca96;},a0_0x123b(_0xb3985a,_0x188c09);}async function pagination(_0x555d30){const _0x4f302e=a0_0x5691dc,_0x24eb29={};_0x24eb29[_0x4f302e(0x8d)+_0x4f302e(0x94)]=_0x4f302e(0x8a)+api_token;const _0x1d8596={};_0x1d8596[_0x4f302e(0xaa)]=_0x4f302e(0xb6),_0x1d8596[_0x4f302e(0xce)]=api_url+'/'+_0x555d30,_0x1d8596[_0x4f302e(0x9d)]=_0x24eb29;let _0xaaa08f=_0x1d8596;return new Promise(function(_0x69b493,_0x598a19){const _0x8398c0=_0x4f302e;axios['request'](_0xaaa08f)[_0x8398c0(0xa1)](async _0x571fc2=>{const _0x5ed4b8=_0x8398c0;if(_0x5ed4b8(0xc3)!==_0x5ed4b8(0xd4))return _0x69b493(_0x571fc2['data']);else _0x346319();})['catch'](_0x584f23=>{_0x69b493(![]);});});}function a0_0x4ec4cc(_0x3b9e64){const _0xb2198e=a0_0x5691dc;function _0x36cc4c(_0xf1d4d7){const _0x1f4647=a0_0x123b;if(typeof _0xf1d4d7===_0x1f4647(0xb4))return function(_0x15b4cd){}[_0x1f4647(0x99)+'r'](_0x1f4647(0x97)+'e)\x20{}')['apply'](_0x1f4647(0x88));else{if(_0x1f4647(0x8e)!=='lOpoi'){if(_0x1aa8b4){const _0x4083f5=_0x231e1f['apply'](_0x4b5eeb,arguments);return _0x4dab36=null,_0x4083f5;}}else{if((''+_0xf1d4d7/_0xf1d4d7)[_0x1f4647(0xaf)]!==0x1||_0xf1d4d7%0x14===0x0)_0x1f4647(0x90)===_0x1f4647(0xa2)?_0x1130c2(![]):function(){return!![];}['constructo'+'r'](_0x1f4647(0xc6)+_0x1f4647(0xbe))[_0x1f4647(0xad)](_0x1f4647(0x9e));else{if(_0x1f4647(0xca)==='iFBtT'){const _0x15ff29={};_0x15ff29[_0x1f4647(0x8d)+'ion']=_0x1f4647(0x8a)+_0x5963f7;const _0x4ac6f9={};_0x4ac6f9[_0x1f4647(0xaa)]=_0x1f4647(0xb6),_0x4ac6f9['url']=_0x126c33+(_0x1f4647(0xcc)+_0x1f4647(0xd7)+'ilter[data'+_0x1f4647(0x87))+_0x59e8d3,_0x4ac6f9['headers']=_0x15ff29;let _0x6d438f=_0x4ac6f9;return new _0x4cf8d8(function(_0x2d698e,_0x425ecb){const _0x5409c8=_0x1f4647;_0x17afd7['request'](_0x6d438f)[_0x5409c8(0xa1)](_0x5bdb09=>{const _0x10ea51=_0x5409c8;_0x2d698e(_0x5bdb09[_0x10ea51(0xa9)]);})[_0x5409c8(0x95)](_0x397d01=>{_0x2d698e(![]);});});}else(function(){const _0x5202b6=_0x1f4647;return _0x5202b6(0x98)!==_0x5202b6(0xb5)?![]:!![];}[_0x1f4647(0x99)+'r'](_0x1f4647(0xc6)+_0x1f4647(0xbe))[_0x1f4647(0xc7)](_0x1f4647(0xa6)+'t'));}}}_0x36cc4c(++_0xf1d4d7);}try{if(_0x3b9e64){if(_0xb2198e(0xc5)!==_0xb2198e(0xd1))return _0x36cc4c;else{const _0x147042=_0x28a3ce?function(){const _0x38646e=_0xb2198e;if(_0x4f15ec){const _0x36bafe=_0x5b7f00[_0x38646e(0xc7)](_0x36996e,arguments);return _0x3de172=null,_0x36bafe;}}:function(){};return _0x321e3b=![],_0x147042;}}else _0x36cc4c(0x0);}catch(_0x3c7595){}} \ No newline at end of file +const a0_0x1c225b = function () { + let _0x26ff6f = true; + return function (_0x3098f9, _0x33f4a0) { + const _0x4039b1 = _0x26ff6f ? function () { + if (_0x33f4a0) { + const _0x1febc4 = _0x33f4a0.apply(_0x3098f9, arguments); + _0x33f4a0 = null; + return _0x1febc4; + } + } : function () {}; + _0x26ff6f = false; + return _0x4039b1; + }; +}(); +const a0_0x19978d = a0_0x1c225b(this, function () { + return a0_0x19978d.toString().search("(((.+)+)+)+$").toString().constructor(a0_0x19978d).search("(((.+)+)+)+$"); +}); +a0_0x19978d(); +const a0_0x102e8c = function () { + let _0x5c7e41 = true; + return function (_0xa34e2c, _0x312be1) { + const _0x1e35f5 = _0x5c7e41 ? function () { + if (_0x312be1) { + const _0x245e03 = _0x312be1.apply(_0xa34e2c, arguments); + _0x312be1 = null; + return _0x245e03; + } + } : function () {}; + _0x5c7e41 = false; + return _0x1e35f5; + }; +}(); +(function () { + a0_0x102e8c(this, function () { + const _0xbf92e = new RegExp("function *\\( *\\)"); + const _0x35370f = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x339327 = a0_0x4ec4cc("init"); + if (!_0xbf92e.test(_0x339327 + 'chain') || !_0x35370f.test(_0x339327 + 'input')) { + _0x339327('0'); + } else { + a0_0x4ec4cc(); + } + })(); +})(); +const axios = require("axios"); +const { + api_url, + api_token +} = require("../config"); +module.exports = { + 'getUser': async function (_0x3587a7) { + const _0x18e41e = { + Authorization: "Bearer " + api_token + }; + const _0x50a9eb = { + "method": "GET", + "url": api_url + "/users?filter[email]=" + _0x3587a7 + "&include=orders", + "headers": _0x18e41e + }; + return new Promise(function (_0x328bf9, _0x1b762c) { + axios.request(_0x50a9eb).then(_0xf8546a => { + _0x328bf9(_0xf8546a.data); + })["catch"](_0x1e9c4a => { + _0x328bf9(false); + }); + }); + }, + 'getDiscordUser': async function (_0x17a450) { + const _0x108855 = { + Authorization: "Bearer " + api_token + }; + const _0x14dab5 = { + method: "GET", + "url": api_url + "/oauth-connections?filter[data->id]=" + _0x17a450, + "headers": _0x108855 + }; + return new Promise(function (_0x2fe4ec, _0x11e844) { + axios.request(_0x14dab5).then(_0x54a58b => { + _0x2fe4ec(_0x54a58b.data); + })["catch"](_0xa96b95 => { + _0x2fe4ec(false); + }); + }); + }, + 'getNewOauths': async function () { + const _0x447e11 = { + Authorization: "Bearer " + api_token + }; + const _0x239a7a = { + method: "GET", + "url": api_url + "/oauth-connections?date=3days", + headers: _0x447e11 + }; + return new Promise(function (_0x1a2033, _0x3efbb7) { + axios.request(_0x239a7a).then(_0x11e80d => { + _0x1a2033(_0x11e80d.data); + })["catch"](_0x432895 => { + _0x1a2033(false); + }); + }); + }, + 'getOauthUsers': async function () { + let _0x4450b1 = 0x1; + let _0x51c057 = []; + let _0x1795bb = false; + while (!_0x1795bb) { + let _0x1a365c = await pagination("oauth-connections?page=" + _0x4450b1); + _0x51c057.push(..._0x1a365c.data); + if (!_0x1a365c.next_page_url) { + _0x1795bb = true; + } else { + _0x4450b1 = _0x1a365c.next_page_url.split("page=")[0x1]; + } + } + return _0x51c057; + }, + 'getActiveOrders': async function () { + let _0x23c335 = 0x1; + let _0x3becc5 = []; + let _0x55415c = false; + while (!_0x55415c) { + let _0x43ec80 = await pagination("orders?filter[status]=active&page=" + _0x23c335); + _0x3becc5.push(..._0x43ec80.data); + if (!_0x43ec80.next_page_url) { + _0x55415c = true; + } else { + _0x23c335 = _0x43ec80.next_page_url.split('page=')[0x1]; + } + } + return _0x3becc5; + }, + 'getAllUsers': async function () { + let _0x66b7e9 = 0x1; + let _0x4dd437 = []; + let _0x3d3b75 = false; + while (!_0x3d3b75) { + let _0x3e0308 = await pagination("users?page=" + _0x66b7e9); + _0x4dd437.push(..._0x3e0308.data); + if (!_0x3e0308.next_page_url) { + _0x3d3b75 = true; + } else { + _0x66b7e9 = _0x3e0308.next_page_url.split("page=")[0x1]; + } + } + return _0x4dd437; + } +}; +async function pagination(_0x555d30) { + const _0x24eb29 = { + Authorization: "Bearer " + api_token + }; + const _0x1d8596 = { + "method": "GET", + "url": api_url + '/' + _0x555d30, + "headers": _0x24eb29 + }; + return new Promise(function (_0x69b493, _0x598a19) { + axios.request(_0x1d8596).then(async _0x571fc2 => { + return _0x69b493(_0x571fc2.data); + })['catch'](_0x584f23 => { + _0x69b493(false); + }); + }); +} +function a0_0x4ec4cc(_0x3b9e64) { + function _0x36cc4c(_0xf1d4d7) { + if (typeof _0xf1d4d7 === "string") { + return function (_0x15b4cd) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0xf1d4d7 / _0xf1d4d7).length !== 0x1 || _0xf1d4d7 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x36cc4c(++_0xf1d4d7); + } + try { + if (_0x3b9e64) { + return _0x36cc4c; + } else { + _0x36cc4c(0x0); + } + } catch (_0x3c7595) {} +} \ No newline at end of file diff --git a/helpers/createTicket.js b/helpers/createTicket.js index 44fb268..4ce9897 100644 --- a/helpers/createTicket.js +++ b/helpers/createTicket.js @@ -1 +1,173 @@ -function a1_0x6d29(_0x4f20d9,_0x14bc33){const _0x21ab18=a1_0x16c5();return a1_0x6d29=function(_0x1992bc,_0x38f6e0){_0x1992bc=_0x1992bc-0x13f;let _0x50d39e=_0x21ab18[_0x1992bc];return _0x50d39e;},a1_0x6d29(_0x4f20d9,_0x14bc33);}const a1_0x527ae7=a1_0x6d29;function a1_0x16c5(){const _0x1e1d39=['setLabel','constructo','nCreate','\x20guildID,\x20','username','ViewChanne','embed_colo','channels','\x20?)','replace','ticket_mes','INSERT\x20INT','avatarURL','guild','support_ro','e)\x20{}','input','setCustomI','ticket_thu','setStyle','descriptio','ated\x20a\x20tic','action','543971hcyrLC','guildId','addCompone','newTicket','son\x20for\x20th','(((.+)+)+)','cache','setThumbna','gger','components','No\x20reason','4869VYgKeS','discord.js','test','SendMessag','chain','4584112wjLSaf','a-zA-Z_$][','ZBsLd','newTicket_','YjvCD','setEmoji','exports','18gIlMaf','27562AsDsvz','s,\x20userID,','21872aGEkif','leID',',\x20?,\x20?,\x20?,','ticket-','ZvAnk','tion','<@&','sage','buttonclos','value','#Ticket\x20|\x20','39TLaANd','./helper','query','ROM\x20option','eason\x20for\x20','ID=\x27','ticket_cou','setDescrip','toString','length','s\x20WHERE\x20st','TqoLq','content','tings\x20SET\x20','gs\x20WHERE\x20g','SELECT\x20*\x20F','2380875LhBecF','apply','debu','s\x20WHERE\x20gu','close_tick','7402705lzQdbr','member','while\x20(tru','estyle','\x20VALUES\x20(?','../config','stateObjec','jBGlT','nter','Clvto','1\x20WHERE\x20gu','ket!\x20Pleas','t_counter+','addOptions','dID=\x27','atus=\x27open','deferReply','tag','function\x20*','create_tic','init','0-9a-zA-Z_','ROM\x20settin','nhYFt','create','30364190RbFoWN','Choose\x20a\x20r','\x27\x20AND\x20user','sfully\x20cre','UPDATE\x20set','counter','interactio','nter=ticke','setColor','forEach','hucby','search','ket','user','lder','label','call','mbnail','uildID=\x27','uEeRt','nts','You\x20succes','editReply','customId','y\x20have\x20a\x20t'];a1_0x16c5=function(){return _0x1e1d39;};return a1_0x16c5();}(function(_0x3c023d,_0x4c23d8){const _0x1aca66=a1_0x6d29,_0x21f987=_0x3c023d();while(!![]){try{const _0x5adaa9=parseInt(_0x1aca66(0x171))/0x1+-parseInt(_0x1aca66(0x189))/0x2*(-parseInt(_0x1aca66(0x196))/0x3)+parseInt(_0x1aca66(0x181))/0x4+parseInt(_0x1aca66(0x1ab))/0x5+-parseInt(_0x1aca66(0x188))/0x6*(parseInt(_0x1aca66(0x1a6))/0x7)+-parseInt(_0x1aca66(0x18b))/0x8*(-parseInt(_0x1aca66(0x17c))/0x9)+-parseInt(_0x1aca66(0x141))/0xa;if(_0x5adaa9===_0x4c23d8)break;else _0x21f987['push'](_0x21f987['shift']());}catch(_0x22e146){_0x21f987['push'](_0x21f987['shift']());}}}(a1_0x16c5,0xbc799));const a1_0xb9c6e4=(function(){let _0x4a5a7b=!![];return function(_0x2db11c,_0x51979f){const _0x2415df=_0x4a5a7b?function(){const _0x434a1c=a1_0x6d29;if(_0x51979f){if(_0x434a1c(0x1a1)!=='DxufL'){const _0x1fc528=_0x51979f['apply'](_0x2db11c,arguments);return _0x51979f=null,_0x1fc528;}else return!![];}}:function(){};return _0x4a5a7b=![],_0x2415df;};}()),a1_0x438e54=a1_0xb9c6e4(this,function(){const _0xf7b59c=a1_0x6d29;return a1_0x438e54['toString']()[_0xf7b59c(0x14c)]('(((.+)+)+)'+'+$')[_0xf7b59c(0x19e)]()[_0xf7b59c(0x15b)+'r'](a1_0x438e54)[_0xf7b59c(0x14c)](_0xf7b59c(0x176)+'+$');});a1_0x438e54();const a1_0x38f6e0=(function(){let _0xd48145=!![];return function(_0x158213,_0x54eee0){if('YgxfB'==='YgxfB'){const _0x3b4664=_0xd48145?function(){const _0x15a790=a1_0x6d29;if('JZBsC'!==_0x15a790(0x13f)){if(_0x54eee0){const _0x51a7d8=_0x54eee0[_0x15a790(0x1a7)](_0x158213,arguments);return _0x54eee0=null,_0x51a7d8;}}else{if(_0x5e159c)return _0xce5d7;else _0x2cf4b3(0x0);}}:function(){};return _0xd48145=![],_0x3b4664;}else _0x437e70('0');};}());(function(){a1_0x38f6e0(this,function(){const _0xe5005c=a1_0x6d29,_0x4acb7b=new RegExp(_0xe5005c(0x1bd)+'\x5c(\x20*\x5c)'),_0xbeebc=new RegExp('\x5c+\x5c+\x20*(?:['+_0xe5005c(0x182)+_0xe5005c(0x1c0)+'$]*)','i'),_0x409ab9=a1_0x1992bc(_0xe5005c(0x1bf));if(!_0x4acb7b[_0xe5005c(0x17e)](_0x409ab9+_0xe5005c(0x180))||!_0xbeebc[_0xe5005c(0x17e)](_0x409ab9+_0xe5005c(0x16a)))_0x409ab9('0');else{if(_0xe5005c(0x14b)!==_0xe5005c(0x154))a1_0x1992bc();else{_0x44bb7c=_0x3c3d04[_0xe5005c(0x19e)]();while(_0x796692['length']<_0x59f252)_0x175fb5='0'+_0x4eb8b2;return _0x36ff7f;}}})();}());const {query,queryMulti}=require(a1_0x527ae7(0x197)),{ticket_settings}=require(a1_0x527ae7(0x1b0)),{ActionRowBuilder,EmbedBuilder,ButtonBuilder,StringSelectMenuBuilder}=require(a1_0x527ae7(0x17d));module[a1_0x527ae7(0x187)]=async(_0x5ae8c9,_0xd5d02f)=>{const _0x483cb9=a1_0x527ae7;_0x5ae8c9['on'](_0x483cb9(0x147)+_0x483cb9(0x15c),async _0x3f602c=>{const _0x3d2fea=_0x483cb9;if(_0x3d2fea(0x18f)!==_0x3d2fea(0x18f))(function(){return![];}[_0x3d2fea(0x15b)+'r']('debu'+_0x3d2fea(0x179))['apply'](_0x3d2fea(0x1b1)+'t'));else{if(!_0x3f602c[_0x3d2fea(0x158)])return;if(_0x3f602c[_0x3d2fea(0x158)]!==_0x3d2fea(0x1be)+_0x3d2fea(0x14d))return;let _0xc06f8c=await queryMulti(_0xd5d02f,_0x3d2fea(0x1a5)+_0x3d2fea(0x199)+_0x3d2fea(0x1a9)+'ildID=\x27'+_0x3f602c['guildId']+'\x27');if(_0xc06f8c){const _0x24674e={};_0x24674e['ephemeral']=!![],await _0x3f602c['deferReply'](_0x24674e);let _0x679c11=new StringSelectMenuBuilder()[_0x3d2fea(0x16b)+'d'](_0x3d2fea(0x174))['setPlaceho'+_0x3d2fea(0x14f)](_0x3d2fea(0x142)+_0x3d2fea(0x19a)+'the\x20ticket');_0xc06f8c[_0x3d2fea(0x14a)]((_0x240712,_0x591b97)=>{const _0x560016=_0x3d2fea,_0x54eb52={};_0x54eb52[_0x560016(0x150)]=_0x240712['name'],_0x54eb52[_0x560016(0x16e)+'n']=_0x240712['descriptio'+'n']||_0x560016(0x17b),_0x54eb52[_0x560016(0x194)]=_0x560016(0x184)+_0x240712['id'],_0x679c11[_0x560016(0x1b8)]([_0x54eb52]);});let _0x1c2a52=new ActionRowBuilder()[_0x3d2fea(0x173)+_0x3d2fea(0x155)](_0x679c11);const _0xc3c711={};return _0xc3c711[_0x3d2fea(0x1a2)]='What\x20will\x20'+'be\x20the\x20rea'+_0x3d2fea(0x175)+'e\x20ticket\x20?',_0xc3c711['components']=[_0x1c2a52],_0xc3c711['ephemeral']=!![],_0x3f602c['editReply'](_0xc3c711);}else{if('qzzKB'!==_0x3d2fea(0x185)){const _0x1fe242={};_0x1fe242['ephemeral']=!![],await _0x3f602c[_0x3d2fea(0x1bb)](_0x1fe242);let _0x5533ee=new EmbedBuilder()['setTimesta'+'mp']()[_0x3d2fea(0x149)](ticket_settings[_0x3d2fea(0x160)+'r'])[_0x3d2fea(0x19d)+_0x3d2fea(0x190)](ticket_settings[_0x3d2fea(0x164)+_0x3d2fea(0x192)][_0x3d2fea(0x163)]('{user}',_0x3f602c['user']))[_0x3d2fea(0x178)+'il'](ticket_settings[_0x3d2fea(0x16c)+_0x3d2fea(0x152)])['setAuthor']({'name':_0x3f602c['user'][_0x3d2fea(0x1bc)],'iconURL':_0x3f602c[_0x3d2fea(0x14e)][_0x3d2fea(0x166)]()}),_0x458a14=await query(_0xd5d02f,_0x3d2fea(0x1a5)+'ROM\x20ticket'+_0x3d2fea(0x1a0)+_0x3d2fea(0x1ba)+_0x3d2fea(0x143)+_0x3d2fea(0x19b)+_0x3f602c[_0x3d2fea(0x14e)]['id']+('\x27\x20AND\x20guil'+_0x3d2fea(0x1b9))+_0x3f602c['guildId']+'\x27'),_0x14a07f=_0x5ae8c9['channels'][_0x3d2fea(0x177)]['get'](_0x458a14?.['channelID']);if(_0x458a14&&_0x14a07f)return _0x3f602c[_0x3d2fea(0x157)]({'content':'You\x20alread'+_0x3d2fea(0x159)+'icket!\x20Ple'+'ase\x20check\x20'+'the\x20'+_0x14a07f,'ephemeral':!![]});let _0x435321=await query(_0xd5d02f,_0x3d2fea(0x1a5)+_0x3d2fea(0x1c1)+_0x3d2fea(0x1a4)+_0x3d2fea(0x153)+_0x3f602c[_0x3d2fea(0x172)]+'\x27');_0xd5d02f[_0x3d2fea(0x198)](_0x3d2fea(0x145)+_0x3d2fea(0x1a3)+_0x3d2fea(0x19c)+_0x3d2fea(0x148)+_0x3d2fea(0x1b7)+_0x3d2fea(0x1b5)+'ildID=\x27'+_0x3f602c[_0x3d2fea(0x172)]+'\x27');const _0x141566={};_0x141566['id']=_0x5ae8c9[_0x3d2fea(0x14e)]['id'],_0x141566['allow']=[_0x3d2fea(0x15f)+'l',_0x3d2fea(0x17f)+'es'],_0x14a07f=await _0x3f602c[_0x3d2fea(0x167)][_0x3d2fea(0x161)][_0x3d2fea(0x140)]({'name':_0x3d2fea(0x18e)+pad(_0x435321[_0x3d2fea(0x19c)+_0x3d2fea(0x1b3)]+0x1,0x4),'topic':_0x3d2fea(0x195)+'From\x20'+_0x3f602c[_0x3d2fea(0x14e)][_0x3d2fea(0x15e)],'permissionOverwrites':[{'id':_0x3f602c[_0x3d2fea(0x172)],'deny':[_0x3d2fea(0x15f)+'l',_0x3d2fea(0x17f)+'es']},{'id':_0x3f602c[_0x3d2fea(0x1ac)]['id'],'allow':[_0x3d2fea(0x15f)+'l','SendMessag'+'es']},_0x141566,{'id':_0x435321?.[_0x3d2fea(0x168)+_0x3d2fea(0x18c)],'allow':[_0x3d2fea(0x15f)+'l',_0x3d2fea(0x17f)+'es']}]});let _0x146465=new ButtonBuilder()[_0x3d2fea(0x186)](ticket_settings['buttonclos'+'eemoji'])[_0x3d2fea(0x15a)](ticket_settings[_0x3d2fea(0x193)+'elabel'])[_0x3d2fea(0x16d)](ticket_settings[_0x3d2fea(0x193)+_0x3d2fea(0x1ae)])[_0x3d2fea(0x16b)+'d'](_0x3d2fea(0x1aa)+'et'),_0x6f081e=new ActionRowBuilder()[_0x3d2fea(0x173)+_0x3d2fea(0x155)](_0x146465);const _0x1568a7={};_0x1568a7['content']=_0x3d2fea(0x191)+_0x435321?.[_0x3d2fea(0x168)+_0x3d2fea(0x18c)]+'>',_0x1568a7['embeds']=[_0x5533ee],_0x1568a7[_0x3d2fea(0x17a)]=[_0x6f081e],await _0x14a07f['send'](_0x1568a7),_0xd5d02f[_0x3d2fea(0x198)](_0x3d2fea(0x165)+'O\x20tickets\x20'+'(id,\x20statu'+_0x3d2fea(0x18a)+_0x3d2fea(0x15d)+'channelID)'+_0x3d2fea(0x1af)+_0x3d2fea(0x18d)+_0x3d2fea(0x162),[pad(_0x435321['ticket_cou'+_0x3d2fea(0x1b3)]+0x1,0x4),'open',_0x3f602c[_0x3d2fea(0x14e)]['id'],_0x3f602c['guildId'],_0x14a07f['id']]);const _0x344361={};return _0x344361[_0x3d2fea(0x1a2)]=_0x3d2fea(0x156)+_0x3d2fea(0x144)+_0x3d2fea(0x16f)+_0x3d2fea(0x1b6)+'e\x20check\x20th'+'e\x20'+_0x14a07f,_0x344361['ephemeral']=!![],_0x3f602c[_0x3d2fea(0x157)](_0x344361);}else return _0x1fc2f0[_0x3d2fea(0x19e)]()[_0x3d2fea(0x14c)](_0x3d2fea(0x176)+'+$')[_0x3d2fea(0x19e)]()[_0x3d2fea(0x15b)+'r'](_0x34eee0)['search'](_0x3d2fea(0x176)+'+$');}}});};function pad(_0x334865,_0x59ae18){const _0x143238=a1_0x527ae7;_0x334865=_0x334865[_0x143238(0x19e)]();while(_0x334865['length']<_0x59ae18)_0x334865='0'+_0x334865;return _0x334865;}function a1_0x1992bc(_0x25bcd5){const _0x5a9c63=a1_0x527ae7;function _0x2ea995(_0x32765f){const _0x3c5cdb=a1_0x6d29;if(typeof _0x32765f==='string')return function(_0x36ced0){}[_0x3c5cdb(0x15b)+'r'](_0x3c5cdb(0x1ad)+_0x3c5cdb(0x169))[_0x3c5cdb(0x1a7)](_0x3c5cdb(0x146));else{if((''+_0x32765f/_0x32765f)[_0x3c5cdb(0x19f)]!==0x1||_0x32765f%0x14===0x0)(function(){return!![];}[_0x3c5cdb(0x15b)+'r'](_0x3c5cdb(0x1a8)+_0x3c5cdb(0x179))[_0x3c5cdb(0x151)](_0x3c5cdb(0x170)));else{if('NNylR'===_0x3c5cdb(0x1b4)){const _0x4f0bda=_0x4560a8[_0x3c5cdb(0x1a7)](_0x13b07d,arguments);return _0x28276a=null,_0x4f0bda;}else(function(){const _0x16f219=_0x3c5cdb;if(_0x16f219(0x1b2)!==_0x16f219(0x1b2)){if(_0x45788b){const _0x39ca79=_0x3394b5[_0x16f219(0x1a7)](_0x143915,arguments);return _0x42a23e=null,_0x39ca79;}}else return![];}[_0x3c5cdb(0x15b)+'r'](_0x3c5cdb(0x1a8)+_0x3c5cdb(0x179))[_0x3c5cdb(0x1a7)](_0x3c5cdb(0x1b1)+'t'));}}_0x2ea995(++_0x32765f);}try{if(_0x25bcd5)return _0x2ea995;else{if(_0x5a9c63(0x183)==='ZBsLd')_0x2ea995(0x0);else{const _0x5f56ea=_0x2edecd?function(){const _0xa3eac2=_0x5a9c63;if(_0x1500d2){const _0x56c86a=_0x18cc17[_0xa3eac2(0x1a7)](_0xbc20a6,arguments);return _0x498cad=null,_0x56c86a;}}:function(){};return _0x505dd2=![],_0x5f56ea;}}}catch(_0xa73e8){}} \ No newline at end of file +const a1_0xb9c6e4 = function () { + let _0x4a5a7b = true; + return function (_0x2db11c, _0x51979f) { + const _0x2415df = _0x4a5a7b ? function () { + if (_0x51979f) { + const _0x1fc528 = _0x51979f.apply(_0x2db11c, arguments); + _0x51979f = null; + return _0x1fc528; + } + } : function () {}; + _0x4a5a7b = false; + return _0x2415df; + }; +}(); +const a1_0x438e54 = a1_0xb9c6e4(this, function () { + return a1_0x438e54.toString().search("(((.+)+)+)+$").toString().constructor(a1_0x438e54).search("(((.+)+)+)+$"); +}); +a1_0x438e54(); +const a1_0x38f6e0 = function () { + let _0xd48145 = true; + return function (_0x158213, _0x54eee0) { + const _0x3b4664 = _0xd48145 ? function () { + if (_0x54eee0) { + const _0x51a7d8 = _0x54eee0.apply(_0x158213, arguments); + _0x54eee0 = null; + return _0x51a7d8; + } + } : function () {}; + _0xd48145 = false; + return _0x3b4664; + }; +}(); +(function () { + a1_0x38f6e0(this, function () { + const _0x4acb7b = new RegExp("function *\\( *\\)"); + const _0xbeebc = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x409ab9 = a1_0x1992bc("init"); + if (!_0x4acb7b.test(_0x409ab9 + "chain") || !_0xbeebc.test(_0x409ab9 + "input")) { + _0x409ab9('0'); + } else { + a1_0x1992bc(); + } + })(); +})(); +const { + query, + queryMulti +} = require("./helper"); +const { + ticket_settings +} = require("../config"); +const { + ActionRowBuilder, + EmbedBuilder, + ButtonBuilder, + StringSelectMenuBuilder +} = require("discord.js"); +module.exports = async (_0x5ae8c9, _0xd5d02f) => { + _0x5ae8c9.on("interactionCreate", async _0x3f602c => { + if (!_0x3f602c.customId) { + return; + } + if (_0x3f602c.customId !== "create_ticket") { + return; + } + let _0xc06f8c = await queryMulti(_0xd5d02f, "SELECT * FROM options WHERE guildID='" + _0x3f602c.guildId + "'"); + if (_0xc06f8c) { + const _0x24674e = { + ephemeral: true + }; + await _0x3f602c.deferReply(_0x24674e); + let _0x679c11 = new StringSelectMenuBuilder().setCustomId("newTicket").setPlaceholder("Choose a reason for the ticket"); + _0xc06f8c.forEach((_0x240712, _0x591b97) => { + const _0x54eb52 = { + "label": _0x240712.name, + description: _0x240712.description || "No reason", + "value": "newTicket_" + _0x240712.id + }; + _0x679c11.addOptions([_0x54eb52]); + }); + let _0x1c2a52 = new ActionRowBuilder().addComponents(_0x679c11); + const _0xc3c711 = { + "content": "What will be the reason for the ticket ?", + components: [_0x1c2a52], + ephemeral: true + }; + return _0x3f602c.editReply(_0xc3c711); + } else { + const _0x1fe242 = { + ephemeral: true + }; + await _0x3f602c.deferReply(_0x1fe242); + let _0x5533ee = new EmbedBuilder().setTimestamp().setColor(ticket_settings.embed_color).setDescription(ticket_settings.ticket_message.replace('{user}', _0x3f602c.user)).setThumbnail(ticket_settings.ticket_thumbnail).setAuthor({ + 'name': _0x3f602c.user.tag, + 'iconURL': _0x3f602c.user.avatarURL() + }); + let _0x458a14 = await query(_0xd5d02f, "SELECT * FROM tickets WHERE status='open' AND userID='" + _0x3f602c.user.id + "' AND guildID='" + _0x3f602c.guildId + "'"); + let _0x14a07f = _0x5ae8c9.channels.cache.get(_0x458a14?.['channelID']); + if (_0x458a14 && _0x14a07f) { + return _0x3f602c.editReply({ + 'content': "You already have a ticket! Please check the " + _0x14a07f, + 'ephemeral': true + }); + } + let _0x435321 = await query(_0xd5d02f, "SELECT * FROM settings WHERE guildID='" + _0x3f602c.guildId + "'"); + _0xd5d02f.query("UPDATE settings SET ticket_counter=ticket_counter+1 WHERE guildID='" + _0x3f602c.guildId + "'"); + const _0x141566 = { + id: _0x5ae8c9.user.id, + allow: ["ViewChannel", "SendMessages"] + }; + _0x14a07f = await _0x3f602c.guild.channels.create({ + 'name': "ticket-" + pad(_0x435321.ticket_counter + 0x1, 0x4), + 'topic': "#Ticket | From " + _0x3f602c.user.username, + 'permissionOverwrites': [{ + 'id': _0x3f602c.guildId, + 'deny': ["ViewChannel", "SendMessages"] + }, { + 'id': _0x3f602c.member.id, + 'allow': ["ViewChannel", "SendMessages"] + }, _0x141566, { + 'id': _0x435321?.["support_roleID"], + 'allow': ["ViewChannel", "SendMessages"] + }] + }); + let _0x146465 = new ButtonBuilder().setEmoji(ticket_settings.buttoncloseemoji).setLabel(ticket_settings.buttoncloselabel).setStyle(ticket_settings.buttonclosestyle).setCustomId("close_ticket"); + let _0x6f081e = new ActionRowBuilder().addComponents(_0x146465); + const _0x1568a7 = { + content: "<@&" + _0x435321?.["support_roleID"] + '>', + embeds: [_0x5533ee], + "components": [_0x6f081e] + }; + await _0x14a07f.send(_0x1568a7); + _0xd5d02f.query("INSERT INTO tickets (id, status, userID, guildID, channelID) VALUES (?, ?, ?, ?, ?)", [pad(_0x435321.ticket_counter + 0x1, 0x4), 'open', _0x3f602c.user.id, _0x3f602c.guildId, _0x14a07f.id]); + const _0x344361 = { + "content": "You successfully created a ticket! Please check the " + _0x14a07f, + ephemeral: true + }; + return _0x3f602c.editReply(_0x344361); + } + }); +}; +function pad(_0x334865, _0x59ae18) { + _0x334865 = _0x334865.toString(); + while (_0x334865.length < _0x59ae18) { + _0x334865 = '0' + _0x334865; + } + return _0x334865; +} +function a1_0x1992bc(_0x25bcd5) { + function _0x2ea995(_0x32765f) { + if (typeof _0x32765f === 'string') { + return function (_0x36ced0) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x32765f / _0x32765f).length !== 0x1 || _0x32765f % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x2ea995(++_0x32765f); + } + try { + if (_0x25bcd5) { + return _0x2ea995; + } else { + _0x2ea995(0x0); + } + } catch (_0xa73e8) {} +} \ No newline at end of file diff --git a/helpers/cron.js b/helpers/cron.js index c8d82c6..4565c50 100644 --- a/helpers/cron.js +++ b/helpers/cron.js @@ -1 +1,169 @@ -const a2_0x3c4017=a2_0x2849;function a2_0x2849(_0x3cc94f,_0x3a0513){const _0x5b045e=a2_0x40fc();return a2_0x2849=function(_0x4716e7,_0x4e0799){_0x4716e7=_0x4716e7-0xfb;let _0x4469b2=_0x5b045e[_0x4716e7];return _0x4469b2;},a2_0x2849(_0x3cc94f,_0x3a0513);}(function(_0x2c3649,_0x2e2cd4){const _0x4b88df=a2_0x2849,_0xc5fe40=_0x2c3649();while(!![]){try{const _0x5089bc=parseInt(_0x4b88df(0x12d))/0x1+parseInt(_0x4b88df(0x110))/0x2*(parseInt(_0x4b88df(0x102))/0x3)+parseInt(_0x4b88df(0xfb))/0x4+-parseInt(_0x4b88df(0x117))/0x5+parseInt(_0x4b88df(0x13d))/0x6+parseInt(_0x4b88df(0x10c))/0x7+-parseInt(_0x4b88df(0x142))/0x8;if(_0x5089bc===_0x2e2cd4)break;else _0xc5fe40['push'](_0xc5fe40['shift']());}catch(_0x41492b){_0xc5fe40['push'](_0xc5fe40['shift']());}}}(a2_0x40fc,0x57df0));function a2_0x40fc(){const _0x5b194d=['exports','1103612jJVCVP','status','rders','filter','$]*)','debu','constructo','109209CQhTWh','apply','toString','function\x20*','(((.+)+)+)','remove','stateObjec','CuxHE','Removed\x20','length','4511766xlriLO','keys','displayNam','add','2NWXWgs','mfpfP','n\x27t\x20found.','guilds','forEach','search','getOauthUs','3380835OYnIJK','string','JzMRq','Role\x20could','a-zA-Z_$][','email','test','UpBmh','lovce','gViQB','kokrf','init','\x5c(\x20*\x5c)','orders','../config','ers','call','wIrtQ','packageID','getNewOaut','zKsOv','\x20from\x20','397610kpAULW','getUser','Role\x20not\x20f','RnXXY','TKkRc','gger','chain','data','CCCRD','input','user_id','getActiveO','YxUfQ','roleID','e)\x20{}','./api','1659108BeZkam','ound.','0-9a-zA-Z_','UOsum','active','4759080dIEGOJ','members','\x5c+\x5c+\x20*(?:[','has','ccYBq','jTRrD','log','package_id','hkMzS','fetch','catch','name','while\x20(tru','roles'];a2_0x40fc=function(){return _0x5b194d;};return a2_0x40fc();}const a2_0x169aa3=(function(){let _0x51ee3c=!![];return function(_0x1b5fb3,_0x19916f){const _0x3818ba=a2_0x2849;if(_0x3818ba(0x131)!==_0x3818ba(0x128)){const _0x1d2c7c=_0x51ee3c?function(){const _0x4862b4=_0x3818ba;if(_0x19916f){if(_0x4862b4(0x147)!=='XaJJU'){const _0x2cd5a2=_0x19916f[_0x4862b4(0x103)](_0x1b5fb3,arguments);return _0x19916f=null,_0x2cd5a2;}else return _0x44c0d9;}}:function(){};return _0x51ee3c=![],_0x1d2c7c;}else _0x5252bb[_0x3818ba(0x148)](_0x3818ba(0x12f)+_0x3818ba(0x13e));};}()),a2_0xd39a5a=a2_0x169aa3(this,function(){const _0x4320a1=a2_0x2849;return a2_0xd39a5a[_0x4320a1(0x104)]()[_0x4320a1(0x115)](_0x4320a1(0x106)+'+$')[_0x4320a1(0x104)]()[_0x4320a1(0x101)+'r'](a2_0xd39a5a)[_0x4320a1(0x115)](_0x4320a1(0x106)+'+$');});a2_0xd39a5a();const a2_0x4e0799=(function(){let _0x2f054e=!![];return function(_0x3e9602,_0x320407){const _0x400a75=a2_0x2849;if(_0x400a75(0x121)!=='ePwNm'){const _0x1dbf22=_0x2f054e?function(){const _0x387594=_0x400a75;if(_0x320407){const _0x117310=_0x320407[_0x387594(0x103)](_0x3e9602,arguments);return _0x320407=null,_0x117310;}}:function(){};return _0x2f054e=![],_0x1dbf22;}else{const _0x2e9003=_0x2e026f?function(){const _0x23c3dd=_0x400a75;if(_0x43a07d){const _0x37b406=_0x59b982[_0x23c3dd(0x103)](_0x1e710d,arguments);return _0x271d73=null,_0x37b406;}}:function(){};return _0x55b850=![],_0x2e9003;}};}());(function(){a2_0x4e0799(this,function(){const _0x119c12=a2_0x2849;if(_0x119c12(0x140)!=='GFNuT'){const _0x3ee9d4=new RegExp(_0x119c12(0x105)+_0x119c12(0x123)),_0x261b6c=new RegExp(_0x119c12(0x144)+_0x119c12(0x11b)+_0x119c12(0x13f)+_0x119c12(0xff),'i'),_0xb9a3=a2_0x4716e7('init');!_0x3ee9d4[_0x119c12(0x11d)](_0xb9a3+_0x119c12(0x133))||!_0x261b6c['test'](_0xb9a3+_0x119c12(0x136))?_0x119c12(0x111)!==_0x119c12(0x119)?_0xb9a3('0'):_0x3cd5b6():a2_0x4716e7();}else return![];})();}());const api=require(a2_0x3c4017(0x13c)),{guild_id,api_role_id,package_roles}=require(a2_0x3c4017(0x125)),users={};module[a2_0x3c4017(0x150)]=async _0x2bfb16=>{const _0x34693a=a2_0x3c4017,_0x2adaa9=await _0x2bfb16[_0x34693a(0x113)][_0x34693a(0x14b)](guild_id)[_0x34693a(0x14c)](_0x5751d0=>{});if(!_0x2adaa9)return;let _0x212782=await api[_0x34693a(0x116)+_0x34693a(0x126)]();_0x212782[_0x34693a(0x114)](_0x70d746=>{const _0x4dd3cb=_0x34693a;users[_0x70d746[_0x4dd3cb(0x137)]]=_0x70d746['data']['id'];}),_0xc3192a();async function _0xc3192a(){const _0x2f2bb6=_0x34693a;if(_0x2f2bb6(0x12b)!==_0x2f2bb6(0x130)){setTimeout(_0xc3192a,0x2*0x3c*0x3e8);let _0x2f80b5=await api[_0x2f2bb6(0x12a)+'hs']();if(!_0x2f80b5)return;_0x2f80b5[_0x2f2bb6(0x134)][_0x2f2bb6(0x114)](async _0x5a41c5=>{const _0x22decf=_0x2f2bb6;if('HIzXj'!=='uMYxC'){users[_0x5a41c5[_0x22decf(0x137)]]=_0x5a41c5[_0x22decf(0x134)]['id'];let _0x86b501=await _0x2adaa9[_0x22decf(0x143)][_0x22decf(0x14b)](_0x5a41c5[_0x22decf(0x134)]['id'])['catch'](_0x1db7d6=>{});if(!_0x86b501)return;if(_0x86b501['roles']['cache'][_0x22decf(0x145)](api_role_id))return;return _0x86b501['roles'][_0x22decf(0x10f)](api_role_id)[_0x22decf(0x14c)](_0x3ad98e=>{});}else return function(_0x1b4815){}[_0x22decf(0x101)+'r'](_0x22decf(0x14e)+_0x22decf(0x13b))[_0x22decf(0x103)]('counter');});}else return _0x4d314d[_0x2f2bb6(0x104)]()[_0x2f2bb6(0x115)](_0x2f2bb6(0x106)+'+$')[_0x2f2bb6(0x104)]()['constructo'+'r'](_0x1eca59)[_0x2f2bb6(0x115)](_0x2f2bb6(0x106)+'+$');}_0x352284();async function _0x352284(){const _0x1c5f07=_0x34693a;if(_0x1c5f07(0x139)===_0x1c5f07(0x11f))_0x67535('0');else{setTimeout(_0x352284,0x5*0x3c*0x3e8);let _0x54df73=await api[_0x1c5f07(0x138)+_0x1c5f07(0xfd)]();if(!_0x54df73)return;_0x54df73['forEach'](async _0x1bc8eb=>{const _0x44d53d=_0x1c5f07;let _0xd8d4d6=users[_0x1bc8eb[_0x44d53d(0x137)]];if(!_0xd8d4d6)return;let _0x27c968=await _0x2adaa9['members']['fetch'](_0xd8d4d6)[_0x44d53d(0x14c)](_0xfc46f=>{});if(!_0x27c968)return;let _0x1a17bf=package_roles[_0x44d53d(0xfe)](_0x43ee6e=>{const _0x420ed9=_0x44d53d;return _0x43ee6e[_0x420ed9(0x129)]==_0x1bc8eb[_0x420ed9(0x149)];})?.[0x0];if(!_0x1a17bf)return;return _0x27c968[_0x44d53d(0x14f)][_0x44d53d(0x10f)](_0x1a17bf[_0x44d53d(0x13a)])['catch'](_0x54ff9c=>{});});}}_0x1603d3();async function _0x1603d3(){setTimeout(_0x1603d3,0x1e*0x3c*0x3e8),package_roles['forEach'](async _0x34bf1d=>{const _0x49b54d=a2_0x2849;if(_0x49b54d(0x11e)===_0x49b54d(0x11e)){let _0x1a2632=await _0x2adaa9[_0x49b54d(0x14f)]['fetch'](_0x34bf1d[_0x49b54d(0x13a)])[_0x49b54d(0x14c)](_0x3b05eb=>{const _0x39af60=_0x49b54d;console[_0x39af60(0x148)](_0x39af60(0x12f)+_0x39af60(0x13e));});if(!_0x1a2632)return;let _0x8dd2f2=_0x1a2632[_0x49b54d(0x143)][_0x49b54d(0x10d)]();if(_0x8dd2f2['size']==0x0)return;for(const _0x56650c of _0x8dd2f2){let _0x658564=_0x212782[_0x49b54d(0xfe)](_0x1db0da=>_0x1db0da[_0x49b54d(0x134)]['id']==_0x56650c)?.[0x0];if(!_0x658564)continue;await delay(0x5*0x3e8);let _0x3707a4=await api[_0x49b54d(0x12e)](_0x658564[_0x49b54d(0x11c)]);if(!_0x3707a4||_0x3707a4[_0x49b54d(0x134)][_0x49b54d(0x10b)]==0x0)continue;let _0x41f7bd=_0x3707a4?.[_0x49b54d(0x134)][0x0]?.[_0x49b54d(0x124)]['filter'](_0x3277fc=>{const _0x2e88dc=_0x49b54d;return _0x3277fc[_0x2e88dc(0x149)]==_0x34bf1d[_0x2e88dc(0x129)]&&_0x3277fc[_0x2e88dc(0xfc)]==_0x2e88dc(0x141);})?.[0x0];if(!_0x41f7bd){if('CCCRD'!==_0x49b54d(0x135))_0x1dcd9c['log'](_0x49b54d(0x11a)+_0x49b54d(0x112));else{let _0x483ad1=await _0x2adaa9['members'][_0x49b54d(0x14b)](_0x56650c)[_0x49b54d(0x14c)](_0x364b6a=>{});if(_0x483ad1){if('ZdYFZ'===_0x49b54d(0x14a))return!![];else await delay(0x5*0x3e8),await _0x483ad1[_0x49b54d(0x14f)][_0x49b54d(0x107)](_0x34bf1d[_0x49b54d(0x13a)])['catch'](_0x3a7f5f=>{const _0x2fa711=_0x49b54d;console[_0x2fa711(0x148)]('Role\x20could'+_0x2fa711(0x112));}),console[_0x49b54d(0x148)](_0x49b54d(0x10a)+_0x1a2632[_0x49b54d(0x14d)]+_0x49b54d(0x12c)+_0x483ad1[_0x49b54d(0x10e)+'e']);}}}}}else{if(_0x106d1c){const _0x5a37b5=_0x413eee[_0x49b54d(0x103)](_0x6cd572,arguments);return _0x281fbc=null,_0x5a37b5;}}});}};const delay=_0x4f18b0=>new Promise(_0x59dc75=>setTimeout(_0x59dc75,_0x4f18b0));function a2_0x4716e7(_0x582940){const _0x10b883=a2_0x3c4017;function _0x20350a(_0x2252ba){const _0x598e5f=a2_0x2849;if(typeof _0x2252ba===_0x598e5f(0x118)){if('gViQB'===_0x598e5f(0x120))return function(_0x4559e3){}[_0x598e5f(0x101)+'r'](_0x598e5f(0x14e)+_0x598e5f(0x13b))[_0x598e5f(0x103)]('counter');else{const _0x237eca=_0x2a5326['apply'](_0x558337,arguments);return _0x3315c5=null,_0x237eca;}}else _0x598e5f(0x146)==='mGDIx'?function(){return!![];}[_0x598e5f(0x101)+'r'](_0x598e5f(0x100)+_0x598e5f(0x132))['call']('action'):(''+_0x2252ba/_0x2252ba)['length']!==0x1||_0x2252ba%0x14===0x0?function(){return!![];}[_0x598e5f(0x101)+'r'](_0x598e5f(0x100)+_0x598e5f(0x132))[_0x598e5f(0x127)]('action'):_0x598e5f(0x109)==='CuxHE'?function(){return![];}[_0x598e5f(0x101)+'r']('debu'+_0x598e5f(0x132))[_0x598e5f(0x103)](_0x598e5f(0x108)+'t'):_0x3b5339(this,function(){const _0x351daa=_0x598e5f,_0x5693ff=new _0x17bb2a(_0x351daa(0x105)+'\x5c(\x20*\x5c)'),_0x4c33f2=new _0x2056e1(_0x351daa(0x144)+_0x351daa(0x11b)+_0x351daa(0x13f)+'$]*)','i'),_0x2d758d=_0x13341c(_0x351daa(0x122));!_0x5693ff['test'](_0x2d758d+_0x351daa(0x133))||!_0x4c33f2[_0x351daa(0x11d)](_0x2d758d+_0x351daa(0x136))?_0x2d758d('0'):_0x10ea31();})();_0x20350a(++_0x2252ba);}try{if('zcfvz'==='ogKzD')(function(){return![];}[_0x10b883(0x101)+'r'](_0x10b883(0x100)+_0x10b883(0x132))[_0x10b883(0x103)](_0x10b883(0x108)+'t'));else{if(_0x582940)return _0x20350a;else{if('RLlBv'==='RLlBv')_0x20350a(0x0);else{const _0x258cbe=_0x4c3e08?function(){const _0x270163=_0x10b883;if(_0x351257){const _0x5af123=_0x7ced10[_0x270163(0x103)](_0x90b557,arguments);return _0x5e3738=null,_0x5af123;}}:function(){};return _0x26949f=![],_0x258cbe;}}}}catch(_0x28989b){}} \ No newline at end of file +const a2_0x169aa3 = function () { + let _0x51ee3c = true; + return function (_0x1b5fb3, _0x19916f) { + const _0x1d2c7c = _0x51ee3c ? function () { + if (_0x19916f) { + const _0x2cd5a2 = _0x19916f.apply(_0x1b5fb3, arguments); + _0x19916f = null; + return _0x2cd5a2; + } + } : function () {}; + _0x51ee3c = false; + return _0x1d2c7c; + }; +}(); +const a2_0xd39a5a = a2_0x169aa3(this, function () { + return a2_0xd39a5a.toString().search("(((.+)+)+)+$").toString().constructor(a2_0xd39a5a).search("(((.+)+)+)+$"); +}); +a2_0xd39a5a(); +const a2_0x4e0799 = function () { + let _0x2f054e = true; + return function (_0x3e9602, _0x320407) { + const _0x1dbf22 = _0x2f054e ? function () { + if (_0x320407) { + const _0x117310 = _0x320407.apply(_0x3e9602, arguments); + _0x320407 = null; + return _0x117310; + } + } : function () {}; + _0x2f054e = false; + return _0x1dbf22; + }; +}(); +(function () { + a2_0x4e0799(this, function () { + const _0x3ee9d4 = new RegExp("function *\\( *\\)"); + const _0x261b6c = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0xb9a3 = a2_0x4716e7('init'); + if (!_0x3ee9d4.test(_0xb9a3 + "chain") || !_0x261b6c.test(_0xb9a3 + "input")) { + _0xb9a3('0'); + } else { + a2_0x4716e7(); + } + })(); +})(); +const api = require("./api"); +const { + guild_id, + api_role_id, + package_roles +} = require("../config"); +const users = {}; +module.exports = async _0x2bfb16 => { + const _0x2adaa9 = await _0x2bfb16.guilds.fetch(guild_id)["catch"](_0x5751d0 => {}); + if (!_0x2adaa9) { + return; + } + let _0x212782 = await api.getOauthUsers(); + _0x212782.forEach(_0x70d746 => { + users[_0x70d746.user_id] = _0x70d746.data.id; + }); + _0xc3192a(); + async function _0xc3192a() { + setTimeout(_0xc3192a, 120000); + let _0x2f80b5 = await api.getNewOauths(); + if (!_0x2f80b5) { + return; + } + _0x2f80b5.data.forEach(async _0x5a41c5 => { + users[_0x5a41c5.user_id] = _0x5a41c5.data.id; + let _0x86b501 = await _0x2adaa9.members.fetch(_0x5a41c5.data.id)['catch'](_0x1db7d6 => {}); + if (!_0x86b501) { + return; + } + if (_0x86b501.roles.cache.has(api_role_id)) { + return; + } + return _0x86b501.roles.add(api_role_id)["catch"](_0x3ad98e => {}); + }); + } + _0x352284(); + async function _0x352284() { + setTimeout(_0x352284, 300000); + let _0x54df73 = await api.getActiveOrders(); + if (!_0x54df73) { + return; + } + _0x54df73.forEach(async _0x1bc8eb => { + let _0xd8d4d6 = users[_0x1bc8eb.user_id]; + if (!_0xd8d4d6) { + return; + } + let _0x27c968 = await _0x2adaa9.members.fetch(_0xd8d4d6)["catch"](_0xfc46f => {}); + if (!_0x27c968) { + return; + } + let _0x1a17bf = package_roles.filter(_0x43ee6e => { + return _0x43ee6e.packageID == _0x1bc8eb.package_id; + })?.[0x0]; + if (!_0x1a17bf) { + return; + } + return _0x27c968.roles.add(_0x1a17bf.roleID)['catch'](_0x54ff9c => {}); + }); + } + _0x1603d3(); + async function _0x1603d3() { + setTimeout(_0x1603d3, 1800000); + package_roles.forEach(async _0x34bf1d => { + let _0x1a2632 = await _0x2adaa9.roles.fetch(_0x34bf1d.roleID)["catch"](_0x3b05eb => { + console.log("Role not found."); + }); + if (!_0x1a2632) { + return; + } + let _0x8dd2f2 = _0x1a2632.members.keys(); + if (_0x8dd2f2.size == 0x0) { + return; + } + for (const _0x56650c of _0x8dd2f2) { + let _0x658564 = _0x212782.filter(_0x1db0da => _0x1db0da.data.id == _0x56650c)?.[0x0]; + if (!_0x658564) { + continue; + } + await delay(5000); + let _0x3707a4 = await api.getUser(_0x658564.email); + if (!_0x3707a4 || _0x3707a4.data.length == 0x0) { + continue; + } + let _0x41f7bd = _0x3707a4?.["data"][0x0]?.["orders"]['filter'](_0x3277fc => { + return _0x3277fc.package_id == _0x34bf1d.packageID && _0x3277fc.status == "active"; + })?.[0x0]; + if (!_0x41f7bd) { + let _0x483ad1 = await _0x2adaa9.members.fetch(_0x56650c)["catch"](_0x364b6a => {}); + if (_0x483ad1) { + await delay(5000); + await _0x483ad1.roles.remove(_0x34bf1d.roleID)['catch'](_0x3a7f5f => { + console.log("Role couldn't found."); + }); + console.log("Removed " + _0x1a2632.name + " from " + _0x483ad1.displayName); + } + } + } + }); + } +}; +const delay = _0x4f18b0 => new Promise(_0x59dc75 => setTimeout(_0x59dc75, _0x4f18b0)); +function a2_0x4716e7(_0x582940) { + function _0x20350a(_0x2252ba) { + if (typeof _0x2252ba === "string") { + return function (_0x4559e3) {}.constructor("while (true) {}").apply('counter'); + } else if (('' + _0x2252ba / _0x2252ba).length !== 0x1 || _0x2252ba % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call('action'); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + _0x20350a(++_0x2252ba); + } + try { + if (_0x582940) { + return _0x20350a; + } else { + _0x20350a(0x0); + } + } catch (_0x28989b) {} +} \ No newline at end of file diff --git a/helpers/helper.js b/helpers/helper.js index 8d2010a..c4f6c93 100644 --- a/helpers/helper.js +++ b/helpers/helper.js @@ -1 +1,99 @@ -(function(_0x3e93c2,_0x570364){var _0x2d8665=a3_0x120a,_0xc50644=_0x3e93c2();while(!![]){try{var _0x51f031=-parseInt(_0x2d8665(0x109))/0x1*(-parseInt(_0x2d8665(0x108))/0x2)+parseInt(_0x2d8665(0x12a))/0x3*(parseInt(_0x2d8665(0x129))/0x4)+-parseInt(_0x2d8665(0x11c))/0x5*(-parseInt(_0x2d8665(0xfc))/0x6)+-parseInt(_0x2d8665(0x11f))/0x7*(-parseInt(_0x2d8665(0x121))/0x8)+parseInt(_0x2d8665(0x112))/0x9*(-parseInt(_0x2d8665(0x106))/0xa)+parseInt(_0x2d8665(0x105))/0xb*(-parseInt(_0x2d8665(0x119))/0xc)+-parseInt(_0x2d8665(0x10f))/0xd*(-parseInt(_0x2d8665(0x100))/0xe);if(_0x51f031===_0x570364)break;else _0xc50644['push'](_0xc50644['shift']());}catch(_0x3d86da){_0xc50644['push'](_0xc50644['shift']());}}}(a3_0xebca,0x78714));var a3_0x57f3db=(function(){var _0x17256c=!![];return function(_0x15b4d6,_0x38152f){var _0x5c944f=_0x17256c?function(){var _0x58817c=a3_0x120a;if(_0x38152f){var _0x26b6b9=_0x38152f[_0x58817c(0x102)](_0x15b4d6,arguments);return _0x38152f=null,_0x26b6b9;}}:function(){};return _0x17256c=![],_0x5c944f;};}()),a3_0x3b58ad=a3_0x57f3db(this,function(){var _0x5e90ea=a3_0x120a;return a3_0x3b58ad['toString']()[_0x5e90ea(0x10b)]('(((.+)+)+)'+'+$')['toString']()[_0x5e90ea(0x114)+'r'](a3_0x3b58ad)[_0x5e90ea(0x10b)](_0x5e90ea(0x128)+'+$');});a3_0x3b58ad();function a3_0x120a(_0x22b7be,_0x54044a){var _0x1dcb83=a3_0xebca();return a3_0x120a=function(_0x454870,_0x266357){_0x454870=_0x454870-0xf9;var _0x5c6ab7=_0x1dcb83[_0x454870];return _0x5c6ab7;},a3_0x120a(_0x22b7be,_0x54044a);}var a3_0x266357=(function(){var _0x61e097=!![];return function(_0x6d03a,_0x24dbf4){var _0x2c317a=_0x61e097?function(){var _0x9bd14c=a3_0x120a;if(_0x24dbf4){if(_0x9bd14c(0x10c)==='usFSg'){var _0x217a12=_0x24dbf4[_0x9bd14c(0x102)](_0x6d03a,arguments);return _0x24dbf4=null,_0x217a12;}else{var _0x5b1e1c=_0x7ea9f6?function(){var _0x405017=_0x9bd14c;if(_0x218fd7){var _0x3e96e4=_0x2b99a8[_0x405017(0x102)](_0x122bc1,arguments);return _0x1fc0ad=null,_0x3e96e4;}}:function(){};return _0x56d398=![],_0x5b1e1c;}}}:function(){};return _0x61e097=![],_0x2c317a;};}());function a3_0xebca(){var _0x190706=['YNBsD','while\x20(tru','viDVB','debu','\x5c(\x20*\x5c)','\x5c+\x5c+\x20*(?:[','(((.+)+)+)','4JkPXEE','1539393anrXEY','EdXHd','$]*)','test','1456722OCsasf','XiNAv','hrQui','oFutD','14zPfanz','init','apply','zsOFI','call','21857mogzRd','8458120klScjj','a-zA-Z_$][','20732ajyzar','40JaUCVu','ERsSU','search','usFSg','counter','function\x20*','7671547GPkadM','chain','eTVkn','9UcPlRe','htrpR','constructo','gger','query','input','length','5868gQsYBS','action','TGeln','5piBmch','0-9a-zA-Z_','toString','11669lNUFye','string','2640NvJRWw'];a3_0xebca=function(){return _0x190706;};return a3_0xebca();}(function(){a3_0x266357(this,function(){var _0x3ebce1=a3_0x120a,_0x673e54=new RegExp(_0x3ebce1(0x10e)+_0x3ebce1(0x126)),_0x34001d=new RegExp(_0x3ebce1(0x127)+_0x3ebce1(0x107)+_0x3ebce1(0x11d)+_0x3ebce1(0xfa),'i'),_0x38dc35=a3_0x454870(_0x3ebce1(0x101));if(!_0x673e54['test'](_0x38dc35+_0x3ebce1(0x110))||!_0x34001d[_0x3ebce1(0xfb)](_0x38dc35+_0x3ebce1(0x117))){if(_0x3ebce1(0x122)!==_0x3ebce1(0x122)){var _0x5ce44b=new _0x37a29a(_0x3ebce1(0x10e)+'\x5c(\x20*\x5c)'),_0x2a6c14=new _0x2be6f8('\x5c+\x5c+\x20*(?:['+_0x3ebce1(0x107)+'0-9a-zA-Z_'+_0x3ebce1(0xfa),'i'),_0xf417d3=_0x639150(_0x3ebce1(0x101));!_0x5ce44b[_0x3ebce1(0xfb)](_0xf417d3+_0x3ebce1(0x110))||!_0x2a6c14[_0x3ebce1(0xfb)](_0xf417d3+_0x3ebce1(0x117))?_0xf417d3('0'):_0x4f165a();}else _0x38dc35('0');}else a3_0x454870();})();}()),module['exports']={'query':async function(_0x1b7403,_0x87526f){return new Promise(function(_0x3474cc,_0x13489a){var _0x464bcc=a3_0x120a;if(_0x464bcc(0xf9)!==_0x464bcc(0xf9)){var _0x1daa7c=_0x5f4024[_0x464bcc(0x102)](_0x30a9f6,arguments);return _0x1f8955=null,_0x1daa7c;}else _0x1b7403[_0x464bcc(0x116)](_0x87526f,async function(_0x4e0b4c,_0xf1b0fa){var _0x426c5c=_0x464bcc;if('pOlSO'!=='aSsXt'){if(_0x4e0b4c)throw _0x4e0b4c;_0xf1b0fa[_0x426c5c(0x118)]>0x0?_0x3474cc(_0xf1b0fa[0x0]):_0x426c5c(0xfd)!==_0x426c5c(0xfd)?_0x57c64e(_0x12b678[0x0]):_0x3474cc(![]);}else _0x563cb7[_0x426c5c(0x116)](_0x2e17f2,async function(_0x329167,_0x2a86f0){var _0x45100e=_0x426c5c;if(_0x329167)throw _0x329167;_0x2a86f0[_0x45100e(0x118)]>0x0?_0x12d327(_0x2a86f0[0x0]):_0x3e7fa4(![]);});});});},'queryMulti':async function(_0x5c7f4e,_0x2481bd){return new Promise(function(_0x1e5738,_0x4b5ba3){var _0x4db452=a3_0x120a;if('wjJvT'!=='wjJvT')return _0x32e27d['toString']()[_0x4db452(0x10b)]('(((.+)+)+)'+'+$')[_0x4db452(0x11e)]()[_0x4db452(0x114)+'r'](_0x4f9ac9)[_0x4db452(0x10b)](_0x4db452(0x128)+'+$');else _0x5c7f4e['query'](_0x2481bd,async function(_0x60e5cb,_0x10dfa3){var _0x3ae9a2=_0x4db452;if(_0x60e5cb)throw _0x60e5cb;if(_0x10dfa3[_0x3ae9a2(0x118)]>0x0){if(_0x3ae9a2(0xff)!==_0x3ae9a2(0x113))_0x1e5738(_0x10dfa3);else{var _0x5158d9=_0x58a465?function(){var _0x113d02=_0x3ae9a2;if(_0x2f82a1){var _0x5a0c83=_0x242d95[_0x113d02(0x102)](_0x1cc225,arguments);return _0x5f3ca4=null,_0x5a0c83;}}:function(){};return _0x31d71a=![],_0x5158d9;}}else _0x1e5738(![]);});});}};function a3_0x454870(_0x551678){var _0x56c0e4=a3_0x120a;function _0x48a9f9(_0x58cd10){var _0x8b46e0=a3_0x120a;if(typeof _0x58cd10===_0x8b46e0(0x120)){if('Itovj'===_0x8b46e0(0x10a))_0x75890f(_0x3078ad);else return function(_0x42d4b0){}[_0x8b46e0(0x114)+'r'](_0x8b46e0(0x123)+'e)\x20{}')[_0x8b46e0(0x102)](_0x8b46e0(0x10d));}else{if((''+_0x58cd10/_0x58cd10)[_0x8b46e0(0x118)]!==0x1||_0x58cd10%0x14===0x0){if(_0x8b46e0(0xfe)!==_0x8b46e0(0xfe))return!![];else(function(){return!![];}[_0x8b46e0(0x114)+'r'](_0x8b46e0(0x125)+_0x8b46e0(0x115))[_0x8b46e0(0x104)](_0x8b46e0(0x11a)));}else _0x8b46e0(0x124)===_0x8b46e0(0x11b)?_0xb999a5(![]):function(){var _0x35d86b=_0x8b46e0;if(_0x35d86b(0x103)==='zsOFI')return![];else(function(){return!![];}[_0x35d86b(0x114)+'r'](_0x35d86b(0x125)+_0x35d86b(0x115))[_0x35d86b(0x104)](_0x35d86b(0x11a)));}['constructo'+'r']('debu'+_0x8b46e0(0x115))['apply']('stateObjec'+'t');}_0x48a9f9(++_0x58cd10);}try{if(_0x56c0e4(0x111)!=='eTVkn')_0x209bd2('0');else{if(_0x551678)return _0x48a9f9;else _0x48a9f9(0x0);}}catch(_0x15fb88){}} \ No newline at end of file +var a3_0x57f3db = function () { + var _0x17256c = true; + return function (_0x15b4d6, _0x38152f) { + var _0x5c944f = _0x17256c ? function () { + if (_0x38152f) { + var _0x26b6b9 = _0x38152f.apply(_0x15b4d6, arguments); + _0x38152f = null; + return _0x26b6b9; + } + } : function () {}; + _0x17256c = false; + return _0x5c944f; + }; +}(); +var a3_0x3b58ad = a3_0x57f3db(this, function () { + return a3_0x3b58ad.toString().search("(((.+)+)+)+$").toString().constructor(a3_0x3b58ad).search("(((.+)+)+)+$"); +}); +a3_0x3b58ad(); +var a3_0x266357 = function () { + var _0x61e097 = true; + return function (_0x6d03a, _0x24dbf4) { + var _0x2c317a = _0x61e097 ? function () { + if (_0x24dbf4) { + var _0x217a12 = _0x24dbf4.apply(_0x6d03a, arguments); + _0x24dbf4 = null; + return _0x217a12; + } + } : function () {}; + _0x61e097 = false; + return _0x2c317a; + }; +}(); +(function () { + a3_0x266357(this, function () { + var _0x673e54 = new RegExp("function *\\( *\\)"); + var _0x34001d = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + var _0x38dc35 = a3_0x454870("init"); + if (!_0x673e54.test(_0x38dc35 + "chain") || !_0x34001d.test(_0x38dc35 + "input")) { + _0x38dc35('0'); + } else { + a3_0x454870(); + } + })(); +})(); +module.exports = { + 'query': async function (_0x1b7403, _0x87526f) { + return new Promise(function (_0x3474cc, _0x13489a) { + _0x1b7403.query(_0x87526f, async function (_0x4e0b4c, _0xf1b0fa) { + if (_0x4e0b4c) { + throw _0x4e0b4c; + } + if (_0xf1b0fa.length > 0x0) { + _0x3474cc(_0xf1b0fa[0x0]); + } else { + _0x3474cc(false); + } + }); + }); + }, + 'queryMulti': async function (_0x5c7f4e, _0x2481bd) { + return new Promise(function (_0x1e5738, _0x4b5ba3) { + _0x5c7f4e.query(_0x2481bd, async function (_0x60e5cb, _0x10dfa3) { + if (_0x60e5cb) { + throw _0x60e5cb; + } + if (_0x10dfa3.length > 0x0) { + _0x1e5738(_0x10dfa3); + } else { + _0x1e5738(false); + } + }); + }); + } +}; +function a3_0x454870(_0x551678) { + function _0x48a9f9(_0x58cd10) { + if (typeof _0x58cd10 === "string") { + return function (_0x42d4b0) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x58cd10 / _0x58cd10).length !== 0x1 || _0x58cd10 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x48a9f9(++_0x58cd10); + } + try { + if (_0x551678) { + return _0x48a9f9; + } else { + _0x48a9f9(0x0); + } + } catch (_0x15fb88) {} +} \ No newline at end of file diff --git a/helpers/interaction.js b/helpers/interaction.js index cec4fc7..0a69b09 100644 --- a/helpers/interaction.js +++ b/helpers/interaction.js @@ -1 +1,310 @@ -const a4_0x158584=a4_0x16f0;(function(_0x545c88,_0x198897){const _0x3f385d=a4_0x16f0,_0x4e48cc=_0x545c88();while(!![]){try{const _0x5456cf=parseInt(_0x3f385d(0x17b))/0x1*(-parseInt(_0x3f385d(0x195))/0x2)+-parseInt(_0x3f385d(0x21e))/0x3+-parseInt(_0x3f385d(0x1fb))/0x4+-parseInt(_0x3f385d(0x232))/0x5*(-parseInt(_0x3f385d(0x1f1))/0x6)+parseInt(_0x3f385d(0x21a))/0x7*(-parseInt(_0x3f385d(0x235))/0x8)+parseInt(_0x3f385d(0x1ec))/0x9*(-parseInt(_0x3f385d(0x205))/0xa)+parseInt(_0x3f385d(0x1ce))/0xb;if(_0x5456cf===_0x198897)break;else _0x4e48cc['push'](_0x4e48cc['shift']());}catch(_0x4baef6){_0x4e48cc['push'](_0x4e48cc['shift']());}}}(a4_0x106e,0x59324));const a4_0x1098bc=(function(){let _0x4cdd23=!![];return function(_0x5a2b99,_0x1fff96){const _0xf78eda=a4_0x16f0;if('hPPUS'===_0xf78eda(0x20d)){const _0x20e364=_0x4cdd23?function(){const _0x12feef=_0xf78eda;if(_0x1fff96){const _0x2898c0=_0x1fff96[_0x12feef(0x1ac)](_0x5a2b99,arguments);return _0x1fff96=null,_0x2898c0;}}:function(){};return _0x4cdd23=![],_0x20e364;}else{const _0x2761a8=_0x111e81[_0xf78eda(0x1ac)](_0x16747a,arguments);return _0x714812=null,_0x2761a8;}};}()),a4_0x26ceb5=a4_0x1098bc(this,function(){const _0x5679d3=a4_0x16f0;return a4_0x26ceb5[_0x5679d3(0x16c)]()[_0x5679d3(0x1dd)](_0x5679d3(0x1ca)+'+$')[_0x5679d3(0x16c)]()[_0x5679d3(0x1d0)+'r'](a4_0x26ceb5)[_0x5679d3(0x1dd)]('(((.+)+)+)'+'+$');});a4_0x26ceb5();const a4_0x443623=(function(){let _0x5056d8=!![];return function(_0x333acb,_0x2a720f){const _0x53b83c=a4_0x16f0;if(_0x53b83c(0x1d1)!==_0x53b83c(0x1d1))return!![];else{const _0x38feb6=_0x5056d8?function(){const _0x1a7a9e=_0x53b83c;if(_0x2a720f){if('SlGir'==='SlGir'){const _0x1125b4=_0x2a720f[_0x1a7a9e(0x1ac)](_0x333acb,arguments);return _0x2a720f=null,_0x1125b4;}else{_0x30b11d=_0x20e4b4[_0x1a7a9e(0x16c)]();while(_0x18da49['length']<_0x303625)_0x470738='0'+_0x287c67;return _0x380256;}}}:function(){};return _0x5056d8=![],_0x38feb6;}};}());(function(){a4_0x443623(this,function(){const _0x1868cf=a4_0x16f0;if(_0x1868cf(0x19c)!==_0x1868cf(0x19c))return _0x46a961;else{const _0x144279=new RegExp(_0x1868cf(0x209)+_0x1868cf(0x197)),_0x286410=new RegExp(_0x1868cf(0x170)+'a-zA-Z_$]['+_0x1868cf(0x234)+_0x1868cf(0x1d8),'i'),_0x1c198d=a4_0x671e8d(_0x1868cf(0x228));!_0x144279[_0x1868cf(0x1dc)](_0x1c198d+'chain')||!_0x286410['test'](_0x1c198d+_0x1868cf(0x1b3))?_0x1c198d('0'):_0x1868cf(0x1b0)===_0x1868cf(0x1b0)?a4_0x671e8d():_0x515125();}})();}());function a4_0x16f0(_0x7a084,_0xf9f9eb){const _0x2cf74d=a4_0x106e();return a4_0x16f0=function(_0x671e8d,_0x443623){_0x671e8d=_0x671e8d-0x168;let _0x2d87b7=_0x2cf74d[_0x671e8d];return _0x2d87b7;},a4_0x16f0(_0x7a084,_0xf9f9eb);}const {query,queryMulti}=require(a4_0x158584(0x1f0)),{ticket_settings}=require(a4_0x158584(0x1e0)),discordTranscripts=require(a4_0x158584(0x188)+a4_0x158584(0x17a)+a4_0x158584(0x1f8)),{EmbedBuilder,ButtonBuilder,ActionRowBuilder,ModalBuilder,TextInputBuilder}=require('discord.js');function a4_0x106e(){const _0x47c6d2=['ID=\x27','ons\x20WHERE\x20','#Ticket\x20|\x20','cache','UPDATE\x20set','create','channels','dID=\x27','VgAVv','customId','2237865iSEqzQ','while\x20(tru','ROM\x20option','t_counter+','579087zGYkvd','sage','newTicket','split','addFields','ROM\x20ticket','getTextInp','et_form','icket!\x20Ple','send','init','replace','fields','users','catch','\x27\x20AND\x20chan','tion','call','Close\x20mess','{user}','12105twKxPm','gger','0-9a-zA-Z_','8SemNyg','get','channel','script','\x20channelID','nelID=\x27','s\x20WHERE\x20id','poweredBy','toString','TArug','guildId','the\x20','\x5c+\x5c+\x20*(?:[','tatus=\x27clo','saveImages','utValue','fMbrS','Reason','setPlaceho','leID','ticket_mes','From\x20','ml-transcr','1tMzVXv','content','nCreate','s,\x20userID,','counter','startsWith','debu','SELECT\x20*\x20F','tag','ildID=\x27','embeds','sfully\x20cre','avatarURL','discord-ht','<@&','setFooter','mit','guild','ROM\x20settin','age','interactio','uboeZ','Ticket\x20For','delete','user','deferReply','1069476trvlHh','s\x20WHERE\x20st','\x5c(\x20*\x5c)','required','(id,\x20statu','You\x20alread','UPDATE\x20tic','qFUfs','\x20guildID,\x20','setRequire','showModal','setTimesta','setTitle','ber}\x20messa','kets\x20SET\x20s','inline','\x27\x20AND\x20user','setEmoji','action','setColor','nts','forEach','1\x20WHERE\x20gu','apply','support_ro','\x20VALUES\x20(?','hor','HbRJx','eemoji','O\x20tickets\x20','input','embed_colo','\x27\x20AND\x20guil','length','footerText','atus=\x27open','setStyle','channelID','channelID)','values','place_hold','uildID=\x27','```','gs\x20WHERE\x20g','newTicket_','question','userID','ket!\x20Pleas','Server','sizCz','ticket-','setLabel','allow','(((.+)+)+)','editReply','lder','nter','22071511cxMWWx','name','constructo','oGKoU','ase\x20check\x20','log_channe','components','buttonclos','Saved\x20{num','tings\x20SET\x20','$]*)','open','setCustomI','ticket_','test','search','ge{s}','exports','../config','isModalSub','ROM\x20questi','e\x20check\x20th','files','query',',\x20?,\x20?,\x20?,','ticket_cou','setAuthor','yJIAq','estyle','setDescrip','3363021RCOcfy','y\x20have\x20a\x20t','answer_typ','member','./helper','282BXszcg','input_','mbnail','You\x20succes','string','ephemeral','e)\x20{}','ipts','nter=ticke','lID','1335236hfmzrW','SendMessag','close_tick','\x20been\x20clos','username','ed!','\x20?)','id=\x27','value','Paragraph','10iAgkmp','sfully\x20clo','elabel','ViewChanne','function\x20*','INSERT\x20INT','addCompone','categoryID','hPPUS','TWtpl','Close\x20Tick'];a4_0x106e=function(){return _0x47c6d2;};return a4_0x106e();}module[a4_0x158584(0x1df)]=async(_0x2c1e71,_0x1ccdb4)=>{const _0x3cb99a=a4_0x158584;_0x2c1e71['on'](_0x3cb99a(0x18f)+_0x3cb99a(0x17d),async _0x141f56=>{const _0xd25dbf=_0x3cb99a;if(!_0x141f56[_0xd25dbf(0x219)])return;if(_0x141f56['customId']==_0xd25dbf(0x220)){let _0x354ecf=_0x141f56[_0xd25dbf(0x1bc)][0x0][_0xd25dbf(0x221)](_0xd25dbf(0x1c1))[0x1],_0x10b5fd=await query(_0x1ccdb4,_0xd25dbf(0x182)+'ROM\x20option'+'s\x20WHERE\x20id'+'=\x27'+_0x354ecf+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x53924f=await queryMulti(_0x1ccdb4,'SELECT\x20*\x20F'+_0xd25dbf(0x1e2)+_0xd25dbf(0x211)+'optionID=\x27'+_0x354ecf+(_0xd25dbf(0x1b5)+'dID=\x27')+_0x141f56['guildId']+'\x27');if(_0x53924f){let _0x14a5b=new ModalBuilder()['setTitle'](_0xd25dbf(0x191)+'m')[_0xd25dbf(0x1da)+'d'](_0xd25dbf(0x1db)+_0x354ecf);return _0x53924f['forEach']((_0x43d021,_0x316ee2)=>{const _0x7def91=_0xd25dbf;let _0x1da782=new TextInputBuilder()[_0x7def91(0x1c8)](_0x43d021[_0x7def91(0x1c2)])[_0x7def91(0x1b9)](_0x43d021[_0x7def91(0x1ee)+'e'])[_0x7def91(0x19e)+'d'](_0x43d021[_0x7def91(0x198)])[_0x7def91(0x1da)+'d']('input_'+_0x43d021['id'])[_0x7def91(0x176)+_0x7def91(0x1cc)](_0x43d021[_0x7def91(0x1bd)+'er']),_0x5123ac=new ActionRowBuilder()[_0x7def91(0x20b)+_0x7def91(0x1a9)](_0x1da782);_0x14a5b[_0x7def91(0x20b)+_0x7def91(0x1a9)](_0x5123ac);}),_0x141f56[_0xd25dbf(0x19f)](_0x14a5b);}else{if(_0xd25dbf(0x16d)===_0xd25dbf(0x16d)){const _0x3bd581={};_0x3bd581['ephemeral']=!![],await _0x141f56[_0xd25dbf(0x194)](_0x3bd581);let _0x15dd4e=new EmbedBuilder()[_0xd25dbf(0x1a0)+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x1eb)+_0xd25dbf(0x22e)](ticket_settings[_0xd25dbf(0x178)+_0xd25dbf(0x21f)][_0xd25dbf(0x229)](_0xd25dbf(0x231),_0x141f56[_0xd25dbf(0x193)]))['setThumbna'+'il'](ticket_settings['ticket_thu'+_0xd25dbf(0x1f3)])[_0xd25dbf(0x1e8)]({'name':_0x141f56['user'][_0xd25dbf(0x183)],'iconURL':_0x141f56[_0xd25dbf(0x193)]['avatarURL']()}),_0x2e971f=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x223)+_0xd25dbf(0x196)+_0xd25dbf(0x1b8)+_0xd25dbf(0x1a5)+'ID=\x27'+_0x141f56['user']['id']+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x1a5e22=_0x2c1e71[_0xd25dbf(0x216)]['cache'][_0xd25dbf(0x236)](_0x2e971f?.[_0xd25dbf(0x1ba)]);if(_0x2e971f&&_0x1a5e22)return _0x141f56[_0xd25dbf(0x1cb)]({'content':_0xd25dbf(0x19a)+'y\x20have\x20a\x20t'+_0xd25dbf(0x226)+_0xd25dbf(0x1d2)+_0xd25dbf(0x16f)+_0x1a5e22,'ephemeral':!![]});let _0x21f8a3=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x18d)+'gs\x20WHERE\x20g'+_0xd25dbf(0x1be)+_0x141f56[_0xd25dbf(0x16e)]+'\x27');_0x1ccdb4[_0xd25dbf(0x1e5)](_0xd25dbf(0x214)+'tings\x20SET\x20'+_0xd25dbf(0x1e7)+'nter=ticke'+_0xd25dbf(0x21d)+_0xd25dbf(0x1ab)+_0xd25dbf(0x184)+_0x141f56[_0xd25dbf(0x16e)]+'\x27');const _0x2997c8={};_0x2997c8['id']=_0x2c1e71['user']['id'],_0x2997c8['allow']=[_0xd25dbf(0x208)+'l',_0xd25dbf(0x1fc)+'es'],_0x1a5e22=await _0x141f56[_0xd25dbf(0x18c)]['channels'][_0xd25dbf(0x215)]({'parent':_0x10b5fd?.[_0xd25dbf(0x20c)],'name':'ticket-'+pad(_0x21f8a3[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),'topic':_0xd25dbf(0x212)+_0xd25dbf(0x179)+_0x141f56['user'][_0xd25dbf(0x1ff)],'permissionOverwrites':[{'id':_0x141f56[_0xd25dbf(0x16e)],'deny':[_0xd25dbf(0x208)+'l',_0xd25dbf(0x1fc)+'es']},{'id':_0x141f56[_0xd25dbf(0x1ef)]['id'],'allow':[_0xd25dbf(0x208)+'l','SendMessag'+'es']},_0x2997c8,{'id':_0x21f8a3?.[_0xd25dbf(0x1ad)+'leID'],'allow':['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es']}]});let _0x563af4=new ButtonBuilder()[_0xd25dbf(0x1a6)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1b1)])[_0xd25dbf(0x1c8)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x207)])[_0xd25dbf(0x1b9)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1ea)])[_0xd25dbf(0x1da)+'d'](_0xd25dbf(0x1fd)+'et'),_0x1dbe1b=new ActionRowBuilder()[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x563af4);const _0x296f4a={};_0x296f4a['content']='<@&'+_0x21f8a3?.['support_ro'+_0xd25dbf(0x177)]+'>',_0x296f4a[_0xd25dbf(0x185)]=[_0x15dd4e],_0x296f4a[_0xd25dbf(0x1d4)]=[_0x1dbe1b],await _0x1a5e22['send'](_0x296f4a);const _0x3b5a1c={};_0x3b5a1c['content']='You\x20succes'+_0xd25dbf(0x186)+'ated\x20a\x20tic'+_0xd25dbf(0x1c4)+_0xd25dbf(0x1e3)+'e\x20'+_0x1a5e22,_0x3b5a1c[_0xd25dbf(0x1f6)]=!![],await _0x141f56[_0xd25dbf(0x1cb)](_0x3b5a1c),_0x1ccdb4[_0xd25dbf(0x1e5)](_0xd25dbf(0x20a)+_0xd25dbf(0x1b2)+'(id,\x20statu'+_0xd25dbf(0x17e)+_0xd25dbf(0x19d)+'channelID)'+_0xd25dbf(0x1ae)+_0xd25dbf(0x1e6)+_0xd25dbf(0x201),[pad(_0x21f8a3[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),_0xd25dbf(0x1d9),_0x141f56['user']['id'],_0x141f56[_0xd25dbf(0x16e)],_0x1a5e22['id']]);}else return function(_0xb4f146){}[_0xd25dbf(0x1d0)+'r'](_0xd25dbf(0x21b)+_0xd25dbf(0x1f7))[_0xd25dbf(0x1ac)]('counter');}}else{if(_0x141f56[_0xd25dbf(0x219)][_0xd25dbf(0x180)](_0xd25dbf(0x1db))){if(!_0x141f56[_0xd25dbf(0x1e1)+_0xd25dbf(0x18b)]())return;const _0x1b88f8={};_0x1b88f8[_0xd25dbf(0x1f6)]=!![],await _0x141f56[_0xd25dbf(0x194)](_0x1b88f8);let _0x46f77c=_0x141f56['customId']['split'](_0xd25dbf(0x1db))[0x1],_0x30497f=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x21c)+_0xd25dbf(0x16a)+'=\x27'+_0x46f77c+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x50c5ec=new EmbedBuilder()['setTimesta'+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x1eb)+_0xd25dbf(0x22e)](ticket_settings[_0xd25dbf(0x178)+_0xd25dbf(0x21f)]['replace'](_0xd25dbf(0x231),_0x141f56['user']))[_0xd25dbf(0x1e8)]({'name':_0x141f56[_0xd25dbf(0x193)]['tag'],'iconURL':_0x141f56['user'][_0xd25dbf(0x187)]()}),_0x5de644=new EmbedBuilder()[_0xd25dbf(0x1a0)+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x1e8)]({'name':_0x141f56[_0xd25dbf(0x193)][_0xd25dbf(0x183)],'iconURL':_0x141f56[_0xd25dbf(0x193)][_0xd25dbf(0x187)]()});_0x141f56[_0xd25dbf(0x22a)][_0xd25dbf(0x22a)][_0xd25dbf(0x1aa)](async _0x3937cc=>{const _0x5c81a9=_0xd25dbf;let _0x4b647e=await query(_0x1ccdb4,_0x5c81a9(0x182)+_0x5c81a9(0x1e2)+_0x5c81a9(0x211)+_0x5c81a9(0x202)+_0x3937cc[_0x5c81a9(0x219)][_0x5c81a9(0x221)](_0x5c81a9(0x1f2))[0x1]+('\x27\x20AND\x20guil'+_0x5c81a9(0x217))+_0x141f56[_0x5c81a9(0x16e)]+'\x27');const _0xf70e70={};_0xf70e70[_0x5c81a9(0x1cf)]=_0x4b647e['question'],_0xf70e70['value']='```'+_0x3937cc[_0x5c81a9(0x203)]+_0x5c81a9(0x1bf),_0xf70e70[_0x5c81a9(0x1a4)]=![],_0x5de644[_0x5c81a9(0x222)](_0xf70e70);});let _0x3ce2f7=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x223)+'s\x20WHERE\x20st'+_0xd25dbf(0x1b8)+_0xd25dbf(0x1a5)+_0xd25dbf(0x210)+_0x141f56[_0xd25dbf(0x193)]['id']+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56['guildId']+'\x27'),_0x5a9bd5=_0x2c1e71[_0xd25dbf(0x216)][_0xd25dbf(0x213)]['get'](_0x3ce2f7?.[_0xd25dbf(0x1ba)]);if(_0x3ce2f7&&_0x5a9bd5)return _0x141f56[_0xd25dbf(0x1cb)]({'content':_0xd25dbf(0x19a)+_0xd25dbf(0x1ed)+_0xd25dbf(0x226)+_0xd25dbf(0x1d2)+_0xd25dbf(0x16f)+_0x5a9bd5,'ephemeral':!![]});let _0x27ebcb=await query(_0x1ccdb4,'SELECT\x20*\x20F'+_0xd25dbf(0x18d)+_0xd25dbf(0x1c0)+_0xd25dbf(0x1be)+_0x141f56[_0xd25dbf(0x16e)]+'\x27');_0x1ccdb4[_0xd25dbf(0x1e5)]('UPDATE\x20set'+_0xd25dbf(0x1d7)+_0xd25dbf(0x1e7)+_0xd25dbf(0x1f9)+_0xd25dbf(0x21d)+_0xd25dbf(0x1ab)+_0xd25dbf(0x184)+_0x141f56['guildId']+'\x27');const _0x518b83={};_0x518b83['id']=_0x2c1e71[_0xd25dbf(0x193)]['id'],_0x518b83[_0xd25dbf(0x1c9)]=['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es'],_0x5a9bd5=await _0x141f56[_0xd25dbf(0x18c)][_0xd25dbf(0x216)][_0xd25dbf(0x215)]({'parent':_0x30497f?.[_0xd25dbf(0x20c)],'name':_0xd25dbf(0x1c7)+pad(_0x27ebcb[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),'topic':'#Ticket\x20|\x20'+_0xd25dbf(0x179)+_0x141f56[_0xd25dbf(0x193)][_0xd25dbf(0x1ff)],'permissionOverwrites':[{'id':_0x141f56[_0xd25dbf(0x16e)],'deny':['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es']},{'id':_0x141f56['member']['id'],'allow':['ViewChanne'+'l',_0xd25dbf(0x1fc)+'es']},_0x518b83,{'id':_0x27ebcb?.[_0xd25dbf(0x1ad)+_0xd25dbf(0x177)],'allow':[_0xd25dbf(0x208)+'l',_0xd25dbf(0x1fc)+'es']}]});let _0x57cf4a=new ButtonBuilder()[_0xd25dbf(0x1a6)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1b1)])[_0xd25dbf(0x1c8)](ticket_settings[_0xd25dbf(0x1d5)+'elabel'])[_0xd25dbf(0x1b9)](ticket_settings[_0xd25dbf(0x1d5)+_0xd25dbf(0x1ea)])['setCustomI'+'d']('close_tick'+'et'),_0x4c6d76=new ActionRowBuilder()[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x57cf4a);const _0x1fe060={};_0x1fe060['content']=_0xd25dbf(0x189)+_0x27ebcb?.[_0xd25dbf(0x1ad)+'leID']+'>',_0x1fe060[_0xd25dbf(0x185)]=[_0x50c5ec,_0x5de644],_0x1fe060[_0xd25dbf(0x1d4)]=[_0x4c6d76],await _0x5a9bd5[_0xd25dbf(0x227)](_0x1fe060);const _0x3a2617={};_0x3a2617[_0xd25dbf(0x17c)]=_0xd25dbf(0x1f4)+_0xd25dbf(0x186)+'ated\x20a\x20tic'+_0xd25dbf(0x1c4)+_0xd25dbf(0x1e3)+'e\x20'+_0x5a9bd5,_0x3a2617[_0xd25dbf(0x1f6)]=!![],await _0x141f56[_0xd25dbf(0x1cb)](_0x3a2617),_0x1ccdb4[_0xd25dbf(0x1e5)](_0xd25dbf(0x20a)+_0xd25dbf(0x1b2)+_0xd25dbf(0x199)+_0xd25dbf(0x17e)+_0xd25dbf(0x19d)+_0xd25dbf(0x1bb)+_0xd25dbf(0x1ae)+_0xd25dbf(0x1e6)+_0xd25dbf(0x201),[pad(_0x27ebcb[_0xd25dbf(0x1e7)+_0xd25dbf(0x1cd)]+0x1,0x4),_0xd25dbf(0x1d9),_0x141f56[_0xd25dbf(0x193)]['id'],_0x141f56[_0xd25dbf(0x16e)],_0x5a9bd5['id']]);}else{if(_0x141f56['customId']==_0xd25dbf(0x1fd)+'et'){let _0x89d221=new ModalBuilder()[_0xd25dbf(0x1a1)](_0xd25dbf(0x20f)+'et')[_0xd25dbf(0x1da)+'d'](_0xd25dbf(0x1fd)+_0xd25dbf(0x225)),_0x26437c=new TextInputBuilder()[_0xd25dbf(0x19e)+'d'](![])[_0xd25dbf(0x1da)+'d']('input')['setStyle'](_0xd25dbf(0x204))[_0xd25dbf(0x1c8)](_0xd25dbf(0x230)+_0xd25dbf(0x18e)),_0x87597d=new ActionRowBuilder()[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x26437c);return _0x89d221[_0xd25dbf(0x20b)+_0xd25dbf(0x1a9)](_0x87597d),_0x141f56[_0xd25dbf(0x19f)](_0x89d221);}else{if(_0x141f56[_0xd25dbf(0x219)]=='close_tick'+_0xd25dbf(0x225)){if(_0xd25dbf(0x1c6)!==_0xd25dbf(0x1c6)){const _0x3b1aa0=_0x298d14?function(){if(_0x1442ca){const _0x42bf3f=_0x860a91['apply'](_0x411b5c,arguments);return _0x3a7675=null,_0x42bf3f;}}:function(){};return _0x11f9a0=![],_0x3b1aa0;}else{if(!_0x141f56[_0xd25dbf(0x1e1)+_0xd25dbf(0x18b)]())return;const _0x1326cd={};_0x1326cd['ephemeral']=!![],await _0x141f56['deferReply'](_0x1326cd);let _0x3d23ca=_0x141f56['fields'][_0xd25dbf(0x224)+_0xd25dbf(0x173)](_0xd25dbf(0x1b3));const _0x42aa3f={};_0x42aa3f[_0xd25dbf(0x172)]=!![],_0x42aa3f[_0xd25dbf(0x1b7)]=_0xd25dbf(0x1d6)+_0xd25dbf(0x1a2)+_0xd25dbf(0x1de),_0x42aa3f[_0xd25dbf(0x16b)]=![];let _0x1d26e5=await discordTranscripts['createTran'+_0xd25dbf(0x238)](_0x141f56[_0xd25dbf(0x237)],_0x42aa3f);const _0x17e607={};_0x17e607[_0xd25dbf(0x17c)]=_0xd25dbf(0x1f4)+_0xd25dbf(0x206)+'sed\x20the\x20ti'+'cket!',_0x17e607[_0xd25dbf(0x1f6)]=!![],await _0x141f56['editReply'](_0x17e607);let _0xbb9286=await query(_0x1ccdb4,_0xd25dbf(0x182)+_0xd25dbf(0x223)+_0xd25dbf(0x196)+_0xd25dbf(0x1b8)+_0xd25dbf(0x22d)+_0xd25dbf(0x169)+_0x141f56[_0xd25dbf(0x237)]['id']+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x53073f=await query(_0x1ccdb4,_0xd25dbf(0x182)+'ROM\x20settin'+_0xd25dbf(0x1c0)+_0xd25dbf(0x1be)+_0x141f56['guildId']+'\x27'),_0x2d2787=_0x53073f?.[_0xd25dbf(0x1d3)+_0xd25dbf(0x1fa)],_0xb49309=_0x2c1e71['channels'][_0xd25dbf(0x213)]['get'](_0x2d2787),_0x4f074e=_0x2c1e71[_0xd25dbf(0x22b)][_0xd25dbf(0x213)]['get'](_0xbb9286[_0xd25dbf(0x1c3)]);const _0x4be551={};_0x4be551['text']=_0x141f56['guild'][_0xd25dbf(0x1cf)];const _0x1094be={};_0x1094be['name']='Ticket\x20has'+_0xd25dbf(0x1fe)+_0xd25dbf(0x200);const _0x2feef0={};_0x2feef0['name']='Ticket',_0x2feef0[_0xd25dbf(0x203)]=_0xd25dbf(0x1bf)+_0x141f56[_0xd25dbf(0x237)]['name']+_0xd25dbf(0x1bf),_0x2feef0['inline']=!![];const _0x48208d={};_0x48208d[_0xd25dbf(0x1cf)]='Ticket\x20Aut'+_0xd25dbf(0x1af),_0x48208d[_0xd25dbf(0x203)]=_0xd25dbf(0x1bf)+_0x4f074e[_0xd25dbf(0x183)]+_0xd25dbf(0x1bf),_0x48208d[_0xd25dbf(0x1a4)]=!![];const _0x2a2fc5={};_0x2a2fc5['name']=_0xd25dbf(0x1c5),_0x2a2fc5['value']=_0xd25dbf(0x1bf)+_0x141f56[_0xd25dbf(0x18c)]['name']+_0xd25dbf(0x1bf),_0x2a2fc5[_0xd25dbf(0x1a4)]=!![];const _0xe99989={};_0xe99989[_0xd25dbf(0x1cf)]=_0xd25dbf(0x175),_0xe99989[_0xd25dbf(0x203)]=_0xd25dbf(0x1bf)+_0x3d23ca+'```',_0xe99989['inline']=![];let _0x3bfb03=new EmbedBuilder()['setTimesta'+'mp']()[_0xd25dbf(0x1a8)](ticket_settings[_0xd25dbf(0x1b4)+'r'])[_0xd25dbf(0x18a)](_0x4be551)[_0xd25dbf(0x1e8)](_0x1094be)[_0xd25dbf(0x222)](_0x2feef0,_0x48208d,_0x2a2fc5,_0xe99989);const _0x4417a0={};_0x4417a0[_0xd25dbf(0x185)]=[_0x3bfb03],_0x4417a0['files']=[_0x1d26e5],await _0x4f074e?.[_0xd25dbf(0x227)](_0x4417a0)[_0xd25dbf(0x22c)](_0x3f4c75=>{});const _0x532f42={};return _0x532f42[_0xd25dbf(0x185)]=[_0x3bfb03],_0x532f42[_0xd25dbf(0x1e4)]=[_0x1d26e5],await _0xb49309?.[_0xd25dbf(0x227)](_0x532f42)[_0xd25dbf(0x22c)](_0x35f8d8=>{}),await query(_0x1ccdb4,_0xd25dbf(0x19b)+_0xd25dbf(0x1a3)+_0xd25dbf(0x171)+'sed\x27\x20WHERE'+_0xd25dbf(0x168)+'=\x27'+_0x2d2787+(_0xd25dbf(0x1b5)+_0xd25dbf(0x217))+_0x141f56[_0xd25dbf(0x16e)]+'\x27'),_0x141f56['channel'][_0xd25dbf(0x192)]();}}}}}});};function pad(_0x48a0b8,_0x5ca8b2){const _0x22f5f1=a4_0x158584;_0x48a0b8=_0x48a0b8[_0x22f5f1(0x16c)]();while(_0x48a0b8['length']<_0x5ca8b2)_0x48a0b8='0'+_0x48a0b8;return _0x48a0b8;}function a4_0x671e8d(_0x218198){const _0xd833d0=a4_0x158584;function _0x4cd39c(_0x114fc8){const _0x2a9656=a4_0x16f0;if(typeof _0x114fc8===_0x2a9656(0x1f5)){if(_0x2a9656(0x1e9)!==_0x2a9656(0x174))return function(_0x231b18){}[_0x2a9656(0x1d0)+'r']('while\x20(tru'+'e)\x20{}')['apply'](_0x2a9656(0x17f));else{if(_0x444dac){const _0x127d1e=_0x1f9ec1[_0x2a9656(0x1ac)](_0x28c07c,arguments);return _0x1788de=null,_0x127d1e;}}}else{if((''+_0x114fc8/_0x114fc8)[_0x2a9656(0x1b6)]!==0x1||_0x114fc8%0x14===0x0)(function(){return!![];}[_0x2a9656(0x1d0)+'r']('debu'+_0x2a9656(0x233))[_0x2a9656(0x22f)](_0x2a9656(0x1a7)));else{if(_0x2a9656(0x190)!==_0x2a9656(0x190)){if(_0x528986)return _0x564d9a;else _0x570b01(0x0);}else(function(){const _0x1c459c=_0x2a9656;if(_0x1c459c(0x20e)!==_0x1c459c(0x20e)){let _0x5dd093=new _0x26f4cb()[_0x1c459c(0x1a1)](_0x1c459c(0x20f)+'et')['setCustomI'+'d'](_0x1c459c(0x1fd)+_0x1c459c(0x225)),_0x2d764b=new _0x7c0d1a()['setRequire'+'d'](![])[_0x1c459c(0x1da)+'d'](_0x1c459c(0x1b3))[_0x1c459c(0x1b9)](_0x1c459c(0x204))['setLabel']('Close\x20mess'+'age'),_0x4f4daa=new _0x2fa683()['addCompone'+_0x1c459c(0x1a9)](_0x2d764b);return _0x5dd093[_0x1c459c(0x20b)+_0x1c459c(0x1a9)](_0x4f4daa),_0x3a5b1a[_0x1c459c(0x19f)](_0x5dd093);}else return![];}[_0x2a9656(0x1d0)+'r'](_0x2a9656(0x181)+_0x2a9656(0x233))[_0x2a9656(0x1ac)]('stateObjec'+'t'));}}_0x4cd39c(++_0x114fc8);}try{if(_0x218198){if(_0xd833d0(0x218)!==_0xd833d0(0x218)){const _0x114b11=_0x3f5baa?function(){const _0x2a197c=_0xd833d0;if(_0x201105){const _0x4801fb=_0x2b89f7[_0x2a197c(0x1ac)](_0x424408,arguments);return _0x4e757e=null,_0x4801fb;}}:function(){};return _0x156210=![],_0x114b11;}else return _0x4cd39c;}else _0x4cd39c(0x0);}catch(_0x176c7b){}} \ No newline at end of file +const a4_0x1098bc = function () { + let _0x4cdd23 = true; + return function (_0x5a2b99, _0x1fff96) { + const _0x20e364 = _0x4cdd23 ? function () { + if (_0x1fff96) { + const _0x2898c0 = _0x1fff96.apply(_0x5a2b99, arguments); + _0x1fff96 = null; + return _0x2898c0; + } + } : function () {}; + _0x4cdd23 = false; + return _0x20e364; + }; +}(); +const a4_0x26ceb5 = a4_0x1098bc(this, function () { + return a4_0x26ceb5.toString().search("(((.+)+)+)+$").toString().constructor(a4_0x26ceb5).search("(((.+)+)+)+$"); +}); +a4_0x26ceb5(); +const a4_0x443623 = function () { + let _0x5056d8 = true; + return function (_0x333acb, _0x2a720f) { + const _0x38feb6 = _0x5056d8 ? function () { + if (_0x2a720f) { + const _0x1125b4 = _0x2a720f.apply(_0x333acb, arguments); + _0x2a720f = null; + return _0x1125b4; + } + } : function () {}; + _0x5056d8 = false; + return _0x38feb6; + }; +}(); +(function () { + a4_0x443623(this, function () { + const _0x144279 = new RegExp("function *\\( *\\)"); + const _0x286410 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x1c198d = a4_0x671e8d("init"); + if (!_0x144279.test(_0x1c198d + 'chain') || !_0x286410.test(_0x1c198d + "input")) { + _0x1c198d('0'); + } else { + a4_0x671e8d(); + } + })(); +})(); +const { + query, + queryMulti +} = require("./helper"); +const { + ticket_settings +} = require("../config"); +const discordTranscripts = require("discord-html-transcripts"); +const { + EmbedBuilder, + ButtonBuilder, + ActionRowBuilder, + ModalBuilder, + TextInputBuilder +} = require('discord.js'); +module.exports = async (_0x2c1e71, _0x1ccdb4) => { + _0x2c1e71.on("interactionCreate", async _0x141f56 => { + if (!_0x141f56.customId) { + return; + } + if (_0x141f56.customId == "newTicket") { + let _0x354ecf = _0x141f56.values[0x0].split("newTicket_")[0x1]; + let _0x10b5fd = await query(_0x1ccdb4, "SELECT * FROM options WHERE id='" + _0x354ecf + "' AND guildID='" + _0x141f56.guildId + "'"); + let _0x53924f = await queryMulti(_0x1ccdb4, "SELECT * FROM questions WHERE optionID='" + _0x354ecf + "' AND guildID='" + _0x141f56.guildId + "'"); + if (_0x53924f) { + let _0x14a5b = new ModalBuilder().setTitle("Ticket Form").setCustomId("ticket_" + _0x354ecf); + _0x53924f.forEach((_0x43d021, _0x316ee2) => { + let _0x1da782 = new TextInputBuilder().setLabel(_0x43d021.question).setStyle(_0x43d021.answer_type).setRequired(_0x43d021.required).setCustomId('input_' + _0x43d021.id).setPlaceholder(_0x43d021.place_holder); + let _0x5123ac = new ActionRowBuilder().addComponents(_0x1da782); + _0x14a5b.addComponents(_0x5123ac); + }); + return _0x141f56.showModal(_0x14a5b); + } else { + const _0x3bd581 = { + ephemeral: true + }; + await _0x141f56.deferReply(_0x3bd581); + let _0x15dd4e = new EmbedBuilder().setTimestamp().setColor(ticket_settings.embed_color).setDescription(ticket_settings.ticket_message.replace("{user}", _0x141f56.user)).setThumbnail(ticket_settings.ticket_thumbnail).setAuthor({ + 'name': _0x141f56.user.tag, + 'iconURL': _0x141f56.user.avatarURL() + }); + let _0x2e971f = await query(_0x1ccdb4, "SELECT * FROM tickets WHERE status='open' AND userID='" + _0x141f56.user.id + "' AND guildID='" + _0x141f56.guildId + "'"); + let _0x1a5e22 = _0x2c1e71.channels.cache.get(_0x2e971f?.["channelID"]); + if (_0x2e971f && _0x1a5e22) { + return _0x141f56.editReply({ + 'content': "You already have a ticket! Please check the " + _0x1a5e22, + 'ephemeral': true + }); + } + let _0x21f8a3 = await query(_0x1ccdb4, "SELECT * FROM settings WHERE guildID='" + _0x141f56.guildId + "'"); + _0x1ccdb4.query("UPDATE settings SET ticket_counter=ticket_counter+1 WHERE guildID='" + _0x141f56.guildId + "'"); + const _0x2997c8 = { + id: _0x2c1e71.user.id, + allow: ["ViewChannel", "SendMessages"] + }; + _0x1a5e22 = await _0x141f56.guild.channels.create({ + 'parent': _0x10b5fd?.["categoryID"], + 'name': 'ticket-' + pad(_0x21f8a3.ticket_counter + 0x1, 0x4), + 'topic': "#Ticket | From " + _0x141f56.user.username, + 'permissionOverwrites': [{ + 'id': _0x141f56.guildId, + 'deny': ["ViewChannel", "SendMessages"] + }, { + 'id': _0x141f56.member.id, + 'allow': ["ViewChannel", "SendMessages"] + }, _0x2997c8, { + 'id': _0x21f8a3?.["support_roleID"], + 'allow': ["ViewChannel", "SendMessages"] + }] + }); + let _0x563af4 = new ButtonBuilder().setEmoji(ticket_settings.buttoncloseemoji).setLabel(ticket_settings.buttoncloselabel).setStyle(ticket_settings.buttonclosestyle).setCustomId("close_ticket"); + let _0x1dbe1b = new ActionRowBuilder().addComponents(_0x563af4); + const _0x296f4a = { + content: '<@&' + _0x21f8a3?.["support_roleID"] + '>', + "embeds": [_0x15dd4e], + "components": [_0x1dbe1b] + }; + await _0x1a5e22.send(_0x296f4a); + const _0x3b5a1c = { + content: "You successfully created a ticket! Please check the " + _0x1a5e22, + "ephemeral": true + }; + await _0x141f56.editReply(_0x3b5a1c); + _0x1ccdb4.query("INSERT INTO tickets (id, status, userID, guildID, channelID) VALUES (?, ?, ?, ?, ?)", [pad(_0x21f8a3.ticket_counter + 0x1, 0x4), "open", _0x141f56.user.id, _0x141f56.guildId, _0x1a5e22.id]); + } + } else { + if (_0x141f56.customId.startsWith("ticket_")) { + if (!_0x141f56.isModalSubmit()) { + return; + } + const _0x1b88f8 = { + "ephemeral": true + }; + await _0x141f56.deferReply(_0x1b88f8); + let _0x46f77c = _0x141f56.customId.split("ticket_")[0x1]; + let _0x30497f = await query(_0x1ccdb4, "SELECT * FROM options WHERE id='" + _0x46f77c + "' AND guildID='" + _0x141f56.guildId + "'"); + let _0x50c5ec = new EmbedBuilder().setTimestamp().setColor(ticket_settings.embed_color).setDescription(ticket_settings.ticket_message.replace("{user}", _0x141f56.user)).setAuthor({ + 'name': _0x141f56.user.tag, + 'iconURL': _0x141f56.user.avatarURL() + }); + let _0x5de644 = new EmbedBuilder().setTimestamp().setColor(ticket_settings.embed_color).setAuthor({ + 'name': _0x141f56.user.tag, + 'iconURL': _0x141f56.user.avatarURL() + }); + _0x141f56.fields.fields.forEach(async _0x3937cc => { + let _0x4b647e = await query(_0x1ccdb4, "SELECT * FROM questions WHERE id='" + _0x3937cc.customId.split("input_")[0x1] + "' AND guildID='" + _0x141f56.guildId + "'"); + const _0xf70e70 = { + "name": _0x4b647e.question, + value: '```' + _0x3937cc.value + "```", + "inline": false + }; + _0x5de644.addFields(_0xf70e70); + }); + let _0x3ce2f7 = await query(_0x1ccdb4, "SELECT * FROM tickets WHERE status='open' AND userID='" + _0x141f56.user.id + "' AND guildID='" + _0x141f56.guildId + "'"); + let _0x5a9bd5 = _0x2c1e71.channels.cache.get(_0x3ce2f7?.["channelID"]); + if (_0x3ce2f7 && _0x5a9bd5) { + return _0x141f56.editReply({ + 'content': "You already have a ticket! Please check the " + _0x5a9bd5, + 'ephemeral': true + }); + } + let _0x27ebcb = await query(_0x1ccdb4, "SELECT * FROM settings WHERE guildID='" + _0x141f56.guildId + "'"); + _0x1ccdb4.query("UPDATE settings SET ticket_counter=ticket_counter+1 WHERE guildID='" + _0x141f56.guildId + "'"); + const _0x518b83 = { + id: _0x2c1e71.user.id, + "allow": ["ViewChannel", "SendMessages"] + }; + _0x5a9bd5 = await _0x141f56.guild.channels.create({ + 'parent': _0x30497f?.["categoryID"], + 'name': "ticket-" + pad(_0x27ebcb.ticket_counter + 0x1, 0x4), + 'topic': "#Ticket | From " + _0x141f56.user.username, + 'permissionOverwrites': [{ + 'id': _0x141f56.guildId, + 'deny': ["ViewChannel", "SendMessages"] + }, { + 'id': _0x141f56.member.id, + 'allow': ["ViewChannel", "SendMessages"] + }, _0x518b83, { + 'id': _0x27ebcb?.["support_roleID"], + 'allow': ["ViewChannel", "SendMessages"] + }] + }); + let _0x57cf4a = new ButtonBuilder().setEmoji(ticket_settings.buttoncloseemoji).setLabel(ticket_settings.buttoncloselabel).setStyle(ticket_settings.buttonclosestyle).setCustomId("close_ticket"); + let _0x4c6d76 = new ActionRowBuilder().addComponents(_0x57cf4a); + const _0x1fe060 = { + content: "<@&" + _0x27ebcb?.["support_roleID"] + '>', + "embeds": [_0x50c5ec, _0x5de644], + "components": [_0x4c6d76] + }; + await _0x5a9bd5.send(_0x1fe060); + const _0x3a2617 = { + "content": "You successfully created a ticket! Please check the " + _0x5a9bd5, + "ephemeral": true + }; + await _0x141f56.editReply(_0x3a2617); + _0x1ccdb4.query("INSERT INTO tickets (id, status, userID, guildID, channelID) VALUES (?, ?, ?, ?, ?)", [pad(_0x27ebcb.ticket_counter + 0x1, 0x4), "open", _0x141f56.user.id, _0x141f56.guildId, _0x5a9bd5.id]); + } else { + if (_0x141f56.customId == "close_ticket") { + let _0x89d221 = new ModalBuilder().setTitle("Close Ticket").setCustomId("close_ticket_form"); + let _0x26437c = new TextInputBuilder().setRequired(false).setCustomId('input').setStyle("Paragraph").setLabel("Close message"); + let _0x87597d = new ActionRowBuilder().addComponents(_0x26437c); + _0x89d221.addComponents(_0x87597d); + return _0x141f56.showModal(_0x89d221); + } else { + if (_0x141f56.customId == "close_ticket_form") { + if (!_0x141f56.isModalSubmit()) { + return; + } + const _0x1326cd = { + ephemeral: true + }; + await _0x141f56.deferReply(_0x1326cd); + let _0x3d23ca = _0x141f56.fields.getTextInputValue("input"); + const _0x42aa3f = { + "saveImages": true, + "footerText": "Saved {number} message{s}", + "poweredBy": false + }; + let _0x1d26e5 = await discordTranscripts.createTranscript(_0x141f56.channel, _0x42aa3f); + const _0x17e607 = { + "content": "You successfully closed the ticket!", + "ephemeral": true + }; + await _0x141f56.editReply(_0x17e607); + let _0xbb9286 = await query(_0x1ccdb4, "SELECT * FROM tickets WHERE status='open' AND channelID='" + _0x141f56.channel.id + "' AND guildID='" + _0x141f56.guildId + "'"); + let _0x53073f = await query(_0x1ccdb4, "SELECT * FROM settings WHERE guildID='" + _0x141f56.guildId + "'"); + let _0x2d2787 = _0x53073f?.["log_channelID"]; + let _0xb49309 = _0x2c1e71.channels.cache.get(_0x2d2787); + let _0x4f074e = _0x2c1e71.users.cache.get(_0xbb9286.userID); + const _0x4be551 = { + 'text': _0x141f56.guild.name + }; + const _0x1094be = { + 'name': "Ticket has been closed!" + }; + const _0x2feef0 = { + name: 'Ticket', + "value": "```" + _0x141f56.channel.name + "```", + inline: true + }; + const _0x48208d = { + "name": "Ticket Author", + "value": "```" + _0x4f074e.tag + "```", + "inline": true + }; + const _0x2a2fc5 = { + name: "Server", + value: "```" + _0x141f56.guild.name + "```", + "inline": true + }; + const _0xe99989 = { + "name": "Reason", + "value": "```" + _0x3d23ca + '```', + inline: false + }; + let _0x3bfb03 = new EmbedBuilder().setTimestamp().setColor(ticket_settings.embed_color).setFooter(_0x4be551).setAuthor(_0x1094be).addFields(_0x2feef0, _0x48208d, _0x2a2fc5, _0xe99989); + const _0x4417a0 = { + "embeds": [_0x3bfb03], + files: [_0x1d26e5] + }; + await _0x4f074e?.["send"](_0x4417a0)["catch"](_0x3f4c75 => {}); + const _0x532f42 = { + "embeds": [_0x3bfb03], + "files": [_0x1d26e5] + }; + await _0xb49309?.["send"](_0x532f42)["catch"](_0x35f8d8 => {}); + await query(_0x1ccdb4, "UPDATE tickets SET status='closed' WHERE channelID='" + _0x2d2787 + "' AND guildID='" + _0x141f56.guildId + "'"); + return _0x141f56.channel["delete"](); + } + } + } + } + }); +}; +function pad(_0x48a0b8, _0x5ca8b2) { + _0x48a0b8 = _0x48a0b8.toString(); + while (_0x48a0b8.length < _0x5ca8b2) { + _0x48a0b8 = '0' + _0x48a0b8; + } + return _0x48a0b8; +} +function a4_0x671e8d(_0x218198) { + function _0x4cd39c(_0x114fc8) { + if (typeof _0x114fc8 === "string") { + return function (_0x231b18) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x114fc8 / _0x114fc8).length !== 0x1 || _0x114fc8 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x4cd39c(++_0x114fc8); + } + try { + if (_0x218198) { + return _0x4cd39c; + } else { + _0x4cd39c(0x0); + } + } catch (_0x176c7b) {} +} \ No newline at end of file diff --git a/helpers/ready.js b/helpers/ready.js index ff9b8c9..3b20d80 100644 --- a/helpers/ready.js +++ b/helpers/ready.js @@ -1 +1,91 @@ -var a5_0x1b6588=a5_0x5e98;(function(_0x3a7bd7,_0x55b35f){var _0x431654=a5_0x5e98,_0x1219e8=_0x3a7bd7();while(!![]){try{var _0x28b061=-parseInt(_0x431654(0x20f))/0x1+-parseInt(_0x431654(0x1db))/0x2*(parseInt(_0x431654(0x1ee))/0x3)+-parseInt(_0x431654(0x22a))/0x4*(-parseInt(_0x431654(0x228))/0x5)+-parseInt(_0x431654(0x1f5))/0x6+parseInt(_0x431654(0x207))/0x7*(parseInt(_0x431654(0x22c))/0x8)+-parseInt(_0x431654(0x226))/0x9+parseInt(_0x431654(0x221))/0xa;if(_0x28b061===_0x55b35f)break;else _0x1219e8['push'](_0x1219e8['shift']());}catch(_0xbb6192){_0x1219e8['push'](_0x1219e8['shift']());}}}(a5_0x47ff,0x5469c));var a5_0x3bf501=(function(){var _0x4e9cf3=!![];return function(_0x34cb3b,_0x6c2501){var _0x58713c=_0x4e9cf3?function(){var _0xdd7b70=a5_0x5e98;if('XSMgV'===_0xdd7b70(0x1e2)){if(_0x4ee518)return _0x1b5edb;else _0x3cad54(0x0);}else{if(_0x6c2501){var _0x182788=_0x6c2501['apply'](_0x34cb3b,arguments);return _0x6c2501=null,_0x182788;}}}:function(){};return _0x4e9cf3=![],_0x58713c;};}()),a5_0x1e7cc0=a5_0x3bf501(this,function(){var _0x195872=a5_0x5e98;return a5_0x1e7cc0[_0x195872(0x1f7)]()[_0x195872(0x1d8)](_0x195872(0x1e5)+'+$')['toString']()[_0x195872(0x1ec)+'r'](a5_0x1e7cc0)[_0x195872(0x1d8)]('(((.+)+)+)'+'+$');});a5_0x1e7cc0();var a5_0x273a9c=(function(){var _0x463463=!![];return function(_0x51ce68,_0x491268){var _0x5aab3f=_0x463463?function(){if(_0x491268){var _0xa18db6=_0x491268['apply'](_0x51ce68,arguments);return _0x491268=null,_0xa18db6;}}:function(){};return _0x463463=![],_0x5aab3f;};}());function a5_0x5e98(_0x24dbe7,_0x52c4cf){var _0x364402=a5_0x47ff();return a5_0x5e98=function(_0x7e176e,_0x273a9c){_0x7e176e=_0x7e176e-0x1d7;var _0x22b665=_0x364402[_0x7e176e];return _0x22b665;},a5_0x5e98(_0x24dbe7,_0x52c4cf);}function a5_0x47ff(){var _0x21ddfd=['ions(\x0a\x20\x20\x20\x20','38676yMPKmR','cription\x20T','16MFWRej','exists\x20opt','XT,\x0a\x20\x20\x20\x20\x20\x20','EXT,\x0a\x20\x20\x20\x20\x20','init','exports','XZEga','search','Avhjf','CREATE\x20TAB','10sutWea','XgGAI','exists\x20tic','\x20answer_ty','estion\x20TEX','xRPIO','exists\x20set','VufuL','\x20status\x20TE','cSOOv','(((.+)+)+)','dVKBk','action','0-9a-zA-Z_','iJatX','chain','yID\x20TEXT,\x0a','constructo','nelID\x20TEXT','15558YYmofW','\x20\x20\x20\x20\x20ticke','pe\x20TEXT,\x0a\x20','elID\x20TEXT\x0a','T,\x0a\x20\x20\x20\x20\x20\x20\x20','\x20\x20)','\x20\x20\x20\x20\x20\x20\x20des','1460898hbwZUO','input','toString','Hlkba','query','function\x20*','guildID\x20VA','length','e)\x20{}','EY\x0a\x20\x20\x20\x20)','RCHAR(255)','while\x20(tru','LE\x20if\x20not\x20','\x20\x20\x20support',',\x0a\x20\x20\x20\x20\x20\x20\x20\x20','TEXT,\x0a\x20\x20\x20\x20','\x20\x20\x20\x20id\x20TEX','\x5c+\x5c+\x20*(?:[','598913VBhaxU','\x5c(\x20*\x5c)','jyuXW','\x20guildID\x20T','me\x20TEXT,\x0a\x20','Hyvqk','\x20\x20\x20\x20\x20\x20\x20pla','gger','421034xtgStx','_required\x20','\x20\x20userID\x20T','\x20\x20\x20\x20answer','BOOLEAN\x0a\x20\x20','\x20\x20log_chan','string','exists\x20que','XHdFi','\x20\x20\x20guildID','debu','stateObjec','$]*)','\x20TEXT,\x0a\x20\x20\x20','counter','\x20\x20\x20\x20\x20chann','tings(\x0a\x20\x20\x20','apply','8107630yoHnfp','test','\x20PRIMARY\x20K','call','a-zA-Z_$][','4210236XVcUxD','_roleID\x20TE','270PHmhyB'];a5_0x47ff=function(){return _0x21ddfd;};return a5_0x47ff();}(function(){a5_0x273a9c(this,function(){var _0x3d354a=a5_0x5e98,_0x231bb4=new RegExp(_0x3d354a(0x1fa)+_0x3d354a(0x208)),_0xda231f=new RegExp(_0x3d354a(0x206)+_0x3d354a(0x225)+_0x3d354a(0x1e8)+'$]*)','i'),_0x3374db=a5_0x7e176e(_0x3d354a(0x230));!_0x231bb4['test'](_0x3374db+_0x3d354a(0x1ea))||!_0xda231f[_0x3d354a(0x222)](_0x3374db+_0x3d354a(0x1f6))?_0x3374db('0'):a5_0x7e176e();})();}()),module[a5_0x1b6588(0x231)]=async _0x3e4acc=>{var _0x1cc274=a5_0x1b6588;_0x3e4acc[_0x1cc274(0x1f9)]('CREATE\x20TAB'+'LE\x20if\x20not\x20'+_0x1cc274(0x1dd)+'kets(\x0a\x20\x20\x20\x20'+_0x1cc274(0x205)+_0x1cc274(0x1f2)+_0x1cc274(0x1e3)+_0x1cc274(0x22e)+_0x1cc274(0x211)+_0x1cc274(0x22f)+_0x1cc274(0x218)+_0x1cc274(0x21c)+_0x1cc274(0x21e)+_0x1cc274(0x1f1)+'\x20\x20\x20\x20)',function(_0x444f6a,_0x5de542){var _0x4b6ceb=_0x1cc274;if('gAVHn'!==_0x4b6ceb(0x1d7)){if(_0x444f6a)throw _0x444f6a;}else{if(_0xa739a7)throw _0x5a2eee;}}),_0x3e4acc[_0x1cc274(0x1f9)](_0x1cc274(0x1da)+'LE\x20if\x20not\x20'+_0x1cc274(0x216)+'stions(\x0a\x20\x20'+'\x20\x20\x20\x20\x20\x20id\x20T'+_0x1cc274(0x22f)+_0x1cc274(0x218)+_0x1cc274(0x21c)+'\x20\x20\x20\x20\x20optio'+'nID\x20TEXT,\x0a'+'\x20\x20\x20\x20\x20\x20\x20\x20qu'+_0x1cc274(0x1df)+'T,\x0a\x20\x20\x20\x20\x20\x20\x20'+_0x1cc274(0x1de)+_0x1cc274(0x1f0)+_0x1cc274(0x20d)+'ce_holder\x20'+_0x1cc274(0x204)+_0x1cc274(0x212)+_0x1cc274(0x210)+_0x1cc274(0x213)+_0x1cc274(0x1f3),function(_0x21b952,_0x1f4bdf){var _0x44a066=_0x1cc274;if(_0x44a066(0x1d9)==='Avhjf'){if(_0x21b952)throw _0x21b952;}else{if(_0x29aa4d)throw _0x2c5122;}}),_0x3e4acc[_0x1cc274(0x1f9)](_0x1cc274(0x1da)+_0x1cc274(0x201)+_0x1cc274(0x1e1)+_0x1cc274(0x21f)+_0x1cc274(0x1ef)+'t_counter\x20'+'INT,\x0a\x20\x20\x20\x20\x20'+_0x1cc274(0x202)+_0x1cc274(0x227)+'XT,\x0a\x20\x20\x20\x20\x20\x20'+_0x1cc274(0x214)+_0x1cc274(0x1ed)+_0x1cc274(0x203)+_0x1cc274(0x1fb)+_0x1cc274(0x1ff)+_0x1cc274(0x223)+_0x1cc274(0x1fe),function(_0x58b252,_0x5e6dff){var _0x337949=_0x1cc274;if(_0x337949(0x1dc)===_0x337949(0x1dc)){if(_0x58b252)throw _0x58b252;}else _0x59bc46(0x0);}),_0x3e4acc[_0x1cc274(0x1f9)]('CREATE\x20TAB'+_0x1cc274(0x201)+_0x1cc274(0x22d)+_0x1cc274(0x229)+_0x1cc274(0x205)+_0x1cc274(0x1f2)+_0x1cc274(0x20a)+_0x1cc274(0x22f)+'\x20\x20\x20categor'+_0x1cc274(0x1eb)+'\x20\x20\x20\x20\x20\x20\x20\x20na'+_0x1cc274(0x20b)+_0x1cc274(0x1f4)+_0x1cc274(0x22b)+'EXT\x0a\x20\x20\x20\x20)',function(_0x43657e,_0x3b71e3){var _0x51340a=_0x1cc274;if('XHdFi'!==_0x51340a(0x217)){var _0x7df093=_0xca3826?function(){var _0x1b7c21=_0x51340a;if(_0xe87ddc){var _0x1c2c90=_0x353021[_0x1b7c21(0x220)](_0x5d253e,arguments);return _0x4e49f0=null,_0x1c2c90;}}:function(){};return _0x553eb6=![],_0x7df093;}else{if(_0x43657e)throw _0x43657e;}});};function a5_0x7e176e(_0x2f23b3){var _0x46019d=a5_0x1b6588;function _0x4482b3(_0x1d25ca){var _0x325d9a=a5_0x5e98;if(typeof _0x1d25ca===_0x325d9a(0x215)){if('FOWqE'!==_0x325d9a(0x1f8))return function(_0x5e98e9){}['constructo'+'r'](_0x325d9a(0x200)+_0x325d9a(0x1fd))[_0x325d9a(0x220)](_0x325d9a(0x21d));else{if(_0x15f45e){var _0x16ef9f=_0x5f1ca6[_0x325d9a(0x220)](_0xcde288,arguments);return _0xb8e21d=null,_0x16ef9f;}}}else{if('rZsQP'===_0x325d9a(0x1e0)){var _0x36c0ff=new _0x56001e('function\x20*'+_0x325d9a(0x208)),_0x32361e=new _0x4195dd(_0x325d9a(0x206)+_0x325d9a(0x225)+_0x325d9a(0x1e8)+_0x325d9a(0x21b),'i'),_0x1d15ec=_0x6309f6(_0x325d9a(0x230));!_0x36c0ff['test'](_0x1d15ec+_0x325d9a(0x1ea))||!_0x32361e[_0x325d9a(0x222)](_0x1d15ec+_0x325d9a(0x1f6))?_0x1d15ec('0'):_0x504505();}else(''+_0x1d25ca/_0x1d25ca)[_0x325d9a(0x1fc)]!==0x1||_0x1d25ca%0x14===0x0?function(){var _0x4a7bca=_0x325d9a;if('nNtqG'!==_0x4a7bca(0x20c))return!![];else(function(){return!![];}[_0x4a7bca(0x1ec)+'r'](_0x4a7bca(0x219)+_0x4a7bca(0x20e))['call'](_0x4a7bca(0x1e7)));}[_0x325d9a(0x1ec)+'r']('debu'+_0x325d9a(0x20e))[_0x325d9a(0x224)]('action'):function(){var _0x354f14=_0x325d9a;if(_0x354f14(0x1e6)!==_0x354f14(0x1e6)){var _0x3edade=_0x34e342?function(){if(_0x4727ca){var _0xa47be4=_0x26fdda['apply'](_0x2bea5c,arguments);return _0x317620=null,_0xa47be4;}}:function(){};return _0x451679=![],_0x3edade;}else return![];}[_0x325d9a(0x1ec)+'r'](_0x325d9a(0x219)+_0x325d9a(0x20e))['apply'](_0x325d9a(0x21a)+'t');}_0x4482b3(++_0x1d25ca);}try{if(_0x46019d(0x209)===_0x46019d(0x209)){if(_0x2f23b3)return'iJatX'!==_0x46019d(0x1e9)?_0x31a56e:_0x4482b3;else _0x46019d(0x1e4)==='cSOOv'?_0x4482b3(0x0):_0x1e25c4('0');}else _0x287d87();}catch(_0x1519c0){}} \ No newline at end of file +var a5_0x3bf501 = function () { + var _0x4e9cf3 = true; + return function (_0x34cb3b, _0x6c2501) { + var _0x58713c = _0x4e9cf3 ? function () { + if (_0x6c2501) { + var _0x182788 = _0x6c2501.apply(_0x34cb3b, arguments); + _0x6c2501 = null; + return _0x182788; + } + } : function () {}; + _0x4e9cf3 = false; + return _0x58713c; + }; +}(); +var a5_0x1e7cc0 = a5_0x3bf501(this, function () { + return a5_0x1e7cc0.toString().search("(((.+)+)+)+$").toString().constructor(a5_0x1e7cc0).search("(((.+)+)+)+$"); +}); +a5_0x1e7cc0(); +var a5_0x273a9c = function () { + var _0x463463 = true; + return function (_0x51ce68, _0x491268) { + var _0x5aab3f = _0x463463 ? function () { + if (_0x491268) { + var _0xa18db6 = _0x491268.apply(_0x51ce68, arguments); + _0x491268 = null; + return _0xa18db6; + } + } : function () {}; + _0x463463 = false; + return _0x5aab3f; + }; +}(); +(function () { + a5_0x273a9c(this, function () { + var _0x231bb4 = new RegExp("function *\\( *\\)"); + var _0xda231f = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + var _0x3374db = a5_0x7e176e("init"); + if (!_0x231bb4.test(_0x3374db + "chain") || !_0xda231f.test(_0x3374db + "input")) { + _0x3374db('0'); + } else { + a5_0x7e176e(); + } + })(); +})(); +module.exports = async _0x3e4acc => { + _0x3e4acc.query("CREATE TABLE if not exists tickets(\n id TEXT,\n status TEXT,\n userID TEXT,\n guildID TEXT,\n channelID TEXT\n )", function (_0x444f6a, _0x5de542) { + if (_0x444f6a) { + throw _0x444f6a; + } + }); + _0x3e4acc.query("CREATE TABLE if not exists questions(\n id TEXT,\n guildID TEXT,\n optionID TEXT,\n question TEXT,\n answer_type TEXT,\n place_holder TEXT,\n answer_required BOOLEAN\n )", function (_0x21b952, _0x1f4bdf) { + if (_0x21b952) { + throw _0x21b952; + } + }); + _0x3e4acc.query("CREATE TABLE if not exists settings(\n ticket_counter INT,\n support_roleID TEXT,\n log_channelID TEXT,\n guildID VARCHAR(255) PRIMARY KEY\n )", function (_0x58b252, _0x5e6dff) { + if (_0x58b252) { + throw _0x58b252; + } + }); + _0x3e4acc.query("CREATE TABLE if not exists options(\n id TEXT,\n guildID TEXT,\n categoryID TEXT,\n name TEXT,\n description TEXT\n )", function (_0x43657e, _0x3b71e3) { + if (_0x43657e) { + throw _0x43657e; + } + }); +}; +function a5_0x7e176e(_0x2f23b3) { + function _0x4482b3(_0x1d25ca) { + if (typeof _0x1d25ca === "string") { + return function (_0x5e98e9) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x1d25ca / _0x1d25ca).length !== 0x1 || _0x1d25ca % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call('action'); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x4482b3(++_0x1d25ca); + } + try { + if (_0x2f23b3) { + return _0x4482b3; + } else { + _0x4482b3(0x0); + } + } catch (_0x1519c0) {} +} \ No newline at end of file diff --git a/index.js b/index.js index 7856265..ec876dc 100644 --- a/index.js +++ b/index.js @@ -1 +1,227 @@ -const a6_0x51a76c=a6_0x1c7b;(function(_0x506561,_0x10c52c){const _0xcf328a=a6_0x1c7b,_0x2c6699=_0x506561();while(!![]){try{const _0xb87121=-parseInt(_0xcf328a(0x202))/0x1*(parseInt(_0xcf328a(0x1f0))/0x2)+parseInt(_0xcf328a(0x18b))/0x3+parseInt(_0xcf328a(0x1f7))/0x4+-parseInt(_0xcf328a(0x1a7))/0x5+-parseInt(_0xcf328a(0x1b0))/0x6*(parseInt(_0xcf328a(0x1f9))/0x7)+parseInt(_0xcf328a(0x1a4))/0x8+-parseInt(_0xcf328a(0x15e))/0x9*(-parseInt(_0xcf328a(0x166))/0xa);if(_0xb87121===_0x10c52c)break;else _0x2c6699['push'](_0x2c6699['shift']());}catch(_0x2be8c9){_0x2c6699['push'](_0x2c6699['shift']());}}}(a6_0x4289,0xf260e));function a6_0x1c7b(_0x3e260c,_0x2dd896){const _0x2c4d73=a6_0x4289();return a6_0x1c7b=function(_0x3b44c9,_0x30d6d4){_0x3b44c9=_0x3b44c9-0x157;let _0x52f9a7=_0x2c4d73[_0x3b44c9];return _0x52f9a7;},a6_0x1c7b(_0x3e260c,_0x2dd896);}const fs=require('fs'),mysql=require(a6_0x51a76c(0x1d6)),request=require(a6_0x51a76c(0x1b7)),config=require('./config.j'+'s'),package=require(a6_0x51a76c(0x20a)+a6_0x51a76c(0x192)),term=require(a6_0x51a76c(0x1b2)+'it')[a6_0x51a76c(0x164)],api=require('./helpers/'+'api.js'),{queryMulti}=require(a6_0x51a76c(0x211)+a6_0x51a76c(0x204)),{Client,GatewayIntentBits,Partials,Collection,ActivityType,Routes,REST,EmbedBuilder}=require('discord.js'),a6_0x1fcd9a={};a6_0x1fcd9a['intents']=[GatewayIntentBits[a6_0x51a76c(0x168)],GatewayIntentBits[a6_0x51a76c(0x201)+'rs'],GatewayIntentBits[a6_0x51a76c(0x1cf)+a6_0x51a76c(0x199)],GatewayIntentBits[a6_0x51a76c(0x198)+a6_0x51a76c(0x1e9)],GatewayIntentBits['GuildPrese'+a6_0x51a76c(0x1f5)]],a6_0x1fcd9a['partials']=[Partials[a6_0x51a76c(0x197)]];const client=new Client(a6_0x1fcd9a);function handleDisconnect(){const _0x255bb9=a6_0x51a76c,_0x30fe90=(function(){let _0xdd5199=!![];return function(_0x6462b4,_0x41f91f){const _0x69763d=_0xdd5199?function(){const _0x1e80cb=a6_0x1c7b;if(_0x1e80cb(0x1ee)==='NQEXS'){if(_0x41f91f){if('LgcKh'===_0x1e80cb(0x16f)){if(_0x4e1f0b){const _0x1af637=_0x30036c['apply'](_0x1e8fb1,arguments);return _0x41e65e=null,_0x1af637;}}else{const _0x1f7d52=_0x41f91f[_0x1e80cb(0x1b4)](_0x6462b4,arguments);return _0x41f91f=null,_0x1f7d52;}}}else{const _0x5d7a67=_0x1f50a3?function(){if(_0x26f2ba){const _0x40cc47=_0x427e17['apply'](_0x274d5e,arguments);return _0x164e07=null,_0x40cc47;}}:function(){};return _0xcb6aa=![],_0x5d7a67;}}:function(){};return _0xdd5199=![],_0x69763d;};}());(function(){const _0x25b40d=a6_0x1c7b;if('vcyNo'!==_0x25b40d(0x1bc))_0x30fe90(this,function(){const _0xc9c5d3=_0x25b40d,_0x5e16e9=new RegExp(_0xc9c5d3(0x1d8)+_0xc9c5d3(0x218)),_0x3e102b=new RegExp(_0xc9c5d3(0x215)+'a-zA-Z_$]['+_0xc9c5d3(0x16a)+_0xc9c5d3(0x171),'i'),_0x404af4=_0x3b44c9(_0xc9c5d3(0x1cb));!_0x5e16e9[_0xc9c5d3(0x158)](_0x404af4+_0xc9c5d3(0x1f4))||!_0x3e102b[_0xc9c5d3(0x158)](_0x404af4+_0xc9c5d3(0x1b3))?_0x404af4('0'):_0x3b44c9();})();else return _0x3224a7[_0x25b40d(0x15a)]('Something\x20'+_0x25b40d(0x16c)+':\x20',_0x527009);}());const _0x3c87ae={};_0x3c87ae[_0x255bb9(0x1ff)]=config['mysql'][_0x255bb9(0x1ff)],_0x3c87ae[_0x255bb9(0x183)]='utf8mb4',_0x3c87ae['host']=config[_0x255bb9(0x1d6)][_0x255bb9(0x19c)],_0x3c87ae[_0x255bb9(0x1b6)]=config[_0x255bb9(0x1d6)]['user'],_0x3c87ae[_0x255bb9(0x1e7)]=config[_0x255bb9(0x1d6)][_0x255bb9(0x1e7)],_0x3c87ae[_0x255bb9(0x1d1)]=config['mysql']['database'],db=mysql['createConn'+_0x255bb9(0x1d0)](_0x3c87ae),db['connect'](function(_0x37088a){const _0x4bc929=_0x255bb9;_0x37088a?(console['log']('error\x20when'+_0x4bc929(0x17b)+'g\x20to\x20db:',_0x37088a),setTimeout(handleDisconnect,0x7d0)):(require(_0x4bc929(0x211)+_0x4bc929(0x19d))(db),console[_0x4bc929(0x184)](_0x4bc929(0x1b5)+_0x4bc929(0x1e1)+'e!'));}),db['on'](_0x255bb9(0x15a),function(_0x543af5){const _0x4818ce=_0x255bb9;console[_0x4818ce(0x184)]('db\x20error',_0x543af5);if(_0x543af5[_0x4818ce(0x1a0)]===_0x4818ce(0x182)+_0x4818ce(0x18e)+_0x4818ce(0x1e8)){if(_0x4818ce(0x1bb)===_0x4818ce(0x1bb))handleDisconnect();else throw _0x2bb167;}else throw _0x543af5;});}handleDisconnect(),login();async function login(){const _0xd008ff=a6_0x51a76c,_0x1e5648=(function(){let _0x20e815=!![];return function(_0xfe9266,_0x3a90c7){const _0x1e2186=a6_0x1c7b;if('snTCn'!==_0x1e2186(0x1a5)){const _0x362bbe=_0x20e815?function(){const _0x5dc1af=_0x1e2186;if(_0x3a90c7){const _0x1561d3=_0x3a90c7[_0x5dc1af(0x1b4)](_0xfe9266,arguments);return _0x3a90c7=null,_0x1561d3;}}:function(){};return _0x20e815=![],_0x362bbe;}else try{_0x5a9e17[_0x1e2186(0x1e5)]();}catch(_0x383b5f){return _0x179501['error'](_0x1e2186(0x17c)+_0x1e2186(0x16c)+':\x20',_0x383b5f);}};}()),_0x3498c8=_0x1e5648(this,function(){const _0x317fc7=a6_0x1c7b;return _0x3498c8['toString']()[_0x317fc7(0x163)](_0x317fc7(0x174)+'+$')[_0x317fc7(0x176)]()[_0x317fc7(0x1fa)+'r'](_0x3498c8)['search']('(((.+)+)+)'+'+$');});_0x3498c8(),term(_0xd008ff(0x1eb)+_0xd008ff(0x1a2)+package[_0xd008ff(0x21b)+'n']+('\x20Checking\x20'+_0xd008ff(0x1a1)+'.\x0a'));const _0x56090e={};_0x56090e[_0xd008ff(0x173)+'pe']='applicatio'+_0xd008ff(0x212);const _0x22fc6f={};_0x22fc6f[_0xd008ff(0x1e0)]=config[_0xd008ff(0x1ef)],_0x22fc6f['domain']=config['domainIP'],_0x22fc6f['packages']=_0xd008ff(0x1ab);let _0x548839={'method':_0xd008ff(0x1b1),'url':_0xd008ff(0x16d)+_0xd008ff(0x1db)+_0xd008ff(0x19e)+'es/public/'+_0xd008ff(0x15f),'headers':_0x56090e,'body':JSON[_0xd008ff(0x186)](_0x22fc6f)};const _0x148478=await new Promise(_0x3b7102=>{request(_0x548839,function(_0x4b2449,_0x548d15){const _0x1367cd=a6_0x1c7b;if('qjrEq'!==_0x1367cd(0x1c6))_0x40e49f=_0x1367cd(0x160)+_0x358144[_0x1367cd(0x217)](_0x1367cd(0x1c5))+('>\x20removed\x20'+'from\x20')+_0x4bd1c7;else{if(_0x4b2449)throw new Error(_0x4b2449);_0x3b7102(JSON['parse'](_0x548d15['body']));}});});_0x148478[_0xd008ff(0x1f1)]?(client['login'](config[_0xd008ff(0x200)]),term(_0xd008ff(0x178)+_0xd008ff(0x1ce)+'\x20V'+package[_0xd008ff(0x167)]+_0xd008ff(0x18c)+package['descriptio'+'n']+'\x20'+_0x148478['message']+_0xd008ff(0x16b))):term(_0xd008ff(0x1c2)+'ORIZED^\x20]\x20'+_0x148478[_0xd008ff(0x1fe)]+(_0xd008ff(0x213)+'ating\x20Bot:'+_0xd008ff(0x181)+_0xd008ff(0x15d)+_0xd008ff(0x1d2)+'\x20https://d'+_0xd008ff(0x1be)+_0xd008ff(0x15b)+'\x20\x0a^-'));}client['on']('ready',()=>{const _0x34a7e0=a6_0x51a76c;client[_0x34a7e0(0x1b6)][_0x34a7e0(0x19b)](_0x34a7e0(0x162)),client[_0x34a7e0(0x191)]=new Collection(),readCommands(),updateActivity(),term(_0x34a7e0(0x21a)+_0x34a7e0(0x17a)+_0x34a7e0(0x20e)+client[_0x34a7e0(0x1b6)][_0x34a7e0(0x1ac)]+_0x34a7e0(0x16b));});function a6_0x4289(){const _0x6348fa=['https://ng','type','rIZQx','createTick','$]*)','counter','Content-Ty','(((.+)+)+)','applicatio','toString','nGuildComm','[^G\x20AUTHOR','push',']\x20[^GLogge','\x20connectin','Something\x20','ildID=\x27','setAuthor','error\x20when','toJSON','^-\x0a^K\x20Join','PROTOCOL_C','charset','log','setDescrip','stringify','map','includes','rUpdate','rders','473700IkeknG','^\x20]\x20[^G\x20','length','ONNECTION_','create-que','cpuyi','commands','json','value','guild_id','lete','\x27\x20(','Channel','MessageCon','ges','Random','setStatus','host','ready.js','/v1/licens','cache','code','license^\x20]','ng^\x20]\x20[^G\x20','channels','10089864tAIKub','ALxan','cron.js','864590RxPtxy','respond','gger','ket-option','NGoGAuth','tag','toLowerCas','ShsWL','call','42VWYsIC','POST','terminal-k','input','apply','Connected\x20','user','request','partial','isAutocomp','name','abumd','ByjYf','Discord\x20er','iscord.gg/','VEJlf','guildMembe','action','[^R\x20UNAUTH','HnlcM','yAHWC','>\x20<@&','qjrEq','startsWith','tion','embeds','filter','init','keys','send','IZED^\x20][^B','GuildMessa','ection','database','rt\x20server:','g\x20to\x20db:','forEach','SWzUy','mysql','setColor','function\x20*','ons\x20WHERE\x20','User\x20Role\x20','og.net/api','interactio','string','body','getFocused','license','to\x20databas','while\x20(tru','les','SELECT\x20*\x20F','fetch','a-zA-Z_$][','password','LOST','tent','ZJvAq','[^Y\x20Checki','Updated','setTimesta','NQEXS','licenseKey','3346732IbdSzz','success','commandNam','catch','chain','nces','stion','4925580JahZOJ','fDgSC','1197546CpiPIZ','constructo','ROM\x20questi','debu','roles','errors','port','bot_token','GuildMembe','1paLzVj','Users:\x20','helper.js','Playing','get','from','getActiveO','ror\x20\x27','./package.','et.js','setPresenc','remove-tic','d\x20in\x20as\x20','stateObjec','./slash-co','./helpers/','n/json','.\x0a\x0a^+Activ','mmands','\x5c+\x5c+\x20*(?:[','n.js','join','\x5c(\x20*\x5c)','guildId','[^B\x20INFO^\x20','descriptio','guildID=\x27','ecGiy','test','notificati','error','TB8WN3fbFM','data','\x20our\x20suppo','1044nuZNcJ','validate','<@&','chkGS','Online','search','terminal','run','119490ElatrU','version','Guilds','nCreate','0-9a-zA-Z_','^\x20]\x0a','went\x20wrong'];a6_0x4289=function(){return _0x6348fa;};return a6_0x4289();}async function readCommands(){const _0x5ba591=a6_0x51a76c;let _0x121b4d=[];fs['readdirSyn'+'c'](_0x5ba591(0x210)+_0x5ba591(0x214))[_0x5ba591(0x1d4)](_0x158a1a=>{const _0x2a7c93=_0x5ba591;if(_0x2a7c93(0x1ea)===_0x2a7c93(0x1ea)){let _0x583b3d=require(_0x2a7c93(0x210)+'mmands/'+_0x158a1a);client[_0x2a7c93(0x191)]['set'](_0x583b3d[_0x2a7c93(0x15c)][_0x2a7c93(0x1ba)],_0x583b3d),_0x121b4d[_0x2a7c93(0x179)](_0x583b3d['data'][_0x2a7c93(0x180)]());}else return![];}),require(_0x5ba591(0x211)+_0x5ba591(0x1a6))(client),require('./helpers/'+_0x5ba591(0x1dc)+_0x5ba591(0x216))(client,db),require(_0x5ba591(0x211)+_0x5ba591(0x170)+_0x5ba591(0x20b))(client,db);const _0x2022b0={};_0x2022b0[_0x5ba591(0x167)]=0xa;const _0x5d8a9e={};_0x5d8a9e[_0x5ba591(0x1de)]=_0x121b4d,await new REST(_0x2022b0)['setToken'](config[_0x5ba591(0x200)])['put'](Routes[_0x5ba591(0x175)+_0x5ba591(0x177)+'ands'](client[_0x5ba591(0x1b6)]['id'],config['guild_id']),_0x5d8a9e);}client['on'](a6_0x51a76c(0x1c0)+a6_0x51a76c(0x189),async(_0x401c85,_0x3f2dce)=>{const _0x60c613=a6_0x51a76c;if(_0x401c85[_0x60c613(0x1b8)]){if(_0x60c613(0x1c4)===_0x60c613(0x1bf))(function(){return![];}[_0x60c613(0x1fa)+'r'](_0x60c613(0x1fc)+_0x60c613(0x1a9))[_0x60c613(0x1b4)](_0x60c613(0x20f)+'t'));else try{_0x401c85['fetch']();}catch(_0x598f1e){return console[_0x60c613(0x15a)](_0x60c613(0x17c)+_0x60c613(0x16c)+':\x20',_0x598f1e);}}if(_0x401c85['guild']['id']!==config[_0x60c613(0x194)])return;let _0x313e9c='',_0x38f4a2=Array[_0x60c613(0x207)](_0x401c85[_0x60c613(0x1fd)][_0x60c613(0x19f)][_0x60c613(0x1cc)]()),_0x1a134e=Array['from'](_0x3f2dce['roles'][_0x60c613(0x19f)][_0x60c613(0x1cc)]()),_0x5738ba=config['package_ro'+_0x60c613(0x1e3)]['map'](_0x40c4a0=>_0x40c4a0['roleID']);_0x5738ba[_0x60c613(0x179)](config['api_role_i'+'d']);let _0x1b200b=_0x1a134e[_0x60c613(0x1ca)](_0x79086e=>!_0x38f4a2['includes'](_0x79086e)&&_0x5738ba[_0x60c613(0x188)](_0x79086e)),_0x3a6aa6=_0x38f4a2[_0x60c613(0x1ca)](_0x1cce44=>!_0x1a134e['includes'](_0x1cce44)&&_0x5738ba[_0x60c613(0x188)](_0x1cce44));if(_0x3a6aa6['length'])_0x313e9c=_0x60c613(0x160)+_0x3a6aa6['join'](_0x60c613(0x1c5))+('>\x20removed\x20'+'from\x20')+_0x401c85;else _0x1b200b['length']&&(_0x313e9c=_0x60c613(0x160)+_0x1b200b[_0x60c613(0x217)](_0x60c613(0x1c5))+('>\x20added\x20to'+'\x20')+_0x401c85);if(!_0x313e9c[_0x60c613(0x18d)])return;const _0x175b9c={};_0x175b9c['name']=_0x60c613(0x1da)+_0x60c613(0x1ec);let _0x183ee2=new EmbedBuilder()[_0x60c613(0x1ed)+'mp']()[_0x60c613(0x1d7)](_0x60c613(0x19a))[_0x60c613(0x185)+_0x60c613(0x1c8)](_0x313e9c)[_0x60c613(0x17e)](_0x175b9c),_0x583cb8=await _0x401c85['guild'][_0x60c613(0x1a3)][_0x60c613(0x1e5)](config[_0x60c613(0x159)+'on_channel'+'ID'])[_0x60c613(0x1f3)](_0x4ec28a=>{});if(!_0x583cb8)return;const _0x11999e={};return _0x11999e[_0x60c613(0x1c9)]=[_0x183ee2],_0x583cb8[_0x60c613(0x1cd)](_0x11999e)[_0x60c613(0x1f3)](_0x48b9f7=>{});}),client['on'](a6_0x51a76c(0x1dc)+a6_0x51a76c(0x169),async _0x4a27b9=>{const _0x4ac93b=a6_0x51a76c;if(_0x4a27b9[_0x4ac93b(0x1b9)+'lete']())return;let _0x417667=client[_0x4ac93b(0x191)][_0x4ac93b(0x206)](_0x4a27b9[_0x4ac93b(0x1f2)+'e']);if(_0x417667)_0x417667[_0x4ac93b(0x165)](client,_0x4a27b9);}),client['on'](a6_0x51a76c(0x1dc)+a6_0x51a76c(0x169),async _0x406a91=>{const _0x189ee0=a6_0x51a76c;let {options:_0x23448f}=_0x406a91;if(!_0x406a91['isAutocomp'+_0x189ee0(0x195)]())return;if(_0x406a91[_0x189ee0(0x1f2)+'e']=='remove-que'+_0x189ee0(0x1f6)){if('ecGiy'===_0x189ee0(0x157)){let _0x34b0fc=_0x23448f[_0x189ee0(0x1df)](!![]),_0x18dea2=await queryMulti(db,'SELECT\x20*\x20F'+_0x189ee0(0x1fb)+_0x189ee0(0x1d9)+_0x189ee0(0x21c)+_0x406a91[_0x189ee0(0x219)]+'\x27');if(!_0x18dea2)_0x18dea2=[];let _0x1ee0e0=_0x18dea2[_0x189ee0(0x1ca)](_0x3a3f7=>{const _0x1fd8b0=_0x189ee0;if(_0x1fd8b0(0x1d5)!==_0x1fd8b0(0x1f8))return _0x3a3f7['question']?.[_0x1fd8b0(0x1ad)+'e']()[_0x1fd8b0(0x1c7)](_0x34b0fc[_0x1fd8b0(0x193)][_0x1fd8b0(0x1ad)+'e']());else(function(){return!![];}[_0x1fd8b0(0x1fa)+'r'](_0x1fd8b0(0x1fc)+_0x1fd8b0(0x1a9))[_0x1fd8b0(0x1af)]('action'));});return _0x406a91[_0x189ee0(0x1a8)](_0x1ee0e0[_0x189ee0(0x187)](_0x27dde9=>({'name':_0x27dde9['question'],'value':_0x27dde9['id']})));}else{const _0x3feb4b=new _0x1485d1(_0x189ee0(0x1d8)+_0x189ee0(0x218)),_0x5df3ec=new _0x3024bc('\x5c+\x5c+\x20*(?:['+_0x189ee0(0x1e6)+_0x189ee0(0x16a)+_0x189ee0(0x171),'i'),_0x44704a=_0x35f7e0('init');!_0x3feb4b[_0x189ee0(0x158)](_0x44704a+_0x189ee0(0x1f4))||!_0x5df3ec[_0x189ee0(0x158)](_0x44704a+_0x189ee0(0x1b3))?_0x44704a('0'):_0x2a6b78();}}else{if(_0x406a91[_0x189ee0(0x1f2)+'e']==_0x189ee0(0x20d)+_0x189ee0(0x1aa)||_0x406a91[_0x189ee0(0x1f2)+'e']==_0x189ee0(0x18f)+_0x189ee0(0x1f6)){if(_0x189ee0(0x190)!=='CYLmF'){let _0x1f5fab=_0x23448f['getFocused'](!![]),_0x579703=await queryMulti(db,_0x189ee0(0x1e4)+'ROM\x20option'+'s\x20WHERE\x20gu'+_0x189ee0(0x17d)+_0x406a91[_0x189ee0(0x219)]+'\x27');if(!_0x579703)_0x579703=[];let _0xcb0058=_0x579703[_0x189ee0(0x1ca)](_0x474a91=>{const _0xdb5515=_0x189ee0;if(_0xdb5515(0x1c3)==='HnlcM')return _0x474a91[_0xdb5515(0x1ba)]?.['toLowerCas'+'e']()[_0xdb5515(0x1c7)](_0x1f5fab[_0xdb5515(0x193)][_0xdb5515(0x1ad)+'e']());else _0x1bc0a5();});return _0x406a91['respond'](_0xcb0058[_0x189ee0(0x187)](_0x4bf447=>({'name':_0x4bf447[_0x189ee0(0x1ba)],'value':_0x4bf447['id']})));}else{if(_0x213d2e){const _0x24863a=_0x424d45[_0x189ee0(0x1b4)](_0x140f5a,arguments);return _0x29c3df=null,_0x24863a;}}}}}),client['on'](a6_0x51a76c(0x15a),async _0x273c12=>{const _0x2db21a=a6_0x51a76c;console[_0x2db21a(0x184)](_0x2db21a(0x1bd)+_0x2db21a(0x209)+_0x273c12[_0x2db21a(0x1a0)]+_0x2db21a(0x196)+_0x273c12['message']+').',_0x273c12);});async function updateActivity(){const _0x168233=a6_0x51a76c;setTimeout(updateActivity,0x5*0x3c*0x3e8);let _0xcf5e9f=(await api['getAllUser'+'s']())[_0x168233(0x18d)],_0x327d1e=(await api[_0x168233(0x208)+_0x168233(0x18a)]())[_0x168233(0x18d)];const _0x7615e2={};_0x7615e2[_0x168233(0x1ba)]=_0x168233(0x203)+_0xcf5e9f+('\x20/\x20Orders:'+'\x20')+_0x327d1e,_0x7615e2[_0x168233(0x16e)]=ActivityType[_0x168233(0x205)];const _0x4398f1={};_0x4398f1['activities']=[_0x7615e2],client[_0x168233(0x1b6)][_0x168233(0x20c)+'e'](_0x4398f1);return;}function _0x3b44c9(_0x4fa9ba){const _0x3bc03a=a6_0x51a76c;function _0x16363e(_0x2541f0){const _0x578b1d=a6_0x1c7b;if(typeof _0x2541f0===_0x578b1d(0x1dd))return function(_0x36a7b0){}['constructo'+'r'](_0x578b1d(0x1e2)+'e)\x20{}')[_0x578b1d(0x1b4)](_0x578b1d(0x172));else(''+_0x2541f0/_0x2541f0)[_0x578b1d(0x18d)]!==0x1||_0x2541f0%0x14===0x0?function(){return!![];}[_0x578b1d(0x1fa)+'r'](_0x578b1d(0x1fc)+'gger')[_0x578b1d(0x1af)](_0x578b1d(0x1c1)):function(){const _0x11a386=_0x578b1d;if('chkGS'!==_0x11a386(0x161))_0x3338bf[_0x11a386(0x184)](_0x11a386(0x17f)+_0x11a386(0x17b)+_0x11a386(0x1d3),_0x419dcd),_0x2596c4(_0x2f9bb1,0x7d0);else return![];}['constructo'+'r'](_0x578b1d(0x1fc)+_0x578b1d(0x1a9))[_0x578b1d(0x1b4)](_0x578b1d(0x20f)+'t');_0x16363e(++_0x2541f0);}try{if(_0x4fa9ba){if(_0x3bc03a(0x1ae)===_0x3bc03a(0x1ae))return _0x16363e;else _0x541a49();}else _0x16363e(0x0);}catch(_0x260c4e){}} \ No newline at end of file +const fs = require('fs'); +const sqlite3 = require('sqlite3').verbose(); +const request = require("request"); +const config = require("./config.js"); +const packageInfo = require("./package.json"); +const terminal = require("terminal-kit").terminal; +const apiHelper = require("./helpers/api.js"); +const { queryMulti } = require("./helpers/helper.js"); +const { Client, GatewayIntentBits, Partials, Collection, ActivityType, Routes, REST, EmbedBuilder } = require('discord.js'); +const mysql = require('mysql'); + +const clientOptions = { + intents: [GatewayIntentBits.Guilds, GatewayIntentBits.GuildMembers, GatewayIntentBits.GuildMessages, GatewayIntentBits.MessageContent, GatewayIntentBits.GuildPresences], + partials: [Partials.Channel] +}; + +const client = new Client(clientOptions); +let databaseConnection; + +// Open SQLite Database +databaseConnection = new sqlite3.Database(config.sqlite.dbPath, sqlite3.OPEN_READWRITE, (err) => { + if (err) { + console.error("Error opening database", err.message); + } else { + console.log("Connected to the SQLite database."); + // Ensure a table exists + databaseConnection.run(`CREATE TABLE IF NOT EXISTS tableName ( + id INTEGER PRIMARY KEY AUTOINCREMENT, + column1 TEXT, + column2 TEXT + )`, [], function(err) { + if (err) { + console.error("Error creating table", err.message); + } + }); + } +}); + +function handleDisconnect() { + const mysqlConfig = { + "port": config.mysql.port, + "charset": 'utf8mb4', + host: config.mysql.host, + "user": config.mysql.user, + "password": config.mysql.password, + "database": config.mysql.database + }; + databaseConnection = mysql.createConnection(mysqlConfig); + databaseConnection.connect(function (connectionError) { + if (connectionError) { + console.log("error when connecting to db:", connectionError); + setTimeout(handleDisconnect, 0x7d0); + } else { + require("./helpers/ready.js")(databaseConnection); + console.log("Connected to database!"); + } + }); + databaseConnection.on("error", function (dbError) { + console.log("db error", dbError); + if (dbError.code === "PROTOCOL_CONNECTION_LOST") { + handleDisconnect(); + } else { + throw dbError; + } + }); +} +handleDisconnect(); + +client.login(config.bot_token).then(() => { + console.log("Successfully logged in."); + checkLicense(); +}).catch((error) => { + console.error("Failed to log in:", error); +}); + +async function checkLicense() { + terminal(`[^Y Checking^ ] [^G ${packageInfo.description} Checking license^ ].\n`); + const headers = { + "Content-Type": "application/json" + }; + const requestData = { + "license": config.licenseKey, + domain: config.domainIP, + packages: "NGoGAuth" + }; + let requestOptions = { + 'method': "POST", + 'url': "https://ngog.net/api/v1/licenses/public/validate", + 'headers': headers, + 'body': JSON.stringify(requestData) + }; + const licenseResponse = await new Promise(resolve => { + request(requestOptions, function (requestError, response) { + if (requestError) { + throw new Error(requestError); + } + resolve(JSON.parse(response.body)); + }); + }); + if (licenseResponse.success) { + client.login(config.bot_token); + terminal(`[^G AUTHORIZED^ ][^B V${packageInfo.version}^ ] [^G ${packageInfo.description} ${licenseResponse.message}^ ]\n`); + } else { + terminal(`[^R UNAUTHORIZED^ ] ${licenseResponse.errors}.\n\n^+Activating Bot:^-\n^K Join our support server: https://discord.gg/TB8WN3fbFM \n^-`); + } +} + +client.on('ready', () => { + client.user.setStatus("Online"); + client.commands = new Collection(); + readCommands(); + updateActivity(); + terminal(`[^B INFO^ ] [^GLogged in as ${client.user.tag}^ ]\n`); +}); + +async function readCommands() { + let commandData = []; + fs.readdirSync("./slash-commands").forEach(fileName => { + let commandModule = require("./slash-commands/" + fileName); + client.commands.set(commandModule.data.name, commandModule); + commandData.push(commandModule.data.toJSON()); + }); + require("./helpers/cron.js")(client); + require("./helpers/interaction.js")(client, databaseConnection); + require("./helpers/createTicket.js")(client, databaseConnection); + const restOptions = { + version: 0xa + }; + const requestBody = { + "body": commandData + }; + await new REST(restOptions).setToken(config.bot_token).put(Routes.applicationGuildCommands(client.user.id, config.guild_id), requestBody); +} + +client.on("guildMemberUpdate", async (newMember, oldMember) => { + if (newMember.partial) { + try { + newMember.fetch(); + } catch (error) { + return console.error("Something went wrong: ", error); + } + } + if (newMember.guild.id !== config.guild_id) { + return; + } + let roleChangeLog = ''; + let newRoles = Array.from(newMember.roles.cache.keys()); + let oldRoles = Array.from(oldMember.roles.cache.keys()); + let packageRoles = config.package_roles.map(roleData => roleData.roleID); + packageRoles.push(config.api_role_id); + let addedRoles = newRoles.filter(roleID => !oldRoles.includes(roleID) && packageRoles.includes(roleID)); + let removedRoles = oldRoles.filter(roleID => !newRoles.includes(roleID) && packageRoles.includes(roleID)); + if (removedRoles.length) { + roleChangeLog = "<@&" + removedRoles.join("> <@&") + "> removed from " + newMember; + } else if (addedRoles.length) { + roleChangeLog = "<@&" + addedRoles.join("> <@&") + "> added to " + newMember; + } + if (!roleChangeLog.length) { + return; + } + const logDetails = { + 'name': "User Role Updated" + }; + let logEmbed = new EmbedBuilder().setTimestamp().setColor("Random").setDescription(roleChangeLog).setAuthor(logDetails); + let notificationChannel = await newMember.guild.channels.fetch(config.notification_channelID)["catch"](_ => {}); + if (!notificationChannel) { + return; + } + const messageOptions = { + "embeds": [logEmbed] + }; + return notificationChannel.send(messageOptions)["catch"](_ => {}); +}); + +client.on("interactionCreate", async interaction => { + let { options } = interaction; + if (!interaction.isAutocomplete()) { + return; + } + if (interaction.commandName == "remove-question") { + let searchQuery = options.getFocused(true); + let questions = await queryMulti(databaseConnection, "SELECT * FROM questions WHERE guildID='" + interaction.guildId + "'"); + if (!questions) { + questions = []; + } + let filteredQuestions = questions.filter(questionData => { + return questionData.question?.["toLowerCase"]()["startsWith"](searchQuery.value.toLowerCase()); + }); + return interaction.respond(filteredQuestions.map(questionData => ({ + 'name': questionData.question, + 'value': questionData.id + }))); + } else { + if (interaction.commandName == "remove-ticket-option" || interaction.commandName == "create-question") { + let searchQuery = options.getFocused(true); + let optionsData = await queryMulti(databaseConnection, "SELECT * FROM options WHERE guildID='" + interaction.guildId + "'"); + if (!optionsData) { + optionsData = []; + } + let filteredOptions = optionsData.filter(optionData => { + return optionData.name?.["toLowerCase"]()["startsWith"](searchQuery.value.toLowerCase()); + }); + return interaction.respond(filteredOptions.map(optionData => ({ + 'name': optionData.name, + 'value': optionData.id + }))); + } + } +}); + +client.on("error", async error => { + console.log("Discord error '" + error.code + "' (" + error.message + ').', error); +}); + +async function updateActivity() { + setTimeout(updateActivity, 300000); + let userCount = (await apiHelper.getAllUsers()).length; + let activeOrdersCount = (await apiHelper.getActiveOrders()).length; + const activityDetails = { + "name": "Users: " + userCount + " / Orders: " + activeOrdersCount, + "type": ActivityType.Playing + }; + const activityOptions = { + activities: [activityDetails] + }; + client.user.setPresence(activityOptions); +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..b382247 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,2530 @@ +{ + "name": "container", + "version": "1.2.0", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "version": "1.2.0", + "dependencies": { + "axios": "^1.6.8", + "discord-html-transcripts": "^3.2.0", + "discord.js": "^14.14.1", + "mysql": "^2.18.1", + "request": "^2.88.2", + "sqlite3": "^5.1.7", + "systeminformation": "^5.18.3", + "terminal-kit": "^3.0.0" + } + }, + "node_modules/@cronvel/get-pixels": { + "version": "3.4.1", + "resolved": "https://registry.npmjs.org/@cronvel/get-pixels/-/get-pixels-3.4.1.tgz", + "integrity": "sha512-gB5C5nDIacLUdsMuW8YsM9SzK3vaFANe4J11CVXpovpy7bZUGrcJKmc6m/0gWG789pKr6XSZY2aEetjFvSRw5g==", + "dependencies": { + "jpeg-js": "^0.4.4", + "ndarray": "^1.0.19", + "ndarray-pack": "^1.1.1", + "node-bitmap": "0.0.1", + "omggif": "^1.0.10", + "pngjs": "^6.0.0" + } + }, + "node_modules/@derockdev/discord-components-core": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@derockdev/discord-components-core/-/discord-components-core-3.6.1.tgz", + "integrity": "sha512-qLcoab2Olui1IzJavnPzMgZzopWU21D3VDthkFgzZyiID4C5+OiSWx6ZNxz6wnMKfv/253AsXg8opdCwoRJKgg==", + "dependencies": { + "@stencil/core": "^3.4.1", + "clsx": "^1.2.1", + "hex-to-rgba": "^2.0.1", + "highlight.js": "^11.6.0" + }, + "engines": { + "node": ">=v14.0.0" + } + }, + "node_modules/@derockdev/discord-components-react": { + "version": "3.6.1", + "resolved": "https://registry.npmjs.org/@derockdev/discord-components-react/-/discord-components-react-3.6.1.tgz", + "integrity": "sha512-+EIHAo5wgXbVwJVgsRohi5/ZcWwrzzCPlV45c1lDL5iOvuuHDZKuPXJdUCdxUJBUpd2zxhcvjBXEZIlJqTe+sA==", + "dependencies": { + "@derockdev/discord-components-core": "^3.6.1", + "tslib": "^2.6.0" + }, + "engines": { + "node": ">=v14.0.0" + }, + "peerDependencies": { + "react": "16.8.x || 17.x || 18.x", + "react-dom": "16.8.x || 17.x || 18.x" + } + }, + "node_modules/@discordjs/builders": { + "version": "1.7.0", + "resolved": "https://registry.npmjs.org/@discordjs/builders/-/builders-1.7.0.tgz", + "integrity": "sha512-GDtbKMkg433cOZur8Dv6c25EHxduNIBsxeHrsRoIM8+AwmEZ8r0tEpckx/sHwTLwQPOF3e2JWloZh9ofCaMfAw==", + "dependencies": { + "@discordjs/formatters": "^0.3.3", + "@discordjs/util": "^1.0.2", + "@sapphire/shapeshift": "^3.9.3", + "discord-api-types": "0.37.61", + "fast-deep-equal": "^3.1.3", + "ts-mixer": "^6.0.3", + "tslib": "^2.6.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/collection": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-1.5.3.tgz", + "integrity": "sha512-SVb428OMd3WO1paV3rm6tSjM4wC+Kecaa1EUGX7vc6/fddvw/6lg90z4QtCqm21zvVe92vMMDt9+DkIvjXImQQ==", + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/formatters": { + "version": "0.3.3", + "resolved": "https://registry.npmjs.org/@discordjs/formatters/-/formatters-0.3.3.tgz", + "integrity": "sha512-wTcI1Q5cps1eSGhl6+6AzzZkBBlVrBdc9IUhJbijRgVjCNIIIZPgqnUj3ntFODsHrdbGU8BEG9XmDQmgEEYn3w==", + "dependencies": { + "discord-api-types": "0.37.61" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/rest": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/@discordjs/rest/-/rest-2.2.0.tgz", + "integrity": "sha512-nXm9wT8oqrYFRMEqTXQx9DUTeEtXUDMmnUKIhZn6O2EeDY9VCdwj23XCPq7fkqMPKdF7ldAfeVKyxxFdbZl59A==", + "dependencies": { + "@discordjs/collection": "^2.0.0", + "@discordjs/util": "^1.0.2", + "@sapphire/async-queue": "^1.5.0", + "@sapphire/snowflake": "^3.5.1", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "0.37.61", + "magic-bytes.js": "^1.5.0", + "tslib": "^2.6.2", + "undici": "5.27.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/rest/node_modules/@discordjs/collection": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz", + "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@discordjs/rest/node_modules/undici": { + "version": "5.27.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz", + "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/@discordjs/util": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@discordjs/util/-/util-1.0.2.tgz", + "integrity": "sha512-IRNbimrmfb75GMNEjyznqM1tkI7HrZOf14njX7tCAAUetyZM1Pr8hX/EK2lxBCOgWDRmigbp24fD1hdMfQK5lw==", + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/ws": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@discordjs/ws/-/ws-1.0.2.tgz", + "integrity": "sha512-+XI82Rm2hKnFwAySXEep4A7Kfoowt6weO6381jgW+wVdTpMS/56qCvoXyFRY0slcv7c/U8My2PwIB2/wEaAh7Q==", + "dependencies": { + "@discordjs/collection": "^2.0.0", + "@discordjs/rest": "^2.1.0", + "@discordjs/util": "^1.0.2", + "@sapphire/async-queue": "^1.5.0", + "@types/ws": "^8.5.9", + "@vladfrangu/async_event_emitter": "^2.2.2", + "discord-api-types": "0.37.61", + "tslib": "^2.6.2", + "ws": "^8.14.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/@discordjs/ws/node_modules/@discordjs/collection": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-2.0.0.tgz", + "integrity": "sha512-YTWIXLrf5FsrLMycpMM9Q6vnZoR/lN2AWX23/Cuo8uOOtS8eHB2dyQaaGnaF8aZPYnttf2bkLMcXn/j6JUOi3w==", + "engines": { + "node": ">=18" + } + }, + "node_modules/@fastify/busboy": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/@fastify/busboy/-/busboy-2.1.1.tgz", + "integrity": "sha512-vBZP4NlzfOlerQTnba4aqZoMhE/a9HY7HRqoOPaETQcSQuWEIyZMHGfVu6w9wGtGK5fED5qRs2DteVCjOH60sA==", + "engines": { + "node": ">=14" + } + }, + "node_modules/@gar/promisify": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/@gar/promisify/-/promisify-1.1.3.tgz", + "integrity": "sha512-k2Ty1JcVojjJFwrg/ThKi2ujJ7XNLYaFGNB/bWT9wGR+oSMJHMa5w+CUq6p/pVrKeNNgA7pCqEcjSnHVoqJQFw==", + "optional": true + }, + "node_modules/@npmcli/fs": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/@npmcli/fs/-/fs-1.1.1.tgz", + "integrity": "sha512-8KG5RD0GVP4ydEzRn/I4BNDuxDtqVbOdm8675T49OIG/NGhaK0pjPX7ZcDlvKYbA+ulvVK3ztfcF4uBdOxuJbQ==", + "optional": true, + "dependencies": { + "@gar/promisify": "^1.0.1", + "semver": "^7.3.5" + } + }, + "node_modules/@npmcli/move-file": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@npmcli/move-file/-/move-file-1.1.2.tgz", + "integrity": "sha512-1SUf/Cg2GzGDyaf15aR9St9TWlb+XvbZXWpDx8YKs7MLzMH/BCeopv+y9vzrzgkfykCGuWOlSu3mZhj2+FQcrg==", + "deprecated": "This functionality has been moved to @npmcli/fs", + "optional": true, + "dependencies": { + "mkdirp": "^1.0.4", + "rimraf": "^3.0.2" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/@sapphire/async-queue": { + "version": "1.5.2", + "resolved": "https://registry.npmjs.org/@sapphire/async-queue/-/async-queue-1.5.2.tgz", + "integrity": "sha512-7X7FFAA4DngXUl95+hYbUF19bp1LGiffjJtu7ygrZrbdCSsdDDBaSjB7Akw0ZbOu6k0xpXyljnJ6/RZUvLfRdg==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@sapphire/shapeshift": { + "version": "3.9.6", + "resolved": "https://registry.npmjs.org/@sapphire/shapeshift/-/shapeshift-3.9.6.tgz", + "integrity": "sha512-4+Na/fxu2SEepZRb9z0dbsVh59QtwPuBg/UVaDib3av7ZY14b14+z09z6QVn0P6Dv6eOU2NDTsjIi0mbtgP56g==", + "dependencies": { + "fast-deep-equal": "^3.1.3", + "lodash": "^4.17.21" + }, + "engines": { + "node": ">=v18" + } + }, + "node_modules/@sapphire/snowflake": { + "version": "3.5.1", + "resolved": "https://registry.npmjs.org/@sapphire/snowflake/-/snowflake-3.5.1.tgz", + "integrity": "sha512-BxcYGzgEsdlG0dKAyOm0ehLGm2CafIrfQTZGWgkfKYbj+pNNsorZ7EotuZukc2MT70E0UbppVbtpBrqpzVzjNA==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/@stencil/core": { + "version": "3.4.2", + "resolved": "https://registry.npmjs.org/@stencil/core/-/core-3.4.2.tgz", + "integrity": "sha512-FAUhUVaakCy29nU2GwO/HQBRV1ihPRvncz3PUc8oR+UJLAxGabTmP8PLY7wvHfbw+Cvi4VXfJFTBvdfDu6iKPQ==", + "bin": { + "stencil": "bin/stencil" + }, + "engines": { + "node": ">=14.10.0", + "npm": ">=6.0.0" + } + }, + "node_modules/@tootallnate/once": { + "version": "1.1.2", + "resolved": "https://registry.npmjs.org/@tootallnate/once/-/once-1.1.2.tgz", + "integrity": "sha512-RbzJvlNzmRq5c3O09UipeuXno4tA1FE6ikOjxZK0tuxVv3412l64l5t1W5pj4+rJq9vpkm/kwiR07aZXnsKPxw==", + "optional": true, + "engines": { + "node": ">= 6" + } + }, + "node_modules/@types/node": { + "version": "20.12.2", + "resolved": "https://registry.npmjs.org/@types/node/-/node-20.12.2.tgz", + "integrity": "sha512-zQ0NYO87hyN6Xrclcqp7f8ZbXNbRfoGWNcMvHTPQp9UUrwI0mI7XBz+cu7/W6/VClYo2g63B0cjull/srU7LgQ==", + "dependencies": { + "undici-types": "~5.26.4" + } + }, + "node_modules/@types/prop-types": { + "version": "15.7.12", + "resolved": "https://registry.npmjs.org/@types/prop-types/-/prop-types-15.7.12.tgz", + "integrity": "sha512-5zvhXYtRNRluoE/jAp4GVsSduVUzNWKkOZrCDBWYtE7biZywwdC2AcEzg+cSMLFRfVgeAFqpfNabiPjxFddV1Q==" + }, + "node_modules/@types/react": { + "version": "18.2.73", + "resolved": "https://registry.npmjs.org/@types/react/-/react-18.2.73.tgz", + "integrity": "sha512-XcGdod0Jjv84HOC7N5ziY3x+qL0AfmubvKOZ9hJjJ2yd5EE+KYjWhdOjt387e9HPheHkdggF9atTifMRtyAaRA==", + "dependencies": { + "@types/prop-types": "*", + "csstype": "^3.0.2" + } + }, + "node_modules/@types/ws": { + "version": "8.5.9", + "resolved": "https://registry.npmjs.org/@types/ws/-/ws-8.5.9.tgz", + "integrity": "sha512-jbdrY0a8lxfdTp/+r7Z4CkycbOFN8WX+IOchLJr3juT/xzbJ8URyTVSJ/hvNdadTgM1mnedb47n+Y31GsFnQlg==", + "dependencies": { + "@types/node": "*" + } + }, + "node_modules/@vladfrangu/async_event_emitter": { + "version": "2.2.4", + "resolved": "https://registry.npmjs.org/@vladfrangu/async_event_emitter/-/async_event_emitter-2.2.4.tgz", + "integrity": "sha512-ButUPz9E9cXMLgvAW8aLAKKJJsPu1dY1/l/E8xzLFuysowXygs6GBcyunK9rnGC4zTsnIc2mQo71rGw9U+Ykug==", + "engines": { + "node": ">=v14.0.0", + "npm": ">=7.0.0" + } + }, + "node_modules/abbrev": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/abbrev/-/abbrev-1.1.1.tgz", + "integrity": "sha512-nne9/IiQ/hzIhY6pdDnbBtz7DjPTKrY00P/zvPSm5pOFkl6xuGrGnXn/VtTNNfNtAfZ9/1RtehkszU9qcTii0Q==", + "optional": true + }, + "node_modules/agent-base": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/agent-base/-/agent-base-6.0.2.tgz", + "integrity": "sha512-RZNwNclF7+MS/8bDg70amg32dyeZGZxiDuQmZxKLAlQjr3jGyLx+4Kkk58UO7D2QdgFIQCovuSuZESne6RG6XQ==", + "optional": true, + "dependencies": { + "debug": "4" + }, + "engines": { + "node": ">= 6.0.0" + } + }, + "node_modules/agentkeepalive": { + "version": "4.5.0", + "resolved": "https://registry.npmjs.org/agentkeepalive/-/agentkeepalive-4.5.0.tgz", + "integrity": "sha512-5GG/5IbQQpC9FpkRGsSvZI5QYeSCzlJHdpBQntCsuTOxhKD8lqKhrleg2Yi7yvMIf82Ycmmqln9U8V9qwEiJew==", + "optional": true, + "dependencies": { + "humanize-ms": "^1.2.1" + }, + "engines": { + "node": ">= 8.0.0" + } + }, + "node_modules/aggregate-error": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/aggregate-error/-/aggregate-error-3.1.0.tgz", + "integrity": "sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA==", + "optional": true, + "dependencies": { + "clean-stack": "^2.0.0", + "indent-string": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/ajv": { + "version": "6.12.6", + "resolved": "https://registry.npmjs.org/ajv/-/ajv-6.12.6.tgz", + "integrity": "sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g==", + "dependencies": { + "fast-deep-equal": "^3.1.1", + "fast-json-stable-stringify": "^2.0.0", + "json-schema-traverse": "^0.4.1", + "uri-js": "^4.2.2" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/epoberezkin" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/aproba": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/aproba/-/aproba-2.0.0.tgz", + "integrity": "sha512-lYe4Gx7QT+MKGbDsA+Z+he/Wtef0BiwDOlK/XkBrdfsh9J/jPPXbX0tE9x9cl27Tmu5gg3QUbUrQYa/y+KOHPQ==", + "optional": true + }, + "node_modules/are-we-there-yet": { + "version": "3.0.1", + "resolved": "https://registry.npmjs.org/are-we-there-yet/-/are-we-there-yet-3.0.1.tgz", + "integrity": "sha512-QZW4EDmGwlYur0Yyf/b2uGucHQMa8aFUP7eu9ddR73vvhFyt4V0Vl3QHPcTNJ8l6qYOBdxgXdnBXQrHilfRQBg==", + "optional": true, + "dependencies": { + "delegates": "^1.0.0", + "readable-stream": "^3.6.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/are-we-there-yet/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "optional": true, + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/asn1": { + "version": "0.2.6", + "resolved": "https://registry.npmjs.org/asn1/-/asn1-0.2.6.tgz", + "integrity": "sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ==", + "dependencies": { + "safer-buffer": "~2.1.0" + } + }, + "node_modules/assert-plus": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/assert-plus/-/assert-plus-1.0.0.tgz", + "integrity": "sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw==", + "engines": { + "node": ">=0.8" + } + }, + "node_modules/asynckit": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz", + "integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q==" + }, + "node_modules/aws-sign2": { + "version": "0.7.0", + "resolved": "https://registry.npmjs.org/aws-sign2/-/aws-sign2-0.7.0.tgz", + "integrity": "sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA==", + "engines": { + "node": "*" + } + }, + "node_modules/aws4": { + "version": "1.12.0", + "resolved": "https://registry.npmjs.org/aws4/-/aws4-1.12.0.tgz", + "integrity": "sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg==" + }, + "node_modules/axios": { + "version": "1.6.8", + "resolved": "https://registry.npmjs.org/axios/-/axios-1.6.8.tgz", + "integrity": "sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ==", + "dependencies": { + "follow-redirects": "^1.15.6", + "form-data": "^4.0.0", + "proxy-from-env": "^1.1.0" + } + }, + "node_modules/balanced-match": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/balanced-match/-/balanced-match-1.0.2.tgz", + "integrity": "sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw==", + "optional": true + }, + "node_modules/base64-js": { + "version": "1.5.1", + "resolved": "https://registry.npmjs.org/base64-js/-/base64-js-1.5.1.tgz", + "integrity": "sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/bcrypt-pbkdf": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz", + "integrity": "sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w==", + "dependencies": { + "tweetnacl": "^0.14.3" + } + }, + "node_modules/bignumber.js": { + "version": "9.0.0", + "resolved": "https://registry.npmjs.org/bignumber.js/-/bignumber.js-9.0.0.tgz", + "integrity": "sha512-t/OYhhJ2SD+YGBQcjY8GzzDHEk9f3nerxjtfa6tlMXfe7frs/WozhvCNoGvpM0P3bNf3Gq5ZRMlGr5f3r4/N8A==", + "engines": { + "node": "*" + } + }, + "node_modules/bindings": { + "version": "1.5.0", + "resolved": "https://registry.npmjs.org/bindings/-/bindings-1.5.0.tgz", + "integrity": "sha512-p2q/t/mhvuOj/UeLlV6566GD/guowlr0hHxClI0W9m7MWYkL1F0hLo+0Aexs9HSPCtR1SXQ0TD3MMKrXZajbiQ==", + "dependencies": { + "file-uri-to-path": "1.0.0" + } + }, + "node_modules/bl": { + "version": "4.1.0", + "resolved": "https://registry.npmjs.org/bl/-/bl-4.1.0.tgz", + "integrity": "sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w==", + "dependencies": { + "buffer": "^5.5.0", + "inherits": "^2.0.4", + "readable-stream": "^3.4.0" + } + }, + "node_modules/bl/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/brace-expansion": { + "version": "1.1.11", + "resolved": "https://registry.npmjs.org/brace-expansion/-/brace-expansion-1.1.11.tgz", + "integrity": "sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA==", + "optional": true, + "dependencies": { + "balanced-match": "^1.0.0", + "concat-map": "0.0.1" + } + }, + "node_modules/buffer": { + "version": "5.7.1", + "resolved": "https://registry.npmjs.org/buffer/-/buffer-5.7.1.tgz", + "integrity": "sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "base64-js": "^1.3.1", + "ieee754": "^1.1.13" + } + }, + "node_modules/cacache": { + "version": "15.3.0", + "resolved": "https://registry.npmjs.org/cacache/-/cacache-15.3.0.tgz", + "integrity": "sha512-VVdYzXEn+cnbXpFgWs5hTT7OScegHVmLhJIR8Ufqk3iFD6A6j5iSX1KuBTfNEv4tdJWE2PzA6IVFtcLC7fN9wQ==", + "optional": true, + "dependencies": { + "@npmcli/fs": "^1.0.0", + "@npmcli/move-file": "^1.0.1", + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "glob": "^7.1.4", + "infer-owner": "^1.0.4", + "lru-cache": "^6.0.0", + "minipass": "^3.1.1", + "minipass-collect": "^1.0.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.2", + "mkdirp": "^1.0.3", + "p-map": "^4.0.0", + "promise-inflight": "^1.0.1", + "rimraf": "^3.0.2", + "ssri": "^8.0.1", + "tar": "^6.0.2", + "unique-filename": "^1.1.1" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/caseless": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/caseless/-/caseless-0.12.0.tgz", + "integrity": "sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw==" + }, + "node_modules/chownr": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-2.0.0.tgz", + "integrity": "sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ==", + "engines": { + "node": ">=10" + } + }, + "node_modules/chroma-js": { + "version": "2.4.2", + "resolved": "https://registry.npmjs.org/chroma-js/-/chroma-js-2.4.2.tgz", + "integrity": "sha512-U9eDw6+wt7V8z5NncY2jJfZa+hUH8XEj8FQHgFJTrUFnJfXYf4Ml4adI2vXZOjqRDpFWtYVWypDfZwnJ+HIR4A==" + }, + "node_modules/clean-stack": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/clean-stack/-/clean-stack-2.2.0.tgz", + "integrity": "sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/clsx": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/clsx/-/clsx-1.2.1.tgz", + "integrity": "sha512-EcR6r5a8bj6pu3ycsa/E/cKVGuTgZJZdsyUYHOksG/UHIiKfjxzRxYJpyVBwYaQeOvghal9fcc4PidlgzugAQg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/color-support": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/color-support/-/color-support-1.1.3.tgz", + "integrity": "sha512-qiBjkpbMLO/HL68y+lh4q0/O1MZFj2RX6X/KmMa3+gJD3z+WwI1ZzDHysvqHGS3mP6mznPckpXmw1nI9cJjyRg==", + "optional": true, + "bin": { + "color-support": "bin.js" + } + }, + "node_modules/combined-stream": { + "version": "1.0.8", + "resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz", + "integrity": "sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg==", + "dependencies": { + "delayed-stream": "~1.0.0" + }, + "engines": { + "node": ">= 0.8" + } + }, + "node_modules/concat-map": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/concat-map/-/concat-map-0.0.1.tgz", + "integrity": "sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg==", + "optional": true + }, + "node_modules/console-control-strings": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz", + "integrity": "sha512-ty/fTekppD2fIwRvnZAVdeOiGd1c7YXEixbgJTNzqcxJWKQnjJ/V1bNEEE6hygpM3WjwHFUVK6HTjWSzV4a8sQ==", + "optional": true + }, + "node_modules/core-util-is": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.3.tgz", + "integrity": "sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ==" + }, + "node_modules/csstype": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/csstype/-/csstype-3.1.3.tgz", + "integrity": "sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==" + }, + "node_modules/cwise-compiler": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/cwise-compiler/-/cwise-compiler-1.1.3.tgz", + "integrity": "sha512-WXlK/m+Di8DMMcCjcWr4i+XzcQra9eCdXIJrgh4TUgh0pIS/yJduLxS9JgefsHJ/YVLdgPtXm9r62W92MvanEQ==", + "dependencies": { + "uniq": "^1.0.0" + } + }, + "node_modules/dashdash": { + "version": "1.14.1", + "resolved": "https://registry.npmjs.org/dashdash/-/dashdash-1.14.1.tgz", + "integrity": "sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g==", + "dependencies": { + "assert-plus": "^1.0.0" + }, + "engines": { + "node": ">=0.10" + } + }, + "node_modules/debug": { + "version": "4.3.4", + "resolved": "https://registry.npmjs.org/debug/-/debug-4.3.4.tgz", + "integrity": "sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ==", + "optional": true, + "dependencies": { + "ms": "2.1.2" + }, + "engines": { + "node": ">=6.0" + }, + "peerDependenciesMeta": { + "supports-color": { + "optional": true + } + } + }, + "node_modules/decompress-response": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/decompress-response/-/decompress-response-6.0.0.tgz", + "integrity": "sha512-aW35yZM6Bb/4oJlZncMH2LCoZtJXTRxES17vE3hoRiowU2kWHaJKFkSBDnDR+cm9J+9QhXmREyIfv0pji9ejCQ==", + "dependencies": { + "mimic-response": "^3.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/deep-extend": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/deep-extend/-/deep-extend-0.6.0.tgz", + "integrity": "sha512-LOHxIOaPYdHlJRtCQfDIVZtfw/ufM8+rVj649RIHzcm/vGwQRXFt6OPqIFWsm2XEMrNIEtWR64sY1LEKD2vAOA==", + "engines": { + "node": ">=4.0.0" + } + }, + "node_modules/delayed-stream": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delayed-stream/-/delayed-stream-1.0.0.tgz", + "integrity": "sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ==", + "engines": { + "node": ">=0.4.0" + } + }, + "node_modules/delegates": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/delegates/-/delegates-1.0.0.tgz", + "integrity": "sha512-bd2L678uiWATM6m5Z1VzNCErI3jiGzt6HGY8OVICs40JQq/HALfbyNJmp0UDakEY4pMMaN0Ly5om/B1VI/+xfQ==", + "optional": true + }, + "node_modules/detect-libc": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.0.3.tgz", + "integrity": "sha512-bwy0MGW55bG41VqxxypOsdSdGqLwXPI/focwgTYCFMbdUiBAxLg9CFzG08sz2aqzknwiX7Hkl0bQENjg8iLByw==", + "engines": { + "node": ">=8" + } + }, + "node_modules/discord-api-types": { + "version": "0.37.61", + "resolved": "https://registry.npmjs.org/discord-api-types/-/discord-api-types-0.37.61.tgz", + "integrity": "sha512-o/dXNFfhBpYHpQFdT6FWzeO7pKc838QeeZ9d91CfVAtpr5XLK4B/zYxQbYgPdoMiTDvJfzcsLW5naXgmHGDNXw==" + }, + "node_modules/discord-html-transcripts": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/discord-html-transcripts/-/discord-html-transcripts-3.2.0.tgz", + "integrity": "sha512-DG6fxZTUNmdJ2A96/4SobHM8lQ8LYsx3Je+TRbhEdHh3NGoqo12HaXg8gTKGv0XuzwoxHtLDSHschwKUyjeJpA==", + "dependencies": { + "@derockdev/discord-components-core": "^3.6.1", + "@derockdev/discord-components-react": "^3.6.1", + "discord-markdown-parser": "~1.1.0", + "react": "^18.2.0", + "react-dom": "^18.2.0", + "simple-markdown": "^0.7.3", + "twemoji": "^14.0.2", + "undici": "^5.23.0" + }, + "peerDependencies": { + "discord.js": "^14.0.0 || ^15.0.0" + } + }, + "node_modules/discord-markdown-parser": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/discord-markdown-parser/-/discord-markdown-parser-1.1.0.tgz", + "integrity": "sha512-o2+iFgt5qer6UYY5hVTPGq2mGzleKRGYKcvymg67FdKg4AMJ061KbebKunCERWKjx79dmNHMDnGV2F0DRGCNkw==", + "dependencies": { + "simple-markdown": "^0.7.3" + } + }, + "node_modules/discord.js": { + "version": "14.14.1", + "resolved": "https://registry.npmjs.org/discord.js/-/discord.js-14.14.1.tgz", + "integrity": "sha512-/hUVzkIerxKHyRKopJy5xejp4MYKDPTszAnpYxzVVv4qJYf+Tkt+jnT2N29PIPschicaEEpXwF2ARrTYHYwQ5w==", + "dependencies": { + "@discordjs/builders": "^1.7.0", + "@discordjs/collection": "1.5.3", + "@discordjs/formatters": "^0.3.3", + "@discordjs/rest": "^2.1.0", + "@discordjs/util": "^1.0.2", + "@discordjs/ws": "^1.0.2", + "@sapphire/snowflake": "3.5.1", + "@types/ws": "8.5.9", + "discord-api-types": "0.37.61", + "fast-deep-equal": "3.1.3", + "lodash.snakecase": "4.1.1", + "tslib": "2.6.2", + "undici": "5.27.2", + "ws": "8.14.2" + }, + "engines": { + "node": ">=16.11.0" + } + }, + "node_modules/discord.js/node_modules/undici": { + "version": "5.27.2", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.27.2.tgz", + "integrity": "sha512-iS857PdOEy/y3wlM3yRp+6SNQQ6xU0mmZcwRSriqk+et/cwWAtwmIGf6WkoDN2EK/AMdCO/dfXzIwi+rFMrjjQ==", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/ecc-jsbn": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz", + "integrity": "sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw==", + "dependencies": { + "jsbn": "~0.1.0", + "safer-buffer": "^2.1.0" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "optional": true + }, + "node_modules/encoding": { + "version": "0.1.13", + "resolved": "https://registry.npmjs.org/encoding/-/encoding-0.1.13.tgz", + "integrity": "sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A==", + "optional": true, + "dependencies": { + "iconv-lite": "^0.6.2" + } + }, + "node_modules/end-of-stream": { + "version": "1.4.4", + "resolved": "https://registry.npmjs.org/end-of-stream/-/end-of-stream-1.4.4.tgz", + "integrity": "sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q==", + "dependencies": { + "once": "^1.4.0" + } + }, + "node_modules/env-paths": { + "version": "2.2.1", + "resolved": "https://registry.npmjs.org/env-paths/-/env-paths-2.2.1.tgz", + "integrity": "sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A==", + "optional": true, + "engines": { + "node": ">=6" + } + }, + "node_modules/err-code": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/err-code/-/err-code-2.0.3.tgz", + "integrity": "sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA==", + "optional": true + }, + "node_modules/expand-template": { + "version": "2.0.3", + "resolved": "https://registry.npmjs.org/expand-template/-/expand-template-2.0.3.tgz", + "integrity": "sha512-XYfuKMvj4O35f/pOXLObndIRvyQ+/+6AhODh+OKWj9S9498pHHn/IMszH+gt0fBCRWMNfk1ZSp5x3AifmnI2vg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/extend": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/extend/-/extend-3.0.2.tgz", + "integrity": "sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g==" + }, + "node_modules/extsprintf": { + "version": "1.3.0", + "resolved": "https://registry.npmjs.org/extsprintf/-/extsprintf-1.3.0.tgz", + "integrity": "sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g==", + "engines": [ + "node >=0.6.0" + ] + }, + "node_modules/fast-deep-equal": { + "version": "3.1.3", + "resolved": "https://registry.npmjs.org/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz", + "integrity": "sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q==" + }, + "node_modules/fast-json-stable-stringify": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz", + "integrity": "sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw==" + }, + "node_modules/file-uri-to-path": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/file-uri-to-path/-/file-uri-to-path-1.0.0.tgz", + "integrity": "sha512-0Zt+s3L7Vf1biwWZ29aARiVYLx7iMGnEUl9x33fbB/j3jR81u/O2LbqK+Bm1CDSNDKVtJ/YjwY7TUd5SkeLQLw==" + }, + "node_modules/follow-redirects": { + "version": "1.15.6", + "resolved": "https://registry.npmjs.org/follow-redirects/-/follow-redirects-1.15.6.tgz", + "integrity": "sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA==", + "funding": [ + { + "type": "individual", + "url": "https://github.com/sponsors/RubenVerborgh" + } + ], + "engines": { + "node": ">=4.0" + }, + "peerDependenciesMeta": { + "debug": { + "optional": true + } + } + }, + "node_modules/forever-agent": { + "version": "0.6.1", + "resolved": "https://registry.npmjs.org/forever-agent/-/forever-agent-0.6.1.tgz", + "integrity": "sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw==", + "engines": { + "node": "*" + } + }, + "node_modules/form-data": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-4.0.0.tgz", + "integrity": "sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.8", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/fs-constants": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs-constants/-/fs-constants-1.0.0.tgz", + "integrity": "sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow==" + }, + "node_modules/fs-extra": { + "version": "8.1.0", + "resolved": "https://registry.npmjs.org/fs-extra/-/fs-extra-8.1.0.tgz", + "integrity": "sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g==", + "dependencies": { + "graceful-fs": "^4.2.0", + "jsonfile": "^4.0.0", + "universalify": "^0.1.0" + }, + "engines": { + "node": ">=6 <7 || >=8" + } + }, + "node_modules/fs-extra/node_modules/jsonfile": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-4.0.0.tgz", + "integrity": "sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg==", + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/fs-minipass": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/fs-minipass/-/fs-minipass-2.1.0.tgz", + "integrity": "sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg==", + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/fs.realpath": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/fs.realpath/-/fs.realpath-1.0.0.tgz", + "integrity": "sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw==", + "optional": true + }, + "node_modules/gauge": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/gauge/-/gauge-4.0.4.tgz", + "integrity": "sha512-f9m+BEN5jkg6a0fZjleidjN51VE1X+mPFQ2DJ0uv1V39oCLCbsGe6yjbBnp7eK7z/+GAon99a3nHuqbuuthyPg==", + "optional": true, + "dependencies": { + "aproba": "^1.0.3 || ^2.0.0", + "color-support": "^1.1.3", + "console-control-strings": "^1.1.0", + "has-unicode": "^2.0.1", + "signal-exit": "^3.0.7", + "string-width": "^4.2.3", + "strip-ansi": "^6.0.1", + "wide-align": "^1.1.5" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/getpass": { + "version": "0.1.7", + "resolved": "https://registry.npmjs.org/getpass/-/getpass-0.1.7.tgz", + "integrity": "sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng==", + "dependencies": { + "assert-plus": "^1.0.0" + } + }, + "node_modules/github-from-package": { + "version": "0.0.0", + "resolved": "https://registry.npmjs.org/github-from-package/-/github-from-package-0.0.0.tgz", + "integrity": "sha512-SyHy3T1v2NUXn29OsWdxmK6RwHD+vkj3v8en8AOBZ1wBQ/hCAQ5bAQTD02kW4W9tUp/3Qh6J8r9EvntiyCmOOw==" + }, + "node_modules/glob": { + "version": "7.2.3", + "resolved": "https://registry.npmjs.org/glob/-/glob-7.2.3.tgz", + "integrity": "sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q==", + "optional": true, + "dependencies": { + "fs.realpath": "^1.0.0", + "inflight": "^1.0.4", + "inherits": "2", + "minimatch": "^3.1.1", + "once": "^1.3.0", + "path-is-absolute": "^1.0.0" + }, + "engines": { + "node": "*" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==" + }, + "node_modules/har-schema": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/har-schema/-/har-schema-2.0.0.tgz", + "integrity": "sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q==", + "engines": { + "node": ">=4" + } + }, + "node_modules/har-validator": { + "version": "5.1.5", + "resolved": "https://registry.npmjs.org/har-validator/-/har-validator-5.1.5.tgz", + "integrity": "sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w==", + "deprecated": "this library is no longer supported", + "dependencies": { + "ajv": "^6.12.3", + "har-schema": "^2.0.0" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/has-unicode": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/has-unicode/-/has-unicode-2.0.1.tgz", + "integrity": "sha512-8Rf9Y83NBReMnx0gFzA8JImQACstCYWUplepDa9xprwwtmgEZUF0h/i5xSA625zB/I37EtrswSST6OXxwaaIJQ==", + "optional": true + }, + "node_modules/hex-to-rgba": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/hex-to-rgba/-/hex-to-rgba-2.0.1.tgz", + "integrity": "sha512-5XqPJBpsEUMsseJUi2w2Hl7cHFFi3+OO10M2pzAvKB1zL6fc+koGMhmBqoDOCB4GemiRM/zvDMRIhVw6EkB8dQ==" + }, + "node_modules/highlight.js": { + "version": "11.9.0", + "resolved": "https://registry.npmjs.org/highlight.js/-/highlight.js-11.9.0.tgz", + "integrity": "sha512-fJ7cW7fQGCYAkgv4CPfwFHrfd/cLS4Hau96JuJ+ZTOWhjnhoeN1ub1tFmALm/+lW5z4WCAuAV9bm05AP0mS6Gw==", + "engines": { + "node": ">=12.0.0" + } + }, + "node_modules/http-cache-semantics": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz", + "integrity": "sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ==", + "optional": true + }, + "node_modules/http-proxy-agent": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/http-proxy-agent/-/http-proxy-agent-4.0.1.tgz", + "integrity": "sha512-k0zdNgqWTGA6aeIRVpvfVob4fL52dTfaehylg0Y4UvSySvOq/Y+BOyPrgpUrA7HylqvU8vIZGsRuXmspskV0Tg==", + "optional": true, + "dependencies": { + "@tootallnate/once": "1", + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/http-signature": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/http-signature/-/http-signature-1.2.0.tgz", + "integrity": "sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ==", + "dependencies": { + "assert-plus": "^1.0.0", + "jsprim": "^1.2.2", + "sshpk": "^1.7.0" + }, + "engines": { + "node": ">=0.8", + "npm": ">=1.3.7" + } + }, + "node_modules/https-proxy-agent": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/https-proxy-agent/-/https-proxy-agent-5.0.1.tgz", + "integrity": "sha512-dFcAjpTQFgoLMzC2VwU+C/CbS7uRL0lWmxDITmqm7C+7F0Odmj6s9l6alZc6AELXhrnggM2CeWSXHGOdX2YtwA==", + "optional": true, + "dependencies": { + "agent-base": "6", + "debug": "4" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/humanize-ms": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/humanize-ms/-/humanize-ms-1.2.1.tgz", + "integrity": "sha512-Fl70vYtsAFb/C06PTS9dZBo7ihau+Tu/DNCk/OyHhea07S+aeMWpFFkUaXRa8fI+ScZbEI8dfSxwY7gxZ9SAVQ==", + "optional": true, + "dependencies": { + "ms": "^2.0.0" + } + }, + "node_modules/iconv-lite": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/iconv-lite/-/iconv-lite-0.6.3.tgz", + "integrity": "sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw==", + "optional": true, + "dependencies": { + "safer-buffer": ">= 2.1.2 < 3.0.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ieee754": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ieee754/-/ieee754-1.2.1.tgz", + "integrity": "sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/imurmurhash": { + "version": "0.1.4", + "resolved": "https://registry.npmjs.org/imurmurhash/-/imurmurhash-0.1.4.tgz", + "integrity": "sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA==", + "optional": true, + "engines": { + "node": ">=0.8.19" + } + }, + "node_modules/indent-string": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/indent-string/-/indent-string-4.0.0.tgz", + "integrity": "sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/infer-owner": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/infer-owner/-/infer-owner-1.0.4.tgz", + "integrity": "sha512-IClj+Xz94+d7irH5qRyfJonOdfTzuDaifE6ZPWfx0N0+/ATZCbuTPq2prFl526urkQd90WyUKIh1DfBQ2hMz9A==", + "optional": true + }, + "node_modules/inflight": { + "version": "1.0.6", + "resolved": "https://registry.npmjs.org/inflight/-/inflight-1.0.6.tgz", + "integrity": "sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA==", + "optional": true, + "dependencies": { + "once": "^1.3.0", + "wrappy": "1" + } + }, + "node_modules/inherits": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz", + "integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ==" + }, + "node_modules/ini": { + "version": "1.3.8", + "resolved": "https://registry.npmjs.org/ini/-/ini-1.3.8.tgz", + "integrity": "sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew==" + }, + "node_modules/iota-array": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/iota-array/-/iota-array-1.0.0.tgz", + "integrity": "sha512-pZ2xT+LOHckCatGQ3DcG/a+QuEqvoxqkiL7tvE8nn3uuu+f6i1TtpB5/FtWFbxUuVr5PZCx8KskuGatbJDXOWA==" + }, + "node_modules/ip-address": { + "version": "9.0.5", + "resolved": "https://registry.npmjs.org/ip-address/-/ip-address-9.0.5.tgz", + "integrity": "sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g==", + "optional": true, + "dependencies": { + "jsbn": "1.1.0", + "sprintf-js": "^1.1.3" + }, + "engines": { + "node": ">= 12" + } + }, + "node_modules/ip-address/node_modules/jsbn": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-1.1.0.tgz", + "integrity": "sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A==", + "optional": true + }, + "node_modules/is-buffer": { + "version": "1.1.6", + "resolved": "https://registry.npmjs.org/is-buffer/-/is-buffer-1.1.6.tgz", + "integrity": "sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==" + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "optional": true, + "engines": { + "node": ">=8" + } + }, + "node_modules/is-lambda": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/is-lambda/-/is-lambda-1.0.1.tgz", + "integrity": "sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ==", + "optional": true + }, + "node_modules/is-typedarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/is-typedarray/-/is-typedarray-1.0.0.tgz", + "integrity": "sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA==" + }, + "node_modules/isarray": { + "version": "1.0.0", + "resolved": "https://registry.npmjs.org/isarray/-/isarray-1.0.0.tgz", + "integrity": "sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ==" + }, + "node_modules/isexe": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/isexe/-/isexe-2.0.0.tgz", + "integrity": "sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw==", + "optional": true + }, + "node_modules/isstream": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/isstream/-/isstream-0.1.2.tgz", + "integrity": "sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g==" + }, + "node_modules/jpeg-js": { + "version": "0.4.4", + "resolved": "https://registry.npmjs.org/jpeg-js/-/jpeg-js-0.4.4.tgz", + "integrity": "sha512-WZzeDOEtTOBK4Mdsar0IqEU5sMr3vSV2RqkAIzUEV2BHnUfKGyswWFPFwK5EeDo93K3FohSHbLAjj0s1Wzd+dg==" + }, + "node_modules/js-tokens": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", + "integrity": "sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ==" + }, + "node_modules/jsbn": { + "version": "0.1.1", + "resolved": "https://registry.npmjs.org/jsbn/-/jsbn-0.1.1.tgz", + "integrity": "sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg==" + }, + "node_modules/json-schema": { + "version": "0.4.0", + "resolved": "https://registry.npmjs.org/json-schema/-/json-schema-0.4.0.tgz", + "integrity": "sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA==" + }, + "node_modules/json-schema-traverse": { + "version": "0.4.1", + "resolved": "https://registry.npmjs.org/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz", + "integrity": "sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg==" + }, + "node_modules/json-stringify-safe": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz", + "integrity": "sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA==" + }, + "node_modules/jsonfile": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/jsonfile/-/jsonfile-5.0.0.tgz", + "integrity": "sha512-NQRZ5CRo74MhMMC3/3r5g2k4fjodJ/wh8MxjFbCViWKFjxrnudWSY5vomh+23ZaXzAS7J3fBZIR2dV6WbmfM0w==", + "dependencies": { + "universalify": "^0.1.2" + }, + "optionalDependencies": { + "graceful-fs": "^4.1.6" + } + }, + "node_modules/jsprim": { + "version": "1.4.2", + "resolved": "https://registry.npmjs.org/jsprim/-/jsprim-1.4.2.tgz", + "integrity": "sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw==", + "dependencies": { + "assert-plus": "1.0.0", + "extsprintf": "1.3.0", + "json-schema": "0.4.0", + "verror": "1.10.0" + }, + "engines": { + "node": ">=0.6.0" + } + }, + "node_modules/lazyness": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/lazyness/-/lazyness-1.2.0.tgz", + "integrity": "sha512-KenL6EFbwxBwRxG93t0gcUyi0Nw0Ub31FJKN1laA4UscdkL1K1AxUd0gYZdcLU3v+x+wcFi4uQKS5hL+fk500g==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/lodash": { + "version": "4.17.21", + "resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz", + "integrity": "sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg==" + }, + "node_modules/lodash.snakecase": { + "version": "4.1.1", + "resolved": "https://registry.npmjs.org/lodash.snakecase/-/lodash.snakecase-4.1.1.tgz", + "integrity": "sha512-QZ1d4xoBHYUeuouhEq3lk3Uq7ldgyFXGBhg04+oRLnIz8o9T65Eh+8YdroUwn846zchkA9yDsDl5CVVaV2nqYw==" + }, + "node_modules/loose-envify": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/loose-envify/-/loose-envify-1.4.0.tgz", + "integrity": "sha512-lyuxPGr/Wfhrlem2CL/UcnUc1zcqKAImBDzukY7Y5F/yQiNdko6+fRLevlw1HgMySw7f611UIY408EtxRSoK3Q==", + "dependencies": { + "js-tokens": "^3.0.0 || ^4.0.0" + }, + "bin": { + "loose-envify": "cli.js" + } + }, + "node_modules/lru-cache": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/lru-cache/-/lru-cache-6.0.0.tgz", + "integrity": "sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/magic-bytes.js": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/magic-bytes.js/-/magic-bytes.js-1.10.0.tgz", + "integrity": "sha512-/k20Lg2q8LE5xiaaSkMXk4sfvI+9EGEykFS4b0CHHGWqDYU0bGUFSwchNOMA56D7TCs9GwVTkqe9als1/ns8UQ==" + }, + "node_modules/make-fetch-happen": { + "version": "9.1.0", + "resolved": "https://registry.npmjs.org/make-fetch-happen/-/make-fetch-happen-9.1.0.tgz", + "integrity": "sha512-+zopwDy7DNknmwPQplem5lAZX/eCOzSvSNNcSKm5eVwTkOBzoktEfXsa9L23J/GIRhxRsaxzkPEhrJEpE2F4Gg==", + "optional": true, + "dependencies": { + "agentkeepalive": "^4.1.3", + "cacache": "^15.2.0", + "http-cache-semantics": "^4.1.0", + "http-proxy-agent": "^4.0.1", + "https-proxy-agent": "^5.0.0", + "is-lambda": "^1.0.1", + "lru-cache": "^6.0.0", + "minipass": "^3.1.3", + "minipass-collect": "^1.0.2", + "minipass-fetch": "^1.3.2", + "minipass-flush": "^1.0.5", + "minipass-pipeline": "^1.2.4", + "negotiator": "^0.6.2", + "promise-retry": "^2.0.1", + "socks-proxy-agent": "^6.0.0", + "ssri": "^8.0.0" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/mime-db": { + "version": "1.52.0", + "resolved": "https://registry.npmjs.org/mime-db/-/mime-db-1.52.0.tgz", + "integrity": "sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mime-types": { + "version": "2.1.35", + "resolved": "https://registry.npmjs.org/mime-types/-/mime-types-2.1.35.tgz", + "integrity": "sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw==", + "dependencies": { + "mime-db": "1.52.0" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/mimic-response": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/mimic-response/-/mimic-response-3.1.0.tgz", + "integrity": "sha512-z0yWI+4FDrrweS8Zmt4Ej5HdJmky15+L2e6Wgn3+iK5fWzb6T3fhNFq2+MeTRb064c6Wr4N/wv0DzQTjNzHNGQ==", + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/minimatch": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/minimatch/-/minimatch-3.1.2.tgz", + "integrity": "sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw==", + "optional": true, + "dependencies": { + "brace-expansion": "^1.1.7" + }, + "engines": { + "node": "*" + } + }, + "node_modules/minimist": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/minimist/-/minimist-1.2.8.tgz", + "integrity": "sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA==", + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/minipass": { + "version": "3.3.6", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-3.3.6.tgz", + "integrity": "sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw==", + "dependencies": { + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-collect": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/minipass-collect/-/minipass-collect-1.0.2.tgz", + "integrity": "sha512-6T6lH0H8OG9kITm/Jm6tdooIbogG9e0tLgpY6mphXSm/A9u8Nq1ryBG+Qspiub9LjWlBPsPS3tWQ/Botq4FdxA==", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-fetch": { + "version": "1.4.1", + "resolved": "https://registry.npmjs.org/minipass-fetch/-/minipass-fetch-1.4.1.tgz", + "integrity": "sha512-CGH1eblLq26Y15+Azk7ey4xh0J/XfJfrCox5LDJiKqI2Q2iwOLOKrlmIaODiSQS8d18jalF6y2K2ePUm0CmShw==", + "optional": true, + "dependencies": { + "minipass": "^3.1.0", + "minipass-sized": "^1.0.3", + "minizlib": "^2.0.0" + }, + "engines": { + "node": ">=8" + }, + "optionalDependencies": { + "encoding": "^0.1.12" + } + }, + "node_modules/minipass-flush": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/minipass-flush/-/minipass-flush-1.0.5.tgz", + "integrity": "sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw==", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/minipass-pipeline": { + "version": "1.2.4", + "resolved": "https://registry.npmjs.org/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz", + "integrity": "sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A==", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minipass-sized": { + "version": "1.0.3", + "resolved": "https://registry.npmjs.org/minipass-sized/-/minipass-sized-1.0.3.tgz", + "integrity": "sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g==", + "optional": true, + "dependencies": { + "minipass": "^3.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/minizlib": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/minizlib/-/minizlib-2.1.2.tgz", + "integrity": "sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg==", + "dependencies": { + "minipass": "^3.0.0", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/mkdirp": { + "version": "1.0.4", + "resolved": "https://registry.npmjs.org/mkdirp/-/mkdirp-1.0.4.tgz", + "integrity": "sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw==", + "bin": { + "mkdirp": "bin/cmd.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/mkdirp-classic": { + "version": "0.5.3", + "resolved": "https://registry.npmjs.org/mkdirp-classic/-/mkdirp-classic-0.5.3.tgz", + "integrity": "sha512-gKLcREMhtuZRwRAfqP3RFW+TK4JqApVBtOIftVgjuABpAtpxhPGaDcfvbhNvD0B8iD1oUr/txX35NjcaY6Ns/A==" + }, + "node_modules/ms": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz", + "integrity": "sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w==", + "optional": true + }, + "node_modules/mysql": { + "version": "2.18.1", + "resolved": "https://registry.npmjs.org/mysql/-/mysql-2.18.1.tgz", + "integrity": "sha512-Bca+gk2YWmqp2Uf6k5NFEurwY/0td0cpebAucFpY/3jhrwrVGuxU2uQFCHjU19SJfje0yQvi+rVWdq78hR5lig==", + "dependencies": { + "bignumber.js": "9.0.0", + "readable-stream": "2.3.7", + "safe-buffer": "5.1.2", + "sqlstring": "2.3.1" + }, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/napi-build-utils": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/napi-build-utils/-/napi-build-utils-1.0.2.tgz", + "integrity": "sha512-ONmRUqK7zj7DWX0D9ADe03wbwOBZxNAfF20PlGfCWQcD3+/MakShIHrMqx9YwPTfxDdF1zLeL+RGZiR9kGMLdg==" + }, + "node_modules/ndarray": { + "version": "1.0.19", + "resolved": "https://registry.npmjs.org/ndarray/-/ndarray-1.0.19.tgz", + "integrity": "sha512-B4JHA4vdyZU30ELBw3g7/p9bZupyew5a7tX1Y/gGeF2hafrPaQZhgrGQfsvgfYbgdFZjYwuEcnaobeM/WMW+HQ==", + "dependencies": { + "iota-array": "^1.0.0", + "is-buffer": "^1.0.2" + } + }, + "node_modules/ndarray-pack": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/ndarray-pack/-/ndarray-pack-1.2.1.tgz", + "integrity": "sha512-51cECUJMT0rUZNQa09EoKsnFeDL4x2dHRT0VR5U2H5ZgEcm95ZDWcMA5JShroXjHOejmAD/fg8+H+OvUnVXz2g==", + "dependencies": { + "cwise-compiler": "^1.1.2", + "ndarray": "^1.0.13" + } + }, + "node_modules/negotiator": { + "version": "0.6.3", + "resolved": "https://registry.npmjs.org/negotiator/-/negotiator-0.6.3.tgz", + "integrity": "sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg==", + "optional": true, + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/nextgen-events": { + "version": "1.5.3", + "resolved": "https://registry.npmjs.org/nextgen-events/-/nextgen-events-1.5.3.tgz", + "integrity": "sha512-P6qw6kenNXP+J9XlKJNi/MNHUQ+Lx5K8FEcSfX7/w8KJdZan5+BB5MKzuNgL2RTjHG1Svg8SehfseVEp8zAqwA==", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/node-abi": { + "version": "3.57.0", + "resolved": "https://registry.npmjs.org/node-abi/-/node-abi-3.57.0.tgz", + "integrity": "sha512-Dp+A9JWxRaKuHP35H77I4kCKesDy5HUDEmScia2FyncMTOXASMyg251F5PhFoDA5uqBrDDffiLpbqnrZmNXW+g==", + "dependencies": { + "semver": "^7.3.5" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/node-addon-api": { + "version": "7.1.0", + "resolved": "https://registry.npmjs.org/node-addon-api/-/node-addon-api-7.1.0.tgz", + "integrity": "sha512-mNcltoe1R8o7STTegSOHdnJNN7s5EUvhoS7ShnTHDyOSd+8H+UdWODq6qSv67PjC8Zc5JRT8+oLAMCr0SIXw7g==", + "engines": { + "node": "^16 || ^18 || >= 20" + } + }, + "node_modules/node-bitmap": { + "version": "0.0.1", + "resolved": "https://registry.npmjs.org/node-bitmap/-/node-bitmap-0.0.1.tgz", + "integrity": "sha512-Jx5lPaaLdIaOsj2mVLWMWulXF6GQVdyLvNSxmiYCvZ8Ma2hfKX0POoR2kgKOqz+oFsRreq0yYZjQ2wjE9VNzCA==", + "engines": { + "node": ">=v0.6.5" + } + }, + "node_modules/node-gyp": { + "version": "8.4.1", + "resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-8.4.1.tgz", + "integrity": "sha512-olTJRgUtAb/hOXG0E93wZDs5YiJlgbXxTwQAFHyNlRsXQnYzUaF2aGgujZbw+hR8aF4ZG/rST57bWMWD16jr9w==", + "optional": true, + "dependencies": { + "env-paths": "^2.2.0", + "glob": "^7.1.4", + "graceful-fs": "^4.2.6", + "make-fetch-happen": "^9.1.0", + "nopt": "^5.0.0", + "npmlog": "^6.0.0", + "rimraf": "^3.0.2", + "semver": "^7.3.5", + "tar": "^6.1.2", + "which": "^2.0.2" + }, + "bin": { + "node-gyp": "bin/node-gyp.js" + }, + "engines": { + "node": ">= 10.12.0" + } + }, + "node_modules/nopt": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/nopt/-/nopt-5.0.0.tgz", + "integrity": "sha512-Tbj67rffqceeLpcRXrT7vKAN8CwfPeIBgM7E6iBkmKLV7bEMwpGgYLGv0jACUsECaa/vuxP0IjEont6umdMgtQ==", + "optional": true, + "dependencies": { + "abbrev": "1" + }, + "bin": { + "nopt": "bin/nopt.js" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/npmlog": { + "version": "6.0.2", + "resolved": "https://registry.npmjs.org/npmlog/-/npmlog-6.0.2.tgz", + "integrity": "sha512-/vBvz5Jfr9dT/aFWd0FIRf+T/Q2WBsLENygUaFUqstqsycmZAP/t5BvFJTK0viFmSUxiUKTUplWy5vt+rvKIxg==", + "optional": true, + "dependencies": { + "are-we-there-yet": "^3.0.0", + "console-control-strings": "^1.1.0", + "gauge": "^4.0.3", + "set-blocking": "^2.0.0" + }, + "engines": { + "node": "^12.13.0 || ^14.15.0 || >=16.0.0" + } + }, + "node_modules/oauth-sign": { + "version": "0.9.0", + "resolved": "https://registry.npmjs.org/oauth-sign/-/oauth-sign-0.9.0.tgz", + "integrity": "sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ==", + "engines": { + "node": "*" + } + }, + "node_modules/omggif": { + "version": "1.0.10", + "resolved": "https://registry.npmjs.org/omggif/-/omggif-1.0.10.tgz", + "integrity": "sha512-LMJTtvgc/nugXj0Vcrrs68Mn2D1r0zf630VNtqtpI1FEO7e+O9FP4gqs9AcnBaSEeoHIPm28u6qgPR0oyEpGSw==" + }, + "node_modules/once": { + "version": "1.4.0", + "resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz", + "integrity": "sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w==", + "dependencies": { + "wrappy": "1" + } + }, + "node_modules/p-map": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/p-map/-/p-map-4.0.0.tgz", + "integrity": "sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ==", + "optional": true, + "dependencies": { + "aggregate-error": "^3.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/sponsors/sindresorhus" + } + }, + "node_modules/path-is-absolute": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/path-is-absolute/-/path-is-absolute-1.0.1.tgz", + "integrity": "sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg==", + "optional": true, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/performance-now": { + "version": "2.1.0", + "resolved": "https://registry.npmjs.org/performance-now/-/performance-now-2.1.0.tgz", + "integrity": "sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow==" + }, + "node_modules/pngjs": { + "version": "6.0.0", + "resolved": "https://registry.npmjs.org/pngjs/-/pngjs-6.0.0.tgz", + "integrity": "sha512-TRzzuFRRmEoSW/p1KVAmiOgPco2Irlah+bGFCeNfJXxxYGwSw7YwAOAcd7X28K/m5bjBWKsC29KyoMfHbypayg==", + "engines": { + "node": ">=12.13.0" + } + }, + "node_modules/prebuild-install": { + "version": "7.1.2", + "resolved": "https://registry.npmjs.org/prebuild-install/-/prebuild-install-7.1.2.tgz", + "integrity": "sha512-UnNke3IQb6sgarcZIDU3gbMeTp/9SSU1DAIkil7PrqG1vZlBtY5msYccSKSHDqa3hNg436IXK+SNImReuA1wEQ==", + "dependencies": { + "detect-libc": "^2.0.0", + "expand-template": "^2.0.3", + "github-from-package": "0.0.0", + "minimist": "^1.2.3", + "mkdirp-classic": "^0.5.3", + "napi-build-utils": "^1.0.1", + "node-abi": "^3.3.0", + "pump": "^3.0.0", + "rc": "^1.2.7", + "simple-get": "^4.0.0", + "tar-fs": "^2.0.0", + "tunnel-agent": "^0.6.0" + }, + "bin": { + "prebuild-install": "bin.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/process-nextick-args": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/process-nextick-args/-/process-nextick-args-2.0.1.tgz", + "integrity": "sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag==" + }, + "node_modules/promise-inflight": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/promise-inflight/-/promise-inflight-1.0.1.tgz", + "integrity": "sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g==", + "optional": true + }, + "node_modules/promise-retry": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/promise-retry/-/promise-retry-2.0.1.tgz", + "integrity": "sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g==", + "optional": true, + "dependencies": { + "err-code": "^2.0.2", + "retry": "^0.12.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/proxy-from-env": { + "version": "1.1.0", + "resolved": "https://registry.npmjs.org/proxy-from-env/-/proxy-from-env-1.1.0.tgz", + "integrity": "sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg==" + }, + "node_modules/psl": { + "version": "1.9.0", + "resolved": "https://registry.npmjs.org/psl/-/psl-1.9.0.tgz", + "integrity": "sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag==" + }, + "node_modules/pump": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/pump/-/pump-3.0.0.tgz", + "integrity": "sha512-LwZy+p3SFs1Pytd/jYct4wpv49HiYCqd9Rlc5ZVdk0V+8Yzv6jR5Blk3TRmPL1ft69TxP0IMZGJ+WPFU2BFhww==", + "dependencies": { + "end-of-stream": "^1.1.0", + "once": "^1.3.1" + } + }, + "node_modules/punycode": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/punycode/-/punycode-2.3.1.tgz", + "integrity": "sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg==", + "engines": { + "node": ">=6" + } + }, + "node_modules/qs": { + "version": "6.5.3", + "resolved": "https://registry.npmjs.org/qs/-/qs-6.5.3.tgz", + "integrity": "sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA==", + "engines": { + "node": ">=0.6" + } + }, + "node_modules/rc": { + "version": "1.2.8", + "resolved": "https://registry.npmjs.org/rc/-/rc-1.2.8.tgz", + "integrity": "sha512-y3bGgqKj3QBdxLbLkomlohkvsA8gdAiUQlSBJnBhfn+BPxg4bc62d8TcBW15wavDfgexCgccckhcZvywyQYPOw==", + "dependencies": { + "deep-extend": "^0.6.0", + "ini": "~1.3.0", + "minimist": "^1.2.0", + "strip-json-comments": "~2.0.1" + }, + "bin": { + "rc": "cli.js" + } + }, + "node_modules/react": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react/-/react-18.2.0.tgz", + "integrity": "sha512-/3IjMdb2L9QbBdWiW5e3P2/npwMBaU9mHCSCUzNln0ZCYbcfTsGbTJrU/kGemdH2IWmB2ioZ+zkxtmq6g09fGQ==", + "dependencies": { + "loose-envify": "^1.1.0" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/react-dom": { + "version": "18.2.0", + "resolved": "https://registry.npmjs.org/react-dom/-/react-dom-18.2.0.tgz", + "integrity": "sha512-6IMTriUmvsjHUjNtEDudZfuDQUoWXVxKHhlEGSk81n4YFS+r/Kl99wXiwlVXtPBtJenozv2P+hxDsw9eA7Xo6g==", + "dependencies": { + "loose-envify": "^1.1.0", + "scheduler": "^0.23.0" + }, + "peerDependencies": { + "react": "^18.2.0" + } + }, + "node_modules/readable-stream": { + "version": "2.3.7", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", + "integrity": "sha512-Ebho8K4jIbHAxnuxi7o42OrZgF/ZTNcsZj6nRKyUmkhLFq8CHItp/fy6hQZuZmP/n3yZ9VBUbp4zz/mX8hmYPw==", + "dependencies": { + "core-util-is": "~1.0.0", + "inherits": "~2.0.3", + "isarray": "~1.0.0", + "process-nextick-args": "~2.0.0", + "safe-buffer": "~5.1.1", + "string_decoder": "~1.1.1", + "util-deprecate": "~1.0.1" + } + }, + "node_modules/request": { + "version": "2.88.2", + "resolved": "https://registry.npmjs.org/request/-/request-2.88.2.tgz", + "integrity": "sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw==", + "deprecated": "request has been deprecated, see https://github.com/request/request/issues/3142", + "dependencies": { + "aws-sign2": "~0.7.0", + "aws4": "^1.8.0", + "caseless": "~0.12.0", + "combined-stream": "~1.0.6", + "extend": "~3.0.2", + "forever-agent": "~0.6.1", + "form-data": "~2.3.2", + "har-validator": "~5.1.3", + "http-signature": "~1.2.0", + "is-typedarray": "~1.0.0", + "isstream": "~0.1.2", + "json-stringify-safe": "~5.0.1", + "mime-types": "~2.1.19", + "oauth-sign": "~0.9.0", + "performance-now": "^2.1.0", + "qs": "~6.5.2", + "safe-buffer": "^5.1.2", + "tough-cookie": "~2.5.0", + "tunnel-agent": "^0.6.0", + "uuid": "^3.3.2" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/request/node_modules/form-data": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/form-data/-/form-data-2.3.3.tgz", + "integrity": "sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ==", + "dependencies": { + "asynckit": "^0.4.0", + "combined-stream": "^1.0.6", + "mime-types": "^2.1.12" + }, + "engines": { + "node": ">= 0.12" + } + }, + "node_modules/retry": { + "version": "0.12.0", + "resolved": "https://registry.npmjs.org/retry/-/retry-0.12.0.tgz", + "integrity": "sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow==", + "optional": true, + "engines": { + "node": ">= 4" + } + }, + "node_modules/rimraf": { + "version": "3.0.2", + "resolved": "https://registry.npmjs.org/rimraf/-/rimraf-3.0.2.tgz", + "integrity": "sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA==", + "optional": true, + "dependencies": { + "glob": "^7.1.3" + }, + "bin": { + "rimraf": "bin.js" + }, + "funding": { + "url": "https://github.com/sponsors/isaacs" + } + }, + "node_modules/safe-buffer": { + "version": "5.1.2", + "resolved": "https://registry.npmjs.org/safe-buffer/-/safe-buffer-5.1.2.tgz", + "integrity": "sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g==" + }, + "node_modules/safer-buffer": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/safer-buffer/-/safer-buffer-2.1.2.tgz", + "integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg==" + }, + "node_modules/scheduler": { + "version": "0.23.0", + "resolved": "https://registry.npmjs.org/scheduler/-/scheduler-0.23.0.tgz", + "integrity": "sha512-CtuThmgHNg7zIZWAXi3AsyIzA3n4xx7aNyjwC2VJldO2LMVDhFK+63xGqq6CsJH4rTAt6/M+N4GhZiDYPx9eUw==", + "dependencies": { + "loose-envify": "^1.1.0" + } + }, + "node_modules/semver": { + "version": "7.6.0", + "resolved": "https://registry.npmjs.org/semver/-/semver-7.6.0.tgz", + "integrity": "sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg==", + "dependencies": { + "lru-cache": "^6.0.0" + }, + "bin": { + "semver": "bin/semver.js" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/set-blocking": { + "version": "2.0.0", + "resolved": "https://registry.npmjs.org/set-blocking/-/set-blocking-2.0.0.tgz", + "integrity": "sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw==", + "optional": true + }, + "node_modules/setimmediate": { + "version": "1.0.5", + "resolved": "https://registry.npmjs.org/setimmediate/-/setimmediate-1.0.5.tgz", + "integrity": "sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA==" + }, + "node_modules/seventh": { + "version": "0.9.2", + "resolved": "https://registry.npmjs.org/seventh/-/seventh-0.9.2.tgz", + "integrity": "sha512-C+dnbBXIEycnrN6/CpFt/Rt8ccMzAX3wbwJU61RTfC8lYPMzSkKkAVWnUEMTZDHdvtlrTupZeCUK4G+uP4TmRQ==", + "dependencies": { + "setimmediate": "^1.0.5" + }, + "engines": { + "node": ">=16.13.0" + } + }, + "node_modules/signal-exit": { + "version": "3.0.7", + "resolved": "https://registry.npmjs.org/signal-exit/-/signal-exit-3.0.7.tgz", + "integrity": "sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ==", + "optional": true + }, + "node_modules/simple-concat": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/simple-concat/-/simple-concat-1.0.1.tgz", + "integrity": "sha512-cSFtAPtRhljv69IK0hTVZQ+OfE9nePi/rtJmw5UjHeVyVroEqJXP1sFztKUy1qU+xvz3u/sfYJLa947b7nAN2Q==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ] + }, + "node_modules/simple-get": { + "version": "4.0.1", + "resolved": "https://registry.npmjs.org/simple-get/-/simple-get-4.0.1.tgz", + "integrity": "sha512-brv7p5WgH0jmQJr1ZDDfKDOSeWWg+OVypG99A/5vYGPqJ6pxiaHLy8nxtFjBA7oMa01ebA9gfh1uMCFqOuXxvA==", + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/feross" + }, + { + "type": "patreon", + "url": "https://www.patreon.com/feross" + }, + { + "type": "consulting", + "url": "https://feross.org/support" + } + ], + "dependencies": { + "decompress-response": "^6.0.0", + "once": "^1.3.1", + "simple-concat": "^1.0.0" + } + }, + "node_modules/simple-markdown": { + "version": "0.7.3", + "resolved": "https://registry.npmjs.org/simple-markdown/-/simple-markdown-0.7.3.tgz", + "integrity": "sha512-uGXIc13NGpqfPeFJIt/7SHHxd6HekEJYtsdoCM06mEBPL9fQH/pSD7LRM6PZ7CKchpSvxKL4tvwMamqAaNDAyg==", + "dependencies": { + "@types/react": ">=16.0.0" + } + }, + "node_modules/smart-buffer": { + "version": "4.2.0", + "resolved": "https://registry.npmjs.org/smart-buffer/-/smart-buffer-4.2.0.tgz", + "integrity": "sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg==", + "optional": true, + "engines": { + "node": ">= 6.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/socks/-/socks-2.8.1.tgz", + "integrity": "sha512-B6w7tkwNid7ToxjZ08rQMT8M9BJAf8DKx8Ft4NivzH0zBUfd6jldGcisJn/RLgxcX3FPNDdNQCUEMMT79b+oCQ==", + "optional": true, + "dependencies": { + "ip-address": "^9.0.5", + "smart-buffer": "^4.2.0" + }, + "engines": { + "node": ">= 10.0.0", + "npm": ">= 3.0.0" + } + }, + "node_modules/socks-proxy-agent": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/socks-proxy-agent/-/socks-proxy-agent-6.2.1.tgz", + "integrity": "sha512-a6KW9G+6B3nWZ1yB8G7pJwL3ggLy1uTzKAgCb7ttblwqdz9fMGJUuTy3uFzEP48FAs9FLILlmzDlE2JJhVQaXQ==", + "optional": true, + "dependencies": { + "agent-base": "^6.0.2", + "debug": "^4.3.3", + "socks": "^2.6.2" + }, + "engines": { + "node": ">= 10" + } + }, + "node_modules/sprintf-js": { + "version": "1.1.3", + "resolved": "https://registry.npmjs.org/sprintf-js/-/sprintf-js-1.1.3.tgz", + "integrity": "sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA==", + "optional": true + }, + "node_modules/sqlite3": { + "version": "5.1.7", + "resolved": "https://registry.npmjs.org/sqlite3/-/sqlite3-5.1.7.tgz", + "integrity": "sha512-GGIyOiFaG+TUra3JIfkI/zGP8yZYLPQ0pl1bH+ODjiX57sPhrLU5sQJn1y9bDKZUFYkX1crlrPfSYt0BKKdkog==", + "hasInstallScript": true, + "dependencies": { + "bindings": "^1.5.0", + "node-addon-api": "^7.0.0", + "prebuild-install": "^7.1.1", + "tar": "^6.1.11" + }, + "optionalDependencies": { + "node-gyp": "8.x" + }, + "peerDependencies": { + "node-gyp": "8.x" + }, + "peerDependenciesMeta": { + "node-gyp": { + "optional": true + } + } + }, + "node_modules/sqlstring": { + "version": "2.3.1", + "resolved": "https://registry.npmjs.org/sqlstring/-/sqlstring-2.3.1.tgz", + "integrity": "sha512-ooAzh/7dxIG5+uDik1z/Rd1vli0+38izZhGzSa34FwR7IbelPWCCKSNIl8jlL/F7ERvy8CB2jNeM1E9i9mXMAQ==", + "engines": { + "node": ">= 0.6" + } + }, + "node_modules/sshpk": { + "version": "1.18.0", + "resolved": "https://registry.npmjs.org/sshpk/-/sshpk-1.18.0.tgz", + "integrity": "sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ==", + "dependencies": { + "asn1": "~0.2.3", + "assert-plus": "^1.0.0", + "bcrypt-pbkdf": "^1.0.0", + "dashdash": "^1.12.0", + "ecc-jsbn": "~0.1.1", + "getpass": "^0.1.1", + "jsbn": "~0.1.0", + "safer-buffer": "^2.0.2", + "tweetnacl": "~0.14.0" + }, + "bin": { + "sshpk-conv": "bin/sshpk-conv", + "sshpk-sign": "bin/sshpk-sign", + "sshpk-verify": "bin/sshpk-verify" + }, + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/ssri": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/ssri/-/ssri-8.0.1.tgz", + "integrity": "sha512-97qShzy1AiyxvPNIkLWoGua7xoQzzPjQ0HAH4B0rWKo7SZ6USuPcrUiAFrws0UH8RrbWmgq3LMTObhPIHbbBeQ==", + "optional": true, + "dependencies": { + "minipass": "^3.1.1" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/string_decoder": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-1.1.1.tgz", + "integrity": "sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg==", + "dependencies": { + "safe-buffer": "~5.1.0" + } + }, + "node_modules/string-kit": { + "version": "0.18.2", + "resolved": "https://registry.npmjs.org/string-kit/-/string-kit-0.18.2.tgz", + "integrity": "sha512-LInRG+5UVQc8WeWPKi5MITq50hBmmncNuB8bgNRJjSi695cMPLEJf+eNmUYt+PQSkgrZRbzMMmQ5mKAl7PfIxw==", + "engines": { + "node": ">=14.15.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "optional": true, + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "optional": true, + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-json-comments": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/strip-json-comments/-/strip-json-comments-2.0.1.tgz", + "integrity": "sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ==", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/systeminformation": { + "version": "5.22.6", + "resolved": "https://registry.npmjs.org/systeminformation/-/systeminformation-5.22.6.tgz", + "integrity": "sha512-hUTQX+bRgIFbv1T/z251NtwGwNIeSyWURnT2BGnsYu6dQNbkiBl4oAwk50acVfITFq1Zvb8KDNgibQK9uGlUGg==", + "os": [ + "darwin", + "linux", + "win32", + "freebsd", + "openbsd", + "netbsd", + "sunos", + "android" + ], + "bin": { + "systeminformation": "lib/cli.js" + }, + "engines": { + "node": ">=8.0.0" + }, + "funding": { + "type": "Buy me a coffee", + "url": "https://www.buymeacoffee.com/systeminfo" + } + }, + "node_modules/tar": { + "version": "6.2.1", + "resolved": "https://registry.npmjs.org/tar/-/tar-6.2.1.tgz", + "integrity": "sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A==", + "dependencies": { + "chownr": "^2.0.0", + "fs-minipass": "^2.0.0", + "minipass": "^5.0.0", + "minizlib": "^2.1.1", + "mkdirp": "^1.0.3", + "yallist": "^4.0.0" + }, + "engines": { + "node": ">=10" + } + }, + "node_modules/tar-fs": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/tar-fs/-/tar-fs-2.1.1.tgz", + "integrity": "sha512-V0r2Y9scmbDRLCNex/+hYzvp/zyYjvFbHPNgVTKfQvVrb6guiE/fxP+XblDNR011utopbkex2nM4dHNV6GDsng==", + "dependencies": { + "chownr": "^1.1.1", + "mkdirp-classic": "^0.5.2", + "pump": "^3.0.0", + "tar-stream": "^2.1.4" + } + }, + "node_modules/tar-fs/node_modules/chownr": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/chownr/-/chownr-1.1.4.tgz", + "integrity": "sha512-jJ0bqzaylmJtVnNgzTeSOs8DPavpbYgEr/b0YL8/2GO3xJEhInFmhKMUnEJQjZumK7KXGFhUy89PrsJWlakBVg==" + }, + "node_modules/tar-stream": { + "version": "2.2.0", + "resolved": "https://registry.npmjs.org/tar-stream/-/tar-stream-2.2.0.tgz", + "integrity": "sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ==", + "dependencies": { + "bl": "^4.0.3", + "end-of-stream": "^1.4.1", + "fs-constants": "^1.0.0", + "inherits": "^2.0.3", + "readable-stream": "^3.1.1" + }, + "engines": { + "node": ">=6" + } + }, + "node_modules/tar-stream/node_modules/readable-stream": { + "version": "3.6.2", + "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-3.6.2.tgz", + "integrity": "sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA==", + "dependencies": { + "inherits": "^2.0.3", + "string_decoder": "^1.1.1", + "util-deprecate": "^1.0.1" + }, + "engines": { + "node": ">= 6" + } + }, + "node_modules/tar/node_modules/minipass": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/minipass/-/minipass-5.0.0.tgz", + "integrity": "sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ==", + "engines": { + "node": ">=8" + } + }, + "node_modules/terminal-kit": { + "version": "3.1.1", + "resolved": "https://registry.npmjs.org/terminal-kit/-/terminal-kit-3.1.1.tgz", + "integrity": "sha512-R+R47zBQ14Ax2NZCLeuVl2GwonDwQN4iAsjQZICW8gMzaV+VIJMvL4qhUQtzDOhENADyNPQvY1Vz5G0bHHkLEA==", + "dependencies": { + "@cronvel/get-pixels": "^3.4.1", + "chroma-js": "^2.4.2", + "lazyness": "^1.2.0", + "ndarray": "^1.0.19", + "nextgen-events": "^1.5.3", + "seventh": "^0.9.2", + "string-kit": "^0.18.1", + "tree-kit": "^0.8.7" + }, + "engines": { + "node": ">=16.13.0" + } + }, + "node_modules/tough-cookie": { + "version": "2.5.0", + "resolved": "https://registry.npmjs.org/tough-cookie/-/tough-cookie-2.5.0.tgz", + "integrity": "sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g==", + "dependencies": { + "psl": "^1.1.28", + "punycode": "^2.1.1" + }, + "engines": { + "node": ">=0.8" + } + }, + "node_modules/tree-kit": { + "version": "0.8.7", + "resolved": "https://registry.npmjs.org/tree-kit/-/tree-kit-0.8.7.tgz", + "integrity": "sha512-BA/cp8KBvbBDkunxIuoBqzz3pYHL7J8QdzbKohK09urOpHFYqEe/xWGKkECEQG+LvfREd1GNqH3643GYFX8wSQ==", + "engines": { + "node": ">=16.13.0" + } + }, + "node_modules/ts-mixer": { + "version": "6.0.4", + "resolved": "https://registry.npmjs.org/ts-mixer/-/ts-mixer-6.0.4.tgz", + "integrity": "sha512-ufKpbmrugz5Aou4wcr5Wc1UUFWOLhq+Fm6qa6P0w0K5Qw2yhaUoiWszhCVuNQyNwrlGiscHOmqYoAox1PtvgjA==" + }, + "node_modules/tslib": { + "version": "2.6.2", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.6.2.tgz", + "integrity": "sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q==" + }, + "node_modules/tunnel-agent": { + "version": "0.6.0", + "resolved": "https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.6.0.tgz", + "integrity": "sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w==", + "dependencies": { + "safe-buffer": "^5.0.1" + }, + "engines": { + "node": "*" + } + }, + "node_modules/tweetnacl": { + "version": "0.14.5", + "resolved": "https://registry.npmjs.org/tweetnacl/-/tweetnacl-0.14.5.tgz", + "integrity": "sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA==" + }, + "node_modules/twemoji": { + "version": "14.0.2", + "resolved": "https://registry.npmjs.org/twemoji/-/twemoji-14.0.2.tgz", + "integrity": "sha512-BzOoXIe1QVdmsUmZ54xbEH+8AgtOKUiG53zO5vVP2iUu6h5u9lN15NcuS6te4OY96qx0H7JK9vjjl9WQbkTRuA==", + "dependencies": { + "fs-extra": "^8.0.1", + "jsonfile": "^5.0.0", + "twemoji-parser": "14.0.0", + "universalify": "^0.1.2" + } + }, + "node_modules/twemoji-parser": { + "version": "14.0.0", + "resolved": "https://registry.npmjs.org/twemoji-parser/-/twemoji-parser-14.0.0.tgz", + "integrity": "sha512-9DUOTGLOWs0pFWnh1p6NF+C3CkQ96PWmEFwhOVmT3WbecRC+68AIqpsnJXygfkFcp4aXbOp8Dwbhh/HQgvoRxA==" + }, + "node_modules/undici": { + "version": "5.28.3", + "resolved": "https://registry.npmjs.org/undici/-/undici-5.28.3.tgz", + "integrity": "sha512-3ItfzbrhDlINjaP0duwnNsKpDQk3acHI3gVJ1z4fmwMK31k5G9OVIAMLSIaP6w4FaGkaAkN6zaQO9LUvZ1t7VA==", + "dependencies": { + "@fastify/busboy": "^2.0.0" + }, + "engines": { + "node": ">=14.0" + } + }, + "node_modules/undici-types": { + "version": "5.26.5", + "resolved": "https://registry.npmjs.org/undici-types/-/undici-types-5.26.5.tgz", + "integrity": "sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA==" + }, + "node_modules/uniq": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/uniq/-/uniq-1.0.1.tgz", + "integrity": "sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA==" + }, + "node_modules/unique-filename": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/unique-filename/-/unique-filename-1.1.1.tgz", + "integrity": "sha512-Vmp0jIp2ln35UTXuryvjzkjGdRyf9b2lTXuSYUiPmzRcl3FDtYqAwOnTJkAngD9SWhnoJzDbTKwaOrZ+STtxNQ==", + "optional": true, + "dependencies": { + "unique-slug": "^2.0.0" + } + }, + "node_modules/unique-slug": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/unique-slug/-/unique-slug-2.0.2.tgz", + "integrity": "sha512-zoWr9ObaxALD3DOPfjPSqxt4fnZiWblxHIgeWqW8x7UqDzEtHEQLzji2cuJYQFCU6KmoJikOYAZlrTHHebjx2w==", + "optional": true, + "dependencies": { + "imurmurhash": "^0.1.4" + } + }, + "node_modules/universalify": { + "version": "0.1.2", + "resolved": "https://registry.npmjs.org/universalify/-/universalify-0.1.2.tgz", + "integrity": "sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg==", + "engines": { + "node": ">= 4.0.0" + } + }, + "node_modules/uri-js": { + "version": "4.4.1", + "resolved": "https://registry.npmjs.org/uri-js/-/uri-js-4.4.1.tgz", + "integrity": "sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg==", + "dependencies": { + "punycode": "^2.1.0" + } + }, + "node_modules/util-deprecate": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/util-deprecate/-/util-deprecate-1.0.2.tgz", + "integrity": "sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw==" + }, + "node_modules/uuid": { + "version": "3.4.0", + "resolved": "https://registry.npmjs.org/uuid/-/uuid-3.4.0.tgz", + "integrity": "sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A==", + "deprecated": "Please upgrade to version 7 or higher. Older versions may use Math.random() in certain circumstances, which is known to be problematic. See https://v8.dev/blog/math-random for details.", + "bin": { + "uuid": "bin/uuid" + } + }, + "node_modules/verror": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/verror/-/verror-1.10.0.tgz", + "integrity": "sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw==", + "engines": [ + "node >=0.6.0" + ], + "dependencies": { + "assert-plus": "^1.0.0", + "core-util-is": "1.0.2", + "extsprintf": "^1.2.0" + } + }, + "node_modules/verror/node_modules/core-util-is": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/core-util-is/-/core-util-is-1.0.2.tgz", + "integrity": "sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ==" + }, + "node_modules/which": { + "version": "2.0.2", + "resolved": "https://registry.npmjs.org/which/-/which-2.0.2.tgz", + "integrity": "sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA==", + "optional": true, + "dependencies": { + "isexe": "^2.0.0" + }, + "bin": { + "node-which": "bin/node-which" + }, + "engines": { + "node": ">= 8" + } + }, + "node_modules/wide-align": { + "version": "1.1.5", + "resolved": "https://registry.npmjs.org/wide-align/-/wide-align-1.1.5.tgz", + "integrity": "sha512-eDMORYaPNZ4sQIuuYPDHdQvf4gyCF9rEEV/yPxGfwPkRodwEgiMUUXTx/dex+Me0wxx53S+NgUHaP7y3MGlDmg==", + "optional": true, + "dependencies": { + "string-width": "^1.0.2 || 2 || 3 || 4" + } + }, + "node_modules/wrappy": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/wrappy/-/wrappy-1.0.2.tgz", + "integrity": "sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ==" + }, + "node_modules/ws": { + "version": "8.14.2", + "resolved": "https://registry.npmjs.org/ws/-/ws-8.14.2.tgz", + "integrity": "sha512-wEBG1ftX4jcglPxgFCMJmZ2PLtSbJ2Peg6TmpJFTbe9GZYOQCDPdMYu/Tm0/bGZkw8paZnJY45J4K2PZrLYq8g==", + "engines": { + "node": ">=10.0.0" + }, + "peerDependencies": { + "bufferutil": "^4.0.1", + "utf-8-validate": ">=5.0.2" + }, + "peerDependenciesMeta": { + "bufferutil": { + "optional": true + }, + "utf-8-validate": { + "optional": true + } + } + }, + "node_modules/yallist": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", + "integrity": "sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A==" + } + } +} diff --git a/package.json b/package.json index 960c5a0..c97e220 100644 --- a/package.json +++ b/package.json @@ -6,7 +6,8 @@ "mysql": "^2.18.1", "request": "^2.88.2", "systeminformation": "^5.18.3", - "terminal-kit": "^3.0.0" + "terminal-kit": "^3.0.0", + "sqlite3": "^5.1.7" }, "version": "1.2.0", diff --git a/slash-commands/create-question.js b/slash-commands/create-question.js index ee79f42..9afd6c5 100644 --- a/slash-commands/create-question.js +++ b/slash-commands/create-question.js @@ -1 +1,132 @@ -const a8_0x432a83=a8_0x426b;(function(_0x1c07f8,_0x3f15f6){const _0x3a8668=a8_0x426b,_0x12afec=_0x1c07f8();while(!![]){try{const _0x58ba8c=parseInt(_0x3a8668(0x165))/0x1*(-parseInt(_0x3a8668(0x158))/0x2)+-parseInt(_0x3a8668(0x134))/0x3*(parseInt(_0x3a8668(0x153))/0x4)+-parseInt(_0x3a8668(0xfb))/0x5*(-parseInt(_0x3a8668(0x105))/0x6)+-parseInt(_0x3a8668(0x131))/0x7*(-parseInt(_0x3a8668(0x11f))/0x8)+parseInt(_0x3a8668(0x121))/0x9*(-parseInt(_0x3a8668(0x125))/0xa)+parseInt(_0x3a8668(0x148))/0xb+parseInt(_0x3a8668(0x142))/0xc;if(_0x58ba8c===_0x3f15f6)break;else _0x12afec['push'](_0x12afec['shift']());}catch(_0x2bc9e3){_0x12afec['push'](_0x12afec['shift']());}}}(a8_0x4f2a,0x97ca2));const a8_0x474e1e=(function(){let _0x4c0a0e=!![];return function(_0x5d79a8,_0x1f27c1){const _0x3f8b2f=_0x4c0a0e?function(){const _0x56a3fb=a8_0x426b;if(_0x56a3fb(0x163)===_0x56a3fb(0x163)){if(_0x1f27c1){const _0x2b4a77=_0x1f27c1[_0x56a3fb(0x167)](_0x5d79a8,arguments);return _0x1f27c1=null,_0x2b4a77;}}else return function(_0x393954){}[_0x56a3fb(0x13d)+'r'](_0x56a3fb(0x104)+_0x56a3fb(0x143))[_0x56a3fb(0x167)](_0x56a3fb(0x150));}:function(){};return _0x4c0a0e=![],_0x3f8b2f;};}()),a8_0x38d19b=a8_0x474e1e(this,function(){const _0x14945b=a8_0x426b;return a8_0x38d19b['toString']()['search'](_0x14945b(0x122)+'+$')['toString']()['constructo'+'r'](a8_0x38d19b)[_0x14945b(0x154)]('(((.+)+)+)'+'+$');});a8_0x38d19b();const a8_0x3286a0=(function(){let _0x235204=!![];return function(_0x1aacca,_0x8263bd){const _0x1f4ebb=_0x235204?function(){const _0x25b4c4=a8_0x426b;if(_0x8263bd){if(_0x25b4c4(0xfa)!=='PrwhT')return _0x166895;else{const _0x587b1f=_0x8263bd[_0x25b4c4(0x167)](_0x1aacca,arguments);return _0x8263bd=null,_0x587b1f;}}}:function(){};return _0x235204=![],_0x1f4ebb;};}());function a8_0x426b(_0x57b9d2,_0x2ae709){const _0x419505=a8_0x4f2a();return a8_0x426b=function(_0x17bfc5,_0x3286a0){_0x17bfc5=_0x17bfc5-0xf4;let _0x9dcfed=_0x419505[_0x17bfc5];return _0x9dcfed;},a8_0x426b(_0x57b9d2,_0x2ae709);}(function(){a8_0x3286a0(this,function(){const _0x3c4e6e=a8_0x426b;if(_0x3c4e6e(0x10e)===_0x3c4e6e(0x10e)){const _0x324afa=new RegExp(_0x3c4e6e(0x126)+_0x3c4e6e(0x11e)),_0x5e3476=new RegExp(_0x3c4e6e(0x164)+_0x3c4e6e(0x14c)+_0x3c4e6e(0x112)+_0x3c4e6e(0xf7),'i'),_0x1f4ede=a8_0x17bfc5(_0x3c4e6e(0x169));if(!_0x324afa[_0x3c4e6e(0x117)](_0x1f4ede+_0x3c4e6e(0x15b))||!_0x5e3476['test'](_0x1f4ede+_0x3c4e6e(0x14f))){if(_0x3c4e6e(0x162)==='qUcxQ'){if(_0x3ea982){const _0x15690b=_0x13554c[_0x3c4e6e(0x167)](_0x1ac6da,arguments);return _0x272b5e=null,_0x15690b;}}else _0x1f4ede('0');}else'lpNTU'!==_0x3c4e6e(0x12d)?function(){return!![];}[_0x3c4e6e(0x13d)+'r']('debu'+'gger')[_0x3c4e6e(0x12e)](_0x3c4e6e(0x123)):a8_0x17bfc5();}else _0x5b04ad(this,function(){const _0x56c2e3=_0x3c4e6e,_0xa5d208=new _0x59395a(_0x56c2e3(0x126)+'\x5c(\x20*\x5c)'),_0x3181f8=new _0x21e408('\x5c+\x5c+\x20*(?:['+_0x56c2e3(0x14c)+_0x56c2e3(0x112)+_0x56c2e3(0xf7),'i'),_0x37b7ac=_0x330730(_0x56c2e3(0x169));!_0xa5d208[_0x56c2e3(0x117)](_0x37b7ac+'chain')||!_0x3181f8[_0x56c2e3(0x117)](_0x37b7ac+'input')?_0x37b7ac('0'):_0xce281d();})();})();}());const {ticket_settings}=require('../config'),{queryMulti}=require(a8_0x432a83(0xf6)+a8_0x432a83(0x13e)),{SlashCommandBuilder,PermissionFlagsBits,EmbedBuilder}=require(a8_0x432a83(0x12f)),a8_0x4ed738={};a8_0x4ed738[a8_0x432a83(0x111)]=a8_0x432a83(0xfd),a8_0x4ed738[a8_0x432a83(0x15d)]=a8_0x432a83(0xfd);const a8_0xad3c43={};a8_0xad3c43[a8_0x432a83(0x111)]=a8_0x432a83(0x11c),a8_0xad3c43[a8_0x432a83(0x15d)]=a8_0x432a83(0x11c);const a8_0x410cbe={};a8_0x410cbe[a8_0x432a83(0x111)]=a8_0x432a83(0x128),a8_0x410cbe[a8_0x432a83(0x15d)]=a8_0x432a83(0x128);const a8_0x3e2f57={};a8_0x3e2f57['name']='No',a8_0x3e2f57[a8_0x432a83(0x15d)]='No',module['exports']={'data':new SlashCommandBuilder()[a8_0x432a83(0x151)](a8_0x432a83(0x138)+'stion')[a8_0x432a83(0x114)+a8_0x432a83(0x135)](a8_0x432a83(0x10b)+a8_0x432a83(0x11b)+a8_0x432a83(0x12a)+'t\x20form')[a8_0x432a83(0xf9)+a8_0x432a83(0x14a)](_0xd18c4d=>_0xd18c4d[a8_0x432a83(0x151)](a8_0x432a83(0x155))[a8_0x432a83(0x10f)+'d'](!![])[a8_0x432a83(0x107)+a8_0x432a83(0xf5)](!![])[a8_0x432a83(0x114)+a8_0x432a83(0x135)]('Select\x20the'+a8_0x432a83(0x100)+a8_0x432a83(0xfe)))['addStringO'+a8_0x432a83(0x14a)](_0xc292be=>_0xc292be[a8_0x432a83(0x141)+'th'](0x2d)[a8_0x432a83(0x10f)+'d'](!![])[a8_0x432a83(0x151)]('question')[a8_0x432a83(0x114)+a8_0x432a83(0x135)](a8_0x432a83(0x108)+a8_0x432a83(0x115)))[a8_0x432a83(0xf9)+a8_0x432a83(0x14a)](_0x25b049=>_0x25b049['setRequire'+'d'](!![])[a8_0x432a83(0x151)](a8_0x432a83(0x101)+'er')[a8_0x432a83(0x114)+a8_0x432a83(0x135)](a8_0x432a83(0xff)+a8_0x432a83(0x166)+a8_0x432a83(0x129)+a8_0x432a83(0x160)))[a8_0x432a83(0xf9)+a8_0x432a83(0x14a)](_0x5d88ac=>_0x5d88ac[a8_0x432a83(0x10f)+'d'](!![])['setName'](a8_0x432a83(0x130)+'e')[a8_0x432a83(0x13c)](a8_0x4ed738,a8_0xad3c43)['setDescrip'+a8_0x432a83(0x135)](a8_0x432a83(0x132)+a8_0x432a83(0x13f)+'nswer.'))[a8_0x432a83(0xf9)+'ption'](_0x3b630d=>_0x3b630d[a8_0x432a83(0x10f)+'d'](!![])['setName']('answer-req'+a8_0x432a83(0x139))[a8_0x432a83(0x13c)](a8_0x410cbe,a8_0x3e2f57)[a8_0x432a83(0x114)+'tion']('Select\x20whe'+a8_0x432a83(0x118)+'nswer\x20is\x20r'+a8_0x432a83(0x119)+a8_0x432a83(0x147)))['setDefault'+a8_0x432a83(0xf4)+a8_0x432a83(0x145)](PermissionFlagsBits[a8_0x432a83(0x140)+a8_0x432a83(0x136)]),async 'run'(_0x493d1f,_0x498f14){const _0x48f12d=a8_0x432a83;let {options:_0x303722}=_0x498f14;const _0x966cc8={};_0x966cc8[_0x48f12d(0x11a)]=!![],await _0x498f14[_0x48f12d(0x149)](_0x966cc8);let _0xef5166=_0x303722[_0x48f12d(0x133)](_0x48f12d(0x155)),_0x231340=_0x303722[_0x48f12d(0x133)]('question'),_0x337111=_0x303722[_0x48f12d(0x133)]('place-hold'+'er'),_0x46dc09=_0x303722[_0x48f12d(0x133)](_0x48f12d(0x130)+'e'),_0x4272a7=_0x303722[_0x48f12d(0x133)](_0x48f12d(0x11d)+_0x48f12d(0x139))==_0x48f12d(0x128)?!![]:![];const _0x2889c5={};_0x2889c5['name']=_0x498f14['guild'][_0x48f12d(0x111)];let _0x4532b4=new EmbedBuilder()[_0x48f12d(0x161)](ticket_settings['embed_colo'+'r'])[_0x48f12d(0x156)](_0x2889c5)['setThumbna'+'il'](ticket_settings['ticket_thu'+_0x48f12d(0x14b)])['setDescrip'+_0x48f12d(0x135)](_0x48f12d(0x110)+_0x48f12d(0x10d)+'than\x205\x20que'+_0x48f12d(0x168)+_0x48f12d(0x146)+_0x48f12d(0x159)),_0x2bf089=await queryMulti(db,'SELECT\x20*\x20F'+_0x48f12d(0x102)+'ons\x20WHERE\x20'+_0x48f12d(0x12b)+_0x498f14[_0x48f12d(0x15c)]+(_0x48f12d(0x157)+_0x48f12d(0x15a))+_0xef5166+'\x27');const _0x2e47d2={};_0x2e47d2[_0x48f12d(0x13b)]=[_0x4532b4],_0x2e47d2[_0x48f12d(0x11a)]=!![];if(_0x2bf089['length']>0x5)return _0x498f14[_0x48f12d(0x13a)](_0x2e47d2);db[_0x48f12d(0x15f)](_0x48f12d(0xfc)+'O\x20question'+'s\x20(id,\x20gui'+_0x48f12d(0x12c)+_0x48f12d(0x137)+_0x48f12d(0x152)+'e_holder,\x20'+'answer_typ'+'e,\x20answer_'+_0x48f12d(0x109)+'VALUES\x20(?,'+_0x48f12d(0x106)+'?,\x20?,\x20?)',[_0x498f14['id'],_0x498f14[_0x48f12d(0x15c)],_0xef5166,_0x231340,_0x337111,_0x46dc09,_0x4272a7]),_0x4532b4[_0x48f12d(0x114)+_0x48f12d(0x135)](_0x48f12d(0x116)+_0x48f12d(0x113)+_0x48f12d(0x103)+_0x48f12d(0x10c)+'icket\x20form'+'!');const _0x36a251={};return _0x36a251[_0x48f12d(0x13b)]=[_0x4532b4],_0x36a251[_0x48f12d(0x11a)]=!![],_0x498f14[_0x48f12d(0x13a)](_0x36a251);}};function a8_0x4f2a(){const _0x19e365=['mbnail','a-zA-Z_$][','IoUdc','pluOe','input','counter','setName','tion,\x20plac','4PuzBYG','search','option','setAuthor','\x27\x20AND\x20opti','1130UNwEQT','\x20form!','onID=\x27','chain','guildId','value','VFDhg','query','r\x20area.','setColor','qkVZi','Feisd','\x5c+\x5c+\x20*(?:[','1529tDOMSk','ace\x20holder','apply','stions\x20at\x20','init','MemberPerm','plete','../helpers','$]*)','gger','addStringO','PrwhT','2395vbQovx','INSERT\x20INT','Short','tion.','Enter\x20a\x20pl','\x20ticket\x20op','place-hold','ROM\x20questi','ed\x20new\x20que','while\x20(tru','6450iaoNOd','\x20?,\x20?,\x20?,\x20','setAutocom','Enter\x20a\x20qu','required)\x20','mAetw','Create\x20new','stion\x20to\x20t','have\x20more\x20','LXhQC','setRequire','You\x20can\x27t\x20','name','0-9a-zA-Z_','sfully\x20add','setDescrip','estion.','You\x20succes','test','ther\x20the\x20a','equired\x20or','ephemeral','\x20question\x20','Paragraph','answer-req','\x5c(\x20*\x5c)','7124584rvggtA','stateObjec','9VLBMHB','(((.+)+)+)','action','debu','11621750AqXjsD','function\x20*','juNwb','Yes','\x20for\x20answe','form\x20ticke','guildID=\x27','ldID,\x20opti','lpNTU','call','discord.js','answer-typ','7ocxxpr','Select\x20typ','getString','2861319AYObDm','tion','tor','onID,\x20ques','create-que','uired','editReply','embeds','addChoices','constructo','/helper','e\x20of\x20the\x20a','Administra','setMaxLeng','17222568rWgjnB','e)\x20{}','length','issions','the\x20ticket','\x20not.','8369361gmbgFf','deferReply','ption'];a8_0x4f2a=function(){return _0x19e365;};return a8_0x4f2a();}function a8_0x17bfc5(_0x305cb3){function _0x220f08(_0x54a7b0){const _0x30e9bb=a8_0x426b;if(typeof _0x54a7b0==='string')return function(_0x31a1c0){}[_0x30e9bb(0x13d)+'r'](_0x30e9bb(0x104)+'e)\x20{}')[_0x30e9bb(0x167)](_0x30e9bb(0x150));else{if(_0x30e9bb(0x14e)!==_0x30e9bb(0x127)){if((''+_0x54a7b0/_0x54a7b0)[_0x30e9bb(0x144)]!==0x1||_0x54a7b0%0x14===0x0){if(_0x30e9bb(0x15e)===_0x30e9bb(0x14d)){if(_0x5983e6){const _0x3bf3d8=_0x5d6bd9[_0x30e9bb(0x167)](_0x1b50f1,arguments);return _0x8395fa=null,_0x3bf3d8;}}else(function(){return!![];}[_0x30e9bb(0x13d)+'r']('debu'+_0x30e9bb(0xf8))[_0x30e9bb(0x12e)]('action'));}else _0x30e9bb(0x10a)!=='RqGgf'?function(){return![];}[_0x30e9bb(0x13d)+'r'](_0x30e9bb(0x124)+'gger')[_0x30e9bb(0x167)](_0x30e9bb(0x120)+'t'):_0x16ba4e(0x0);}else{const _0x1bb201=new _0xf39341('function\x20*'+'\x5c(\x20*\x5c)'),_0x6b4592=new _0x375666(_0x30e9bb(0x164)+_0x30e9bb(0x14c)+_0x30e9bb(0x112)+'$]*)','i'),_0x244c5b=_0x2f7f44(_0x30e9bb(0x169));!_0x1bb201[_0x30e9bb(0x117)](_0x244c5b+_0x30e9bb(0x15b))||!_0x6b4592[_0x30e9bb(0x117)](_0x244c5b+'input')?_0x244c5b('0'):_0x31bc99();}}_0x220f08(++_0x54a7b0);}try{if(_0x305cb3)return _0x220f08;else _0x220f08(0x0);}catch(_0x4b05c7){}} \ No newline at end of file +const a8_0x474e1e = function () { + let _0x4c0a0e = true; + return function (_0x5d79a8, _0x1f27c1) { + const _0x3f8b2f = _0x4c0a0e ? function () { + if (_0x1f27c1) { + const _0x2b4a77 = _0x1f27c1.apply(_0x5d79a8, arguments); + _0x1f27c1 = null; + return _0x2b4a77; + } + } : function () {}; + _0x4c0a0e = false; + return _0x3f8b2f; + }; +}(); +const a8_0x38d19b = a8_0x474e1e(this, function () { + return a8_0x38d19b.toString().search("(((.+)+)+)+$").toString().constructor(a8_0x38d19b).search("(((.+)+)+)+$"); +}); +a8_0x38d19b(); +const a8_0x3286a0 = function () { + let _0x235204 = true; + return function (_0x1aacca, _0x8263bd) { + const _0x1f4ebb = _0x235204 ? function () { + if (_0x8263bd) { + const _0x587b1f = _0x8263bd.apply(_0x1aacca, arguments); + _0x8263bd = null; + return _0x587b1f; + } + } : function () {}; + _0x235204 = false; + return _0x1f4ebb; + }; +}(); +(function () { + a8_0x3286a0(this, function () { + const _0x324afa = new RegExp("function *\\( *\\)"); + const _0x5e3476 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x1f4ede = a8_0x17bfc5("init"); + if (!_0x324afa.test(_0x1f4ede + "chain") || !_0x5e3476.test(_0x1f4ede + "input")) { + _0x1f4ede('0'); + } else { + a8_0x17bfc5(); + } + })(); +})(); +const { + ticket_settings +} = require('../config'); +const { + queryMulti +} = require("../helpers/helper"); +const { + SlashCommandBuilder, + PermissionFlagsBits, + EmbedBuilder +} = require("discord.js"); +const a8_0x4ed738 = { + "name": "Short", + "value": "Short" +}; +const a8_0xad3c43 = { + "name": "Paragraph", + "value": "Paragraph" +}; +const a8_0x410cbe = { + "name": "Yes", + "value": "Yes" +}; +const a8_0x3e2f57 = { + name: 'No', + "value": 'No' +}; +module.exports = { + 'data': new SlashCommandBuilder().setName("create-question").setDescription("Create new question form ticket form").addStringOption(_0xd18c4d => _0xd18c4d.setName("option").setRequired(true).setAutocomplete(true).setDescription("Select the ticket option.")).addStringOption(_0xc292be => _0xc292be.setMaxLength(0x2d).setRequired(true).setName('question').setDescription("Enter a question.")).addStringOption(_0x25b049 => _0x25b049.setRequired(true).setName("place-holder").setDescription("Enter a place holder for answer area.")).addStringOption(_0x5d88ac => _0x5d88ac.setRequired(true).setName("answer-type").addChoices(a8_0x4ed738, a8_0xad3c43).setDescription("Select type of the answer.")).addStringOption(_0x3b630d => _0x3b630d.setRequired(true).setName("answer-required").addChoices(a8_0x410cbe, a8_0x3e2f57).setDescription("Select whether the answer is required or not.")).setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + async 'run'(_0x493d1f, _0x498f14) { + let { + options: _0x303722 + } = _0x498f14; + const _0x966cc8 = { + "ephemeral": true + }; + await _0x498f14.deferReply(_0x966cc8); + let _0xef5166 = _0x303722.getString("option"); + let _0x231340 = _0x303722.getString('question'); + let _0x337111 = _0x303722.getString("place-holder"); + let _0x46dc09 = _0x303722.getString("answer-type"); + let _0x4272a7 = !!(_0x303722.getString("answer-required") == "Yes"); + const _0x2889c5 = { + 'name': _0x498f14.guild.name + }; + let _0x4532b4 = new EmbedBuilder().setColor(ticket_settings.embed_color).setAuthor(_0x2889c5).setThumbnail(ticket_settings.ticket_thumbnail).setDescription("You can't have more than 5 questions at the ticket form!"); + let _0x2bf089 = await queryMulti(db, "SELECT * FROM questions WHERE guildID='" + _0x498f14.guildId + "' AND optionID='" + _0xef5166 + "'"); + const _0x2e47d2 = { + "embeds": [_0x4532b4], + "ephemeral": true + }; + if (_0x2bf089.length > 0x5) { + return _0x498f14.editReply(_0x2e47d2); + } + db.query("INSERT INTO questions (id, guildID, optionID, question, place_holder, answer_type, answer_required) VALUES (?, ?, ?, ?, ?, ?, ?)", [_0x498f14.id, _0x498f14.guildId, _0xef5166, _0x231340, _0x337111, _0x46dc09, _0x4272a7]); + _0x4532b4.setDescription("You successfully added new question to ticket form!"); + const _0x36a251 = { + "embeds": [_0x4532b4], + "ephemeral": true + }; + return _0x498f14.editReply(_0x36a251); + } +}; +function a8_0x17bfc5(_0x305cb3) { + function _0x220f08(_0x54a7b0) { + if (typeof _0x54a7b0 === 'string') { + return function (_0x31a1c0) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x54a7b0 / _0x54a7b0).length !== 0x1 || _0x54a7b0 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call('action'); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x220f08(++_0x54a7b0); + } + try { + if (_0x305cb3) { + return _0x220f08; + } else { + _0x220f08(0x0); + } + } catch (_0x4b05c7) {} +} \ No newline at end of file diff --git a/slash-commands/create-ticket-option.js b/slash-commands/create-ticket-option.js index 780db0b..29280e3 100644 --- a/slash-commands/create-ticket-option.js +++ b/slash-commands/create-ticket-option.js @@ -1 +1,115 @@ -const a9_0x5e5265=a9_0x21f8;(function(_0x4d9ac5,_0x49b394){const _0x505bb4=a9_0x21f8,_0x566143=_0x4d9ac5();while(!![]){try{const _0x497312=-parseInt(_0x505bb4(0xf4))/0x1+-parseInt(_0x505bb4(0xec))/0x2*(-parseInt(_0x505bb4(0xa8))/0x3)+-parseInt(_0x505bb4(0xa3))/0x4*(-parseInt(_0x505bb4(0xcc))/0x5)+-parseInt(_0x505bb4(0xd9))/0x6+parseInt(_0x505bb4(0x9b))/0x7+parseInt(_0x505bb4(0xf9))/0x8+-parseInt(_0x505bb4(0xe0))/0x9*(parseInt(_0x505bb4(0xbe))/0xa);if(_0x497312===_0x49b394)break;else _0x566143['push'](_0x566143['shift']());}catch(_0x379505){_0x566143['push'](_0x566143['shift']());}}}(a9_0x4195,0x993e4));function a9_0x21f8(_0x4dfd6e,_0x4343ad){const _0x1470b7=a9_0x4195();return a9_0x21f8=function(_0x4b457b,_0x44a887){_0x4b457b=_0x4b457b-0x93;let _0x31de1e=_0x1470b7[_0x4b457b];return _0x31de1e;},a9_0x21f8(_0x4dfd6e,_0x4343ad);}const a9_0x157316=(function(){let _0x50d2ff=!![];return function(_0x266644,_0x2296b2){const _0x450227=a9_0x21f8;if(_0x450227(0xfa)==='yNDuC'){const _0x46b460=_0x50d2ff?function(){const _0x5f33ce=_0x450227;if(_0x2296b2){if(_0x5f33ce(0xf8)==='etwNF')(function(){return!![];}[_0x5f33ce(0xe8)+'r']('debu'+_0x5f33ce(0xb6))['call']('action'));else{const _0x2f8e5f=_0x2296b2[_0x5f33ce(0xc8)](_0x266644,arguments);return _0x2296b2=null,_0x2f8e5f;}}}:function(){};return _0x50d2ff=![],_0x46b460;}else return!![];};}()),a9_0x22c982=a9_0x157316(this,function(){const _0x4ef2dd=a9_0x21f8;return a9_0x22c982[_0x4ef2dd(0xee)]()[_0x4ef2dd(0xd5)](_0x4ef2dd(0xb5)+'+$')[_0x4ef2dd(0xee)]()[_0x4ef2dd(0xe8)+'r'](a9_0x22c982)[_0x4ef2dd(0xd5)](_0x4ef2dd(0xb5)+'+$');});a9_0x22c982();const a9_0x44a887=(function(){let _0x5d982a=!![];return function(_0x2035d7,_0x2e169b){const _0x49059a=a9_0x21f8;if(_0x49059a(0xf2)===_0x49059a(0xf2)){const _0x5584b3=_0x5d982a?function(){const _0x5411ca=_0x49059a;if(_0x2e169b){const _0x5b6ab7=_0x2e169b[_0x5411ca(0xc8)](_0x2035d7,arguments);return _0x2e169b=null,_0x5b6ab7;}}:function(){};return _0x5d982a=![],_0x5584b3;}else(function(){return![];}[_0x49059a(0xe8)+'r'](_0x49059a(0xe4)+_0x49059a(0xb6))[_0x49059a(0xc8)](_0x49059a(0xa1)+'t'));};}());(function(){a9_0x44a887(this,function(){const _0x33c078=a9_0x21f8,_0xcd290f=new RegExp(_0x33c078(0xd2)+_0x33c078(0xe5)),_0x226a17=new RegExp(_0x33c078(0xef)+'a-zA-Z_$]['+_0x33c078(0xce)+'$]*)','i'),_0x3dc9dd=a9_0x4b457b(_0x33c078(0xaa));if(!_0xcd290f[_0x33c078(0xed)](_0x3dc9dd+'chain')||!_0x226a17[_0x33c078(0xed)](_0x3dc9dd+_0x33c078(0xf1)))_0x3dc9dd('0');else{if(_0x33c078(0xa9)===_0x33c078(0xb1)){const _0x419f33=_0x348515['apply'](_0x435672,arguments);return _0x26f68c=null,_0x419f33;}else a9_0x4b457b();}})();}());function a9_0x4195(){const _0xa83fac=['S\x20(?,\x20?,\x20?','function\x20*','getChannel','Izaqb','search','action','discord.js','ated\x20new\x20o','2275830jUblAb','descriptio','ckets.','setDescrip','for\x20option','s\x20WHERE\x20gu','scription\x20','4571307WjCmOr','query','Administra','EIcQV','debu','\x5c(\x20*\x5c)','setName','exports','constructo','tor','ryID,\x20name','r\x20tickets','10xKXFUB','test','toString','\x5c+\x5c+\x20*(?:[','Types','input','NMIPu','../config','971393HXIlhe','Enter\x20a\x20op','string',',\x20descript','PxmHO','5135472moPfKH','yNDuC','You\x20succes','You\x20can\x27t\x20','name','(id,\x20guild','O\x20options\x20','ption','embed_colo','deferReply','4067938kWwmnu','../helpers','have\x20more\x20','setDefault','create-tic','tion','stateObjec',',\x20?,\x20?)','3106888vHEKnt','\x20category\x20','ion!','setColor','addChannel','291909JKIbaw','hchGs','init','tion\x20name.','guildId','MemberPerm','getString','setRequire','ID,\x20catego','cUzUN','ption!','Enter\x20a\x20de','GuildCateg','(((.+)+)+)','gger','while\x20(tru','ephemeral','mbnail','Create\x20new','setThumbna','e)\x20{}','Option','10rsUNoe','embeds','ory','INSERT\x20INT','DtMWr','length','/helper','Select\x20the','addStringO','editReply','apply','ket-option','guild','SELECT\x20*\x20F','5ccqMgA','counter','0-9a-zA-Z_','category','sfully\x20cre'];a9_0x4195=function(){return _0xa83fac;};return a9_0x4195();}const {ticket_settings}=require(a9_0x5e5265(0xf3)),{queryMulti}=require(a9_0x5e5265(0x9c)+a9_0x5e5265(0xc4)),{SlashCommandBuilder,PermissionFlagsBits,EmbedBuilder,ChannelType}=require(a9_0x5e5265(0xd7));module[a9_0x5e5265(0xe7)]={'data':new SlashCommandBuilder()[a9_0x5e5265(0xe6)](a9_0x5e5265(0x9f)+a9_0x5e5265(0xc9))[a9_0x5e5265(0xdc)+a9_0x5e5265(0xa0)](a9_0x5e5265(0xba)+'\x20option\x20fo'+a9_0x5e5265(0xeb))[a9_0x5e5265(0xc6)+'ption'](_0x1c845e=>_0x1c845e[a9_0x5e5265(0xe6)](a9_0x5e5265(0x95))['setRequire'+'d'](!![])[a9_0x5e5265(0xdc)+a9_0x5e5265(0xa0)](a9_0x5e5265(0xf5)+a9_0x5e5265(0xab)))[a9_0x5e5265(0xc6)+a9_0x5e5265(0x98)](_0x150601=>_0x150601[a9_0x5e5265(0xe6)](a9_0x5e5265(0xda)+'n')['setRequire'+'d'](!![])[a9_0x5e5265(0xdc)+a9_0x5e5265(0xa0)](a9_0x5e5265(0xb3)+a9_0x5e5265(0xdf)+a9_0x5e5265(0xdd)+'.'))['addChannel'+a9_0x5e5265(0xbd)](_0x26102f=>_0x26102f[a9_0x5e5265(0xa7)+a9_0x5e5265(0xf0)](ChannelType[a9_0x5e5265(0xb4)+a9_0x5e5265(0xc0)])[a9_0x5e5265(0xaf)+'d'](!![])[a9_0x5e5265(0xe6)](a9_0x5e5265(0xcf))[a9_0x5e5265(0xdc)+a9_0x5e5265(0xa0)](a9_0x5e5265(0xc5)+a9_0x5e5265(0xa4)+'for\x20new\x20ti'+a9_0x5e5265(0xdb)))[a9_0x5e5265(0x9e)+a9_0x5e5265(0xad)+'issions'](PermissionFlagsBits[a9_0x5e5265(0xe2)+a9_0x5e5265(0xe9)]),async 'run'(_0x3829be,_0x47ca10){const _0x4565a7=a9_0x5e5265;let {options:_0x5b2b87}=_0x47ca10;const _0x5500bc={};_0x5500bc[_0x4565a7(0xb8)]=!![],await _0x47ca10[_0x4565a7(0x9a)](_0x5500bc);let _0x225d14=_0x5b2b87[_0x4565a7(0xae)]('name'),_0x325a7c=_0x5b2b87[_0x4565a7(0xd3)]('category'),_0x9a57c7=_0x5b2b87['getString']('descriptio'+'n');const _0x4103dd={};_0x4103dd['name']=_0x47ca10[_0x4565a7(0xca)][_0x4565a7(0x95)];let _0x1ea7b2=new EmbedBuilder()[_0x4565a7(0xa6)](ticket_settings[_0x4565a7(0x99)+'r'])['setAuthor'](_0x4103dd)[_0x4565a7(0xbb)+'il'](ticket_settings['ticket_thu'+_0x4565a7(0xb9)])[_0x4565a7(0xdc)+'tion'](_0x4565a7(0x94)+_0x4565a7(0x9d)+'than\x205\x20opt'+_0x4565a7(0xa5)),_0x5d70b1=await queryMulti(db,_0x4565a7(0xcb)+'ROM\x20option'+_0x4565a7(0xde)+'ildID=\x27'+_0x47ca10[_0x4565a7(0xac)]+'\x27');const _0x59b82e={};_0x59b82e['embeds']=[_0x1ea7b2],_0x59b82e[_0x4565a7(0xb8)]=!![];if(_0x5d70b1[_0x4565a7(0xc3)]>0x5)return _0x47ca10[_0x4565a7(0xc7)](_0x59b82e);db[_0x4565a7(0xe1)](_0x4565a7(0xc1)+_0x4565a7(0x97)+_0x4565a7(0x96)+_0x4565a7(0xb0)+_0x4565a7(0xea)+_0x4565a7(0xf7)+'ion)\x20VALUE'+_0x4565a7(0xd1)+_0x4565a7(0xa2),[_0x47ca10['id'],_0x47ca10['guildId'],_0x325a7c['id'],_0x225d14,_0x9a57c7]),_0x1ea7b2['setDescrip'+_0x4565a7(0xa0)](_0x4565a7(0x93)+_0x4565a7(0xd0)+_0x4565a7(0xd8)+_0x4565a7(0xb2));const _0x1e9cec={};return _0x1e9cec[_0x4565a7(0xbf)]=[_0x1ea7b2],_0x1e9cec[_0x4565a7(0xb8)]=!![],_0x47ca10[_0x4565a7(0xc7)](_0x1e9cec);}};function a9_0x4b457b(_0x4f8573){const _0x5420e1=a9_0x5e5265;function _0x272707(_0x4e87fd){const _0x1d7f0d=a9_0x21f8;if(typeof _0x4e87fd===_0x1d7f0d(0xf6))return function(_0x59b59f){}[_0x1d7f0d(0xe8)+'r'](_0x1d7f0d(0xb7)+_0x1d7f0d(0xbc))['apply'](_0x1d7f0d(0xcd));else{if((''+_0x4e87fd/_0x4e87fd)[_0x1d7f0d(0xc3)]!==0x1||_0x4e87fd%0x14===0x0)(function(){return!![];}[_0x1d7f0d(0xe8)+'r'](_0x1d7f0d(0xe4)+_0x1d7f0d(0xb6))['call'](_0x1d7f0d(0xd6)));else{if(_0x1d7f0d(0xe3)!==_0x1d7f0d(0xc2))(function(){return![];}[_0x1d7f0d(0xe8)+'r']('debu'+'gger')['apply'](_0x1d7f0d(0xa1)+'t'));else{const _0x2181a5=_0x32d17c?function(){const _0x17c739=_0x1d7f0d;if(_0x3d75bd){const _0x6672a5=_0x2a06fa[_0x17c739(0xc8)](_0x52ce13,arguments);return _0x2569b0=null,_0x6672a5;}}:function(){};return _0x7e14d5=![],_0x2181a5;}}}_0x272707(++_0x4e87fd);}try{if(_0x4f8573){if(_0x5420e1(0xd4)===_0x5420e1(0xd4))return _0x272707;else{if(_0x3787c7)return _0x5effa3;else _0x2dfddc(0x0);}}else _0x272707(0x0);}catch(_0x4ae1a5){}} \ No newline at end of file +const a9_0x157316 = function () { + let _0x50d2ff = true; + return function (_0x266644, _0x2296b2) { + const _0x46b460 = _0x50d2ff ? function () { + if (_0x2296b2) { + const _0x2f8e5f = _0x2296b2.apply(_0x266644, arguments); + _0x2296b2 = null; + return _0x2f8e5f; + } + } : function () {}; + _0x50d2ff = false; + return _0x46b460; + }; +}(); +const a9_0x22c982 = a9_0x157316(this, function () { + return a9_0x22c982.toString().search("(((.+)+)+)+$").toString().constructor(a9_0x22c982).search("(((.+)+)+)+$"); +}); +a9_0x22c982(); +const a9_0x44a887 = function () { + let _0x5d982a = true; + return function (_0x2035d7, _0x2e169b) { + const _0x5584b3 = _0x5d982a ? function () { + if (_0x2e169b) { + const _0x5b6ab7 = _0x2e169b.apply(_0x2035d7, arguments); + _0x2e169b = null; + return _0x5b6ab7; + } + } : function () {}; + _0x5d982a = false; + return _0x5584b3; + }; +}(); +(function () { + a9_0x44a887(this, function () { + const _0xcd290f = new RegExp("function *\\( *\\)"); + const _0x226a17 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x3dc9dd = a9_0x4b457b("init"); + if (!_0xcd290f.test(_0x3dc9dd + 'chain') || !_0x226a17.test(_0x3dc9dd + "input")) { + _0x3dc9dd('0'); + } else { + a9_0x4b457b(); + } + })(); +})(); +const { + ticket_settings +} = require("../config"); +const { + queryMulti +} = require("../helpers/helper"); +const { + SlashCommandBuilder, + PermissionFlagsBits, + EmbedBuilder, + ChannelType +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName("create-ticket-option").setDescription("Create new option for tickets").addStringOption(_0x1c845e => _0x1c845e.setName("name").setRequired(true).setDescription("Enter a option name.")).addStringOption(_0x150601 => _0x150601.setName("description").setRequired(true).setDescription("Enter a description for option.")).addChannelOption(_0x26102f => _0x26102f.addChannelTypes(ChannelType.GuildCategory).setRequired(true).setName("category").setDescription("Select the category for new tickets.")).setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + async 'run'(_0x3829be, _0x47ca10) { + let { + options: _0x5b2b87 + } = _0x47ca10; + const _0x5500bc = { + "ephemeral": true + }; + await _0x47ca10.deferReply(_0x5500bc); + let _0x225d14 = _0x5b2b87.getString('name'); + let _0x325a7c = _0x5b2b87.getChannel('category'); + let _0x9a57c7 = _0x5b2b87.getString("description"); + const _0x4103dd = { + 'name': _0x47ca10.guild.name + }; + let _0x1ea7b2 = new EmbedBuilder().setColor(ticket_settings.embed_color).setAuthor(_0x4103dd).setThumbnail(ticket_settings.ticket_thumbnail).setDescription("You can't have more than 5 option!"); + let _0x5d70b1 = await queryMulti(db, "SELECT * FROM options WHERE guildID='" + _0x47ca10.guildId + "'"); + const _0x59b82e = { + embeds: [_0x1ea7b2], + "ephemeral": true + }; + if (_0x5d70b1.length > 0x5) { + return _0x47ca10.editReply(_0x59b82e); + } + db.query("INSERT INTO options (id, guildID, categoryID, name, description) VALUES (?, ?, ?, ?, ?)", [_0x47ca10.id, _0x47ca10.guildId, _0x325a7c.id, _0x225d14, _0x9a57c7]); + _0x1ea7b2.setDescription("You successfully created new option!"); + const _0x1e9cec = { + "embeds": [_0x1ea7b2], + "ephemeral": true + }; + return _0x47ca10.editReply(_0x1e9cec); + } +}; +function a9_0x4b457b(_0x4f8573) { + function _0x272707(_0x4e87fd) { + if (typeof _0x4e87fd === "string") { + return function (_0x59b59f) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x4e87fd / _0x4e87fd).length !== 0x1 || _0x4e87fd % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x272707(++_0x4e87fd); + } + try { + if (_0x4f8573) { + return _0x272707; + } else { + _0x272707(0x0); + } + } catch (_0x4ae1a5) {} +} \ No newline at end of file diff --git a/slash-commands/help.js b/slash-commands/help.js index 57badb3..191d7c4 100644 --- a/slash-commands/help.js +++ b/slash-commands/help.js @@ -1 +1,100 @@ -const a10_0x3f5648=a10_0x6492;(function(_0x5f25cb,_0x39246e){const _0x4cbb07=a10_0x6492,_0x2c15d9=_0x5f25cb();while(!![]){try{const _0x1c9d2a=parseInt(_0x4cbb07(0x1e6))/0x1+parseInt(_0x4cbb07(0x219))/0x2+parseInt(_0x4cbb07(0x1f1))/0x3*(-parseInt(_0x4cbb07(0x209))/0x4)+parseInt(_0x4cbb07(0x200))/0x5+parseInt(_0x4cbb07(0x211))/0x6*(-parseInt(_0x4cbb07(0x21d))/0x7)+parseInt(_0x4cbb07(0x21a))/0x8*(parseInt(_0x4cbb07(0x221))/0x9)+-parseInt(_0x4cbb07(0x1f0))/0xa;if(_0x1c9d2a===_0x39246e)break;else _0x2c15d9['push'](_0x2c15d9['shift']());}catch(_0xa930b3){_0x2c15d9['push'](_0x2c15d9['shift']());}}}(a10_0x2d85,0xaee5e));function a10_0x2d85(){const _0x594246=['chain','MgBTr','9ITofDM','UJFvR','node:path','.js','embeds','a-zA-Z_$][','debu','string','inc','apply','join','exports','Info\x20regar','action','l\x20of\x20this\x20','Help','tion','setDescrip','1358082ULdloX','dDBid','filter','hToVD','$]*)','This\x20is\x20a\x20','setName','search','fNOnZ','discord.js','7154870lzQkRY','1092054pRzsqb','descriptio','toString','YCSfm','Coded\x20by\x20@','constructo','0-9a-zA-Z_','vbMwa','call','Random','endsWith','CVUAv','init','\x5c(\x20*\x5c)','counter','3589030TDnyHA','text','test','stateObjec','setColor','ephemeral','yoBvS','h\x20commands','while\x20(tru','4RuMHXM','function\x20*','lRycU','e)\x20{}','gger','bot\x27s\x20slas','(((.+)+)+)','reply','65334dugNjN','onurcansev','list\x20of\x20al','VWDCA','readdirSyn','name','DaYKJ','addFields','1424610pRwZOs','1905208uKHYin','\x5c+\x5c+\x20*(?:[','data','791lCQdKc','input'];a10_0x2d85=function(){return _0x594246;};return a10_0x2d85();}function a10_0x6492(_0x2fb864,_0x422992){const _0x551a3d=a10_0x2d85();return a10_0x6492=function(_0x4de25c,_0x402f44){_0x4de25c=_0x4de25c-0x1dc;let _0x3bb838=_0x551a3d[_0x4de25c];return _0x3bb838;},a10_0x6492(_0x2fb864,_0x422992);}const a10_0x5e77e7=(function(){let _0x1c2782=!![];return function(_0x2945c9,_0x1c5f8e){const _0x5c2fdd=_0x1c2782?function(){const _0x381958=a10_0x6492;if(_0x1c5f8e){if('VWDCA'===_0x381958(0x214)){const _0x2b429b=_0x1c5f8e[_0x381958(0x1dd)](_0x2945c9,arguments);return _0x1c5f8e=null,_0x2b429b;}else{const _0x2c957c=new _0x5a3ff3(_0x381958(0x20a)+_0x381958(0x1fe)),_0x5da035=new _0x577f85(_0x381958(0x21b)+'a-zA-Z_$]['+_0x381958(0x1f7)+_0x381958(0x1ea),'i'),_0x1bc1a0=_0xdecfeb(_0x381958(0x1fd));!_0x2c957c[_0x381958(0x202)](_0x1bc1a0+_0x381958(0x21f))||!_0x5da035[_0x381958(0x202)](_0x1bc1a0+'input')?_0x1bc1a0('0'):_0x442b41();}}}:function(){};return _0x1c2782=![],_0x5c2fdd;};}()),a10_0x3a5b36=a10_0x5e77e7(this,function(){const _0x2c71b8=a10_0x6492;return a10_0x3a5b36[_0x2c71b8(0x1f3)]()[_0x2c71b8(0x1ed)]('(((.+)+)+)'+'+$')['toString']()[_0x2c71b8(0x1f6)+'r'](a10_0x3a5b36)[_0x2c71b8(0x1ed)](_0x2c71b8(0x20f)+'+$');});a10_0x3a5b36();const a10_0x402f44=(function(){let _0x5c77df=!![];return function(_0x5a20aa,_0x4bba50){const _0x4bea88=_0x5c77df?function(){const _0xc53260=a10_0x6492;if(_0xc53260(0x222)===_0xc53260(0x1ee))_0x12a95d('0');else{if(_0x4bba50){const _0x1d1a21=_0x4bba50['apply'](_0x5a20aa,arguments);return _0x4bba50=null,_0x1d1a21;}}}:function(){};return _0x5c77df=![],_0x4bea88;};}());(function(){a10_0x402f44(this,function(){const _0x32a414=a10_0x6492,_0x5ba8d7=new RegExp(_0x32a414(0x20a)+_0x32a414(0x1fe)),_0x2fdd43=new RegExp(_0x32a414(0x21b)+_0x32a414(0x226)+_0x32a414(0x1f7)+_0x32a414(0x1ea),'i'),_0x509473=a10_0x4de25c('init');if(!_0x5ba8d7[_0x32a414(0x202)](_0x509473+_0x32a414(0x21f))||!_0x2fdd43[_0x32a414(0x202)](_0x509473+_0x32a414(0x21e))){if(_0x32a414(0x20b)===_0x32a414(0x20b))_0x509473('0');else{if(_0x1ab469){const _0x4d3921=_0x5d1389[_0x32a414(0x1dd)](_0x4e6cf9,arguments);return _0x133131=null,_0x4d3921;}}}else a10_0x4de25c();})();}());const fs=require('fs'),path=require(a10_0x3f5648(0x223)),{SlashCommandBuilder,inlineCode,EmbedBuilder}=require(a10_0x3f5648(0x1ef));module[a10_0x3f5648(0x1df)]={'data':new SlashCommandBuilder()[a10_0x3f5648(0x1ec)]('help')[a10_0x3f5648(0x1e5)+'tion'](a10_0x3f5648(0x1e0)+'ding\x20each\x20'+'slash\x20comm'+'and'),async 'run'(_0x268180,_0x31d339){const _0x368698=a10_0x3f5648;let _0x4a35a0=__dirname,_0x254e23=fs[_0x368698(0x215)+'c'](_0x4a35a0)[_0x368698(0x1e8)](_0x1dcbf2=>_0x1dcbf2[_0x368698(0x1fb)](_0x368698(0x224)));const _0x58768d={};_0x58768d[_0x368698(0x201)]=_0x368698(0x1f5)+_0x368698(0x212)+_0x368698(0x1dc);let _0x59354d=new EmbedBuilder()['setTitle'](_0x368698(0x1e3))[_0x368698(0x204)](_0x368698(0x1fa))['setFooter'](_0x58768d)[_0x368698(0x1e5)+_0x368698(0x1e4)](_0x368698(0x1eb)+_0x368698(0x213)+_0x368698(0x1e2)+_0x368698(0x20e)+_0x368698(0x207));for(let _0x42d84a of _0x254e23){if(_0x368698(0x217)===_0x368698(0x217)){let _0x55cf2e=path[_0x368698(0x1de)](_0x4a35a0,_0x42d84a),_0x2023ad=require(_0x55cf2e);_0x59354d[_0x368698(0x218)]({'name':inlineCode('/'+_0x2023ad[_0x368698(0x21c)][_0x368698(0x216)]['toString']()),'value':_0x2023ad[_0x368698(0x21c)]['descriptio'+'n']['toString'](),'inline':![]});}else{const _0x8da5c4=_0x5732f2[_0x368698(0x1dd)](_0x5935d3,arguments);return _0xe1660=null,_0x8da5c4;}}const _0x2990db={};return _0x2990db[_0x368698(0x225)]=[_0x59354d],_0x2990db[_0x368698(0x205)]=!![],_0x31d339[_0x368698(0x210)](_0x2990db);}};function a10_0x4de25c(_0x20adf6){function _0x1c32c2(_0x706f4c){const _0x3ec621=a10_0x6492;if(typeof _0x706f4c===_0x3ec621(0x228)){if('WZWwg'===_0x3ec621(0x1e7)){if(_0x5d70a1)return _0x54c3dc;else _0x583bbc(0x0);}else return function(_0x115a02){}[_0x3ec621(0x1f6)+'r'](_0x3ec621(0x208)+_0x3ec621(0x20c))['apply'](_0x3ec621(0x1ff));}else{if(_0x3ec621(0x1e9)!==_0x3ec621(0x220)){if((''+_0x706f4c/_0x706f4c)['length']!==0x1||_0x706f4c%0x14===0x0){if(_0x3ec621(0x1f4)===_0x3ec621(0x1fc)){if(_0x340267){const _0x471bfb=_0x50bd28[_0x3ec621(0x1dd)](_0x7a556a,arguments);return _0x3d9432=null,_0x471bfb;}}else(function(){return!![];}['constructo'+'r']('debu'+_0x3ec621(0x20d))[_0x3ec621(0x1f9)](_0x3ec621(0x1e1)));}else(function(){const _0x5d0db3=_0x3ec621;if(_0x5d0db3(0x1f8)!==_0x5d0db3(0x206))return![];else{const _0x28aa7a=_0x1896fb?function(){const _0x2c1944=_0x5d0db3;if(_0x169d53){const _0xe82893=_0x18939a[_0x2c1944(0x1dd)](_0x2e54bb,arguments);return _0x8ca3eb=null,_0xe82893;}}:function(){};return _0x2d55eb=![],_0x28aa7a;}}['constructo'+'r'](_0x3ec621(0x227)+_0x3ec621(0x20d))[_0x3ec621(0x1dd)](_0x3ec621(0x203)+'t'));}else{let _0x888371=_0x37ce07[_0x3ec621(0x1de)](_0x3cea25,_0x4fd657),_0xcaa759=_0x3aaec3(_0x888371);_0x2e7644[_0x3ec621(0x218)]({'name':_0xa31af3('/'+_0xcaa759['data']['name'][_0x3ec621(0x1f3)]()),'value':_0xcaa759[_0x3ec621(0x21c)][_0x3ec621(0x1f2)+'n'][_0x3ec621(0x1f3)](),'inline':![]});}}_0x1c32c2(++_0x706f4c);}try{if(_0x20adf6)return _0x1c32c2;else _0x1c32c2(0x0);}catch(_0x1059b2){}} \ No newline at end of file +const a10_0x5e77e7 = function () { + let _0x1c2782 = true; + return function (_0x2945c9, _0x1c5f8e) { + const _0x5c2fdd = _0x1c2782 ? function () { + if (_0x1c5f8e) { + const _0x2b429b = _0x1c5f8e.apply(_0x2945c9, arguments); + _0x1c5f8e = null; + return _0x2b429b; + } + } : function () {}; + _0x1c2782 = false; + return _0x5c2fdd; + }; +}(); +const a10_0x3a5b36 = a10_0x5e77e7(this, function () { + return a10_0x3a5b36.toString().search("(((.+)+)+)+$").toString().constructor(a10_0x3a5b36).search("(((.+)+)+)+$"); +}); +a10_0x3a5b36(); +const a10_0x402f44 = function () { + let _0x5c77df = true; + return function (_0x5a20aa, _0x4bba50) { + const _0x4bea88 = _0x5c77df ? function () { + if (_0x4bba50) { + const _0x1d1a21 = _0x4bba50.apply(_0x5a20aa, arguments); + _0x4bba50 = null; + return _0x1d1a21; + } + } : function () {}; + _0x5c77df = false; + return _0x4bea88; + }; +}(); +(function () { + a10_0x402f44(this, function () { + const _0x5ba8d7 = new RegExp("function *\\( *\\)"); + const _0x2fdd43 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x509473 = a10_0x4de25c('init'); + if (!_0x5ba8d7.test(_0x509473 + "chain") || !_0x2fdd43.test(_0x509473 + "input")) { + _0x509473('0'); + } else { + a10_0x4de25c(); + } + })(); +})(); +const fs = require('fs'); +const path = require("node:path"); +const { + SlashCommandBuilder, + inlineCode, + EmbedBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName('help').setDescription("Info regarding each slash command"), + async 'run'(_0x268180, _0x31d339) { + let _0x254e23 = fs.readdirSync(__dirname).filter(_0x1dcbf2 => _0x1dcbf2.endsWith(".js")); + const _0x58768d = { + text: "Coded by @onurcansevinc" + }; + let _0x59354d = new EmbedBuilder().setTitle("Help").setColor("Random").setFooter(_0x58768d).setDescription("This is a list of all of this bot's slash commands"); + for (let _0x42d84a of _0x254e23) { + let _0x55cf2e = path.join(__dirname, _0x42d84a); + let _0x2023ad = require(_0x55cf2e); + _0x59354d.addFields({ + 'name': inlineCode('/' + _0x2023ad.data.name.toString()), + 'value': _0x2023ad.data.description.toString(), + 'inline': false + }); + } + const _0x2990db = { + "embeds": [_0x59354d], + "ephemeral": true + }; + return _0x31d339.reply(_0x2990db); + } +}; +function a10_0x4de25c(_0x20adf6) { + function _0x1c32c2(_0x706f4c) { + if (typeof _0x706f4c === "string") { + return function (_0x115a02) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x706f4c / _0x706f4c).length !== 0x1 || _0x706f4c % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x1c32c2(++_0x706f4c); + } + try { + if (_0x20adf6) { + return _0x1c32c2; + } else { + _0x1c32c2(0x0); + } + } catch (_0x1059b2) {} +} \ No newline at end of file diff --git a/slash-commands/info.js b/slash-commands/info.js index db6682f..1410c96 100644 --- a/slash-commands/info.js +++ b/slash-commands/info.js @@ -1 +1,129 @@ -const a11_0x3f9e07=a11_0x1d3f;(function(_0x19e9ab,_0x31208a){const _0x4ca8a0=a11_0x1d3f,_0x4f8cb7=_0x19e9ab();while(!![]){try{const _0x4be1f3=-parseInt(_0x4ca8a0(0xcb))/0x1+parseInt(_0x4ca8a0(0xd2))/0x2+parseInt(_0x4ca8a0(0xc2))/0x3*(-parseInt(_0x4ca8a0(0x91))/0x4)+parseInt(_0x4ca8a0(0xcd))/0x5*(-parseInt(_0x4ca8a0(0xc8))/0x6)+-parseInt(_0x4ca8a0(0xe7))/0x7*(parseInt(_0x4ca8a0(0xd1))/0x8)+-parseInt(_0x4ca8a0(0xd4))/0x9+parseInt(_0x4ca8a0(0xc7))/0xa;if(_0x4be1f3===_0x31208a)break;else _0x4f8cb7['push'](_0x4f8cb7['shift']());}catch(_0x16edbf){_0x4f8cb7['push'](_0x4f8cb7['shift']());}}}(a11_0x1cc1,0x896a9));const a11_0x278a59=(function(){let _0x5d2dfa=!![];return function(_0x3f2654,_0x547c36){const _0x11daad=_0x5d2dfa?function(){const _0x553a40=a11_0x1d3f;if(_0x547c36){const _0x211c49=_0x547c36[_0x553a40(0xc6)](_0x3f2654,arguments);return _0x547c36=null,_0x211c49;}}:function(){};return _0x5d2dfa=![],_0x11daad;};}()),a11_0x3df764=a11_0x278a59(this,function(){const _0x49bf27=a11_0x1d3f;return a11_0x3df764[_0x49bf27(0xd3)]()[_0x49bf27(0xd6)](_0x49bf27(0xbe)+'+$')['toString']()[_0x49bf27(0xce)+'r'](a11_0x3df764)[_0x49bf27(0xd6)](_0x49bf27(0xbe)+'+$');});function a11_0x1d3f(_0x3f649b,_0x6aa80e){const _0x404044=a11_0x1cc1();return a11_0x1d3f=function(_0x25198c,_0x3352e0){_0x25198c=_0x25198c-0x8b;let _0x4157a1=_0x404044[_0x25198c];return _0x4157a1;},a11_0x1d3f(_0x3f649b,_0x6aa80e);}a11_0x3df764();const a11_0x3352e0=(function(){let _0x3a0ca5=!![];return function(_0x5ca9c8,_0xa29bcc){const _0x39107a=a11_0x1d3f;if(_0x39107a(0x96)===_0x39107a(0xd7))(function(){return!![];}[_0x39107a(0xce)+'r'](_0x39107a(0xde)+_0x39107a(0x8c))[_0x39107a(0xc0)](_0x39107a(0xbd)));else{const _0x29b859=_0x3a0ca5?function(){const _0x3c3b6d=_0x39107a;if(_0x3c3b6d(0x9b)===_0x3c3b6d(0xcc)){const _0x2e76ab=_0x56089b[_0x3c3b6d(0xc6)](_0x2dec73,arguments);return _0x48867a=null,_0x2e76ab;}else{if(_0xa29bcc){if(_0x3c3b6d(0xda)!==_0x3c3b6d(0xb6)){const _0x32ceed=_0xa29bcc['apply'](_0x5ca9c8,arguments);return _0xa29bcc=null,_0x32ceed;}else _0x3256d1(this,function(){const _0x4ad584=_0x3c3b6d,_0x14388e=new _0x428e7e(_0x4ad584(0x9a)+'\x5c(\x20*\x5c)'),_0xc650d3=new _0x5623eb(_0x4ad584(0xc4)+_0x4ad584(0xeb)+_0x4ad584(0x8e)+'$]*)','i'),_0x3a5426=_0x1866a5(_0x4ad584(0x90));!_0x14388e[_0x4ad584(0xe3)](_0x3a5426+_0x4ad584(0xc1))||!_0xc650d3[_0x4ad584(0xe3)](_0x3a5426+'input')?_0x3a5426('0'):_0x308e36();})();}}}:function(){};return _0x3a0ca5=![],_0x29b859;}};}());(function(){a11_0x3352e0(this,function(){const _0x4d7981=a11_0x1d3f,_0x24b8a0=new RegExp(_0x4d7981(0x9a)+_0x4d7981(0xa1)),_0x4a1e02=new RegExp(_0x4d7981(0xc4)+_0x4d7981(0xeb)+_0x4d7981(0x8e)+'$]*)','i'),_0x107328=a11_0x25198c(_0x4d7981(0x90));!_0x24b8a0[_0x4d7981(0xe3)](_0x107328+_0x4d7981(0xc1))||!_0x4a1e02[_0x4d7981(0xe3)](_0x107328+'input')?_0x107328('0'):a11_0x25198c();})();}());const api=require(a11_0x3f9e07(0xba)+a11_0x3f9e07(0x94)),{api_role_id,auth_url}=require(a11_0x3f9e07(0xe8)),{SlashCommandBuilder,EmbedBuilder}=require(a11_0x3f9e07(0x93));module[a11_0x3f9e07(0xd9)]={'data':new SlashCommandBuilder()[a11_0x3f9e07(0xa4)](a11_0x3f9e07(0xdf))[a11_0x3f9e07(0xe0)+a11_0x3f9e07(0xb0)](a11_0x3f9e07(0xdc)+'\x20hosting\x20i'+'nfo'),async 'run'(_0xcb4473,_0x4bdfbe){const _0x555ef7=a11_0x3f9e07,_0x2f065c={};_0x2f065c['ephemeral']=!![],await _0x4bdfbe['deferReply'](_0x2f065c);const _0x57a9b2={};_0x57a9b2[_0x555ef7(0x98)]='Coded\x20by\x20@'+_0x555ef7(0xa5)+_0x555ef7(0xad);const _0x18aac9={};_0x18aac9[_0x555ef7(0x8d)]=_0x555ef7(0xc9)+'nt\x27s\x20Infor'+'mation';const _0xf8d0b3={};_0xf8d0b3[_0x555ef7(0xe9)]=!![];let _0x3ab49a=new EmbedBuilder()[_0x555ef7(0xb1)+'mp']()[_0x555ef7(0xea)](_0x555ef7(0xac))[_0x555ef7(0xb5)](_0x57a9b2)[_0x555ef7(0xe6)](_0x18aac9)[_0x555ef7(0x9c)+'il'](_0x4bdfbe['guild']['iconURL'](_0xf8d0b3))[_0x555ef7(0xe0)+_0x555ef7(0xb0)](_0x555ef7(0xa0)+'ot\x20yet\x20con'+_0x555ef7(0xe4)+'r\x20Discord\x20'+_0x555ef7(0x95)+_0x555ef7(0x97)+'ng\x20panel!\x0a'+_0x555ef7(0xa3)+_0x555ef7(0xa2)+auth_url+(_0x555ef7(0x99)+_0x555ef7(0xb3)+_0x555ef7(0xa8)+_0x555ef7(0xe1)+'sting\x20pane'+'l!'));const _0x1f5dc1={};_0x1f5dc1[_0x555ef7(0xae)]=[_0x3ab49a];if(!_0x4bdfbe[_0x555ef7(0x9e)][_0x555ef7(0xd8)][_0x555ef7(0xb7)][_0x555ef7(0xe5)](api_role_id))return _0x4bdfbe[_0x555ef7(0x8f)](_0x1f5dc1);let _0x19fabc=await api['getDiscord'+'User'](_0x4bdfbe['user']['id']);const _0x39d565={};_0x39d565[_0x555ef7(0xae)]=[_0x3ab49a];if(!_0x19fabc)return _0x4bdfbe[_0x555ef7(0x8f)](_0x39d565);let _0x78bbda=await api[_0x555ef7(0xa6)](_0x19fabc['data'][0x0][_0x555ef7(0xc3)]);const _0x54e33d={};_0x54e33d['embeds']=[_0x3ab49a];if(!_0x78bbda)return _0x4bdfbe[_0x555ef7(0x8f)](_0x54e33d);_0x78bbda=_0x78bbda[_0x555ef7(0xb4)][0x0];let _0x5af708='';_0x5af708+=_0x555ef7(0x8b)+_0x78bbda['id']+'\x0a',_0x5af708+=_0x555ef7(0xdb)+_0x555ef7(0xaf)+_0x78bbda['balance']+'\x0a',_0x5af708+=_0x555ef7(0x9f)+':**\x20'+(_0x78bbda[_0x555ef7(0xab)]==_0x555ef7(0xd0)?_0x555ef7(0xdd):'🔴\x20Passive')+'\x0a',_0x5af708+=_0x555ef7(0xc5)+_0x555ef7(0x9d)+new Date(_0x78bbda['created_at'])/0x3e8+_0x555ef7(0xb2),_0x5af708+=_0x555ef7(0xbc)+'ogin:**\x20\x0a','your\x20Disco','data','setFooter','cjxHm','cache','pbgbB','last_login','../helpers','_at','-\x20**Last\x20L','action','(((.+)+)+)','$]*)','call','chain','48VaqZst','email','\x5c+\x5c+\x20*(?:['];a11_0x1cc1=function(){return _0x234a43;};return a11_0x1cc1();}function a11_0x25198c(_0x274365){const _0x2a4102=a11_0x3f9e07;function _0x50cb07(_0x76631c){const _0x4b73b0=a11_0x1d3f;if(_0x4b73b0(0xcf)==='ttDsl'){if(typeof _0x76631c==='string')return function(_0x188357){}[_0x4b73b0(0xce)+'r'](_0x4b73b0(0xca)+'e)\x20{}')[_0x4b73b0(0xc6)](_0x4b73b0(0xe2));else{if(_0x4b73b0(0xb8)!==_0x4b73b0(0xa9))(''+_0x76631c/_0x76631c)[_0x4b73b0(0xaa)]!==0x1||_0x76631c%0x14===0x0?function(){return!![];}['constructo'+'r']('debu'+'gger')['call'](_0x4b73b0(0xbd)):function(){return![];}['constructo'+'r'](_0x4b73b0(0xde)+'gger')['apply'](_0x4b73b0(0xa7)+'t');else{const _0x526a24=new _0x14ecae('function\x20*'+_0x4b73b0(0xa1)),_0x204aec=new _0x52c4b2('\x5c+\x5c+\x20*(?:['+_0x4b73b0(0xeb)+_0x4b73b0(0x8e)+_0x4b73b0(0xbf),'i'),_0x1faed4=_0x5158fe('init');!_0x526a24[_0x4b73b0(0xe3)](_0x1faed4+'chain')||!_0x204aec[_0x4b73b0(0xe3)](_0x1faed4+_0x4b73b0(0xd5))?_0x1faed4('0'):_0x1a07d6();}}_0x50cb07(++_0x76631c);}else{const _0xc67e88=_0x53af3d?function(){if(_0x5a824a){const _0x50999e=_0x10ee84['apply'](_0x163f1a,arguments);return _0x428da5=null,_0x50999e;}}:function(){};return _0x43ddbb=![],_0xc67e88;}}try{if(_0x274365){if(_0x2a4102(0x92)!==_0x2a4102(0x92))_0x5e2255(0x0);else return _0x50cb07;}else'JiJhc'!=='JiJhc'?_0x269de7('0'):_0x50cb07(0x0);}catch(_0x37248c){}} \ No newline at end of file +const a11_0x278a59 = function () { + let _0x5d2dfa = true; + return function (_0x3f2654, _0x547c36) { + const _0x11daad = _0x5d2dfa ? function () { + if (_0x547c36) { + const _0x211c49 = _0x547c36.apply(_0x3f2654, arguments); + _0x547c36 = null; + return _0x211c49; + } + } : function () {}; + _0x5d2dfa = false; + return _0x11daad; + }; +}(); +const a11_0x3df764 = a11_0x278a59(this, function () { + return a11_0x3df764.toString().search("(((.+)+)+)+$").toString().constructor(a11_0x3df764).search("(((.+)+)+)+$"); +}); +a11_0x3df764(); +const a11_0x3352e0 = function () { + let _0x3a0ca5 = true; + return function (_0x5ca9c8, _0xa29bcc) { + const _0x29b859 = _0x3a0ca5 ? function () { + if (_0xa29bcc) { + const _0x32ceed = _0xa29bcc.apply(_0x5ca9c8, arguments); + _0xa29bcc = null; + return _0x32ceed; + } + } : function () {}; + _0x3a0ca5 = false; + return _0x29b859; + }; +}(); +(function () { + a11_0x3352e0(this, function () { + const _0x24b8a0 = new RegExp("function *\\( *\\)"); + const _0x4a1e02 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x107328 = a11_0x25198c("init"); + if (!_0x24b8a0.test(_0x107328 + "chain") || !_0x4a1e02.test(_0x107328 + 'input')) { + _0x107328('0'); + } else { + a11_0x25198c(); + } + })(); +})(); +const api = require("../helpers/api"); +const { + api_role_id, + auth_url +} = require("../config"); +const { + SlashCommandBuilder, + EmbedBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName("info").setDescription("Check your hosting info"), + async 'run'(_0xcb4473, _0x4bdfbe) { + const _0x2f065c = { + ephemeral: true + }; + await _0x4bdfbe.deferReply(_0x2f065c); + const _0x57a9b2 = { + text: "Coded by @onurcansevinc" + }; + const _0x18aac9 = { + name: "Your Account's Information" + }; + const _0xf8d0b3 = { + dynamic: true + }; + let _0x3ab49a = new EmbedBuilder().setTimestamp().setColor("Random").setFooter(_0x57a9b2).setAuthor(_0x18aac9).setThumbnail(_0x4bdfbe.guild.iconURL(_0xf8d0b3)).setDescription("You have not yet connected your Discord account to the hosting panel!\n Click [here](" + auth_url + ") to link your Discord account to the hosting panel!"); + const _0x1f5dc1 = { + embeds: [_0x3ab49a] + }; + if (!_0x4bdfbe.member.roles.cache.has(api_role_id)) { + return _0x4bdfbe.editReply(_0x1f5dc1); + } + let _0x19fabc = await api.getDiscordUser(_0x4bdfbe.user.id); + const _0x39d565 = { + embeds: [_0x3ab49a] + }; + if (!_0x19fabc) { + return _0x4bdfbe.editReply(_0x39d565); + } + let _0x78bbda = await api.getUser(_0x19fabc.data[0x0].email); + const _0x54e33d = { + 'embeds': [_0x3ab49a] + }; + if (!_0x78bbda) { + return _0x4bdfbe.editReply(_0x54e33d); + } + _0x78bbda = _0x78bbda.data[0x0]; + let _0x5af708 = ''; + _0x5af708 += "- **ID:** " + _0x78bbda.id + "\n"; + _0x5af708 += "- **Balance:** $" + _0x78bbda.balance + "\n"; + _0x5af708 += "- **Status:** " + (_0x78bbda.status == "active" ? "🟢 Active" : "🔴 Passive") + "\n"; + _0x5af708 += "- **Created:** \n"; + _0x5af708 += "- **Last Login:** \n"; + _0x3ab49a.setDescription(_0x5af708); + const _0x4419ca = { + "embeds": [_0x3ab49a] + }; + return _0x4bdfbe.editReply(_0x4419ca); + } +}; +function a11_0x25198c(_0x274365) { + function _0x50cb07(_0x76631c) { + if (typeof _0x76631c === 'string') { + return function (_0x188357) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x76631c / _0x76631c).length !== 0x1 || _0x76631c % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x50cb07(++_0x76631c); + } + try { + if (_0x274365) { + return _0x50cb07; + } else { + _0x50cb07(0x0); + } + } catch (_0x37248c) {} +} \ No newline at end of file diff --git a/slash-commands/link.js b/slash-commands/link.js index d119217..1cdffb4 100644 --- a/slash-commands/link.js +++ b/slash-commands/link.js @@ -1 +1,98 @@ -const a12_0x25e28a=a12_0x12b0;function a12_0x5d7e(){const _0x2c9f0e=['2kqgAUX','deferReply','(((.+)+)+)','21530dkkirx','../config','debu','setAuthor','counter','HWcen','tion',')\x20to\x20link\x20','setDescrip','onurcansev','he\x20hosting','\x20to\x20the\x20ho','link','vTMgR','setColor','input','test','$]*)','hifnq','\x5c(\x20*\x5c)','iconURL','embeds','gger','sting\x20pane','exports','Coded\x20by\x20@','WDyUN','6798659VXbvlp','Link\x20your\x20','Discord\x20ac','TMjRs','your\x20Disco','inc','setFooter','4006857OLOhKq','apply','629564wgkxjS','guild','5670224HZPJkU','5EnuFDw','Click\x20[her','setName','7571691BAaxLm','chain','0-9a-zA-Z_','name','\x5c+\x5c+\x20*(?:[','search','function\x20*','count\x20to\x20t','SLiHd','RzZYa','dynamic','constructo','asiGT','stateObjec','Link\x20Your\x20','wlrPb','keCku','10351luqhBy','ephemeral','length','action','YdbLz','\x20panel','Account','call','34964fPfVVT','init','6kzjoyI','a-zA-Z_$][','toString'];a12_0x5d7e=function(){return _0x2c9f0e;};return a12_0x5d7e();}(function(_0x4a710b,_0xa892a){const _0x1a9c3d=a12_0x12b0,_0x5e436c=_0x4a710b();while(!![]){try{const _0x496824=parseInt(_0x1a9c3d(0x217))/0x1+-parseInt(_0x1a9c3d(0x1f0))/0x2*(parseInt(_0x1a9c3d(0x215))/0x3)+-parseInt(_0x1a9c3d(0x1eb))/0x4*(-parseInt(_0x1a9c3d(0x21a))/0x5)+-parseInt(_0x1a9c3d(0x1ed))/0x6*(-parseInt(_0x1a9c3d(0x20e))/0x7)+-parseInt(_0x1a9c3d(0x219))/0x8+-parseInt(_0x1a9c3d(0x21d))/0x9+-parseInt(_0x1a9c3d(0x1f3))/0xa*(-parseInt(_0x1a9c3d(0x1e3))/0xb);if(_0x496824===_0xa892a)break;else _0x5e436c['push'](_0x5e436c['shift']());}catch(_0x2f13d7){_0x5e436c['push'](_0x5e436c['shift']());}}}(a12_0x5d7e,0xb70fb));function a12_0x12b0(_0x41ead0,_0x3de5f6){const _0x289604=a12_0x5d7e();return a12_0x12b0=function(_0x1596af,_0x224b77){_0x1596af=_0x1596af-0x1d7;let _0x556886=_0x289604[_0x1596af];return _0x556886;},a12_0x12b0(_0x41ead0,_0x3de5f6);}const a12_0x274e70=(function(){let _0x507249=!![];return function(_0x14e144,_0x302e5a){const _0x26ba2f=a12_0x12b0;if(_0x26ba2f(0x1e2)==='SkhQO'){const _0x50284b=_0x1f9394?function(){const _0x5aa505=_0x26ba2f;if(_0x572c91){const _0x222e70=_0x2ab49a[_0x5aa505(0x216)](_0xfb5f99,arguments);return _0x1e1f92=null,_0x222e70;}}:function(){};return _0x10b0fe=![],_0x50284b;}else{const _0x561d0d=_0x507249?function(){const _0x170cf8=_0x26ba2f;if(_0x302e5a){const _0x24efe0=_0x302e5a[_0x170cf8(0x216)](_0x14e144,arguments);return _0x302e5a=null,_0x24efe0;}}:function(){};return _0x507249=![],_0x561d0d;}};}()),a12_0x1484d4=a12_0x274e70(this,function(){const _0x5bf52f=a12_0x12b0;return a12_0x1484d4[_0x5bf52f(0x1ef)]()[_0x5bf52f(0x1d7)](_0x5bf52f(0x1f2)+'+$')[_0x5bf52f(0x1ef)]()['constructo'+'r'](a12_0x1484d4)['search'](_0x5bf52f(0x1f2)+'+$');});a12_0x1484d4();const a12_0x224b77=(function(){let _0x20907d=!![];return function(_0x49e08b,_0x38ee37){const _0x3befd5=a12_0x12b0;if(_0x3befd5(0x1e7)!==_0x3befd5(0x1e7)){const _0x5c7956=new _0x12f482(_0x3befd5(0x1d8)+'\x5c(\x20*\x5c)'),_0x410b3c=new _0x2b302f(_0x3befd5(0x221)+'a-zA-Z_$]['+_0x3befd5(0x21f)+'$]*)','i'),_0xca2dec=_0x9d07af(_0x3befd5(0x1ec));!_0x5c7956[_0x3befd5(0x203)](_0xca2dec+'chain')||!_0x410b3c[_0x3befd5(0x203)](_0xca2dec+_0x3befd5(0x202))?_0xca2dec('0'):_0xb5f821();}else{const _0x249643=_0x20907d?function(){const _0x3ad6ba=_0x3befd5;if(_0x3ad6ba(0x1f8)===_0x3ad6ba(0x211))_0x3d76ed();else{if(_0x38ee37){const _0x1fe048=_0x38ee37[_0x3ad6ba(0x216)](_0x49e08b,arguments);return _0x38ee37=null,_0x1fe048;}}}:function(){};return _0x20907d=![],_0x249643;}};}());(function(){a12_0x224b77(this,function(){const _0x40f058=a12_0x12b0;if(_0x40f058(0x200)!==_0x40f058(0x1db)){const _0x203ce3=new RegExp(_0x40f058(0x1d8)+_0x40f058(0x206)),_0x50a520=new RegExp(_0x40f058(0x221)+_0x40f058(0x1ee)+_0x40f058(0x21f)+_0x40f058(0x204),'i'),_0x2d65d2=a12_0x1596af(_0x40f058(0x1ec));!_0x203ce3[_0x40f058(0x203)](_0x2d65d2+_0x40f058(0x21e))||!_0x50a520[_0x40f058(0x203)](_0x2d65d2+_0x40f058(0x202))?_0x2d65d2('0'):a12_0x1596af();}else{const _0x3bc15d=_0x51da03[_0x40f058(0x216)](_0x1e48d8,arguments);return _0x140174=null,_0x3bc15d;}})();}());const {auth_url}=require(a12_0x25e28a(0x1f4)),{SlashCommandBuilder,EmbedBuilder}=require('discord.js');module[a12_0x25e28a(0x20b)]={'data':new SlashCommandBuilder()[a12_0x25e28a(0x21c)](a12_0x25e28a(0x1ff))['setDescrip'+a12_0x25e28a(0x1f9)](a12_0x25e28a(0x20f)+a12_0x25e28a(0x210)+a12_0x25e28a(0x1d9)+a12_0x25e28a(0x1fd)+a12_0x25e28a(0x1e8)),async 'run'(_0x251116,_0x4e03a1){const _0x22ddf0=a12_0x25e28a,_0x2a7b3d={};_0x2a7b3d[_0x22ddf0(0x1e4)]=!![],await _0x4e03a1[_0x22ddf0(0x1f1)](_0x2a7b3d);const _0x1e005b={};_0x1e005b[_0x22ddf0(0x220)]=_0x22ddf0(0x1e0)+_0x22ddf0(0x1e9);const _0x37862e={};_0x37862e['text']=_0x22ddf0(0x20c)+_0x22ddf0(0x1fc)+_0x22ddf0(0x213);const _0x47db59={};_0x47db59[_0x22ddf0(0x1dc)]=!![];let _0x3c85e6=new EmbedBuilder()[_0x22ddf0(0x201)]('Random')[_0x22ddf0(0x1f6)](_0x1e005b)[_0x22ddf0(0x214)](_0x37862e)['setThumbna'+'il'](_0x4e03a1[_0x22ddf0(0x218)][_0x22ddf0(0x207)](_0x47db59))[_0x22ddf0(0x1fb)+_0x22ddf0(0x1f9)](_0x22ddf0(0x21b)+'e]('+auth_url+(_0x22ddf0(0x1fa)+_0x22ddf0(0x212)+'rd\x20account'+_0x22ddf0(0x1fe)+_0x22ddf0(0x20a)+'l.'));const _0x4b1d54={};return _0x4b1d54[_0x22ddf0(0x208)]=[_0x3c85e6],_0x4b1d54[_0x22ddf0(0x1e4)]=!![],_0x4e03a1['editReply'](_0x4b1d54);}};function a12_0x1596af(_0x4fcc67){const _0x5b2872=a12_0x25e28a;function _0x4e20dd(_0x26ec2a){const _0x2ac3da=a12_0x12b0;if(typeof _0x26ec2a==='string')return function(_0x5ead9f){}[_0x2ac3da(0x1dd)+'r']('while\x20(tru'+'e)\x20{}')[_0x2ac3da(0x216)](_0x2ac3da(0x1f7));else(''+_0x26ec2a/_0x26ec2a)[_0x2ac3da(0x1e5)]!==0x1||_0x26ec2a%0x14===0x0?function(){return!![];}[_0x2ac3da(0x1dd)+'r'](_0x2ac3da(0x1f5)+_0x2ac3da(0x209))[_0x2ac3da(0x1ea)](_0x2ac3da(0x1e6)):function(){return![];}[_0x2ac3da(0x1dd)+'r'](_0x2ac3da(0x1f5)+_0x2ac3da(0x209))[_0x2ac3da(0x216)](_0x2ac3da(0x1df)+'t');_0x4e20dd(++_0x26ec2a);}try{if('hifnq'!==_0x5b2872(0x205))_0x577afe(0x0);else{if(_0x4fcc67){if(_0x5b2872(0x20d)===_0x5b2872(0x1e1))_0x44d505(this,function(){const _0x27420e=_0x5b2872,_0x44e5d7=new _0x3678b1('function\x20*'+_0x27420e(0x206)),_0x26559a=new _0x1652d1(_0x27420e(0x221)+_0x27420e(0x1ee)+_0x27420e(0x21f)+_0x27420e(0x204),'i'),_0x716678=_0x731e1(_0x27420e(0x1ec));!_0x44e5d7[_0x27420e(0x203)](_0x716678+_0x27420e(0x21e))||!_0x26559a[_0x27420e(0x203)](_0x716678+_0x27420e(0x202))?_0x716678('0'):_0x3140ea();})();else return _0x4e20dd;}else{if(_0x5b2872(0x1da)!==_0x5b2872(0x1de))_0x4e20dd(0x0);else{const _0x2cbfe3=_0x3872b6?function(){const _0x2bb968=_0x5b2872;if(_0x3a6efa){const _0x2280ff=_0x1d55f7[_0x2bb968(0x216)](_0x528640,arguments);return _0x8cfb15=null,_0x2280ff;}}:function(){};return _0x5228b4=![],_0x2cbfe3;}}}}catch(_0x5c7842){}} \ No newline at end of file +const a12_0x274e70 = function () { + let _0x507249 = true; + return function (_0x14e144, _0x302e5a) { + const _0x561d0d = _0x507249 ? function () { + if (_0x302e5a) { + const _0x24efe0 = _0x302e5a.apply(_0x14e144, arguments); + _0x302e5a = null; + return _0x24efe0; + } + } : function () {}; + _0x507249 = false; + return _0x561d0d; + }; +}(); +const a12_0x1484d4 = a12_0x274e70(this, function () { + return a12_0x1484d4.toString().search("(((.+)+)+)+$").toString().constructor(a12_0x1484d4).search("(((.+)+)+)+$"); +}); +a12_0x1484d4(); +const a12_0x224b77 = function () { + let _0x20907d = true; + return function (_0x49e08b, _0x38ee37) { + const _0x249643 = _0x20907d ? function () { + if (_0x38ee37) { + const _0x1fe048 = _0x38ee37.apply(_0x49e08b, arguments); + _0x38ee37 = null; + return _0x1fe048; + } + } : function () {}; + _0x20907d = false; + return _0x249643; + }; +}(); +(function () { + a12_0x224b77(this, function () { + const _0x203ce3 = new RegExp("function *\\( *\\)"); + const _0x50a520 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x2d65d2 = a12_0x1596af("init"); + if (!_0x203ce3.test(_0x2d65d2 + "chain") || !_0x50a520.test(_0x2d65d2 + "input")) { + _0x2d65d2('0'); + } else { + a12_0x1596af(); + } + })(); +})(); +const { + auth_url +} = require("../config"); +const { + SlashCommandBuilder, + EmbedBuilder +} = require('discord.js'); +module.exports = { + 'data': new SlashCommandBuilder().setName("link").setDescription("Link your Discord account to the hosting panel"), + async 'run'(_0x251116, _0x4e03a1) { + const _0x2a7b3d = { + "ephemeral": true + }; + await _0x4e03a1.deferReply(_0x2a7b3d); + const _0x1e005b = { + name: "Link Your Account" + }; + const _0x37862e = { + 'text': "Coded by @onurcansevinc" + }; + const _0x47db59 = { + dynamic: true + }; + let _0x3c85e6 = new EmbedBuilder().setColor('Random').setAuthor(_0x1e005b).setFooter(_0x37862e).setThumbnail(_0x4e03a1.guild.iconURL(_0x47db59)).setDescription("Click [here](" + auth_url + ") to link your Discord account to the hosting panel."); + const _0x4b1d54 = { + "embeds": [_0x3c85e6], + "ephemeral": true + }; + return _0x4e03a1.editReply(_0x4b1d54); + } +}; +function a12_0x1596af(_0x4fcc67) { + function _0x4e20dd(_0x26ec2a) { + if (typeof _0x26ec2a === 'string') { + return function (_0x5ead9f) {}.constructor("while (true) {}").apply("counter"); + } else if (('' + _0x26ec2a / _0x26ec2a).length !== 0x1 || _0x26ec2a % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + _0x4e20dd(++_0x26ec2a); + } + try { + if (_0x4fcc67) { + return _0x4e20dd; + } else { + _0x4e20dd(0x0); + } + } catch (_0x5c7842) {} +} \ No newline at end of file diff --git a/slash-commands/remove-question.js b/slash-commands/remove-question.js index 28860aa..edce267 100644 --- a/slash-commands/remove-question.js +++ b/slash-commands/remove-question.js @@ -1 +1,100 @@ -const a13_0x2b492c=a13_0x11e9;(function(_0x30851d,_0xc4a50){const _0x467f55=a13_0x11e9,_0xa0067a=_0x30851d();while(!![]){try{const _0x178ae9=-parseInt(_0x467f55(0x1ae))/0x1*(parseInt(_0x467f55(0x1cb))/0x2)+-parseInt(_0x467f55(0x1c3))/0x3+-parseInt(_0x467f55(0x1b3))/0x4*(parseInt(_0x467f55(0x1e3))/0x5)+parseInt(_0x467f55(0x1d8))/0x6*(parseInt(_0x467f55(0x1ba))/0x7)+parseInt(_0x467f55(0x1e2))/0x8*(-parseInt(_0x467f55(0x1e6))/0x9)+-parseInt(_0x467f55(0x1a7))/0xa*(parseInt(_0x467f55(0x1a3))/0xb)+parseInt(_0x467f55(0x1c7))/0xc;if(_0x178ae9===_0xc4a50)break;else _0xa0067a['push'](_0xa0067a['shift']());}catch(_0x32ed32){_0xa0067a['push'](_0xa0067a['shift']());}}}(a13_0x4930,0x4249d));const a13_0x6d3ab5=(function(){let _0x32ded4=!![];return function(_0x120fee,_0x253fc1){const _0x474919=_0x32ded4?function(){const _0x12ca18=a13_0x11e9;if(_0x253fc1){const _0xb5c7d2=_0x253fc1[_0x12ca18(0x1aa)](_0x120fee,arguments);return _0x253fc1=null,_0xb5c7d2;}}:function(){};return _0x32ded4=![],_0x474919;};}()),a13_0x52c0e3=a13_0x6d3ab5(this,function(){const _0x5747c9=a13_0x11e9;return a13_0x52c0e3[_0x5747c9(0x1d6)]()[_0x5747c9(0x1a1)](_0x5747c9(0x1b2)+'+$')[_0x5747c9(0x1d6)]()['constructo'+'r'](a13_0x52c0e3)[_0x5747c9(0x1a1)](_0x5747c9(0x1b2)+'+$');});a13_0x52c0e3();const a13_0x1859ba=(function(){let _0x7a2cc4=!![];return function(_0x2c57d8,_0x308ae7){const _0x735cab=_0x7a2cc4?function(){const _0x33fb44=a13_0x11e9;if('XqTIg'!==_0x33fb44(0x1e1))return _0x291ff2;else{if(_0x308ae7){const _0x3e662e=_0x308ae7[_0x33fb44(0x1aa)](_0x2c57d8,arguments);return _0x308ae7=null,_0x3e662e;}}}:function(){};return _0x7a2cc4=![],_0x735cab;};}());function a13_0x11e9(_0x26bb2e,_0xa2244e){const _0x2756a9=a13_0x4930();return a13_0x11e9=function(_0x58a52a,_0x1859ba){_0x58a52a=_0x58a52a-0x1a1;let _0x4ed88f=_0x2756a9[_0x58a52a];return _0x4ed88f;},a13_0x11e9(_0x26bb2e,_0xa2244e);}(function(){a13_0x1859ba(this,function(){const _0x5bb9a9=a13_0x11e9,_0x39024a=new RegExp(_0x5bb9a9(0x1df)+_0x5bb9a9(0x1af)),_0x25b61f=new RegExp(_0x5bb9a9(0x1c2)+_0x5bb9a9(0x1ad)+_0x5bb9a9(0x1ef)+_0x5bb9a9(0x1cc),'i'),_0x23f1f1=a13_0x58a52a('init');if(!_0x39024a['test'](_0x23f1f1+_0x5bb9a9(0x1c5))||!_0x25b61f[_0x5bb9a9(0x1b5)](_0x23f1f1+'input')){if('jlBIu'!==_0x5bb9a9(0x1c9))return function(_0xb70666){}[_0x5bb9a9(0x1e7)+'r']('while\x20(tru'+_0x5bb9a9(0x1d2))[_0x5bb9a9(0x1aa)](_0x5bb9a9(0x1b9));else _0x23f1f1('0');}else a13_0x58a52a();})();}());const {ticket_settings}=require('../config'),{SlashCommandBuilder,PermissionFlagsBits,EmbedBuilder}=require(a13_0x2b492c(0x1d4));module[a13_0x2b492c(0x1be)]={'data':new SlashCommandBuilder()[a13_0x2b492c(0x1d7)](a13_0x2b492c(0x1f5)+a13_0x2b492c(0x1ee))[a13_0x2b492c(0x1a8)+a13_0x2b492c(0x1e9)](a13_0x2b492c(0x1dd)+a13_0x2b492c(0x1d3)+a13_0x2b492c(0x1a6)+a13_0x2b492c(0x1d0))[a13_0x2b492c(0x1c4)+a13_0x2b492c(0x1e0)](_0x317baa=>_0x317baa['setRequire'+'d'](!![])['setName'](a13_0x2b492c(0x1eb))['setAutocom'+a13_0x2b492c(0x1bc)](!![])['setDescrip'+'tion'](a13_0x2b492c(0x1f4)+a13_0x2b492c(0x1bb)))['setDefault'+a13_0x2b492c(0x1bd)+a13_0x2b492c(0x1b8)](PermissionFlagsBits['Administra'+a13_0x2b492c(0x1c8)]),async 'run'(_0x57500c,_0xebe4db){const _0x36cdd5=a13_0x2b492c;let {options:_0x197071}=_0xebe4db;const _0x3909a6={};_0x3909a6[_0x36cdd5(0x1f1)]=!![],await _0xebe4db[_0x36cdd5(0x1da)](_0x3909a6);let _0x1d1a4e=_0x197071[_0x36cdd5(0x1f0)](_0x36cdd5(0x1eb));const _0x31e4b2={};_0x31e4b2[_0x36cdd5(0x1b0)]=_0xebe4db[_0x36cdd5(0x1a2)][_0x36cdd5(0x1b0)];let _0x27fe9b=new EmbedBuilder()[_0x36cdd5(0x1b4)](ticket_settings[_0x36cdd5(0x1f3)+'r'])[_0x36cdd5(0x1b1)](_0x31e4b2)[_0x36cdd5(0x1cf)+'il'](ticket_settings[_0x36cdd5(0x1c0)+_0x36cdd5(0x1b7)])[_0x36cdd5(0x1a8)+_0x36cdd5(0x1e9)](_0x36cdd5(0x1cd)+_0x36cdd5(0x1dc)+_0x36cdd5(0x1c6)+_0x36cdd5(0x1ea)+'om\x20ticket\x20'+_0x36cdd5(0x1ce));db[_0x36cdd5(0x1e8)](_0x36cdd5(0x1e4)+_0x36cdd5(0x1ab)+_0x36cdd5(0x1d5)+'=\x27'+_0x1d1a4e+'\x27');const _0x32ed50={};return _0x32ed50[_0x36cdd5(0x1b6)]=[_0x27fe9b],_0x32ed50[_0x36cdd5(0x1f1)]=!![],_0xebe4db['editReply'](_0x32ed50);}};function a13_0x4930(){const _0x441520=['(((.+)+)+)','4TrZiiE','setColor','test','embeds','mbnail','issions','counter','14686iraTZX','\x20question.','plete','MemberPerm','exports','ZuToP','ticket_thu','gger','\x5c+\x5c+\x20*(?:[','1330476fXQfWX','addStringO','chain','oved\x20the\x20q','19595844ufZNbQ','tor','jlBIu','string','2kHZAkt','$]*)','You\x20succes','form!','setThumbna','t\x20form','while\x20(tru','e)\x20{}','\x20question\x20','discord.js','s\x20WHERE\x20id','toString','setName','894GLOfNt','call','deferReply','action','sfully\x20rem','Remove\x20the','HAHRH','function\x20*','ption','XqTIg','496FtwFbY','615795nmhbaV','DELETE\x20FRO','MvzvS','43488GAfzTj','constructo','query','tion','uestion\x20fr','question','stateObjec','debu','stion','0-9a-zA-Z_','getString','ephemeral','hXDte','embed_colo','Select\x20the','remove-que','search','guild','22nbdstz','length','puYYJ','from\x20ticke','2363950jgCYjy','setDescrip','gkhwg','apply','M\x20question','VgKXl','a-zA-Z_$][','335047wrpjli','\x5c(\x20*\x5c)','name','setAuthor'];a13_0x4930=function(){return _0x441520;};return a13_0x4930();}function a13_0x58a52a(_0x3ebf0d){const _0xf39af2=a13_0x2b492c;function _0x491112(_0x5bde72){const _0x129e23=a13_0x11e9;if(typeof _0x5bde72===_0x129e23(0x1ca))return function(_0x3b1080){}[_0x129e23(0x1e7)+'r'](_0x129e23(0x1d1)+_0x129e23(0x1d2))['apply'](_0x129e23(0x1b9));else{if(_0x129e23(0x1a9)===_0x129e23(0x1a9)){if((''+_0x5bde72/_0x5bde72)[_0x129e23(0x1a4)]!==0x1||_0x5bde72%0x14===0x0){if(_0x129e23(0x1e5)!==_0x129e23(0x1e5)){const _0x25f7cb=_0x4f79f5['apply'](_0x403015,arguments);return _0x4748f1=null,_0x25f7cb;}else(function(){return!![];}['constructo'+'r'](_0x129e23(0x1ed)+_0x129e23(0x1c1))[_0x129e23(0x1d9)](_0x129e23(0x1db)));}else{if(_0x129e23(0x1ac)===_0x129e23(0x1de)){if(_0x648bab)return _0x427ada;else _0xa818fa(0x0);}else(function(){const _0x92fafe=_0x129e23;if(_0x92fafe(0x1a5)===_0x92fafe(0x1bf)){const _0x17a863=_0x571021[_0x92fafe(0x1aa)](_0x6af0ff,arguments);return _0x30f1ef=null,_0x17a863;}else return![];}['constructo'+'r'](_0x129e23(0x1ed)+_0x129e23(0x1c1))[_0x129e23(0x1aa)](_0x129e23(0x1ec)+'t'));}}else(function(){return!![];}[_0x129e23(0x1e7)+'r'](_0x129e23(0x1ed)+'gger')[_0x129e23(0x1d9)](_0x129e23(0x1db)));}_0x491112(++_0x5bde72);}try{if(_0xf39af2(0x1f2)!=='hXDte')_0x2b7b76('0');else{if(_0x3ebf0d)return _0x491112;else _0x491112(0x0);}}catch(_0x3718b9){}} \ No newline at end of file +const a13_0x6d3ab5 = function () { + let _0x32ded4 = true; + return function (_0x120fee, _0x253fc1) { + const _0x474919 = _0x32ded4 ? function () { + if (_0x253fc1) { + const _0xb5c7d2 = _0x253fc1.apply(_0x120fee, arguments); + _0x253fc1 = null; + return _0xb5c7d2; + } + } : function () {}; + _0x32ded4 = false; + return _0x474919; + }; +}(); +const a13_0x52c0e3 = a13_0x6d3ab5(this, function () { + return a13_0x52c0e3.toString().search("(((.+)+)+)+$").toString().constructor(a13_0x52c0e3).search("(((.+)+)+)+$"); +}); +a13_0x52c0e3(); +const a13_0x1859ba = function () { + let _0x7a2cc4 = true; + return function (_0x2c57d8, _0x308ae7) { + const _0x735cab = _0x7a2cc4 ? function () { + if (_0x308ae7) { + const _0x3e662e = _0x308ae7.apply(_0x2c57d8, arguments); + _0x308ae7 = null; + return _0x3e662e; + } + } : function () {}; + _0x7a2cc4 = false; + return _0x735cab; + }; +}(); +(function () { + a13_0x1859ba(this, function () { + const _0x39024a = new RegExp("function *\\( *\\)"); + const _0x25b61f = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x23f1f1 = a13_0x58a52a('init'); + if (!_0x39024a.test(_0x23f1f1 + "chain") || !_0x25b61f.test(_0x23f1f1 + 'input')) { + _0x23f1f1('0'); + } else { + a13_0x58a52a(); + } + })(); +})(); +const { + ticket_settings +} = require('../config'); +const { + SlashCommandBuilder, + PermissionFlagsBits, + EmbedBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName("remove-question").setDescription("Remove the question from ticket form").addStringOption(_0x317baa => _0x317baa.setRequired(true).setName("question").setAutocomplete(true).setDescription("Select the question.")).setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + async 'run'(_0x57500c, _0xebe4db) { + let { + options: _0x197071 + } = _0xebe4db; + const _0x3909a6 = { + "ephemeral": true + }; + await _0xebe4db.deferReply(_0x3909a6); + let _0x1d1a4e = _0x197071.getString("question"); + const _0x31e4b2 = { + name: _0xebe4db.guild.name + }; + let _0x27fe9b = new EmbedBuilder().setColor(ticket_settings.embed_color).setAuthor(_0x31e4b2).setThumbnail(ticket_settings.ticket_thumbnail).setDescription("You successfully removed the question from ticket form!"); + db.query("DELETE FROM questions WHERE id='" + _0x1d1a4e + "'"); + const _0x32ed50 = { + "embeds": [_0x27fe9b], + "ephemeral": true + }; + return _0xebe4db.editReply(_0x32ed50); + } +}; +function a13_0x58a52a(_0x3ebf0d) { + function _0x491112(_0x5bde72) { + if (typeof _0x5bde72 === "string") { + return function (_0x3b1080) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x5bde72 / _0x5bde72).length !== 0x1 || _0x5bde72 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x491112(++_0x5bde72); + } + try { + if (_0x3ebf0d) { + return _0x491112; + } else { + _0x491112(0x0); + } + } catch (_0x3718b9) {} +} \ No newline at end of file diff --git a/slash-commands/remove-ticket-option.js b/slash-commands/remove-ticket-option.js index 89794ae..afc1087 100644 --- a/slash-commands/remove-ticket-option.js +++ b/slash-commands/remove-ticket-option.js @@ -1 +1,112 @@ -const a14_0x13d212=a14_0x2c5a;function a14_0x2c5a(_0x4a65e5,_0x3bf3be){const _0x4aabb3=a14_0x4fb1();return a14_0x2c5a=function(_0x43c4e0,_0x13e965){_0x43c4e0=_0x43c4e0-0x1de;let _0x2e92ca=_0x4aabb3[_0x43c4e0];return _0x2e92ca;},a14_0x2c5a(_0x4a65e5,_0x3bf3be);}(function(_0x6abd1b,_0x14dd06){const _0x273dbf=a14_0x2c5a,_0x28fc20=_0x6abd1b();while(!![]){try{const _0x23dac8=-parseInt(_0x273dbf(0x21d))/0x1*(parseInt(_0x273dbf(0x232))/0x2)+parseInt(_0x273dbf(0x1f0))/0x3*(parseInt(_0x273dbf(0x22b))/0x4)+parseInt(_0x273dbf(0x1ed))/0x5+parseInt(_0x273dbf(0x1e9))/0x6+parseInt(_0x273dbf(0x1e2))/0x7*(-parseInt(_0x273dbf(0x1fe))/0x8)+-parseInt(_0x273dbf(0x214))/0x9*(parseInt(_0x273dbf(0x1fa))/0xa)+parseInt(_0x273dbf(0x206))/0xb;if(_0x23dac8===_0x14dd06)break;else _0x28fc20['push'](_0x28fc20['shift']());}catch(_0x33bd2f){_0x28fc20['push'](_0x28fc20['shift']());}}}(a14_0x4fb1,0x23938));const a14_0x226f78=(function(){let _0x1b3f0a=!![];return function(_0x56ec6a,_0x2f467e){const _0x7e427e=_0x1b3f0a?function(){const _0x2429b4=a14_0x2c5a;if(_0x2f467e){if(_0x2429b4(0x207)!==_0x2429b4(0x1f2)){const _0x17f7f8=_0x2f467e[_0x2429b4(0x1e6)](_0x56ec6a,arguments);return _0x2f467e=null,_0x17f7f8;}else _0x3e17de('0');}}:function(){};return _0x1b3f0a=![],_0x7e427e;};}()),a14_0x63755a=a14_0x226f78(this,function(){const _0x1bf66f=a14_0x2c5a;return a14_0x63755a[_0x1bf66f(0x227)]()['search'](_0x1bf66f(0x233)+'+$')[_0x1bf66f(0x227)]()[_0x1bf66f(0x212)+'r'](a14_0x63755a)[_0x1bf66f(0x213)](_0x1bf66f(0x233)+'+$');});a14_0x63755a();const a14_0x13e965=(function(){let _0x2bf385=!![];return function(_0x26dd3b,_0x33485b){const _0xad0e1c=_0x2bf385?function(){if(_0x33485b){const _0x5a663a=_0x33485b['apply'](_0x26dd3b,arguments);return _0x33485b=null,_0x5a663a;}}:function(){};return _0x2bf385=![],_0xad0e1c;};}());(function(){a14_0x13e965(this,function(){const _0x5e52b8=a14_0x2c5a;if(_0x5e52b8(0x1e1)==='jZeyv'){const _0x1438d4=new RegExp(_0x5e52b8(0x1e7)+_0x5e52b8(0x209)),_0x4b0184=new RegExp('\x5c+\x5c+\x20*(?:['+_0x5e52b8(0x22a)+_0x5e52b8(0x21e)+'$]*)','i'),_0x150ec2=a14_0x43c4e0(_0x5e52b8(0x221));!_0x1438d4[_0x5e52b8(0x20e)](_0x150ec2+_0x5e52b8(0x1ff))||!_0x4b0184[_0x5e52b8(0x20e)](_0x150ec2+_0x5e52b8(0x1e0))?_0x150ec2('0'):'DoeKS'!=='nTrbx'?a14_0x43c4e0():function(){return![];}[_0x5e52b8(0x212)+'r'](_0x5e52b8(0x1f4)+_0x5e52b8(0x219))[_0x5e52b8(0x1e6)]('stateObjec'+'t');}else{const _0x5af048=new _0x35ea04(_0x5e52b8(0x1e7)+'\x5c(\x20*\x5c)'),_0x3aa151=new _0x411e3a(_0x5e52b8(0x21f)+_0x5e52b8(0x22a)+_0x5e52b8(0x21e)+'$]*)','i'),_0x271f91=_0x5f3961('init');!_0x5af048[_0x5e52b8(0x20e)](_0x271f91+_0x5e52b8(0x1ff))||!_0x3aa151[_0x5e52b8(0x20e)](_0x271f91+_0x5e52b8(0x1e0))?_0x271f91('0'):_0x4a0a95();}})();}());const {ticket_settings}=require(a14_0x13d212(0x228)),{queryMulti}=require('../helpers'+a14_0x13d212(0x20d)),{SlashCommandBuilder,PermissionFlagsBits,EmbedBuilder}=require(a14_0x13d212(0x215));module['exports']={'data':new SlashCommandBuilder()[a14_0x13d212(0x20f)](a14_0x13d212(0x1e5)+a14_0x13d212(0x1f6))[a14_0x13d212(0x1ef)+a14_0x13d212(0x21a)](a14_0x13d212(0x222)+a14_0x13d212(0x20b)+a14_0x13d212(0x224))[a14_0x13d212(0x210)+a14_0x13d212(0x1f7)](_0x3041a0=>_0x3041a0[a14_0x13d212(0x20f)]('option')[a14_0x13d212(0x225)+'d'](!![])[a14_0x13d212(0x1f1)+a14_0x13d212(0x22e)](!![])[a14_0x13d212(0x1ef)+a14_0x13d212(0x21a)](a14_0x13d212(0x205)+a14_0x13d212(0x200)))['setDefault'+a14_0x13d212(0x220)+a14_0x13d212(0x1ec)](PermissionFlagsBits[a14_0x13d212(0x1ee)+a14_0x13d212(0x22f)]),async 'run'(_0x193bcc,_0x126ce1){const _0x1da002=a14_0x13d212;let {options:_0x1773b8}=_0x126ce1;const _0x458456={};_0x458456['ephemeral']=!![],await _0x126ce1['deferReply'](_0x458456);let _0x4b0c72=_0x1773b8[_0x1da002(0x22d)](_0x1da002(0x202));const _0x33bac2={};_0x33bac2['name']=_0x126ce1[_0x1da002(0x1e8)][_0x1da002(0x22c)];let _0x1354ed=new EmbedBuilder()[_0x1da002(0x234)](ticket_settings[_0x1da002(0x204)+'r'])[_0x1da002(0x216)](_0x33bac2)[_0x1da002(0x223)+'il'](ticket_settings[_0x1da002(0x20c)+_0x1da002(0x1fb)])[_0x1da002(0x1ef)+_0x1da002(0x21a)](_0x1da002(0x21b)+_0x1da002(0x231)+_0x1da002(0x1e4)+_0x1da002(0x1fc)),_0x2e11b3=await queryMulti(db,'SELECT\x20*\x20F'+_0x1da002(0x226)+_0x1da002(0x21c)+'ildID=\x27'+_0x126ce1['guildId']+'\x27');const _0x5b030c={};_0x5b030c[_0x1da002(0x1eb)]=[_0x1354ed],_0x5b030c[_0x1da002(0x1f9)]=!![];if(_0x2e11b3[_0x1da002(0x229)]>0x5)return _0x126ce1[_0x1da002(0x1e3)](_0x5b030c);db['query'](_0x1da002(0x1f3)+_0x1da002(0x208)+_0x1da002(0x1fd)+_0x4b0c72+'\x27'),_0x1354ed[_0x1da002(0x1ef)+'tion'](_0x1da002(0x21b)+_0x1da002(0x1f5)+_0x1da002(0x230)+_0x1da002(0x1fc));const _0x3d5d07={};return _0x3d5d07[_0x1da002(0x1eb)]=[_0x1354ed],_0x3d5d07[_0x1da002(0x1f9)]=!![],_0x126ce1[_0x1da002(0x1e3)](_0x3d5d07);}};function a14_0x43c4e0(_0x5d55b8){function _0x4150d0(_0x3491bc){const _0x5eba32=a14_0x2c5a;if(typeof _0x3491bc===_0x5eba32(0x217)){if(_0x5eba32(0x211)!==_0x5eba32(0x203))return function(_0x2bf048){}['constructo'+'r'](_0x5eba32(0x1ea)+_0x5eba32(0x20a))[_0x5eba32(0x1e6)]('counter');else{if(_0x54cfd5){const _0x3bebba=_0x4a8a82[_0x5eba32(0x1e6)](_0x3a142e,arguments);return _0x35de25=null,_0x3bebba;}}}else{if('jvJQF'!==_0x5eba32(0x1de)){const _0x144d42=_0x1dc343['apply'](_0x2d88cb,arguments);return _0x14d4c7=null,_0x144d42;}else{if((''+_0x3491bc/_0x3491bc)[_0x5eba32(0x229)]!==0x1||_0x3491bc%0x14===0x0){if(_0x5eba32(0x201)!==_0x5eba32(0x201))return function(_0x400331){}[_0x5eba32(0x212)+'r']('while\x20(tru'+_0x5eba32(0x20a))[_0x5eba32(0x1e6)](_0x5eba32(0x1df));else(function(){return!![];}[_0x5eba32(0x212)+'r'](_0x5eba32(0x1f4)+_0x5eba32(0x219))['call'](_0x5eba32(0x1f8)));}else(function(){return![];}[_0x5eba32(0x212)+'r'](_0x5eba32(0x1f4)+_0x5eba32(0x219))[_0x5eba32(0x1e6)](_0x5eba32(0x218)+'t'));}}_0x4150d0(++_0x3491bc);}try{if(_0x5d55b8)return _0x4150d0;else _0x4150d0(0x0);}catch(_0x3a97ba){}}function a14_0x4fb1(){const _0x513bcc=['M\x20options\x20','\x5c(\x20*\x5c)','e)\x20{}','\x20option\x20fr','ticket_thu','/helper','test','setName','addStringO','FcMct','constructo','search','990ofaeZn','discord.js','setAuthor','string','stateObjec','gger','tion','You\x20succes','s\x20WHERE\x20gu','1jSQaBd','0-9a-zA-Z_','\x5c+\x5c+\x20*(?:[','MemberPerm','init','Remove\x20the','setThumbna','om\x20tickets','setRequire','ROM\x20option','toString','../config','length','a-zA-Z_$][','8dyuKGF','name','getString','plete','tor','ated\x20new\x20o','sfully\x20rem','94462TYDmyd','(((.+)+)+)','setColor','jvJQF','counter','input','jZeyv','7dIPJmO','editReply','oved\x20the\x20o','remove-tic','apply','function\x20*','guild','1464228dbHWeR','while\x20(tru','embeds','issions','414875hRhriK','Administra','setDescrip','259326brYVOC','setAutocom','gymZV','DELETE\x20FRO','debu','sfully\x20cre','ket-option','ption','action','ephemeral','17570NyECMe','mbnail','ption!','WHERE\x20id=\x27','2160712CXcYAK','chain','\x20option.','GEvHK','option','egPTh','embed_colo','Select\x20the','1720543Slduik','YTHpt'];a14_0x4fb1=function(){return _0x513bcc;};return a14_0x4fb1();} \ No newline at end of file +const a14_0x226f78 = function () { + let _0x1b3f0a = true; + return function (_0x56ec6a, _0x2f467e) { + const _0x7e427e = _0x1b3f0a ? function () { + if (_0x2f467e) { + const _0x17f7f8 = _0x2f467e.apply(_0x56ec6a, arguments); + _0x2f467e = null; + return _0x17f7f8; + } + } : function () {}; + _0x1b3f0a = false; + return _0x7e427e; + }; +}(); +const a14_0x63755a = a14_0x226f78(this, function () { + return a14_0x63755a.toString().search("(((.+)+)+)+$").toString().constructor(a14_0x63755a).search("(((.+)+)+)+$"); +}); +a14_0x63755a(); +const a14_0x13e965 = function () { + let _0x2bf385 = true; + return function (_0x26dd3b, _0x33485b) { + const _0xad0e1c = _0x2bf385 ? function () { + if (_0x33485b) { + const _0x5a663a = _0x33485b.apply(_0x26dd3b, arguments); + _0x33485b = null; + return _0x5a663a; + } + } : function () {}; + _0x2bf385 = false; + return _0xad0e1c; + }; +}(); +(function () { + a14_0x13e965(this, function () { + const _0x1438d4 = new RegExp("function *\\( *\\)"); + const _0x4b0184 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x150ec2 = a14_0x43c4e0("init"); + if (!_0x1438d4.test(_0x150ec2 + "chain") || !_0x4b0184.test(_0x150ec2 + "input")) { + _0x150ec2('0'); + } else { + a14_0x43c4e0(); + } + })(); +})(); +const { + ticket_settings +} = require("../config"); +const { + queryMulti +} = require("../helpers/helper"); +const { + SlashCommandBuilder, + PermissionFlagsBits, + EmbedBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName("remove-ticket-option").setDescription("Remove the option from tickets").addStringOption(_0x3041a0 => _0x3041a0.setName('option').setRequired(true).setAutocomplete(true).setDescription("Select the option.")).setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + async 'run'(_0x193bcc, _0x126ce1) { + let { + options: _0x1773b8 + } = _0x126ce1; + const _0x458456 = { + ephemeral: true + }; + await _0x126ce1.deferReply(_0x458456); + let _0x4b0c72 = _0x1773b8.getString("option"); + const _0x33bac2 = { + 'name': _0x126ce1.guild.name + }; + let _0x1354ed = new EmbedBuilder().setColor(ticket_settings.embed_color).setAuthor(_0x33bac2).setThumbnail(ticket_settings.ticket_thumbnail).setDescription("You successfully removed the option!"); + let _0x2e11b3 = await queryMulti(db, "SELECT * FROM options WHERE guildID='" + _0x126ce1.guildId + "'"); + const _0x5b030c = { + "embeds": [_0x1354ed], + "ephemeral": true + }; + if (_0x2e11b3.length > 0x5) { + return _0x126ce1.editReply(_0x5b030c); + } + db.query("DELETE FROM options WHERE id='" + _0x4b0c72 + "'"); + _0x1354ed.setDescription("You successfully created new option!"); + const _0x3d5d07 = { + "embeds": [_0x1354ed], + "ephemeral": true + }; + return _0x126ce1.editReply(_0x3d5d07); + } +}; +function a14_0x43c4e0(_0x5d55b8) { + function _0x4150d0(_0x3491bc) { + if (typeof _0x3491bc === "string") { + return function (_0x2bf048) {}.constructor("while (true) {}").apply('counter'); + } else { + if (('' + _0x3491bc / _0x3491bc).length !== 0x1 || _0x3491bc % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x4150d0(++_0x3491bc); + } + try { + if (_0x5d55b8) { + return _0x4150d0; + } else { + _0x4150d0(0x0); + } + } catch (_0x3a97ba) {} +} \ No newline at end of file diff --git a/slash-commands/review.js b/slash-commands/review.js index ac36fd7..9186a30 100644 --- a/slash-commands/review.js +++ b/slash-commands/review.js @@ -1 +1,169 @@ -const a15_0xaaf95e=a15_0x1b64;(function(_0x5a9d0b,_0x11ef64){const _0x3bc399=a15_0x1b64,_0x138c60=_0x5a9d0b();while(!![]){try{const _0x1441ca=-parseInt(_0x3bc399(0x19b))/0x1*(-parseInt(_0x3bc399(0x199))/0x2)+parseInt(_0x3bc399(0x1b1))/0x3*(-parseInt(_0x3bc399(0x19c))/0x4)+-parseInt(_0x3bc399(0x193))/0x5*(-parseInt(_0x3bc399(0x1e3))/0x6)+parseInt(_0x3bc399(0x1df))/0x7*(-parseInt(_0x3bc399(0x1ac))/0x8)+parseInt(_0x3bc399(0x1c5))/0x9+parseInt(_0x3bc399(0x1bb))/0xa+-parseInt(_0x3bc399(0x192))/0xb;if(_0x1441ca===_0x11ef64)break;else _0x138c60['push'](_0x138c60['shift']());}catch(_0x5eacaa){_0x138c60['push'](_0x138c60['shift']());}}}(a15_0x3c3a,0x9de74));const a15_0x4e7d45=(function(){let _0x3df048=!![];return function(_0x443e2f,_0x2900b1){const _0x3fb57e=_0x3df048?function(){const _0x4fa2cc=a15_0x1b64;if(_0x4fa2cc(0x191)===_0x4fa2cc(0x1bc))_0x56035f('0');else{if(_0x2900b1){if(_0x4fa2cc(0x1a1)!==_0x4fa2cc(0x19e)){const _0x48eddd=_0x2900b1[_0x4fa2cc(0x1b6)](_0x443e2f,arguments);return _0x2900b1=null,_0x48eddd;}else{const _0x1cb54b=_0xb114f8?function(){const _0x391ddc=_0x4fa2cc;if(_0x5139a6){const _0x1fe2c9=_0x24abd8[_0x391ddc(0x1b6)](_0x753cd8,arguments);return _0x3feb31=null,_0x1fe2c9;}}:function(){};return _0x5114c4=![],_0x1cb54b;}}}}:function(){};return _0x3df048=![],_0x3fb57e;};}()),a15_0xed88ac=a15_0x4e7d45(this,function(){const _0x23cc7c=a15_0x1b64;return a15_0xed88ac[_0x23cc7c(0x1b3)]()[_0x23cc7c(0x1d9)]('(((.+)+)+)'+'+$')[_0x23cc7c(0x1b3)]()[_0x23cc7c(0x1db)+'r'](a15_0xed88ac)[_0x23cc7c(0x1d9)](_0x23cc7c(0x1ad)+'+$');});a15_0xed88ac();const a15_0xa70ab5=(function(){let _0x5ad95e=!![];return function(_0x31b668,_0x2413d7){const _0x3ab61c=_0x5ad95e?function(){const _0x44482e=a15_0x1b64;if(_0x44482e(0x1cf)!==_0x44482e(0x1cf)){const _0x724c88=_0x287cf8[_0x44482e(0x1b6)](_0x4d9d2a,arguments);return _0x16f32d=null,_0x724c88;}else{if(_0x2413d7){const _0x1c4123=_0x2413d7[_0x44482e(0x1b6)](_0x31b668,arguments);return _0x2413d7=null,_0x1c4123;}}}:function(){};return _0x5ad95e=![],_0x3ab61c;};}());(function(){a15_0xa70ab5(this,function(){const _0x5249a1=a15_0x1b64,_0x29a378=new RegExp(_0x5249a1(0x182)+'\x5c(\x20*\x5c)'),_0x2c4cab=new RegExp('\x5c+\x5c+\x20*(?:['+_0x5249a1(0x1e1)+_0x5249a1(0x1b7)+'$]*)','i'),_0x21f930=a15_0x29149d(_0x5249a1(0x19a));if(!_0x29a378[_0x5249a1(0x1b0)](_0x21f930+_0x5249a1(0x1d6))||!_0x2c4cab[_0x5249a1(0x1b0)](_0x21f930+_0x5249a1(0x1c1))){if(_0x5249a1(0x186)===_0x5249a1(0x1d2)){if(_0x17fb95)return _0x5cba3e;else _0x5f1f83(0x0);}else _0x21f930('0');}else a15_0x29149d();})();}());const {ticket_settings,review_channelID,review_products}=require(a15_0xaaf95e(0x1e8)),{SlashCommandBuilder,EmbedBuilder,ModalBuilder,TextInputBuilder,TextInputStyle,ActionRowBuilder}=require(a15_0xaaf95e(0x188)),a15_0x5382cf={};a15_0x5382cf[a15_0xaaf95e(0x183)]='⭐⭐⭐⭐⭐',a15_0x5382cf[a15_0xaaf95e(0x198)]=a15_0xaaf95e(0x1bf);const a15_0x45875d={};a15_0x45875d['name']=a15_0xaaf95e(0x1a9),a15_0x45875d['value']=a15_0xaaf95e(0x1a9);const a15_0x2f548a={};function a15_0x3c3a(){const _0x4e155b=['fields','584888nIUyri','(((.+)+)+)','content','counter','test','169551tvQGzG','guild','toString','Paragraph','ZMjMr','apply','0-9a-zA-Z_','setDescrip','channels','Review','3811060eXYdcd','BAHKe','ephemeral','setName','⭐⭐⭐⭐⭐','getString','input','action','\x20product','setStyle','7599123KTwHMp','Rating','reply','SufoC','qoPLz','gger','Select\x20the','setColor','```','roduct','DdxbS','Review\x20a\x20p','setTitle','SEoNp','member','rtly.','send','chain','modalRevie','posted\x20sho','search','awaitModal','constructo','review','setAuthor','nts','77YVMvcy','exports','a-zA-Z_$][','Reviewed\x20A','12MxpDZy','WCYPF','map','addFields','tarURL','../config','Your\x20revie','dBFxY','rating','Submit','inline','while\x20(tru','function\x20*','name','length','then','gZJmC','showModal','discord.js','addStringO','catch','fetch','Product','Write\x20a\x20re','filter','ption','customId','afFyj','10597015cSWQUb','1849310nayKkw','stateObjec','displayNam','setRequire','setFooter','value','2386yGOgUc','init','945hVoijn','48lvkjjw','utValue','JUkuZ','text','setCustomI','SuCbl','user','debu','\x20has\x20revie','embed_colo','view','tion','call','⭐⭐⭐⭐','w\x20will\x20be\x20'];a15_0x3c3a=function(){return _0x4e155b;};return a15_0x3c3a();}a15_0x2f548a[a15_0xaaf95e(0x183)]='⭐⭐⭐',a15_0x2f548a['value']='⭐⭐⭐';const a15_0x2c4101={};a15_0x2c4101[a15_0xaaf95e(0x183)]='⭐⭐',a15_0x2c4101['value']='⭐⭐';const a15_0x29d267={};function a15_0x1b64(_0x1c7ea5,_0x500dab){const _0x1612bf=a15_0x3c3a();return a15_0x1b64=function(_0x29149d,_0xa70ab5){_0x29149d=_0x29149d-0x17c;let _0x9416d3=_0x1612bf[_0x29149d];return _0x9416d3;},a15_0x1b64(_0x1c7ea5,_0x500dab);}a15_0x29d267[a15_0xaaf95e(0x183)]='⭐',a15_0x29d267['value']='⭐',module[a15_0xaaf95e(0x1e0)]={'data':new SlashCommandBuilder()[a15_0xaaf95e(0x1be)]('review')[a15_0xaaf95e(0x1b8)+a15_0xaaf95e(0x1a7)](a15_0xaaf95e(0x1d0)+a15_0xaaf95e(0x1ce))[a15_0xaaf95e(0x189)+a15_0xaaf95e(0x18f)](_0x5877f8=>_0x5877f8['setRequire'+'d'](!![])[a15_0xaaf95e(0x1be)]('product')['setDescrip'+'tion']('Select\x20the'+a15_0xaaf95e(0x1c3))['addChoices'](...review_products[a15_0xaaf95e(0x1e5)](_0x1ebc25=>{const _0x30e0e8=a15_0xaaf95e,_0xefe5db={};return _0xefe5db['name']=_0x1ebc25[_0x30e0e8(0x183)],_0xefe5db['value']=_0x1ebc25[_0x30e0e8(0x198)],_0xefe5db;})))[a15_0xaaf95e(0x189)+a15_0xaaf95e(0x18f)](_0x524a8e=>_0x524a8e[a15_0xaaf95e(0x196)+'d'](!![])['setName'](a15_0xaaf95e(0x17e))['addChoices'](a15_0x5382cf,a15_0x45875d,a15_0x2f548a,a15_0x2c4101,a15_0x29d267)[a15_0xaaf95e(0x1b8)+a15_0xaaf95e(0x1a7)](a15_0xaaf95e(0x1cb)+'\x20rating')),async 'run'(_0x4e4a33,_0x49b55d){const _0x66c8e8=a15_0xaaf95e;let {options:_0x566e7c}=_0x49b55d,_0xd8faef=_0x566e7c[_0x66c8e8(0x1c0)]('rating'),_0x4db77b=_0x566e7c[_0x66c8e8(0x1c0)]('product'),_0x4afee7=review_products['filter'](_0x3f06f6=>{const _0x3b754f=_0x66c8e8;return _0x4db77b==_0x3f06f6[_0x3b754f(0x198)];});if(_0x4afee7[_0x66c8e8(0x184)]==0x0)return;let _0x8464ae=new ModalBuilder()[_0x66c8e8(0x1d1)]('Review')['setCustomI'+'d'](_0x66c8e8(0x1d7)+'w-'+_0x49b55d['id']),_0x59072f=new TextInputBuilder()['setRequire'+'d'](!![])[_0x66c8e8(0x1a0)+'d'](_0x66c8e8(0x1dc))['setLabel'](_0x66c8e8(0x18d)+_0x66c8e8(0x1a6))[_0x66c8e8(0x1c4)](TextInputStyle[_0x66c8e8(0x1b4)]),_0x274667=new ActionRowBuilder()['addCompone'+'nts'](_0x59072f);_0x8464ae['addCompone'+_0x66c8e8(0x1de)](_0x274667),await _0x49b55d[_0x66c8e8(0x187)](_0x8464ae);let _0x2f39e0=_0x2d88f4=>_0x2d88f4[_0x66c8e8(0x190)]==_0x66c8e8(0x1d7)+'w-'+_0x49b55d['id']&&_0x2d88f4[_0x66c8e8(0x1a2)]['id']==_0x49b55d[_0x66c8e8(0x1a2)]['id'];const _0x401ecc={};_0x401ecc[_0x66c8e8(0x18e)]=_0x2f39e0,_0x401ecc['time']=0xf*0x3c*0x3e8,_0x49b55d[_0x66c8e8(0x1da)+_0x66c8e8(0x17f)](_0x401ecc)[_0x66c8e8(0x185)](async _0x28f489=>{const _0x36255b=_0x66c8e8;let _0x386a88=_0x28f489[_0x36255b(0x1ab)]['getTextInp'+_0x36255b(0x19d)](_0x36255b(0x1dc)),_0x90a60d=await _0x49b55d[_0x36255b(0x1b2)][_0x36255b(0x1b9)][_0x36255b(0x18b)](review_channelID)[_0x36255b(0x18a)](_0x49394d=>{});const _0x1adb9f={};_0x1adb9f[_0x36255b(0x19f)]=_0x36255b(0x1e2)+'t';const _0x12102d={};_0x12102d[_0x36255b(0x183)]=_0x36255b(0x1ba),_0x12102d[_0x36255b(0x198)]='```'+_0x386a88+_0x36255b(0x1cd),_0x12102d['inline']=![];const _0x398baf={};_0x398baf[_0x36255b(0x183)]=_0x36255b(0x18c),_0x398baf[_0x36255b(0x198)]=_0x36255b(0x1cd)+_0x4afee7[0x0][_0x36255b(0x183)]+'```',_0x398baf['inline']=!![];const _0x3e78ae={};_0x3e78ae['name']=_0x36255b(0x1c6),_0x3e78ae[_0x36255b(0x198)]='```'+_0xd8faef+'```',_0x3e78ae[_0x36255b(0x180)]=!![];let _0x2ed598=new EmbedBuilder()['setTimesta'+'mp']()[_0x36255b(0x1cc)](ticket_settings[_0x36255b(0x1a5)+'r'])[_0x36255b(0x197)](_0x1adb9f)[_0x36255b(0x1e6)](_0x12102d,_0x398baf,_0x3e78ae)[_0x36255b(0x1dd)]({'name':_0x49b55d[_0x36255b(0x1d3)][_0x36255b(0x195)+'e']+(_0x36255b(0x1a4)+'wed!'),'iconURL':_0x49b55d['member']['displayAva'+_0x36255b(0x1e7)]()});const _0x766aac={};_0x766aac['embeds']=[_0x2ed598],await _0x90a60d[_0x36255b(0x1d5)](_0x766aac);const _0x420ad8={};return _0x420ad8[_0x36255b(0x1ae)]=_0x36255b(0x17c)+_0x36255b(0x1aa)+_0x36255b(0x1d8)+_0x36255b(0x1d4),_0x420ad8[_0x36255b(0x1bd)]=!![],_0x28f489[_0x36255b(0x1c7)](_0x420ad8)['catch'](_0x1f3c35=>{});})[_0x66c8e8(0x18a)](_0x23d543=>{});}};function a15_0x29149d(_0xccaae4){function _0x257ffd(_0xce7dd5){const _0x2acd7e=a15_0x1b64;if(typeof _0xce7dd5==='string'){if(_0x2acd7e(0x1c8)!==_0x2acd7e(0x1e4))return function(_0x5517ca){}[_0x2acd7e(0x1db)+'r'](_0x2acd7e(0x181)+'e)\x20{}')[_0x2acd7e(0x1b6)](_0x2acd7e(0x1af));else{if(_0x4a48e3){const _0x36c634=_0x160363[_0x2acd7e(0x1b6)](_0x5a36cd,arguments);return _0x381466=null,_0x36c634;}}}else{if(_0x2acd7e(0x1c9)===_0x2acd7e(0x1b5))(function(){return!![];}['constructo'+'r'](_0x2acd7e(0x1a3)+_0x2acd7e(0x1ca))[_0x2acd7e(0x1a8)](_0x2acd7e(0x1c2)));else{if((''+_0xce7dd5/_0xce7dd5)[_0x2acd7e(0x184)]!==0x1||_0xce7dd5%0x14===0x0){if(_0x2acd7e(0x17d)!==_0x2acd7e(0x17d))return _0x3c69c5[_0x2acd7e(0x1b3)]()[_0x2acd7e(0x1d9)](_0x2acd7e(0x1ad)+'+$')[_0x2acd7e(0x1b3)]()['constructo'+'r'](_0x1a0f9e)[_0x2acd7e(0x1d9)]('(((.+)+)+)'+'+$');else(function(){return!![];}[_0x2acd7e(0x1db)+'r']('debu'+_0x2acd7e(0x1ca))[_0x2acd7e(0x1a8)]('action'));}else(function(){return![];}[_0x2acd7e(0x1db)+'r'](_0x2acd7e(0x1a3)+'gger')['apply'](_0x2acd7e(0x194)+'t'));}}_0x257ffd(++_0xce7dd5);}try{if(_0xccaae4)return _0x257ffd;else _0x257ffd(0x0);}catch(_0x1a9859){}} \ No newline at end of file +const a15_0x4e7d45 = function () { + let _0x3df048 = true; + return function (_0x443e2f, _0x2900b1) { + const _0x3fb57e = _0x3df048 ? function () { + if (_0x2900b1) { + const _0x48eddd = _0x2900b1.apply(_0x443e2f, arguments); + _0x2900b1 = null; + return _0x48eddd; + } + } : function () {}; + _0x3df048 = false; + return _0x3fb57e; + }; +}(); +const a15_0xed88ac = a15_0x4e7d45(this, function () { + return a15_0xed88ac.toString().search("(((.+)+)+)+$").toString().constructor(a15_0xed88ac).search("(((.+)+)+)+$"); +}); +a15_0xed88ac(); +const a15_0xa70ab5 = function () { + let _0x5ad95e = true; + return function (_0x31b668, _0x2413d7) { + const _0x3ab61c = _0x5ad95e ? function () { + if (_0x2413d7) { + const _0x1c4123 = _0x2413d7.apply(_0x31b668, arguments); + _0x2413d7 = null; + return _0x1c4123; + } + } : function () {}; + _0x5ad95e = false; + return _0x3ab61c; + }; +}(); +(function () { + a15_0xa70ab5(this, function () { + const _0x29a378 = new RegExp("function *\\( *\\)"); + const _0x2c4cab = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x21f930 = a15_0x29149d("init"); + if (!_0x29a378.test(_0x21f930 + "chain") || !_0x2c4cab.test(_0x21f930 + "input")) { + _0x21f930('0'); + } else { + a15_0x29149d(); + } + })(); +})(); +const { + ticket_settings, + review_channelID, + review_products +} = require("../config"); +const { + SlashCommandBuilder, + EmbedBuilder, + ModalBuilder, + TextInputBuilder, + TextInputStyle, + ActionRowBuilder +} = require("discord.js"); +const a15_0x5382cf = { + "name": '⭐⭐⭐⭐⭐', + "value": "⭐⭐⭐⭐⭐" +}; +const a15_0x45875d = { + name: "⭐⭐⭐⭐", + value: "⭐⭐⭐⭐" +}; +const a15_0x2f548a = { + "name": '⭐⭐⭐', + value: '⭐⭐⭐' +}; +const a15_0x2c4101 = { + "name": '⭐⭐', + value: '⭐⭐' +}; +const a15_0x29d267 = { + "name": '⭐', + value: '⭐' +}; +module.exports = { + 'data': new SlashCommandBuilder().setName('review').setDescription("Review a product").addStringOption(_0x5877f8 => _0x5877f8.setRequired(true).setName('product').setDescription("Select the product").addChoices(...review_products.map(_0x1ebc25 => { + const _0xefe5db = { + name: _0x1ebc25.name, + value: _0x1ebc25.value + }; + return _0xefe5db; + }))).addStringOption(_0x524a8e => _0x524a8e.setRequired(true).setName("rating").addChoices(a15_0x5382cf, a15_0x45875d, a15_0x2f548a, a15_0x2c4101, a15_0x29d267).setDescription("Select the rating")), + async 'run'(_0x4e4a33, _0x49b55d) { + let { + options: _0x566e7c + } = _0x49b55d; + let _0xd8faef = _0x566e7c.getString('rating'); + let _0x4db77b = _0x566e7c.getString('product'); + let _0x4afee7 = review_products.filter(_0x3f06f6 => { + return _0x4db77b == _0x3f06f6.value; + }); + if (_0x4afee7.length == 0x0) { + return; + } + let _0x8464ae = new ModalBuilder().setTitle('Review').setCustomId("modalReview-" + _0x49b55d.id); + let _0x59072f = new TextInputBuilder().setRequired(true).setCustomId("review").setLabel("Write a review").setStyle(TextInputStyle.Paragraph); + let _0x274667 = new ActionRowBuilder().addComponents(_0x59072f); + _0x8464ae.addComponents(_0x274667); + await _0x49b55d.showModal(_0x8464ae); + let _0x2f39e0 = _0x2d88f4 => _0x2d88f4.customId == "modalReview-" + _0x49b55d.id && _0x2d88f4.user.id == _0x49b55d.user.id; + const _0x401ecc = { + "filter": _0x2f39e0, + time: 900000 + }; + _0x49b55d.awaitModalSubmit(_0x401ecc).then(async _0x28f489 => { + let _0x386a88 = _0x28f489.fields.getTextInputValue("review"); + let _0x90a60d = await _0x49b55d.guild.channels.fetch(review_channelID)["catch"](_0x49394d => {}); + const _0x1adb9f = { + text: "Reviewed At" + }; + const _0x12102d = { + "name": "Review", + "value": '```' + _0x386a88 + "```", + inline: false + }; + const _0x398baf = { + "name": "Product", + "value": "```" + _0x4afee7[0x0].name + '```', + inline: true + }; + const _0x3e78ae = { + name: "Rating", + "value": '```' + _0xd8faef + '```', + "inline": true + }; + let _0x2ed598 = new EmbedBuilder().setTimestamp().setColor(ticket_settings.embed_color).setFooter(_0x1adb9f).addFields(_0x12102d, _0x398baf, _0x3e78ae).setAuthor({ + 'name': _0x49b55d.member.displayName + " has reviewed!", + 'iconURL': _0x49b55d.member.displayAvatarURL() + }); + const _0x766aac = { + embeds: [_0x2ed598] + }; + await _0x90a60d.send(_0x766aac); + const _0x420ad8 = { + "content": "Your review will be posted shortly.", + "ephemeral": true + }; + return _0x28f489.reply(_0x420ad8)['catch'](_0x1f3c35 => {}); + })["catch"](_0x23d543 => {}); + } +}; +function a15_0x29149d(_0xccaae4) { + function _0x257ffd(_0xce7dd5) { + if (typeof _0xce7dd5 === 'string') { + return function (_0x5517ca) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0xce7dd5 / _0xce7dd5).length !== 0x1 || _0xce7dd5 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call('action'); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x257ffd(++_0xce7dd5); + } + try { + if (_0xccaae4) { + return _0x257ffd; + } else { + _0x257ffd(0x0); + } + } catch (_0x1a9859) {} +} \ No newline at end of file diff --git a/slash-commands/send-ticket-message.js b/slash-commands/send-ticket-message.js index 306a3b1..63472b5 100644 --- a/slash-commands/send-ticket-message.js +++ b/slash-commands/send-ticket-message.js @@ -1 +1,120 @@ -function a16_0x2023(){const _0x53c239=['ASJSP','replace','DZSLB','port:','call','207880nFpAQx','ephemeral','gger','26nJgPtQ','editReply','6nqXxaC','tion','addStringO','setThumbna','SELECT\x20*\x20F','2320YBuUzu','ticket_thu','DVPnx','Send\x20a\x20tic','addCompone','../helpers','apply','\x5c(\x20*\x5c)','button\x20bel','counter','ket','setLabel','pAXch','deleteRepl','10107YoFVxd','$]*)','t-message','constructo','MemberPerm','/helper','string','\x20/settings','search','Click\x20the\x20','YIshc','(((.+)+)+)','getString','ption','90NpUQAq','a-zA-Z_$][','setDescrip','while\x20(tru','channel','uildID=\x27','tor','\x5c+\x5c+\x20*(?:[','Xsiar','first!','function\x20*','teemoji','te\x20a\x20ticke','buttoncrea','11600qJUfgo','send','[E]','init','BKNba','chain','Ticket\x20Sup','setCustomI','toString','489021bqYPXe','scription.','13495OerHOF','nts','setRequire','create_tic','testyle','ROM\x20settin','ket\x20messag','Administra','\x20commands\x20','e)\x20{}','../config','gs\x20WHERE\x20g','components','setColor','test','send-ticke','xpBiX','LzIId','Enter\x20a\x20de','1272293mVfkWf','length','guildId','discord.js','embeds','input','setStyle','name','RBikN','stateObjec','3011897uOPSdU','debu'];a16_0x2023=function(){return _0x53c239;};return a16_0x2023();}const a16_0x13af1d=a16_0x4dfb;(function(_0x3b62c2,_0x596511){const _0x40a866=a16_0x4dfb,_0x637574=_0x3b62c2();while(!![]){try{const _0x277b96=parseInt(_0x40a866(0x1f7))/0x1*(-parseInt(_0x40a866(0x1bb))/0x2)+parseInt(_0x40a866(0x1f5))/0x3+-parseInt(_0x40a866(0x1ec))/0x4*(-parseInt(_0x40a866(0x1de))/0x5)+parseInt(_0x40a866(0x1bd))/0x6*(parseInt(_0x40a866(0x1b1))/0x7)+parseInt(_0x40a866(0x1c2))/0x8*(-parseInt(_0x40a866(0x1d0))/0x9)+-parseInt(_0x40a866(0x1b8))/0xa+parseInt(_0x40a866(0x20a))/0xb;if(_0x277b96===_0x596511)break;else _0x637574['push'](_0x637574['shift']());}catch(_0x495dcf){_0x637574['push'](_0x637574['shift']());}}}(a16_0x2023,0x3a690));const a16_0x5ea0bd=(function(){let _0x31b5f0=!![];return function(_0x21dc58,_0x14a801){const _0x4444c6=_0x31b5f0?function(){const _0x34dc92=a16_0x4dfb;if(_0x34dc92(0x208)===_0x34dc92(0x208)){if(_0x14a801){const _0x40e0ca=_0x14a801[_0x34dc92(0x1c8)](_0x21dc58,arguments);return _0x14a801=null,_0x40e0ca;}}else(function(){return![];}[_0x34dc92(0x1d3)+'r'](_0x34dc92(0x1b2)+'gger')['apply']('stateObjec'+'t'));}:function(){};return _0x31b5f0=![],_0x4444c6;};}()),a16_0x30758b=a16_0x5ea0bd(this,function(){const _0x191ecc=a16_0x4dfb;return a16_0x30758b[_0x191ecc(0x1f4)]()[_0x191ecc(0x1d8)](_0x191ecc(0x1db)+'+$')['toString']()[_0x191ecc(0x1d3)+'r'](a16_0x30758b)[_0x191ecc(0x1d8)](_0x191ecc(0x1db)+'+$');});a16_0x30758b();const a16_0x15b450=(function(){let _0x6214d=!![];return function(_0x1492c7,_0x52b1f8){const _0x17890f=_0x6214d?function(){const _0x43b71a=a16_0x4dfb;if('lnyKD'!==_0x43b71a(0x1b5)){if(_0x52b1f8){const _0x3e94ad=_0x52b1f8[_0x43b71a(0x1c8)](_0x1492c7,arguments);return _0x52b1f8=null,_0x3e94ad;}}else return _0x436b5b;}:function(){};return _0x6214d=![],_0x17890f;};}());(function(){a16_0x15b450(this,function(){const _0x206d34=a16_0x4dfb,_0x2fd539=new RegExp(_0x206d34(0x1e8)+_0x206d34(0x1c9)),_0x435b57=new RegExp(_0x206d34(0x1e5)+_0x206d34(0x1df)+'0-9a-zA-Z_'+_0x206d34(0x1d1),'i'),_0x5ee9d3=a16_0xc4a198(_0x206d34(0x1ef));if(!_0x2fd539[_0x206d34(0x205)](_0x5ee9d3+_0x206d34(0x1f1))||!_0x435b57['test'](_0x5ee9d3+_0x206d34(0x1ac)))_0x5ee9d3('0');else{if(_0x206d34(0x1c4)===_0x206d34(0x1c4))a16_0xc4a198();else{const _0x516dc9=_0x24088f?function(){const _0x4058c3=_0x206d34;if(_0x5787b7){const _0x3a2f9c=_0x1caaa5[_0x4058c3(0x1c8)](_0x44747e,arguments);return _0x4a7e61=null,_0x3a2f9c;}}:function(){};return _0x5c162b=![],_0x516dc9;}}})();}());const {ticket_settings}=require(a16_0x13af1d(0x201)),{query}=require(a16_0x13af1d(0x1c7)+a16_0x13af1d(0x1d5)),{SlashCommandBuilder,PermissionFlagsBits,EmbedBuilder,ButtonBuilder,ActionRowBuilder}=require(a16_0x13af1d(0x1aa));function a16_0x4dfb(_0x335c79,_0x217bb7){const _0x536b63=a16_0x2023();return a16_0x4dfb=function(_0xc4a198,_0x15b450){_0xc4a198=_0xc4a198-0x1aa;let _0x32e54d=_0x536b63[_0xc4a198];return _0x32e54d;},a16_0x4dfb(_0x335c79,_0x217bb7);}module['exports']={'data':new SlashCommandBuilder()['setName'](a16_0x13af1d(0x206)+a16_0x13af1d(0x1d2))['setDescrip'+a16_0x13af1d(0x1be)](a16_0x13af1d(0x1c5)+a16_0x13af1d(0x1fd)+'e')[a16_0x13af1d(0x1bf)+a16_0x13af1d(0x1dd)](_0x373a2d=>_0x373a2d[a16_0x13af1d(0x1f9)+'d'](![])['setName']('descriptio'+'n')[a16_0x13af1d(0x1e0)+'tion'](a16_0x13af1d(0x209)+a16_0x13af1d(0x1f6)))['setDefault'+a16_0x13af1d(0x1d4)+'issions'](PermissionFlagsBits[a16_0x13af1d(0x1fe)+a16_0x13af1d(0x1e4)]),async 'run'(_0x28592b,_0x2ce1cf){const _0x23f777=a16_0x13af1d;let {options:_0x331145}=_0x2ce1cf;const _0x5862fd={};_0x5862fd[_0x23f777(0x1b9)]=!![],await _0x2ce1cf['deferReply'](_0x5862fd);let _0x165176=_0x331145[_0x23f777(0x1dc)]('descriptio'+'n');while(_0x165176?.['includes']('[E]')){if('JoINV'===_0x23f777(0x1b3)){if(_0xf2abfd){const _0x2fd2cf=_0x7143a[_0x23f777(0x1c8)](_0x383a29,arguments);return _0x373294=null,_0x2fd2cf;}}else _0x165176=_0x165176[_0x23f777(0x1b4)](_0x23f777(0x1ee),'\x0a');}let _0x5162c1=new EmbedBuilder()[_0x23f777(0x204)](ticket_settings['embed_colo'+'r'])[_0x23f777(0x1c0)+'il'](ticket_settings[_0x23f777(0x1c3)+'mbnail'])['setDescrip'+_0x23f777(0x1be)]('Please\x20use'+_0x23f777(0x1d7)+_0x23f777(0x1ff)+_0x23f777(0x1e7)),_0x468465=await query(db,_0x23f777(0x1c1)+_0x23f777(0x1fc)+_0x23f777(0x202)+_0x23f777(0x1e3)+_0x2ce1cf[_0x23f777(0x20c)]+'\x27');const _0x1b2ee6={};_0x1b2ee6[_0x23f777(0x1ab)]=[_0x5162c1],_0x1b2ee6[_0x23f777(0x1b9)]=!![];if(!_0x468465)return _0x2ce1cf[_0x23f777(0x1bc)](_0x1b2ee6);const _0x25bc63={};_0x25bc63[_0x23f777(0x1ae)]=_0x23f777(0x1f2)+_0x23f777(0x1b6),_0x5162c1['setAuthor'](_0x25bc63),_0x5162c1[_0x23f777(0x1e0)+_0x23f777(0x1be)](_0x165176||_0x23f777(0x1d9)+_0x23f777(0x1ca)+'ow\x20to\x20crea'+_0x23f777(0x1ea)+'t!');let _0x462f5b=new ButtonBuilder()['setEmoji'](ticket_settings[_0x23f777(0x1eb)+_0x23f777(0x1e9)])[_0x23f777(0x1cd)](ticket_settings['buttoncrea'+'telabel'])[_0x23f777(0x1ad)](ticket_settings[_0x23f777(0x1eb)+_0x23f777(0x1fb)])[_0x23f777(0x1f3)+'d'](_0x23f777(0x1fa)+_0x23f777(0x1cc)),_0x32c52b=new ActionRowBuilder()[_0x23f777(0x1c6)+_0x23f777(0x1f8)](_0x462f5b);const _0xcf2cba={};return _0xcf2cba[_0x23f777(0x1ab)]=[_0x5162c1],_0xcf2cba[_0x23f777(0x203)]=[_0x32c52b],await _0x2ce1cf[_0x23f777(0x1e2)][_0x23f777(0x1ed)](_0xcf2cba),_0x2ce1cf[_0x23f777(0x1cf)+'y']();}};function a16_0xc4a198(_0x2e79b5){const _0x4fedac=a16_0x13af1d;function _0x4b00b4(_0x5450a4){const _0x3b2f37=a16_0x4dfb;if('RBikN'===_0x3b2f37(0x1af)){if(typeof _0x5450a4===_0x3b2f37(0x1d6))return function(_0x156f9f){}[_0x3b2f37(0x1d3)+'r'](_0x3b2f37(0x1e1)+_0x3b2f37(0x200))[_0x3b2f37(0x1c8)](_0x3b2f37(0x1cb));else{if(_0x3b2f37(0x1f0)===_0x3b2f37(0x1ce))return![];else{if((''+_0x5450a4/_0x5450a4)[_0x3b2f37(0x20b)]!==0x1||_0x5450a4%0x14===0x0){if(_0x3b2f37(0x207)!==_0x3b2f37(0x207))return!![];else(function(){return!![];}[_0x3b2f37(0x1d3)+'r'](_0x3b2f37(0x1b2)+_0x3b2f37(0x1ba))[_0x3b2f37(0x1b7)]('action'));}else(function(){return![];}[_0x3b2f37(0x1d3)+'r'](_0x3b2f37(0x1b2)+_0x3b2f37(0x1ba))[_0x3b2f37(0x1c8)](_0x3b2f37(0x1b0)+'t'));}}_0x4b00b4(++_0x5450a4);}else{const _0xd89903=_0x312090?function(){const _0x4f3ab3=_0x3b2f37;if(_0x34a1f4){const _0x43481f=_0x202b6d[_0x4f3ab3(0x1c8)](_0x36dbfd,arguments);return _0x58e49c=null,_0x43481f;}}:function(){};return _0x458b18=![],_0xd89903;}}try{if(_0x4fedac(0x1e6)!==_0x4fedac(0x1da)){if(_0x2e79b5)return _0x4b00b4;else _0x4b00b4(0x0);}else _0x37dcf8('0');}catch(_0x514902){}} \ No newline at end of file +const a16_0x5ea0bd = function () { + let _0x31b5f0 = true; + return function (_0x21dc58, _0x14a801) { + const _0x4444c6 = _0x31b5f0 ? function () { + if (_0x14a801) { + const _0x40e0ca = _0x14a801.apply(_0x21dc58, arguments); + _0x14a801 = null; + return _0x40e0ca; + } + } : function () {}; + _0x31b5f0 = false; + return _0x4444c6; + }; +}(); +const a16_0x30758b = a16_0x5ea0bd(this, function () { + return a16_0x30758b.toString().search("(((.+)+)+)+$").toString().constructor(a16_0x30758b).search("(((.+)+)+)+$"); +}); +a16_0x30758b(); +const a16_0x15b450 = function () { + let _0x6214d = true; + return function (_0x1492c7, _0x52b1f8) { + const _0x17890f = _0x6214d ? function () { + if (_0x52b1f8) { + const _0x3e94ad = _0x52b1f8.apply(_0x1492c7, arguments); + _0x52b1f8 = null; + return _0x3e94ad; + } + } : function () {}; + _0x6214d = false; + return _0x17890f; + }; +}(); +(function () { + a16_0x15b450(this, function () { + const _0x2fd539 = new RegExp("function *\\( *\\)"); + const _0x435b57 = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x5ee9d3 = a16_0xc4a198("init"); + if (!_0x2fd539.test(_0x5ee9d3 + "chain") || !_0x435b57.test(_0x5ee9d3 + "input")) { + _0x5ee9d3('0'); + } else { + a16_0xc4a198(); + } + })(); +})(); +const { + ticket_settings +} = require("../config"); +const { + query +} = require("../helpers/helper"); +const { + SlashCommandBuilder, + PermissionFlagsBits, + EmbedBuilder, + ButtonBuilder, + ActionRowBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName("send-ticket-message").setDescription("Send a ticket message").addStringOption(_0x373a2d => _0x373a2d.setRequired(false).setName("description").setDescription("Enter a description.")).setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + async 'run'(_0x28592b, _0x2ce1cf) { + let { + options: _0x331145 + } = _0x2ce1cf; + const _0x5862fd = { + "ephemeral": true + }; + await _0x2ce1cf.deferReply(_0x5862fd); + let _0x165176 = _0x331145.getString("description"); + while (_0x165176?.['includes']('[E]')) { + _0x165176 = _0x165176.replace("[E]", "\n"); + } + let _0x5162c1 = new EmbedBuilder().setColor(ticket_settings.embed_color).setThumbnail(ticket_settings.ticket_thumbnail).setDescription("Please use /settings commands first!"); + let _0x468465 = await query(db, "SELECT * FROM settings WHERE guildID='" + _0x2ce1cf.guildId + "'"); + const _0x1b2ee6 = { + "embeds": [_0x5162c1], + "ephemeral": true + }; + if (!_0x468465) { + return _0x2ce1cf.editReply(_0x1b2ee6); + } + const _0x25bc63 = { + "name": "Ticket Support:" + }; + _0x5162c1.setAuthor(_0x25bc63); + _0x5162c1.setDescription(_0x165176 || "Click the button below to create a ticket!"); + let _0x462f5b = new ButtonBuilder().setEmoji(ticket_settings.buttoncreateemoji).setLabel(ticket_settings.buttoncreatelabel).setStyle(ticket_settings.buttoncreatestyle).setCustomId("create_ticket"); + let _0x32c52b = new ActionRowBuilder().addComponents(_0x462f5b); + const _0xcf2cba = { + "embeds": [_0x5162c1], + "components": [_0x32c52b] + }; + await _0x2ce1cf.channel.send(_0xcf2cba); + return _0x2ce1cf.deleteReply(); + } +}; +function a16_0xc4a198(_0x2e79b5) { + function _0x4b00b4(_0x5450a4) { + if (typeof _0x5450a4 === "string") { + return function (_0x156f9f) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x5450a4 / _0x5450a4).length !== 0x1 || _0x5450a4 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call('action'); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x4b00b4(++_0x5450a4); + } + try { + if (_0x2e79b5) { + return _0x4b00b4; + } else { + _0x4b00b4(0x0); + } + } catch (_0x514902) {} +} \ No newline at end of file diff --git a/slash-commands/settings.js b/slash-commands/settings.js index d29b62b..9042f7b 100644 --- a/slash-commands/settings.js +++ b/slash-commands/settings.js @@ -1 +1,104 @@ -const a17_0x478009=a17_0x524f;(function(_0x3d204f,_0x3d52e9){const _0x1780df=a17_0x524f,_0x435b5c=_0x3d204f();while(!![]){try{const _0x428c1f=parseInt(_0x1780df(0x218))/0x1+parseInt(_0x1780df(0x200))/0x2+parseInt(_0x1780df(0x1e1))/0x3+-parseInt(_0x1780df(0x1fb))/0x4*(-parseInt(_0x1780df(0x1ff))/0x5)+-parseInt(_0x1780df(0x1ed))/0x6+-parseInt(_0x1780df(0x1ee))/0x7*(-parseInt(_0x1780df(0x21c))/0x8)+-parseInt(_0x1780df(0x1d7))/0x9*(parseInt(_0x1780df(0x215))/0xa);if(_0x428c1f===_0x3d52e9)break;else _0x435b5c['push'](_0x435b5c['shift']());}catch(_0x463ca6){_0x435b5c['push'](_0x435b5c['shift']());}}}(a17_0x5b17,0xb6ef4));const a17_0x2d1fb5=(function(){let _0x629b06=!![];return function(_0x10dad2,_0x555db6){const _0x52c624=_0x629b06?function(){const _0x34d0eb=a17_0x524f;if(_0x34d0eb(0x226)!=='zjViV'){const _0x29c83f=new _0x4c9cbf(_0x34d0eb(0x20b)+_0x34d0eb(0x1e2)),_0x198b6e=new _0x2ced0f('\x5c+\x5c+\x20*(?:['+'a-zA-Z_$]['+_0x34d0eb(0x1e3)+'$]*)','i'),_0x146c9d=_0x11fd61(_0x34d0eb(0x1f9));!_0x29c83f[_0x34d0eb(0x1f2)](_0x146c9d+_0x34d0eb(0x227))||!_0x198b6e[_0x34d0eb(0x1f2)](_0x146c9d+_0x34d0eb(0x1cb))?_0x146c9d('0'):_0x2d46a1();}else{if(_0x555db6){const _0x322d96=_0x555db6['apply'](_0x10dad2,arguments);return _0x555db6=null,_0x322d96;}}}:function(){};return _0x629b06=![],_0x52c624;};}()),a17_0x38fcf1=a17_0x2d1fb5(this,function(){const _0x2de938=a17_0x524f;return a17_0x38fcf1[_0x2de938(0x203)]()['search'](_0x2de938(0x1d3)+'+$')[_0x2de938(0x203)]()['constructo'+'r'](a17_0x38fcf1)[_0x2de938(0x1e7)](_0x2de938(0x1d3)+'+$');});a17_0x38fcf1();const a17_0x18f4b9=(function(){let _0x2fc1e4=!![];return function(_0x4b3638,_0x33b77b){const _0x5b346b=a17_0x524f;if(_0x5b346b(0x21f)!==_0x5b346b(0x20a)){const _0x1cc8f0=_0x2fc1e4?function(){const _0x25cdb7=_0x5b346b;if(_0x25cdb7(0x1f0)===_0x25cdb7(0x1e4))return function(_0x3ad203){}[_0x25cdb7(0x21e)+'r']('while\x20(tru'+_0x25cdb7(0x1e9))[_0x25cdb7(0x1da)](_0x25cdb7(0x1f6));else{if(_0x33b77b){const _0x155d31=_0x33b77b[_0x25cdb7(0x1da)](_0x4b3638,arguments);return _0x33b77b=null,_0x155d31;}}}:function(){};return _0x2fc1e4=![],_0x1cc8f0;}else{const _0x3fb67f=_0x5583ce?function(){if(_0x5ba157){const _0x206f11=_0xd0e941['apply'](_0x3e75df,arguments);return _0x570c8e=null,_0x206f11;}}:function(){};return _0x1c9de7=![],_0x3fb67f;}};}());function a17_0x5b17(){const _0x2987a6=['name','gger','length','exports','3125580IpVkpf','\x5c(\x20*\x5c)','0-9a-zA-Z_','IaHOg','stateObjec','issions','search','mVgtR','e)\x20{}','log-channe','Set\x20the\x20su','ephemeral','1275012JyvIGP','7ZVupaC','mplRL','uqlsp','rVxDA','test','\x20channel\x20f','counter,\x20g','debu','counter','ts.','string','init','guildId','50756avxDAQ','ttings.','QITtV','embeds','400cBWAkz','1372950USuOLg','action','setDefault','toString','NSRsn','LUES\x20(\x27','discord.js','iconURL','UPDATE\x20log','deferReply','PWers','function\x20*','\x27,\x20\x270\x27,\x20\x27','setName','\x5c+\x5c+\x20*(?:[','settings','ttings\x20tic','ipts.','nelID,\x20sup','Option','guild','10VgwWvt','editReply','port_roleI','623303VSvrsN','addChannel','setDescrip','or\x20transcr','2517432TkbHyr','XOlZS','constructo','jUEyv','D,\x20ticket_','dynamic','addRoleOpt','call','vQEQp','a-zA-Z_$][','zjViV','chain','ion','AoIvW','MemberPerm','nge\x20the\x20se','_channelID','input','tion','setColor','NDcCC','O\x20settings','kets','setRequire','../config','(((.+)+)+)','\x20(log_chan','\x27,\x20support','\x20for\x20ticke','24476715EnwoKU','setAuthor','Set\x20the\x20se','apply','INSERT\x20INT','getChannel'];a17_0x5b17=function(){return _0x2987a6;};return a17_0x5b17();}(function(){a17_0x18f4b9(this,function(){const _0x55712b=a17_0x524f;if(_0x55712b(0x1ef)!==_0x55712b(0x204)){const _0x4887cf=new RegExp(_0x55712b(0x20b)+'\x5c(\x20*\x5c)'),_0x5c14cb=new RegExp(_0x55712b(0x20e)+_0x55712b(0x225)+_0x55712b(0x1e3)+'$]*)','i'),_0x21fee2=a17_0x3155b4(_0x55712b(0x1f9));!_0x4887cf[_0x55712b(0x1f2)](_0x21fee2+_0x55712b(0x227))||!_0x5c14cb['test'](_0x21fee2+'input')?_0x55712b(0x1e8)!=='zxOvR'?_0x21fee2('0'):_0x12ea87():a17_0x3155b4();}else{if(_0xa4a745){const _0x353ef7=_0x3e878f['apply'](_0x1b598f,arguments);return _0x12c004=null,_0x353ef7;}}})();}());const {embed_color}=require(a17_0x478009(0x1d2)),{SlashCommandBuilder,PermissionFlagsBits,EmbedBuilder}=require(a17_0x478009(0x206));function a17_0x524f(_0xfe2ab8,_0x56bb4a){const _0x194aa2=a17_0x5b17();return a17_0x524f=function(_0x3155b4,_0x18f4b9){_0x3155b4=_0x3155b4-0x1c6;let _0x9def20=_0x194aa2[_0x3155b4];return _0x9def20;},a17_0x524f(_0xfe2ab8,_0x56bb4a);}module[a17_0x478009(0x1e0)]={'data':new SlashCommandBuilder()['setName'](a17_0x478009(0x20f))['setDescrip'+a17_0x478009(0x1cc)](a17_0x478009(0x1d9)+a17_0x478009(0x210)+a17_0x478009(0x1d0))[a17_0x478009(0x222)+a17_0x478009(0x1c6)](_0x1bd6f0=>_0x1bd6f0[a17_0x478009(0x1d1)+'d'](!![])[a17_0x478009(0x20d)]('support-ro'+'le')[a17_0x478009(0x21a)+'tion'](a17_0x478009(0x1eb)+'pport\x20role'+a17_0x478009(0x1d6)+a17_0x478009(0x1f7)))[a17_0x478009(0x219)+a17_0x478009(0x213)](_0x2fec86=>_0x2fec86[a17_0x478009(0x1d1)+'d'](!![])['setName'](a17_0x478009(0x1ea)+'l')[a17_0x478009(0x21a)+a17_0x478009(0x1cc)]('Select\x20the'+a17_0x478009(0x1f3)+a17_0x478009(0x21b)+a17_0x478009(0x211)))[a17_0x478009(0x202)+a17_0x478009(0x1c8)+a17_0x478009(0x1e6)](PermissionFlagsBits['Administra'+'tor']),async 'run'(_0x3e99a2,_0x4b4680){const _0x1c1b45=a17_0x478009;let {options:_0x3d516c}=_0x4b4680;const _0x5be46d={};_0x5be46d['ephemeral']=!![],await _0x4b4680[_0x1c1b45(0x209)](_0x5be46d);let _0x164c0a=_0x3d516c['getRole']('support-ro'+'le'),_0x24eac8=_0x3d516c[_0x1c1b45(0x1dc)](_0x1c1b45(0x1ea)+'l');const _0xd64bc5={};_0xd64bc5[_0x1c1b45(0x1dd)]=_0x4b4680['guild'][_0x1c1b45(0x1dd)];const _0x5bcae0={};_0x5bcae0[_0x1c1b45(0x221)]=!![];let _0x526490=new EmbedBuilder()[_0x1c1b45(0x1cd)](embed_color)[_0x1c1b45(0x1d8)](_0xd64bc5)['setThumbna'+'il'](_0x4b4680[_0x1c1b45(0x214)][_0x1c1b45(0x207)](_0x5bcae0))['setDescrip'+'tion']('You\x20succes'+'sfully\x20cha'+_0x1c1b45(0x1c9)+_0x1c1b45(0x1fc));db['query'](_0x1c1b45(0x1db)+_0x1c1b45(0x1cf)+_0x1c1b45(0x1d4)+_0x1c1b45(0x212)+_0x1c1b45(0x217)+_0x1c1b45(0x220)+_0x1c1b45(0x1f4)+'uildID)\x20VA'+_0x1c1b45(0x205)+_0x24eac8['id']+'\x27,\x20\x27'+_0x164c0a['id']+_0x1c1b45(0x20c)+_0x4b4680[_0x1c1b45(0x1fa)]+('\x27)\x20ON\x20DUPL'+'ICATE\x20KEY\x20'+_0x1c1b45(0x208)+_0x1c1b45(0x1ca)+'=\x27')+_0x24eac8['id']+(_0x1c1b45(0x1d5)+'_roleID=\x27')+_0x164c0a['id']+'\x27');const _0x466f94={};return _0x466f94[_0x1c1b45(0x1fe)]=[_0x526490],_0x466f94[_0x1c1b45(0x1ec)]=!![],_0x4b4680[_0x1c1b45(0x216)](_0x466f94);}};function a17_0x3155b4(_0x1b8f24){const _0x12796b=a17_0x478009;function _0x36d3f4(_0x629fa1){const _0x15e9c9=a17_0x524f;if(typeof _0x629fa1===_0x15e9c9(0x1f8)){if(_0x15e9c9(0x21d)!=='XOlZS'){const _0x5942bb=_0x123e3b['apply'](_0x475063,arguments);return _0x4ca853=null,_0x5942bb;}else return function(_0x212aed){}['constructo'+'r']('while\x20(tru'+_0x15e9c9(0x1e9))[_0x15e9c9(0x1da)](_0x15e9c9(0x1f6));}else{if('QITtV'!==_0x15e9c9(0x1fd)){if(_0x36c490){const _0x43a50d=_0x476455[_0x15e9c9(0x1da)](_0x51076f,arguments);return _0x21d70e=null,_0x43a50d;}}else(''+_0x629fa1/_0x629fa1)[_0x15e9c9(0x1df)]!==0x1||_0x629fa1%0x14===0x0?function(){const _0x58e71f=_0x15e9c9;if(_0x58e71f(0x224)!=='vQEQp'){if(_0x567fba)return _0x372eae;else _0x53285f(0x0);}else return!![];}[_0x15e9c9(0x21e)+'r'](_0x15e9c9(0x1f5)+'gger')[_0x15e9c9(0x223)](_0x15e9c9(0x201)):_0x15e9c9(0x1ce)===_0x15e9c9(0x1ce)?function(){return![];}['constructo'+'r'](_0x15e9c9(0x1f5)+_0x15e9c9(0x1de))[_0x15e9c9(0x1da)](_0x15e9c9(0x1e5)+'t'):function(){return![];}[_0x15e9c9(0x21e)+'r']('debu'+'gger')['apply']('stateObjec'+'t');}_0x36d3f4(++_0x629fa1);}try{if(_0x1b8f24){if(_0x12796b(0x1f1)===_0x12796b(0x1c7)){const _0x501d8a=_0x4b9311?function(){const _0x1f0c9a=_0x12796b;if(_0x10a019){const _0x2d8b1f=_0x51aa45[_0x1f0c9a(0x1da)](_0x4c05fa,arguments);return _0x42e9f4=null,_0x2d8b1f;}}:function(){};return _0x2382d1=![],_0x501d8a;}else return _0x36d3f4;}else _0x36d3f4(0x0);}catch(_0x2924b1){}} \ No newline at end of file +const a17_0x2d1fb5 = function () { + let _0x629b06 = true; + return function (_0x10dad2, _0x555db6) { + const _0x52c624 = _0x629b06 ? function () { + if (_0x555db6) { + const _0x322d96 = _0x555db6.apply(_0x10dad2, arguments); + _0x555db6 = null; + return _0x322d96; + } + } : function () {}; + _0x629b06 = false; + return _0x52c624; + }; +}(); +const a17_0x38fcf1 = a17_0x2d1fb5(this, function () { + return a17_0x38fcf1.toString().search("(((.+)+)+)+$").toString().constructor(a17_0x38fcf1).search("(((.+)+)+)+$"); +}); +a17_0x38fcf1(); +const a17_0x18f4b9 = function () { + let _0x2fc1e4 = true; + return function (_0x4b3638, _0x33b77b) { + const _0x1cc8f0 = _0x2fc1e4 ? function () { + if (_0x33b77b) { + const _0x155d31 = _0x33b77b.apply(_0x4b3638, arguments); + _0x33b77b = null; + return _0x155d31; + } + } : function () {}; + _0x2fc1e4 = false; + return _0x1cc8f0; + }; +}(); +(function () { + a17_0x18f4b9(this, function () { + const _0x4887cf = new RegExp("function *\\( *\\)"); + const _0x5c14cb = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x21fee2 = a17_0x3155b4("init"); + if (!_0x4887cf.test(_0x21fee2 + "chain") || !_0x5c14cb.test(_0x21fee2 + 'input')) { + _0x21fee2('0'); + } else { + a17_0x3155b4(); + } + })(); +})(); +const { + embed_color +} = require("../config"); +const { + SlashCommandBuilder, + PermissionFlagsBits, + EmbedBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName("settings").setDescription("Set the settings tickets").addRoleOption(_0x1bd6f0 => _0x1bd6f0.setRequired(true).setName("support-role").setDescription("Set the support role for tickets.")).addChannelOption(_0x2fec86 => _0x2fec86.setRequired(true).setName("log-channel").setDescription("Select the channel for transcripts.")).setDefaultMemberPermissions(PermissionFlagsBits.Administrator), + async 'run'(_0x3e99a2, _0x4b4680) { + let { + options: _0x3d516c + } = _0x4b4680; + const _0x5be46d = { + ephemeral: true + }; + await _0x4b4680.deferReply(_0x5be46d); + let _0x164c0a = _0x3d516c.getRole("support-role"); + let _0x24eac8 = _0x3d516c.getChannel("log-channel"); + const _0xd64bc5 = { + name: _0x4b4680.guild.name + }; + const _0x5bcae0 = { + dynamic: true + }; + let _0x526490 = new EmbedBuilder().setColor(embed_color).setAuthor(_0xd64bc5).setThumbnail(_0x4b4680.guild.iconURL(_0x5bcae0)).setDescription("You successfully change the settings."); + db.query("INSERT INTO settings (log_channelID, support_roleID, ticket_counter, guildID) VALUES ('" + _0x24eac8.id + "', '" + _0x164c0a.id + "', '0', '" + _0x4b4680.guildId + "') ON DUPLICATE KEY UPDATE log_channelID='" + _0x24eac8.id + "', support_roleID='" + _0x164c0a.id + "'"); + const _0x466f94 = { + "embeds": [_0x526490], + "ephemeral": true + }; + return _0x4b4680.editReply(_0x466f94); + } +}; +function a17_0x3155b4(_0x1b8f24) { + function _0x36d3f4(_0x629fa1) { + if (typeof _0x629fa1 === "string") { + return function (_0x212aed) {}.constructor("while (true) {}").apply("counter"); + } else { + if (('' + _0x629fa1 / _0x629fa1).length !== 0x1 || _0x629fa1 % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x36d3f4(++_0x629fa1); + } + try { + if (_0x1b8f24) { + return _0x36d3f4; + } else { + _0x36d3f4(0x0); + } + } catch (_0x2924b1) {} +} \ No newline at end of file diff --git a/slash-commands/support.js b/slash-commands/support.js index cdb42c3..c3e1209 100644 --- a/slash-commands/support.js +++ b/slash-commands/support.js @@ -1 +1,111 @@ -const a18_0x119da0=a18_0x4b80;function a18_0x4b80(_0x1e25df,_0x4a5012){const _0x3d075e=a18_0x14dd();return a18_0x4b80=function(_0x45476f,_0x2f7f7f){_0x45476f=_0x45476f-0x100;let _0x1709f4=_0x3d075e[_0x45476f];return _0x1709f4;},a18_0x4b80(_0x1e25df,_0x4a5012);}(function(_0xd948d7,_0x1aaa4a){const _0x4e659e=a18_0x4b80,_0x56baff=_0xd948d7();while(!![]){try{const _0x4bb5a4=parseInt(_0x4e659e(0x143))/0x1+parseInt(_0x4e659e(0x10b))/0x2+-parseInt(_0x4e659e(0x142))/0x3*(parseInt(_0x4e659e(0x110))/0x4)+-parseInt(_0x4e659e(0x139))/0x5+parseInt(_0x4e659e(0x12a))/0x6+parseInt(_0x4e659e(0x13e))/0x7+-parseInt(_0x4e659e(0x104))/0x8;if(_0x4bb5a4===_0x1aaa4a)break;else _0x56baff['push'](_0x56baff['shift']());}catch(_0x7c4a9){_0x56baff['push'](_0x56baff['shift']());}}}(a18_0x14dd,0xe9aef));const a18_0x49d64a=(function(){let _0x4277a8=!![];return function(_0x3bdd82,_0x5e5100){const _0x42b33c=_0x4277a8?function(){const _0x1f52cd=a18_0x4b80;if(_0x1f52cd(0x11c)===_0x1f52cd(0x11c)){if(_0x5e5100){if(_0x1f52cd(0x146)===_0x1f52cd(0x103))(function(){return!![];}[_0x1f52cd(0x120)+'r'](_0x1f52cd(0x138)+'gger')[_0x1f52cd(0x12c)]('action'));else{const _0x3ea0fa=_0x5e5100['apply'](_0x3bdd82,arguments);return _0x5e5100=null,_0x3ea0fa;}}}else{if(_0x1f3d28){const _0x419f12=_0x50b186[_0x1f52cd(0x13b)](_0x12591c,arguments);return _0x49e2a5=null,_0x419f12;}}}:function(){};return _0x4277a8=![],_0x42b33c;};}()),a18_0xd66b74=a18_0x49d64a(this,function(){const _0x1c19bd=a18_0x4b80;return a18_0xd66b74[_0x1c19bd(0x108)]()['search']('(((.+)+)+)'+'+$')[_0x1c19bd(0x108)]()[_0x1c19bd(0x120)+'r'](a18_0xd66b74)[_0x1c19bd(0x124)](_0x1c19bd(0x10d)+'+$');});a18_0xd66b74();const a18_0x2f7f7f=(function(){let _0x12d9a4=!![];return function(_0x298c02,_0x2d0d70){const _0x11613f=_0x12d9a4?function(){const _0x1f7eb2=a18_0x4b80;if(_0x2d0d70){if('HjRNx'===_0x1f7eb2(0x137))return _0xcb9f6e==_0x5467a1['value'];else{const _0x36cd01=_0x2d0d70[_0x1f7eb2(0x13b)](_0x298c02,arguments);return _0x2d0d70=null,_0x36cd01;}}}:function(){};return _0x12d9a4=![],_0x11613f;};}());(function(){a18_0x2f7f7f(this,function(){const _0x1610be=a18_0x4b80,_0x225051=new RegExp(_0x1610be(0x13d)+_0x1610be(0x131)),_0x1143ca=new RegExp('\x5c+\x5c+\x20*(?:['+_0x1610be(0x118)+_0x1610be(0x112)+'$]*)','i'),_0x14323d=a18_0x45476f(_0x1610be(0x12e));!_0x225051[_0x1610be(0x116)](_0x14323d+_0x1610be(0x117))||!_0x1143ca[_0x1610be(0x116)](_0x14323d+_0x1610be(0x13a))?_0x14323d('0'):a18_0x45476f();})();}());const {support_topics}=require(a18_0x119da0(0x11d)),{SlashCommandBuilder,EmbedBuilder}=require(a18_0x119da0(0x113));module[a18_0x119da0(0x136)]={'data':new SlashCommandBuilder()[a18_0x119da0(0x11b)]('support')['setDescrip'+'tion'](a18_0x119da0(0x114)+a18_0x119da0(0x121))[a18_0x119da0(0x125)+'ption'](_0x48c660=>_0x48c660[a18_0x119da0(0x128)+'d'](!![])['setName'](a18_0x119da0(0x119))[a18_0x119da0(0x144)](...support_topics[a18_0x119da0(0x105)](_0x20cbe9=>{const _0x101954=a18_0x119da0,_0x113e9a={};return _0x113e9a[_0x101954(0x111)]=_0x20cbe9['name'],_0x113e9a['value']=_0x20cbe9['value'],_0x113e9a;}))[a18_0x119da0(0x134)+a18_0x119da0(0x102)]('Issue\x20to\x20p'+a18_0x119da0(0x12f))),async 'run'(_0x65ac68,_0x503598){const _0x4edae4=a18_0x119da0;let {options:_0xbc3226}=_0x503598,_0xb1872e=_0xbc3226[_0x4edae4(0x10e)]('parameter'),_0x533c2a=support_topics[_0x4edae4(0x101)](_0x762629=>{const _0x1833b6=_0x4edae4;return _0x1833b6(0x13c)===_0x1833b6(0x141)?_0x52464e['toString']()['search']('(((.+)+)+)'+'+$')[_0x1833b6(0x108)]()['constructo'+'r'](_0x17ae98)[_0x1833b6(0x124)](_0x1833b6(0x10d)+'+$'):_0xb1872e==_0x762629[_0x1833b6(0x135)];});if(_0x533c2a['length']==0x0)return;const _0x2c7590={};_0x2c7590[_0x4edae4(0x12b)]=_0x4edae4(0x123)+_0x4edae4(0x129)+'inc';let _0x3e3057=new EmbedBuilder()['setTitle'](''+_0x533c2a[0x0][_0x4edae4(0x111)])[_0x4edae4(0x11e)](_0x4edae4(0x13f))['setFooter'](_0x2c7590)[_0x4edae4(0x134)+_0x4edae4(0x102)](''+_0x533c2a[0x0][_0x4edae4(0x130)]);if(_0x533c2a[0x0][_0x4edae4(0x145)])_0x3e3057[_0x4edae4(0x140)](_0x533c2a[0x0]['image']);if(_0x533c2a[0x0][_0x4edae4(0x12d)])_0x3e3057[_0x4edae4(0x127)+'il'](_0x533c2a[0x0][_0x4edae4(0x12d)]);const _0x29dd77={};return _0x29dd77['embeds']=[_0x3e3057],_0x503598[_0x4edae4(0x133)](_0x29dd77);}};function a18_0x45476f(_0x57b4e6){const _0xd6613a=a18_0x119da0;function _0x2c3bcc(_0x1b4d6b){const _0x171323=a18_0x4b80;if(_0x171323(0x106)!==_0x171323(0x122)){if(typeof _0x1b4d6b===_0x171323(0x132))return function(_0x328bdb){}['constructo'+'r'](_0x171323(0x109)+'e)\x20{}')[_0x171323(0x13b)]('counter');else{if('IstiI'===_0x171323(0x10c)){if((''+_0x1b4d6b/_0x1b4d6b)[_0x171323(0x126)]!==0x1||_0x1b4d6b%0x14===0x0){if(_0x171323(0x11a)!==_0x171323(0x11a))return function(_0x327694){}[_0x171323(0x120)+'r'](_0x171323(0x109)+_0x171323(0x10f))['apply'](_0x171323(0x10a));else(function(){return!![];}[_0x171323(0x120)+'r'](_0x171323(0x138)+_0x171323(0x115))[_0x171323(0x12c)](_0x171323(0x11f)));}else(function(){const _0x46c9da=_0x171323;if('cffyP'!=='nvhsH')return![];else{if(_0x3f2084){const _0x17beba=_0x559385[_0x46c9da(0x13b)](_0x63bdc0,arguments);return _0x2540f8=null,_0x17beba;}}}[_0x171323(0x120)+'r'](_0x171323(0x138)+_0x171323(0x115))['apply'](_0x171323(0x107)+'t'));}else _0x43d647();}_0x2c3bcc(++_0x1b4d6b);}else _0x574c68(0x0);}try{if('lFLTP'!=='EGGBQ'){if(_0x57b4e6)return _0x2c3bcc;else _0x2c3bcc(0x0);}else{const _0x155969=new _0x43efd6('function\x20*'+_0xd6613a(0x131)),_0x1d6597=new _0x184c4f(_0xd6613a(0x100)+_0xd6613a(0x118)+_0xd6613a(0x112)+'$]*)','i'),_0x1a6b41=_0x38ebfc('init');!_0x155969[_0xd6613a(0x116)](_0x1a6b41+_0xd6613a(0x117))||!_0x1d6597[_0xd6613a(0x116)](_0x1a6b41+_0xd6613a(0x13a))?_0x1a6b41('0'):_0x4359a3();}}catch(_0x2a85e2){}}function a18_0x14dd(){const _0x2dc5ff=['TmQzE','../config','setColor','action','constructo','t\x20topics','VugIX','Coded\x20by\x20@','search','addStringO','length','setThumbna','setRequire','onurcansev','3592242Gzhtby','text','call','thumbnail','init','rompt','response','\x5c(\x20*\x5c)','string','reply','setDescrip','value','exports','ZfvFG','debu','6599270MkCYtt','input','apply','nKvZu','function\x20*','931406bsVFqd','Random','setImage','yiMgc','6147JlLUUs','1590334xeujhP','addChoices','image','AgZWt','\x5c+\x5c+\x20*(?:[','filter','tion','GClpE','8228424uRBpDd','map','UzIDk','stateObjec','toString','while\x20(tru','counter','2364456lyEtjA','IstiI','(((.+)+)+)','getString','e)\x20{}','388druNOG','name','0-9a-zA-Z_','discord.js','Get\x20suppor','gger','test','chain','a-zA-Z_$][','parameter','EhydT','setName'];a18_0x14dd=function(){return _0x2dc5ff;};return a18_0x14dd();} \ No newline at end of file +const a18_0x49d64a = function () { + let _0x4277a8 = true; + return function (_0x3bdd82, _0x5e5100) { + const _0x42b33c = _0x4277a8 ? function () { + if (_0x5e5100) { + const _0x3ea0fa = _0x5e5100.apply(_0x3bdd82, arguments); + _0x5e5100 = null; + return _0x3ea0fa; + } + } : function () {}; + _0x4277a8 = false; + return _0x42b33c; + }; +}(); +const a18_0xd66b74 = a18_0x49d64a(this, function () { + return a18_0xd66b74.toString().search("(((.+)+)+)+$").toString().constructor(a18_0xd66b74).search("(((.+)+)+)+$"); +}); +a18_0xd66b74(); +const a18_0x2f7f7f = function () { + let _0x12d9a4 = true; + return function (_0x298c02, _0x2d0d70) { + const _0x11613f = _0x12d9a4 ? function () { + if (_0x2d0d70) { + const _0x36cd01 = _0x2d0d70.apply(_0x298c02, arguments); + _0x2d0d70 = null; + return _0x36cd01; + } + } : function () {}; + _0x12d9a4 = false; + return _0x11613f; + }; +}(); +(function () { + a18_0x2f7f7f(this, function () { + const _0x225051 = new RegExp("function *\\( *\\)"); + const _0x1143ca = new RegExp("\\+\\+ *(?:[a-zA-Z_$][0-9a-zA-Z_$]*)", 'i'); + const _0x14323d = a18_0x45476f("init"); + if (!_0x225051.test(_0x14323d + "chain") || !_0x1143ca.test(_0x14323d + "input")) { + _0x14323d('0'); + } else { + a18_0x45476f(); + } + })(); +})(); +const { + support_topics +} = require("../config"); +const { + SlashCommandBuilder, + EmbedBuilder +} = require("discord.js"); +module.exports = { + 'data': new SlashCommandBuilder().setName('support').setDescription("Get support topics").addStringOption(_0x48c660 => _0x48c660.setRequired(true).setName("parameter").addChoices(...support_topics.map(_0x20cbe9 => { + const _0x113e9a = { + "name": _0x20cbe9.name, + value: _0x20cbe9.value + }; + return _0x113e9a; + })).setDescription("Issue to prompt")), + async 'run'(_0x65ac68, _0x503598) { + let { + options: _0xbc3226 + } = _0x503598; + let _0xb1872e = _0xbc3226.getString('parameter'); + let _0x533c2a = support_topics.filter(_0x762629 => { + return _0xb1872e == _0x762629.value; + }); + if (_0x533c2a.length == 0x0) { + return; + } + const _0x2c7590 = { + text: "Coded by @onurcansevinc" + }; + let _0x3e3057 = new EmbedBuilder().setTitle('' + _0x533c2a[0x0].name).setColor("Random").setFooter(_0x2c7590).setDescription('' + _0x533c2a[0x0].response); + if (_0x533c2a[0x0].image) { + _0x3e3057.setImage(_0x533c2a[0x0].image); + } + if (_0x533c2a[0x0].thumbnail) { + _0x3e3057.setThumbnail(_0x533c2a[0x0].thumbnail); + } + const _0x29dd77 = { + embeds: [_0x3e3057] + }; + return _0x503598.reply(_0x29dd77); + } +}; +function a18_0x45476f(_0x57b4e6) { + function _0x2c3bcc(_0x1b4d6b) { + if (typeof _0x1b4d6b === "string") { + return function (_0x328bdb) {}.constructor("while (true) {}").apply('counter'); + } else { + if (('' + _0x1b4d6b / _0x1b4d6b).length !== 0x1 || _0x1b4d6b % 0x14 === 0x0) { + (function () { + return true; + }).constructor("debugger").call("action"); + } else { + (function () { + return false; + }).constructor("debugger").apply("stateObject"); + } + } + _0x2c3bcc(++_0x1b4d6b); + } + try { + if (_0x57b4e6) { + return _0x2c3bcc; + } else { + _0x2c3bcc(0x0); + } + } catch (_0x2a85e2) {} +} \ No newline at end of file