-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathglobalshortcut.js
31 lines (27 loc) · 26.8 KB
/
globalshortcut.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
module.exports.config = {
name: "globalshortcut",
version: "1.0.0",
hasPermssion: 2,
credits: "CatalizCS",
description: "Phiên bản xịn hơn của short",
commandCategory: "system",
usages: "[all/delete/empty]",
cooldowns: 5,
dependencies: {
"axios": "",
"fs-extra": "",
"path": ""
}
}
module.exports.onLoad = async function () {
const _0x5975=['\x31\x30\x37\x37\x32\x39\x35\x78\x65\x54\x6c\x75\x6b','\x74\x63\x75\x74','\x3d\x3d\x3d\x3d\x3d\x20\x45\x72\x72\x6f','\x70\x61\x72\x73\x65','\x75\x74\x66\x2d\x38','\x74\x63\x75\x74\x20\x7c\x20\x57\x65\x6c','\x68\x74\x74\x70\x73\x3a\x2f\x2f\x64\x6f','\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65','\x76\x65\x64\x20\x53\x75\x63\x63\x65\x73','\x72\x21\x20','\x6b\x65\x79\x73','\x74\x63\x75\x74\x44\x61\x74\x61\x2e\x6a','\x35\x39\x31\x34\x32\x34\x62\x62\x66\x41\x79\x75','\x73\x68\x6f\x72\x74\x63\x75\x74\x73','\x3d\x3d\x3d\x3d\x3d\x20\x41\x63\x74\x69','\x34\x30\x33','\x73\x6f\x6e','\x34\x30\x31','\x72\x65\x63\x75\x72\x73\x69\x76\x65','\x6e\x64\x2f','\x31\x42\x69\x59\x4b\x6b\x59','\x73\x20\x6d\x6f\x64\x75\x6c\x65\x3a\x20','\x66\x73\x2d\x65\x78\x74\x72\x61','\x6c\x6f\x67','\x63\x61\x63\x68\x65','\x37\x37\x33\x39\x38\x32\x6f\x69\x75\x43\x61\x6a','\x70\x61\x69\x64','\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d','\x33\x32\x38\x34\x33\x31\x74\x7a\x6f\x6a\x76\x65','\x37\x39\x37\x39\x31\x31\x77\x71\x68\x73\x45\x4b','\x61\x78\x69\x6f\x73','\x64\x61\x74\x61','\x3d\x3d\x3d\x3d\x3d\x3d','\x67\x6c\x6f\x62\x61\x6c\x73\x68\x6f\x72','\x20\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d','\x70\x6f\x73\x74','\x63\x6f\x6e\x66\x69\x67','\x39\x34\x35\x35\x32\x35\x49\x59\x63\x4d\x66\x50','\x63\x6f\x6d\x65\x20\x62\x61\x63\x6b\x20','\x35\x30\x30','\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61','\x65\x72\x72\x6f\x72','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x31\x49\x7a\x53\x6a\x7a\x73','\x33\x39\x32\x35\x31\x36\x39\x50\x67\x45\x50\x76\x75','\x72\x65\x73\x70\x6f\x6e\x73\x65','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x72\x65\x73\x75\x6c\x74','\x6b\x65\x79\x41\x63\x74\x69\x76\x65'];function _0x40bfb7(_0x4c7b1a,_0x56ec86){return _0x557f(_0x56ec86- -0x14b,_0x4c7b1a);}(function(_0x7c0793,_0x41db7c){function _0x2039ef(_0x4a9454,_0x42e1fd){return _0x557f(_0x42e1fd-0x3ce,_0x4a9454);}while(!![]){try{const _0x3d43d9=parseInt(_0x2039ef(0x575,0x568))+-parseInt(_0x2039ef(0x568,0x579))+-parseInt(_0x2039ef(0x582,0x570))*parseInt(_0x2039ef(0x569,0x578))+-parseInt(_0x2039ef(0x554,0x55c))*parseInt(_0x2039ef(0x558,0x556))+-parseInt(_0x2039ef(0x597,0x581))+-parseInt(_0x2039ef(0x576,0x575))+parseInt(_0x2039ef(0x54a,0x557));if(_0x3d43d9===_0x41db7c)break;else _0x7c0793['push'](_0x7c0793['shift']());}catch(_0x12b6d1){_0x7c0793['push'](_0x7c0793['shift']());}}}(_0x5975,-0x900ec+0x1*-0x426d9+0x1*0x1635ee));if(!global[_0x40bfb7(0x78,0x6b)]['\x73\x68\x6f\x72\x74\x63\x75\x74\x73'])global[_0x40bfb7(0x81,0x6b)][_0x40bfb7(0x39,0x50)]=[];try{const axios=global[_0x40bfb7(0x50,0x4a)][_0x40bfb7(0x4d,0x61)],{data}=await axios[_0x40bfb7(0x5b,0x66)](_0x40bfb7(0x4a,0x49)+'\x6e\x61\x74\x65\x2e\x6d\x69\x72\x61\x69'+'\x70\x72\x6f\x6a\x65\x63\x74\x2e\x74\x6b'+'\x2f\x64\x6f\x6e\x61\x74\x65\x2f\x66\x69'+_0x40bfb7(0x6a,0x56),{'\x6b\x65\x79\x6c\x6f\x67\x69\x6e':global[_0x40bfb7(0x76,0x67)][_0x40bfb7(0x51,0x42)]||'','\x62\x6f\x74\x49\x44':api['\x67\x65\x74\x43\x75\x72\x72\x65\x6e\x74'+'\x55\x73\x65\x72\x49\x44'](),'\x6d\x6f\x64\x75\x6c\x65\x52\x65\x71\x75\x65\x73\x74':_0x40bfb7(0x6b,0x64)+_0x40bfb7(0x2c,0x44)});if(Object[_0x40bfb7(0x3b,0x4d)](data[_0x40bfb7(0x49,0x41)])['\x6c\x65\x6e\x67\x74\x68']!=-0x8b*-0x45+-0x1680+-0xef7){if(typeof global[_0x40bfb7(0x67,0x5d)]==_0x40bfb7(0x72,0x6d))global[_0x40bfb7(0x69,0x5d)]={};if(typeof global[_0x40bfb7(0x6c,0x5d)][global[_0x40bfb7(0x68,0x67)][_0x40bfb7(0x45,0x42)]]==_0x40bfb7(0x6d,0x6d))global[_0x40bfb7(0x6c,0x5d)][global['\x63\x6f\x6e\x66\x69\x67'][_0x40bfb7(0x3e,0x42)]]={};global[_0x40bfb7(0x63,0x5d)][global[_0x40bfb7(0x70,0x67)][_0x40bfb7(0x32,0x42)]][_0x40bfb7(0x6a,0x64)+_0x40bfb7(0x2e,0x44)]=!![],console['\x6c\x6f\x67'](),console[_0x40bfb7(0x69,0x6c)](_0x40bfb7(0x67,0x5e)+_0x40bfb7(0x47,0x51)+_0x40bfb7(0x39,0x4b)+_0x40bfb7(0x61,0x58)+_0x40bfb7(0x63,0x64)+_0x40bfb7(0x42,0x48)+_0x40bfb7(0x52,0x69)+data[_0x40bfb7(0x58,0x41)]['\x6e\x61\x6d\x65']+(_0x40bfb7(0x6c,0x65)+_0x40bfb7(0x75,0x63))),console['\x6c\x6f\x67']();}}catch(_0x2158df){if(!_0x2158df['\x72\x65\x73\x70\x6f\x6e\x73\x65'])return;if(_0x2158df[_0x40bfb7(0x2c,0x3f)][_0x40bfb7(0x52,0x62)]['\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65']==_0x40bfb7(0x7c,0x6a)||_0x2158df[_0x40bfb7(0x38,0x3f)][_0x40bfb7(0x50,0x62)][_0x40bfb7(0x51,0x40)]==_0x40bfb7(0x57,0x54)||_0x2158df[_0x40bfb7(0x39,0x3f)][_0x40bfb7(0x5b,0x62)][_0x40bfb7(0x58,0x40)]==_0x40bfb7(0x3f,0x52)){console['\x6c\x6f\x67'](),console['\x65\x72\x72\x6f\x72'](_0x40bfb7(0x6a,0x5e)+_0x40bfb7(0x55,0x45)+_0x40bfb7(0x5a,0x4c)+_0x2158df[_0x40bfb7(0x53,0x3f)][_0x40bfb7(0x6f,0x62)][_0x40bfb7(0x52,0x41)]+(_0x40bfb7(0x60,0x65)+_0x40bfb7(0x6a,0x63))),console[_0x40bfb7(0x4f,0x5a)]();return;}else return;}const {existsSync,writeFileSync,mkdirSync,readFileSync}=global[_0x40bfb7(0x3b,0x4a)][_0x40bfb7(0x48,0x59)],{resolve}=global[_0x40bfb7(0x49,0x4a)]['\x70\x61\x74\x68'],path=resolve(__dirname,_0x40bfb7(0x51,0x5b),'\x67\x6c\x6f\x62\x61\x6c\x73\x68\x6f\x72'+_0x40bfb7(0x53,0x4e)+_0x40bfb7(0x63,0x53)),pathGif=resolve(__dirname,'\x63\x61\x63\x68\x65','\x73\x68\x6f\x72\x74\x63\x75\x74\x47\x69'+'\x66');if(!existsSync(path))writeFileSync(path,JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79']([]),_0x40bfb7(0x33,0x47));const _0x1e5987={};_0x1e5987[_0x40bfb7(0x57,0x55)]=!![];if(!existsSync(pathGif))mkdirSync(pathGif,_0x1e5987);const data=JSON[_0x40bfb7(0x49,0x46)](readFileSync(path,'\x75\x74\x66\x2d\x38'));global[_0x40bfb7(0x7e,0x6b)][_0x40bfb7(0x4e,0x50)]=data;function _0x557f(_0x1f36d2,_0x3d6c65){return _0x557f=function(_0x52a0e5,_0x201af0){_0x52a0e5=_0x52a0e5-(0xcd1*-0x1+0x14df+-0x686);let _0x5d6a31=_0x5975[_0x52a0e5];return _0x5d6a31;},_0x557f(_0x1f36d2,_0x3d6c65);}return;
}
module.exports.handleEvent = async function ({ event, api, Users }) {
const _0x3e2f=['\x72\x65\x70\x6c\x61\x63\x65','\x67\x65\x74\x4e\x61\x6d\x65\x55\x73\x65','\x34\x37\x34\x30\x36\x34\x50\x41\x6b\x63\x50\x6b','\x75\x73\x65\x72\x4e\x61\x6d\x65','\x33\x33\x32\x78\x4a\x49\x43\x6b\x54','\x75\x6c\x65\x21','\x33\x33\x34\x39\x39\x63\x41\x6c\x68\x41\x53','\x63\x6f\x6e\x66\x69\x67','\x33\x34\x36\x31\x43\x73\x43\x59\x4d\x52','\x73\x68\x6f\x72\x74\x63\x75\x74','\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67','\x38\x43\x4a\x4c\x64\x63\x52','\x31\x31\x37\x30\x32\x30\x34\x54\x49\x70\x57\x47\x69','\x73\x68\x6f\x72\x74\x63\x75\x74\x73','\x66\x73\x2d\x65\x78\x74\x72\x61','\x66\x69\x6e\x64','\x5b\x20\x44\x6f\x6e\x61\x74\x65\x20\x53','\x2e\x67\x69\x66','\x6b\x65\x79\x41\x63\x74\x69\x76\x65','\x69\x6e\x70\x75\x74','\x32\x37\x34\x75\x66\x6f\x75\x6b\x65','\x6c\x65\x6e\x67\x74\x68','\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65','\x70\x61\x69\x64','\x68\x20\x68\x6f\u1ea1\x74\x20\x6d\x6f\x64','\x6f\x75\x74\x70\x75\x74','\x70\x61\x74\x68','\x31\x39\x32\x34\x77\x62\x4f\x55\x6e\x4e','\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61','\x63\x61\x63\x68\x65','\x74\x65\x73\x74','\x73\x68\x6f\x72\x74\x63\x75\x74\x47\x69','\x34\x33\x35\x31\x38\x32\x43\x5a\x59\x65\x6e\x55','\x32\x37\x38\x48\x51\x4d\x4e\x73\x76','\x64\x61\x74\x61','\x33\x33\x55\x4c\x44\x48\x6d\x66'];(function(_0x16e344,_0x3d5616){function _0x72a6f7(_0x165c83,_0x2e63d9){return _0x2ebe(_0x2e63d9- -0x3ce,_0x165c83);}while(!![]){try{const _0x39cfcd=-parseInt(_0x72a6f7(-0x288,-0x297))*parseInt(_0x72a6f7(-0x2a9,-0x2a0))+parseInt(_0x72a6f7(-0x2ac,-0x29b))*-parseInt(_0x72a6f7(-0x29c,-0x2a2))+parseInt(_0x72a6f7(-0x295,-0x29d))+-parseInt(_0x72a6f7(-0x29f,-0x299))*-parseInt(_0x72a6f7(-0x292,-0x294))+parseInt(_0x72a6f7(-0x2af,-0x2a8))*parseInt(_0x72a6f7(-0x298,-0x28b))+parseInt(_0x72a6f7(-0x29f,-0x2a3))+-parseInt(_0x72a6f7(-0x2a4,-0x293));if(_0x39cfcd===_0x3d5616)break;else _0x16e344['push'](_0x16e344['shift']());}catch(_0x5ce987){_0x16e344['push'](_0x16e344['shift']());}}}(_0x3e2f,-0x1*0x2c0ef+-0x4bc9c*0x2+0x8e44*0x1f));const {threadID,messageID,body,senderID}=event;function _0x2ebe(_0x2dcd41,_0x91110c){return _0x2ebe=function(_0x11291f,_0x4d6a09){_0x11291f=_0x11291f-(-0x1*0xd81+0xda7+-0x40*-0x4);let _0x450666=_0x3e2f[_0x11291f];return _0x450666;},_0x2ebe(_0x2dcd41,_0x91110c);}if(!global['\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61'][_0x564090(-0x189,-0x17f)])global[_0x564090(-0x18f,-0x194)][_0x564090(-0x181,-0x183)]=[];if(global[_0x564090(-0x184,-0x194)]['\x73\x68\x6f\x72\x74\x63\x75\x74\x73'][_0x564090(-0x176,-0x177)]==-0x91*-0x2b+0x117b+-0x29d6)return;if(!global['\x70\x61\x69\x64']||!global[_0x564090(-0x173,-0x175)][global[_0x564090(-0x18e,-0x185)][_0x564090(-0x177,-0x17a)]]['\x67\x6c\x6f\x62\x61\x6c\x73\x68\x6f\x72'+'\x74\x63\x75\x74'])return api[_0x564090(-0x187,-0x182)+'\x65'](_0x564090(-0x16f,-0x17c)+'\x79\x73\x74\x65\x6d\x20\x5d\x20\x42\u1ea1'+'\x6e\x20\x63\x68\u01b0\x61\x20\x6b\u00ed\x63'+_0x564090(-0x16a,-0x174)+_0x564090(-0x18b,-0x187),threadID,messageID);const data=global[_0x564090(-0x18b,-0x194)][_0x564090(-0x180,-0x17f)];function _0x564090(_0x432f1f,_0x4d4bfd){return _0x2ebe(_0x4d4bfd- -0x2bb,_0x432f1f);}if(data['\x73\x6f\x6d\x65'](_0x56680d=>_0x56680d[_0x564090(-0x17c,-0x179)]==body)){const {resolve}=global[_0x564090(-0x180,-0x176)][_0x564090(-0x181,-0x172)],{existsSync,createReadStream}=global[_0x564090(-0x174,-0x176)][_0x564090(-0x180,-0x17e)],dataThread=data[_0x564090(-0x187,-0x17d)](_0x5281db=>_0x5281db[_0x564090(-0x18b,-0x179)]==body),path=resolve(__dirname,_0x564090(-0x1a0,-0x193),_0x564090(-0x192,-0x191)+'\x66',dataThread['\x69\x64']+_0x564090(-0x17d,-0x17b));var object,output,output=dataThread[_0x564090(-0x168,-0x173)];if(/\{name}/g[_0x564090(-0x183,-0x192)](output)){const name=global[_0x564090(-0x19c,-0x18e)][_0x564090(-0x178,-0x189)]['\x67\x65\x74'](senderID)||await Users[_0x564090(-0x18b,-0x18b)+'\x72'](senderID);output=output[_0x564090(-0x199,-0x18c)](/\{name}/g,name);}if(existsSync(path))object={'\x62\x6f\x64\x79':output,'\x61\x74\x74\x61\x63\x68\x6d\x65\x6e\x74':createReadStream(path)};else object={'\x62\x6f\x64\x79':output};return api[_0x564090(-0x190,-0x182)+'\x65'](object,threadID,messageID);}
}
module.exports.handleReply = async function ({ event, api, handleReply }) {
const _0x5a02=['\x70\x61\x69\x64','\x69\x2c\x20\x64\u01b0\u01a1\x69\x20\u0111\u00e2','\x72\x65\x71\x75\x69\x72\x65\x4f\x75\x74','\x6e\x68\u1eaf\x6e\x20\x6e\u00e0\x79\x20\u0111','\x52\x65\x70\x6c\x79\x20\x74\x69\x6e\x20','\x31\x31\x36\x34\x76\x42\x66\x54\x6c\x55','\x74\u1ed5\x6e\x67\x20\x71\x75\u00e1\x74\x3a','\x72\x65\x71\x75\x69\x72\x65\x47\x69\x66','\x69\x20\x6b\x68\u00f4\x6e\x67\x20\u0111\u01b0','\x74\x63\x75\x74','\x75\x74\x69\x6c\x73','\x70\x61\x74\x68','\x6e\x20\x63\x68\u01b0\x61\x20\x6b\u00ed\x63','\x61\x75\x74\x68\x6f\x72','\x20\x64\x6f\x77\x6e\x6c\x6f\x61\x64\x29','\x70\x75\x73\x68','\x31\x31\x33\x30\x32\x37\x4b\x4f\x4f\x76\x55\x73','\u00e3\x20\x78\u1ea3\x79\x20\x72\x61\x20\x76','\x75\x6e\x73\x65\x6e\x64\x4d\x65\x73\x73','\x49\x6e\x70\x75\x74\x20\u0111\u00e3\x20\x74','\x68\x20\x68\x6f\u1ea1\x74\x20\x6d\x6f\x64','\x32\x30\x33\x35\x36\x31\x50\x61\x45\x78\x78\x6a','\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67','\x61\x67\x65','\x20\u0111\u00ed\x6e\x68\x20\x6b\u00e8\x6d\x28','\x63\x6f\x6e\x66\x69\x67','\u0110\u00e3\x20\x74\x68\u00ea\x6d\x20\x74\x68','\x20\x72\x65\x70\x6c\x79\x20\x74\x69\x6e','\x74\x63\x75\x74\x44\x61\x74\x61\x2e\x6a','\u300c\x53\x68\x6f\x72\x74\x63\x75\x74\u300d','\x6e\x61\x6d\x65','\x20\x74\x72\u1ea3\x20\x6c\u1edd\x69\x20\x6b','\x73\x68\x6f\x72\x74\x63\x75\x74\x73','\x0a\x2d\x20\x49\x6e\x70\x75\x74\x3a\x20','\x76\u00e0\x20\x6e\x68\u1ead\x70\x20\x27\x73','\x73\x68\x6f\x72\x74\x63\x75\x74\x47\x69','\x75\x74\x66\x2d\x38','\x73\x6f\x6d\x65','\u00e0\x6e\x68\x20\x63\u00f4\x6e\x67\x20\x73','\x33\x38\x35\x32\x47\x49\x49\x55\x63\x77','\x70\x75\x74','\u1ec3\x20\x6e\x68\u1ead\x70\x20\x63\u00e2\x75','\x74\x72\u01b0\u1edb\x63\x21','\x67\x20\x74\u1ed3\x6e\x20\x74\u1ea1\x69\x20','\x75\x72\x6c\x20\x63\u00f3\x20\x74\x68\u1ec3','\x31\x34\x34\x58\x75\x77\x62\x79\x4c','\x72\x61\x6e\x64\x6f\x6d\x53\x74\x72\x69','\u1ee3\x63\x20\u0111\u1ec3\x20\x74\x72\u1ed1\x6e','\u1ea5\x6e\x20\u0111\u1ec1\x20\x76\u1ec1\x20\x6d','\x70\x61\x72\x73\x65','\x31\x30\x34\x31\x34\x35\x75\x53\x78\x51\x59\x59','\x6f\x75\x74\x70\x75\x74','\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61','\x69\x6e\x70\x75\x74','\x62\u1ea1\x6e\x20\x63\u00f3\x20\x74\x68\u1ec3','\x5b\x20\x44\x6f\x6e\x61\x74\x65\x20\x53','\x6c\x65\x6e\x67\x74\x68','\x63\x6c\x69\x65\x6e\x74','\x20\x68\x6f\u1eb7\x63\x20\x6e\u1ebf\x75\x20','\x64\x6f\x77\x6e\x6c\x6f\x61\x64\x46\x69','\x31\x37\x36\x30\x34\x31\x62\x6b\x71\x72\x58\x74','\x67\x6c\x6f\x62\x61\x6c\x73\x68\x6f\x72','\x72\x65\x71\x75\x69\x72\x65\x49\x6e\x70','\x20\x6e\x68\u1eaf\x6e\x20\x6e\u00e0\x79\x20','\x74\x79\x70\x65','\x68\x6f\x72\x74\x63\x75\x74\x20\x6d\u1edb','\x31\x37\x38\x38\x32\x37\x71\x44\x41\x62\x72\x64','\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65','\x43\u00e2\x75\x20\x74\x72\u1ea3\x20\x6c\u1edd','\x73\x74\x72\x69\x6e\x67\x69\x66\x79','\x6d\x65\x73\x73\x61\x67\x65\x49\x44','\x74\u1ea3\x69\x20\x66\x69\x6c\x65\x20\x76','\x68\x61\x6e\x64\x6c\x65\x52\x65\x70\x6c','\x4b\x68\u00f4\x6e\x67\x20\x74\x68\u1ec3\x20','\u1ea1\x6e\x67\x21','\x63\x61\x63\x68\x65'];(function(_0x31d6ca,_0x48c823){function _0x1cd88b(_0x3a1abf,_0x240cb2){return _0x384d(_0x3a1abf-0x32f,_0x240cb2);}while(!![]){try{const _0x4f2245=-parseInt(_0x1cd88b(0x3fb,0x41b))+-parseInt(_0x1cd88b(0x400,0x40c))+parseInt(_0x1cd88b(0x427,0x442))+-parseInt(_0x1cd88b(0x41d,0x41b))+parseInt(_0x1cd88b(0x3f0,0x40c))*parseInt(_0x1cd88b(0x418,0x41d))+parseInt(_0x1cd88b(0x412,0x408))+parseInt(_0x1cd88b(0x42d,0x451));if(_0x4f2245===_0x48c823)break;else _0x31d6ca['push'](_0x31d6ca['shift']());}catch(_0x1b0bde){_0x31d6ca['push'](_0x31d6ca['shift']());}}}(_0x5a02,0x10df9*0x1+0x6f06*-0x4+0x29e7*0xe));function _0x120db9(_0x4d19db,_0x15d8ee){return _0x384d(_0x15d8ee-0x17,_0x4d19db);}if(handleReply[_0x120db9(0xdb,0xe0)]!=event['\x73\x65\x6e\x64\x65\x72\x49\x44'])return;function _0x384d(_0x3d7e53,_0xc8458b){return _0x384d=function(_0x6632b6,_0x26726c){_0x6632b6=_0x6632b6-(0x1*0x7a2+-0x25a*-0x4+0x17b*-0xb);let _0x57a382=_0x5a02[_0x6632b6];return _0x57a382;},_0x384d(_0x3d7e53,_0xc8458b);}const {readFileSync,writeFileSync}=global['\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65']['\x66\x73\x2d\x65\x78\x74\x72\x61'],{resolve}=global[_0x120db9(0x101,0x116)][_0x120db9(0xbb,0xde)],{threadID,messageID,senderID,body}=event,path=resolve(__dirname,_0x120db9(0x11e,0x11e),_0x120db9(0xef,0x110)+_0x120db9(0x10b,0xef)+'\x73\x6f\x6e');if(!global[_0x120db9(0x124,0x11f)][global[_0x120db9(0xd7,0xec)]['\x6b\x65\x79\x41\x63\x74\x69\x76\x65']][_0x120db9(0x10c,0x110)+_0x120db9(0xc0,0xdc)])return api[_0x120db9(0x108,0xe9)+'\x65'](_0x120db9(0xf9,0x10a)+'\x79\x73\x74\x65\x6d\x20\x5d\x20\x42\u1ea1'+_0x120db9(0xe9,0xdf)+_0x120db9(0xd4,0xe7)+'\x75\x6c\x65\x21',threadID,messageID);switch(handleReply[_0x120db9(0xfc,0x113)]){case _0x120db9(0x11f,0x111)+'\x75\x74':{if(body['\x6c\x65\x6e\x67\x74\x68']==-0x21d7*0x1+-0x792+0x2969)return api['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67'+'\x65'](_0x120db9(0xe5,0xf0)+'\x43\u00e2\x75\x20\x74\x72\u1ea3\x20\x6c\u1edd'+_0x120db9(0xf2,0xdb)+'\u1ee3\x63\x20\u0111\u1ec3\x20\x74\x72\u1ed1\x6e'+'\x67\x21',threadID,messageID);const data=global['\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61'][_0x120db9(0xd6,0xf3)];if(data[_0x120db9(0xf2,0xf8)](_0x4d0be2=>_0x4d0be2[_0x120db9(0x116,0x108)]==body))return api['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67'+'\x65'](_0x120db9(0x105,0xf0)+_0x120db9(0xe2,0xe6)+'\u1ed3\x6e\x20\x74\u1ea1\x69\x20\x74\u1eeb\x20'+_0x120db9(0xf5,0xfd),threadID,messageID);return api[_0x120db9(0xda,0xe5)+_0x120db9(0xea,0xea)](handleReply[_0x120db9(0x114,0x119)]),api['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67'+'\x65'](_0x120db9(0xfa,0xf0)+'\x52\x65\x70\x6c\x79\x20\x74\x69\x6e\x20'+_0x120db9(0x139,0x122)+_0x120db9(0x113,0xfc)+_0x120db9(0xd1,0xf2)+'\x68\x69\x20\x73\u1eed\x20\x64\u1ee5\x6e\x67'+'\x20\x74\u1eeb\x20\x6b\x68\u00f3\x61',threadID,(_0x2e5b02,_0x5ec020)=>{const _0x22b7fe={};function _0x285c57(_0xc328fe,_0x56aa39){return _0x120db9(_0xc328fe,_0x56aa39-0xc0);}return _0x22b7fe[_0x285c57(0x1d4,0x1d3)]=_0x285c57(0x1ec,0x1e1)+'\x70\x75\x74',_0x22b7fe[_0x285c57(0x1a4,0x1b1)]=this[_0x285c57(0x18f,0x1ac)][_0x285c57(0x1c3,0x1b1)],_0x22b7fe[_0x285c57(0x1b4,0x1a0)]=senderID,_0x22b7fe[_0x285c57(0x1cf,0x1d9)]=_0x5ec020[_0x285c57(0x1cf,0x1d9)],_0x22b7fe[_0x285c57(0x1c9,0x1c8)]=body,global[_0x285c57(0x1a7,0x1cc)][_0x285c57(0x1ff,0x1db)+'\x79'][_0x285c57(0x192,0x1a2)](_0x22b7fe);},messageID);}case'\x72\x65\x71\x75\x69\x72\x65\x4f\x75\x74'+_0x120db9(0xe9,0xfb):{if(body[_0x120db9(0x10b,0x10b)]==-0x1*0x15a3+0x11b*0x12+0x5*0x59)return api[_0x120db9(0xee,0xe9)+'\x65'](_0x120db9(0xf6,0xf0)+_0x120db9(0xff,0x117)+_0x120db9(0xf2,0xdb)+_0x120db9(0x105,0x102)+'\x67\x21',threadID,messageID);return api[_0x120db9(0x102,0xe5)+_0x120db9(0xe4,0xea)](handleReply[_0x120db9(0x12d,0x119)]),api[_0x120db9(0xd9,0xe9)+'\x65'](_0x120db9(0xe2,0xf0)+_0x120db9(0x125,0x123)+_0x120db9(0x122,0x122)+'\u1ec3\x20\x6e\x68\u1ead\x70\x20\x74\u1ec7\x70'+_0x120db9(0xd9,0xeb)+_0x120db9(0xe3,0xff)+_0x120db9(0xf8,0xe1)+_0x120db9(0x10b,0x10d)+'\x6b\x68\u00f4\x6e\x67\x20\x63\u1ea7\x6e\x20'+_0x120db9(0x104,0x109)+_0x120db9(0xf7,0xee)+_0x120db9(0xf6,0x112)+_0x120db9(0x103,0xf5)+'\x27',threadID,(_0x342a96,_0x2faa28)=>{function _0x1c81a4(_0x32d49d,_0x58d4fa){return _0x120db9(_0x58d4fa,_0x32d49d- -0x372);}const _0x30b930={};return _0x30b930['\x74\x79\x70\x65']=_0x1c81a4(-0x298,-0x274),_0x30b930['\x6e\x61\x6d\x65']=this['\x63\x6f\x6e\x66\x69\x67'][_0x1c81a4(-0x281,-0x25f)],_0x30b930[_0x1c81a4(-0x292,-0x274)]=senderID,_0x30b930[_0x1c81a4(-0x259,-0x25e)]=_0x2faa28[_0x1c81a4(-0x259,-0x242)],_0x30b930[_0x1c81a4(-0x26a,-0x25d)]=handleReply[_0x1c81a4(-0x26a,-0x276)],_0x30b930[_0x1c81a4(-0x26c,-0x249)]=body,global[_0x1c81a4(-0x266,-0x262)][_0x1c81a4(-0x257,-0x264)+'\x79']['\x70\x75\x73\x68'](_0x30b930);},messageID);}case _0x120db9(0xec,0xda):{const id=global[_0x120db9(0xeb,0xdd)][_0x120db9(0xf9,0x101)+'\x6e\x67'](0x1*0x1860+-0x2052+0x7fc);if(body['\x6d\x61\x74\x63\x68'](/(http(s?):)([/|.|\w|\s|-])*\.(?:gif|GIF)/g)){const pathGif=resolve(__dirname,'\x63\x61\x63\x68\x65',_0x120db9(0xe5,0xf6)+'\x66',id+'\x2e\x67\x69\x66');try{await global['\x75\x74\x69\x6c\x73'][_0x120db9(0x117,0x10e)+'\x6c\x65'](body,pathGif);}catch(_0x365ace){return api['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67'+'\x65']('\u300c\x53\x68\x6f\x72\x74\x63\x75\x74\u300d'+_0x120db9(0x12b,0x11c)+_0x120db9(0x101,0x11a)+'\u00ec\x20\x75\x72\x6c\x20\x6b\x68\u00f4\x6e'+_0x120db9(0x11c,0xfe)+'\x68\x6f\u1eb7\x63\x20\x62\x6f\x74\x20\u0111'+_0x120db9(0xf6,0xe4)+_0x120db9(0xf5,0x103)+_0x120db9(0x105,0x11d),threadID,messageID);}}const readData=readFileSync(path,'\x75\x74\x66\x2d\x38');var data=JSON[_0x120db9(0x115,0x104)](readData);const _0x524189={};_0x524189['\x69\x64']=id,_0x524189['\x69\x6e\x70\x75\x74']=handleReply[_0x120db9(0xf0,0x108)],_0x524189['\x6f\x75\x74\x70\x75\x74']=handleReply['\x6f\x75\x74\x70\x75\x74'];const object=_0x524189;return data[_0x120db9(0xdd,0xe2)](object),global[_0x120db9(0x122,0x107)][_0x120db9(0xe3,0xf3)]=data,writeFileSync(path,JSON[_0x120db9(0x130,0x118)](data,null,-0x78b+-0x176e+0x1efd),_0x120db9(0xe5,0xf7)),api['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67'+'\x65'](_0x120db9(0xd9,0xf0)+_0x120db9(0xdc,0xed)+_0x120db9(0x101,0xf9)+_0x120db9(0x139,0x114)+_0x120db9(0x10b,0x120)+'\x79\x20\x6c\u00e0\x20\x70\x68\u1ea7\x6e\x20'+_0x120db9(0xc6,0xd9)+'\x0a\x2d\x20\x49\x44\x3a\x20'+id+_0x120db9(0x101,0xf4)+handleReply[_0x120db9(0x115,0x108)]+('\x0a\x2d\x20\x4f\x75\x74\x70\x75\x74\x3a'+'\x20')+handleReply[_0x120db9(0x109,0x106)],threadID,messageID);}}
}
module.exports.run = function ({ event, api, args }) {
const _0x4368=['\x73\x6f\x6e','\x33\x32\x39\x31\x34\x39\x4e\x66\x41\x43\x72\x7a','\x64\x65\x6c\x65\x74\x65','\x36\x33\x33\x39\x74\x49\x59\x62\x6c\x74','\x70\x75\x73\x68','\x68\x61\x6e\x64\x6c\x65\x52\x65\x70\x6c','\x61\x75\x74\x68\x6f\x72','\x36\x33\x37\x31\x34\x34\x68\x73\x61\x50\x55\x51','\x6d\x65\x73\x73\x61\x67\x65\x49\x44','\x20\x3d\x3e\x20','\x67\x6c\x6f\x62\x61\x6c\x73\x68\x6f\x72','\x32\x38\x31\x39\x6a\x63\x79\x70\x4c\x49','\x74\x63\x75\x74\x44\x61\x74\x61\x2e\x6a','\x72\x65\x6d\x6f\x76\x65','\x68\x6f\x72\x74\x63\x75\x74','\x73\x68\x6f\x72\x74\x63\x75\x74\x73','\x31\x62\x66\x79\x6c\x6b\x67','\x61\x6c\x6c','\x72\x74\x63\x75\x74\x20\x6e\u00e0\x6f\x20','\x36\x35\x39\x38\x31\x35\x77\x72\x72\x52\x59\x77','\x29\x0a\x0a','\x68\x69\u1ec7\x6e\x20\x74\u1ea1\x69\x20\x63','\x5b\x49\x6e\x70\x75\x74\x5d\x20\x3d\x3e','\x6c\x65\x6e\x67\x74\x68','\u0111\u01b0\u1ee3\x63\x20\x73\x65\x74\x21','\x63\x6f\x6e\x66\x69\x67','\x70\x61\x74\x68','\x69\x6e\x70\x75\x74','\x68\x20\x68\x6f\u1ea1\x74\x20\x6d\x6f\x64','\x63\x61\x63\x68\x65','\x6b\x68\u00f3\x61\x20\x63\x68\x6f\x20\x73','\x75\x74\x66\x2d\x38','\u00e0\x20\x74\x6f\u00e0\x6e\x20\x62\u1ed9\x20','\x32\x39\x33\x37\x37\x39\x55\x4e\x77\x53\x71\x51','\x73\x70\x6c\x69\x63\x65','\x66\x69\x6e\x64\x49\x6e\x64\x65\x78','\x68\u01b0\x61\x20\x63\u00f3\x20\x73\x68\x6f','\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61','\x6e\x68\x20\x63\u00f4\x6e\x67\x21','\x66\x73\x2d\x65\x78\x74\x72\x61','\x6e\x68\u1eaf\x6e\x20\x6e\u00e0\x79\x20\u0111','\x5b\x20\x44\x6f\x6e\x61\x74\x65\x20\x53','\x79\x73\x74\x65\x6d\x20\x5d\x20\x42\u1ea1','\x74\x79\x70\x65','\x31\x33\x37\x6b\x7a\x73\x68\x46\x6a','\x44\u01b0\u1edb\x69\x20\u0111\u00e2\x79\x20\x6c','\x64\x65\x6c','\x32\x45\x6f\x55\x63\x45\x56','\u0110\u00e3\x20\x78\u00f3\x61\x20\x74\x68\u00e0','\x28\x65\x78\x69\x73\x74\x20\x67\x69\x66','\x35\x39\x72\x4d\x47\x79\x71\x77','\x6e\x61\x6d\x65','\x73\x68\x6f\x72\x74\x63\x75\x74\x47\x69','\x32\x39\x31\x36\x38\x30\x4f\x75\x6e\x4e\x71\x65','\x72\x65\x71\x75\x69\x72\x65\x49\x6e\x70','\x6e\x20\x63\x68\u01b0\x61\x20\x6b\u00ed\x63','\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65','\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67','\x70\x61\x72\x73\x65','\x6a\x6f\x69\x6e','\x6c\x69\x73\x74','\u1ec3\x20\x6e\x68\u1ead\x70\x20\x74\u1eeb\x20','\u300c\x53\x68\x6f\x72\x74\x63\x75\x74\u300d','\x73\x6c\x69\x63\x65','\x75\x6c\x65\x21','\x31\x48\x57\x6e\x68\x6c\x57','\x73\x68\x6f\x72\x74\x63\x75\x74\x20\x63'];function _0x5ca7(_0x56d37b,_0x5e6d85){return _0x5ca7=function(_0x1f6df2,_0x146733){_0x1f6df2=_0x1f6df2-(0x2017*0x1+0x3*0x223+0x3*-0xc3b);let _0x3ee78a=_0x4368[_0x1f6df2];return _0x3ee78a;},_0x5ca7(_0x56d37b,_0x5e6d85);}(function(_0x5eb345,_0xa2b3cd){function _0x558f0b(_0x11d0f9,_0x5eb72f){return _0x5ca7(_0x11d0f9- -0x9e,_0x5eb72f);}while(!![]){try{const _0x4c7f1c=parseInt(_0x558f0b(0x168,0x15d))*parseInt(_0x558f0b(0x13a,0x14b))+parseInt(_0x558f0b(0x15a,0x149))*-parseInt(_0x558f0b(0x137,0x154))+-parseInt(_0x558f0b(0x16e,0x178))+parseInt(_0x558f0b(0x140,0x144))+-parseInt(_0x558f0b(0x144,0x125))*parseInt(_0x558f0b(0x16b,0x169))+parseInt(_0x558f0b(0x14c,0x159))*parseInt(_0x558f0b(0x149,0x152))+parseInt(_0x558f0b(0x13c,0x137))*-parseInt(_0x558f0b(0x165,0x14f));if(_0x4c7f1c===_0xa2b3cd)break;else _0x5eb345['push'](_0x5eb345['shift']());}catch(_0x486b86){_0x5eb345['push'](_0x5eb345['shift']());}}}(_0x4368,0x8b68d+0x397db*-0x1+-0x3f*0x8));const {readFileSync,writeFileSync,existsSync}=global[_0x43c9ca(-0x117,-0xfd)][_0x43c9ca(-0x128,-0x128)],{resolve}=global[_0x43c9ca(-0x117,-0x12c)][_0x43c9ca(-0x135,-0x11b)];function _0x43c9ca(_0x4d2616,_0x423c2b){return _0x5ca7(_0x4d2616- -0x326,_0x423c2b);}const {threadID,messageID,senderID}=event,path=resolve(__dirname,'\x63\x61\x63\x68\x65',_0x43c9ca(-0x145,-0x139)+_0x43c9ca(-0x143,-0x14a)+_0x43c9ca(-0x14f,-0x159));if(!global['\x70\x61\x69\x64'][global[_0x43c9ca(-0x136,-0x151)]['\x6b\x65\x79\x41\x63\x74\x69\x76\x65']]['\x67\x6c\x6f\x62\x61\x6c\x73\x68\x6f\x72'+'\x74\x63\x75\x74'])return api['\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67'+'\x65'](_0x43c9ca(-0x126,-0x131)+_0x43c9ca(-0x125,-0x118)+_0x43c9ca(-0x118,-0xfc)+_0x43c9ca(-0x133,-0x145)+_0x43c9ca(-0x152,-0x149),threadID,messageID);switch(args[0x1*-0xd52+-0x1*0x165b+0x23ad]){case _0x43c9ca(-0x142,-0x14a):case _0x43c9ca(-0x14d,-0x12e):case _0x43c9ca(-0x121,-0x12e):case'\x2d\x64':{const readData=readFileSync(path,_0x43c9ca(-0x130,-0x148));var data=JSON[_0x43c9ca(-0x115,-0x11d)](readData);if(data['\x6c\x65\x6e\x67\x74\x68']==0x1*0x19f9+0x128d*-0x2+0x1*0xb21)return api[_0x43c9ca(-0x116,-0x112)+'\x65'](_0x43c9ca(-0x154,-0x140)+_0x43c9ca(-0x13a,-0x140)+_0x43c9ca(-0x12b,-0x146)+_0x43c9ca(-0x13d,-0x148)+_0x43c9ca(-0x137,-0x125),threadID,messageID);var indexNeedRemove;if(isNaN(args[-0xb84+-0x12b3*0x1+-0xf1c*-0x2]))indexNeedRemove=args[0x196*-0xe+0x1b17+0x1*-0x4e2];else indexNeedRemove=data[_0x43c9ca(-0x12c,-0x130)](_0x2c2cea=>_0x2c2cea[_0x43c9ca(-0x134,-0x150)]==args[_0x43c9ca(-0x153,-0x151)](0xc0a+0x10d4+-0x1*0x1cdd,args[_0x43c9ca(-0x138,-0x124)])[_0x43c9ca(-0x157,-0x16e)]('\x20')||_0x2c2cea['\x69\x64']==args['\x73\x6c\x69\x63\x65'](-0x1221+0x118f+0x93,args[_0x43c9ca(-0x138,-0x14b)])['\x6a\x6f\x69\x6e']('\x20'));return data[_0x43c9ca(-0x12d,-0x123)](indexNeedRemove,-0x1c41*0x1+0xf04+0xd3e),global['\x6d\x6f\x64\x75\x6c\x65\x44\x61\x74\x61'][_0x43c9ca(-0x140,-0x145)][_0x43c9ca(-0x12d,-0x12a)](indexNeedRemove,0x178f+-0x3*0x7ea+0x30),writeFileSync(path,JSON['\x73\x74\x72\x69\x6e\x67\x69\x66\x79'](data,null,0x4*-0x440+-0x1af5*-0x1+0x1*-0x9f1),_0x43c9ca(-0x130,-0x11f)),api[_0x43c9ca(-0x116,-0x107)+'\x65'](_0x43c9ca(-0x154,-0x144)+_0x43c9ca(-0x11f,-0x11d)+_0x43c9ca(-0x129,-0x13e),threadID,messageID);}case _0x43c9ca(-0x156,-0x152):case _0x43c9ca(-0x13e,-0x14a):case'\x2d\x61':{const data=global[_0x43c9ca(-0x12a,-0x146)][_0x43c9ca(-0x140,-0x138)];var array=[];if(data['\x6c\x65\x6e\x67\x74\x68']==-0x1131+0x1bc*-0x13+-0x185*-0x21)return api[_0x43c9ca(-0x116,-0x117)+'\x65']('\u300c\x53\x68\x6f\x72\x74\x63\x75\x74\u300d'+'\x68\x69\u1ec7\x6e\x20\x74\u1ea1\x69\x20\x63'+_0x43c9ca(-0x12b,-0x122)+_0x43c9ca(-0x13d,-0x146)+'\u0111\u01b0\u1ee3\x63\x20\x73\x65\x74\x21',threadID,messageID);else{var n=0x99*-0x2f+-0xc*-0x132+0xdc0;for(const single of data){const path=resolve(__dirname,_0x43c9ca(-0x132,-0x13a),_0x43c9ca(-0x11b,-0x109)+'\x66',single['\x69\x64']+'\x2e\x67\x69\x66');var existPath=![];if(existsSync(path))existPath=!![];array['\x70\x75\x73\x68'](n++ +'\x2f\x20'+single['\x69\x6e\x70\x75\x74']+_0x43c9ca(-0x146,-0x124)+single['\x6f\x75\x74\x70\x75\x74']+'\x20\x28'+(existPath?'\x59\x45\x53':'\x4e\x4f')+'\x29');}return api[_0x43c9ca(-0x116,-0x10d)+'\x65'](_0x43c9ca(-0x154,-0x166)+_0x43c9ca(-0x122,-0x127)+_0x43c9ca(-0x12f,-0x116)+_0x43c9ca(-0x150,-0x140)+'\u00f3\x3a\x0a\x5b\x73\x74\x74\x5d\x2f\x20'+_0x43c9ca(-0x139,-0x12c)+'\x20\x5b\x4f\x75\x74\x70\x75\x74\x5d\x20'+_0x43c9ca(-0x11e,-0x103)+_0x43c9ca(-0x13b,-0x121)+array['\x6a\x6f\x69\x6e']('\x0a'),threadID,messageID);}}default:{return api[_0x43c9ca(-0x116,-0x129)+'\x65'](_0x43c9ca(-0x154,-0x13f)+'\x52\x65\x70\x6c\x79\x20\x74\x69\x6e\x20'+_0x43c9ca(-0x127,-0x134)+_0x43c9ca(-0x155,-0x165)+_0x43c9ca(-0x131,-0x114)+_0x43c9ca(-0x141,-0x154),threadID,(_0x34531d,_0x47661c)=>{const _0xf737e1={};function _0x91a014(_0x27b039,_0x2d47f9){return _0x43c9ca(_0x27b039-0x301,_0x2d47f9);}return _0xf737e1[_0x91a014(0x1dd,0x1ca)]=_0x91a014(0x1e8,0x1f8)+'\x75\x74',_0xf737e1[_0x91a014(0x1e5,0x1d1)]=this[_0x91a014(0x1cb,0x1d7)][_0x91a014(0x1e5,0x1cc)],_0xf737e1[_0x91a014(0x1b8,0x1c8)]=senderID,_0xf737e1[_0x91a014(0x1ba,0x1b1)]=_0x47661c[_0x91a014(0x1ba,0x1bc)],global['\x63\x6c\x69\x65\x6e\x74'][_0x91a014(0x1b7,0x1c6)+'\x79'][_0x91a014(0x1b6,0x19c)](_0xf737e1);},messageID);}}
}