mirror of
https://github.com/SilenceLurker/ST-Amily2-Chat-Optimisation.git
synced 2026-06-06 10:05:50 +00:00
Add files via upload
This commit is contained in:
@@ -1 +1 @@
|
||||
function _0x440b(_0x21e839,_0x2b4520){const _0x338e39=_0x338e();return _0x440b=function(_0x440bfe,_0x21a906){_0x440bfe=_0x440bfe-0x1e4;let _0x4ab131=_0x338e39[_0x440bfe];return _0x4ab131;},_0x440b(_0x21e839,_0x2b4520);}(function(_0x40a705,_0x59d020){const _0x62765b=_0x440b,_0x11a1b1=_0x40a705();while(!![]){try{const _0x16d980=parseInt(_0x62765b(0x1fd))/0x1+parseInt(_0x62765b(0x206))/0x2*(parseInt(_0x62765b(0x207))/0x3)+parseInt(_0x62765b(0x1e4))/0x4+parseInt(_0x62765b(0x203))/0x5*(-parseInt(_0x62765b(0x1f6))/0x6)+-parseInt(_0x62765b(0x1ee))/0x7+-parseInt(_0x62765b(0x1f7))/0x8*(parseInt(_0x62765b(0x1f1))/0x9)+parseInt(_0x62765b(0x20a))/0xa*(parseInt(_0x62765b(0x1fb))/0xb);if(_0x16d980===_0x59d020)break;else _0x11a1b1['push'](_0x11a1b1['shift']());}catch(_0x563d13){_0x11a1b1['push'](_0x11a1b1['shift']());}}}(_0x338e,0x4e8be));import{getContext,extension_settings}from'/scripts/extensions.js';import{SlashCommandParser}from'/scripts/slash-commands/SlashCommandParser.js';import{extensionName}from'../utils/settings.js';async function executeSlashCommand(_0x4e0979){const _0x1f5043=_0x440b;if(!_0x4e0979)return;try{console[_0x1f5043(0x200)]('[Amily-敕令执行官]\x20准备执行圣谕:\x20'+_0x4e0979);const _0x545352=new SlashCommandParser(),_0xe85d8c=_0x545352[_0x1f5043(0x209)](_0x4e0979,![]);if(_0xe85d8c&&typeof _0xe85d8c[_0x1f5043(0x1ed)]==='function')await _0xe85d8c[_0x1f5043(0x1ed)](),console[_0x1f5043(0x200)]('[Amily-敕令执行官]\x20圣谕:\x20\x22'+_0x4e0979+'\x22\x20已成功颁布。'),toastr[_0x1f5043(0x1e6)]('圣谕\x20\x22'+_0x4e0979+_0x1f5043(0x1ef),_0x1f5043(0x1f0));else{const _0x40bf28=_0x1f5043(0x1ec)+_0x4e0979;console['error'](_0x1f5043(0x1e7)+_0x40bf28),toastr[_0x1f5043(0x20c)](_0x40bf28,_0x1f5043(0x204));}}catch(_0x5ab5c6){console[_0x1f5043(0x20c)](_0x1f5043(0x1eb)+_0x4e0979+'\x22\x20时发生意外:',_0x5ab5c6),toastr[_0x1f5043(0x20c)](_0x1f5043(0x202)+_0x5ab5c6['message'],'敕令司紧急报告');}}function _0x338e(){const _0x1c5948=['40LXOpKn','chat','/hide\x200-','manual_hide','17053157kJbUsK','请输入有效的楼层范围','168595BznAfB','length','unhide_all','log','史册为空,无需解除隐藏。','执行圣谕时发生意外:\x20','5tWCwSo','敕令司紧急报告','敕令司提示','423482FVpnBV','3dPBnqP','warning','parse','10PYqZfl','[Amily-史册管理员]\x20颁布圣谕:\x20','error','/hide','450988kYMnDm','autoHideThreshold','success','[Amily-敕令执行官]\x20','info','/unhide','[Amily-手动敕令司]\x20未知的命令类型:\x20','[Amily-敕令执行官]\x20执行圣谕\x20\x22','铸造出的圣谕法印无法执行!指令:\x20','execute','4180624yIGUso','\x22\x20已成功颁布','敕令司回报','999756MGjBcB','[Amily-史册管理员]\x20执行自动隐藏律法时发生意外错误:','起始层不能大于结束层','/unhide\x200-','autoHideEnabled','3413952EckBBs'];_0x338e=function(){return _0x1c5948;};return _0x338e();}export async function executeAutoHide(){const _0xc8e96f=_0x440b;try{const _0x27f21d=extension_settings[extensionName];if(!_0x27f21d[_0xc8e96f(0x1f5)])return;const _0x35f0da=_0x27f21d[_0xc8e96f(0x1e5)]||0x1e,_0x2c76ec=getContext(),_0x3364d4=_0x2c76ec[_0xc8e96f(0x1f8)]['length'],_0xd231ec=_0x3364d4-_0x35f0da-0x1;if(_0xd231ec<0x0){;return;}const _0x57aad4=_0xc8e96f(0x1f9)+_0xd231ec;console[_0xc8e96f(0x200)](_0xc8e96f(0x20b)+_0x57aad4);const _0x34e2ad=new SlashCommandParser(),_0x2a3508=_0x34e2ad[_0xc8e96f(0x209)](_0x57aad4,![]);_0x2a3508&&typeof _0x2a3508[_0xc8e96f(0x1ed)]==='function'?(await _0x2a3508['execute'](),console[_0xc8e96f(0x200)]('[Amily-史册管理员]\x20圣谕颁布成功。')):console[_0xc8e96f(0x20c)]('[Amily-史册管理员]\x20致命错误:铸造出的圣谕法印无法执行!');}catch(_0x43a7b9){console['error'](_0xc8e96f(0x1f2),_0x43a7b9);}}export async function executeManualCommand(_0x4b6ad1,_0x45d631={}){const _0x4052e4=_0x440b,{from:_0x109935,to:_0x5201ea}=_0x45d631;let _0x439173='';switch(_0x4b6ad1){case _0x4052e4(0x1ff):{const _0x110361=getContext()[_0x4052e4(0x1f8)][_0x4052e4(0x1fe)];if(_0x110361>0x0){const _0x2988bb=_0x110361-0x1;_0x439173=_0x4052e4(0x1f4)+_0x2988bb;}else{toastr[_0x4052e4(0x1e8)](_0x4052e4(0x201),_0x4052e4(0x1f0));return;}break;}case _0x4052e4(0x1fa):case'manual_unhide':{const _0x1cd679=_0x4b6ad1===_0x4052e4(0x1fa)?_0x4052e4(0x20d):_0x4052e4(0x1e9);if(_0x109935===''&&_0x5201ea!=='')_0x439173=_0x1cd679+'\x20'+_0x5201ea;else{if(_0x109935!==''&&_0x5201ea!==''){if(parseInt(_0x109935)>parseInt(_0x5201ea)){toastr['warning'](_0x4052e4(0x1f3),_0x4052e4(0x205));return;}_0x439173=_0x1cd679+'\x20'+_0x109935+'-'+_0x5201ea;}else{toastr[_0x4052e4(0x208)](_0x4052e4(0x1fc),_0x4052e4(0x205));return;}}break;}default:console[_0x4052e4(0x20c)](_0x4052e4(0x1ea)+_0x4b6ad1);return;}await executeSlashCommand(_0x439173);}
|
||||
(function(_0x4ee988,_0x4037de){const _0x37bb46=_0x58cf,_0x4f5812=_0x4ee988();while(!![]){try{const _0x1c6d7c=-parseInt(_0x37bb46(0x1c9))/0x1*(parseInt(_0x37bb46(0x1df))/0x2)+parseInt(_0x37bb46(0x1da))/0x3*(-parseInt(_0x37bb46(0x1d0))/0x4)+-parseInt(_0x37bb46(0x1d2))/0x5+-parseInt(_0x37bb46(0x1ea))/0x6+parseInt(_0x37bb46(0x1dd))/0x7*(-parseInt(_0x37bb46(0x1d6))/0x8)+-parseInt(_0x37bb46(0x1d1))/0x9+parseInt(_0x37bb46(0x1d7))/0xa;if(_0x1c6d7c===_0x4037de)break;else _0x4f5812['push'](_0x4f5812['shift']());}catch(_0xa818b5){_0x4f5812['push'](_0x4f5812['shift']());}}}(_0x5992,0xc4f22));function _0x58cf(_0x18e475,_0x4450b0){const _0x599238=_0x5992();return _0x58cf=function(_0x58cf6f,_0x5e2dd5){_0x58cf6f=_0x58cf6f-0x1c0;let _0x33b306=_0x599238[_0x58cf6f];return _0x33b306;},_0x58cf(_0x18e475,_0x4450b0);}import{getContext,extension_settings}from'/scripts/extensions.js';import{SlashCommandParser}from'/scripts/slash-commands/SlashCommandParser.js';import{extensionName}from'../utils/settings.js';async function executeSlashCommand(_0x28ecae){const _0x4e2c65=_0x58cf;if(!_0x28ecae)return;try{console['log']('[Amily-敕令执行官]\x20准备执行圣谕:\x20'+_0x28ecae);const _0x54b194=new SlashCommandParser(),_0x2ebd11=_0x54b194[_0x4e2c65(0x1e8)](_0x28ecae,![]);if(_0x2ebd11&&typeof _0x2ebd11[_0x4e2c65(0x1c7)]===_0x4e2c65(0x1e4))await _0x2ebd11[_0x4e2c65(0x1c7)](),console[_0x4e2c65(0x1d3)]('[Amily-敕令执行官]\x20圣谕:\x20\x22'+_0x28ecae+_0x4e2c65(0x1cd)),toastr[_0x4e2c65(0x1e5)](_0x4e2c65(0x1c1)+_0x28ecae+'\x22\x20已成功颁布','敕令司回报');else{const _0x4902df=_0x4e2c65(0x1db)+_0x28ecae;console[_0x4e2c65(0x1e6)](_0x4e2c65(0x1d8)+_0x4902df),toastr[_0x4e2c65(0x1e6)](_0x4902df,_0x4e2c65(0x1e2));}}catch(_0x3fb9f0){console[_0x4e2c65(0x1e6)](_0x4e2c65(0x1cb)+_0x28ecae+_0x4e2c65(0x1c5),_0x3fb9f0),toastr[_0x4e2c65(0x1e6)](_0x4e2c65(0x1e0)+_0x3fb9f0[_0x4e2c65(0x1c6)],_0x4e2c65(0x1e2));}}export async function executeAutoHide(){const _0x5f18de=_0x58cf;try{const _0x5185f0=extension_settings[extensionName];if(!_0x5185f0[_0x5f18de(0x1c8)])return;const _0x1bd89b=_0x5185f0['autoHideThreshold']||0x1e,_0x4cdc8a=getContext(),_0x22e5ff=_0x4cdc8a['chat']['length'],_0x430d62=_0x22e5ff-_0x1bd89b-0x1;if(_0x430d62<0x0){;return;}const _0x4768bf=_0x5f18de(0x1c3)+_0x430d62;console[_0x5f18de(0x1d3)](_0x5f18de(0x1ca)+_0x4768bf);const _0x1b6e36=new SlashCommandParser(),_0x31a7eb=_0x1b6e36[_0x5f18de(0x1e8)](_0x4768bf,![]);_0x31a7eb&&typeof _0x31a7eb[_0x5f18de(0x1c7)]===_0x5f18de(0x1e4)?(await _0x31a7eb[_0x5f18de(0x1c7)](),console[_0x5f18de(0x1d3)]('[Amily-史册管理员]\x20圣谕颁布成功。')):console[_0x5f18de(0x1e6)](_0x5f18de(0x1e3));}catch(_0x170bc5){console[_0x5f18de(0x1e6)](_0x5f18de(0x1e7),_0x170bc5);}}export async function executeManualCommand(_0xaf2ae3,_0x15bb0a={}){const _0x567b75=_0x58cf,{from:_0x1666d9,to:_0x3462b1}=_0x15bb0a;let _0x5cc3b1='';switch(_0xaf2ae3){case _0x567b75(0x1de):{const _0x6bd434=getContext()[_0x567b75(0x1e1)][_0x567b75(0x1c4)];if(_0x6bd434>0x0){const _0x4dbd57=_0x6bd434-0x1;_0x5cc3b1=_0x567b75(0x1cf)+_0x4dbd57;}else{toastr[_0x567b75(0x1c0)](_0x567b75(0x1ce),'敕令司回报');return;}break;}case _0x567b75(0x1c2):case _0x567b75(0x1d5):{const _0x582643=_0xaf2ae3===_0x567b75(0x1c2)?'/hide':_0x567b75(0x1cc);if(_0x1666d9===''&&_0x3462b1!=='')_0x5cc3b1=_0x582643+'\x20'+_0x3462b1;else{if(_0x1666d9!==''&&_0x3462b1!==''){if(parseInt(_0x1666d9)>parseInt(_0x3462b1)){toastr[_0x567b75(0x1e9)](_0x567b75(0x1d9),_0x567b75(0x1dc));return;}_0x5cc3b1=_0x582643+'\x20'+_0x1666d9+'-'+_0x3462b1;}else{toastr[_0x567b75(0x1e9)]('请输入有效的楼层范围',_0x567b75(0x1dc));return;}}break;}default:console[_0x567b75(0x1e6)](_0x567b75(0x1d4)+_0xaf2ae3);return;}await executeSlashCommand(_0x5cc3b1);}function _0x5992(){const _0x133664=['success','error','[Amily-史册管理员]\x20执行自动隐藏律法时发生意外错误:','parse','warning','8803272zKOyks','info','圣谕\x20\x22','manual_hide','/hide\x200-','length','\x22\x20时发生意外:','message','execute','autoHideEnabled','17XaePWh','[Amily-史册管理员]\x20颁布圣谕:\x20','[Amily-敕令执行官]\x20执行圣谕\x20\x22','/unhide','\x22\x20已成功颁布。','史册为空,无需解除隐藏。','/unhide\x200-','3241588UWNBsl','2333502whztNt','6368380RiIATK','log','[Amily-手动敕令司]\x20未知的命令类型:\x20','manual_unhide','12590440mhbLFH','65756490EvHMoU','[Amily-敕令执行官]\x20','起始层不能大于结束层','3MrmhsI','铸造出的圣谕法印无法执行!指令:\x20','敕令司提示','7TQjRrw','unhide_all','45246UriBuS','执行圣谕时发生意外:\x20','chat','敕令司紧急报告','[Amily-史册管理员]\x20致命错误:铸造出的圣谕法印无法执行!','function'];_0x5992=function(){return _0x133664;};return _0x5992();}
|
||||
Reference in New Issue
Block a user