Discord_API_Bot/slash-commands/send-ticket-message.js
2024-04-01 18:59:09 -08:00

1 line
No EOL
7.4 KiB
JavaScript

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){}}