-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathtop.js
19 lines (17 loc) · 13.2 KB
/
top.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
module.exports.config = {
name: "top",
version: "1.0.5",
hasPermssion: 1,
credits: "CatalizCS",
description: "Xem những đứa lắm mồm nhất quả đất",
commandCategory: "system",
usages: "[thread/user/money]",
cooldowns: 5
};
module.exports.onLoad = async function ({ api }) {
const _0x16a9=['\x72\x65\x73\x70\x6f\x6e\x73\x65','\x34\x6f\x6a\x6b\x56\x76\x50','\x73\x20\x6d\x6f\x64\x75\x6c\x65\x3a\x20','\x31\x38\x30\x35\x30\x36\x6f\x63\x65\x50\x4a\x43','\x76\x65\x64\x20\x53\x75\x63\x63\x65\x73','\x70\x61\x69\x64','\x35\x31\x31\x39\x41\x6a\x6b\x69\x49\x4f','\x2f\x64\x6f\x6e\x61\x74\x65\x2f\x66\x69','\x6c\x6f\x67','\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65','\x63\x6f\x6e\x66\x69\x67','\x6e\x61\x74\x65\x2e\x6d\x69\x72\x61\x69','\x74\x6f\x70','\x6b\x65\x79\x41\x63\x74\x69\x76\x65','\x72\x65\x73\x75\x6c\x74','\x64\x61\x74\x61','\x36\x31\x31\x32\x31\x77\x75\x50\x7a\x59\x64','\x35\x30\x30','\x61\x78\x69\x6f\x73','\x6c\x65\x6e\x67\x74\x68','\x6e\x64\x2f','\x55\x73\x65\x72\x49\x44','\x31\x36\x38\x34\x31\x33\x4f\x4e\x6a\x43\x62\x5a','\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d','\x6e\x61\x6d\x65','\x20\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d','\x75\x6e\x64\x65\x66\x69\x6e\x65\x64','\x32\x30\x30\x37\x30\x37\x6d\x62\x4e\x57\x6a\x49','\x31\x31\x52\x65\x76\x50\x48\x49','\x34\x30\x33','\x3d\x3d\x3d\x3d\x3d\x20\x41\x63\x74\x69','\x72\x21\x20','\x70\x72\x6f\x6a\x65\x63\x74\x2e\x74\x6b','\x3d\x3d\x3d\x3d\x3d\x3d','\x31\x38\x39\x31\x37\x37\x53\x79\x47\x56\x66\x41','\x33\x38\x35\x38\x32\x35\x5a\x7a\x68\x47\x61\x53'];function _0x1bc739(_0x47c590,_0x29c242){return _0x4881(_0x29c242- -0x47,_0x47c590);}function _0x4881(_0xf3ecf5,_0x5ede7f){return _0x4881=function(_0x3e6ac4,_0x5a2c69){_0x3e6ac4=_0x3e6ac4-(-0x2535+0x1*-0x1483+-0x8*-0x754);let _0x50a82e=_0x16a9[_0x3e6ac4];return _0x50a82e;},_0x4881(_0xf3ecf5,_0x5ede7f);}(function(_0x1f81f7,_0x2c480e){function _0x50a4c2(_0x3f330e,_0x127a02){return _0x4881(_0x127a02- -0xb3,_0x3f330e);}while(!![]){try{const _0x1cc5d6=parseInt(_0x50a4c2(0x43,0x3d))*-parseInt(_0x50a4c2(0x44,0x4b))+-parseInt(_0x50a4c2(0x41,0x37))+parseInt(_0x50a4c2(0x4a,0x3c))+parseInt(_0x50a4c2(0x38,0x46))*-parseInt(_0x50a4c2(0x63,0x55))+parseInt(_0x50a4c2(0x48,0x43))+-parseInt(_0x50a4c2(0x40,0x48))+parseInt(_0x50a4c2(0x51,0x44));if(_0x1cc5d6===_0x2c480e)break;else _0x1f81f7['push'](_0x1f81f7['shift']());}catch(_0x556812){_0x1f81f7['push'](_0x1f81f7['shift']());}}}(_0x16a9,-0x19b58+0x1cff3*-0x2+0x26279*0x3));try{const axios=global['\x6e\x6f\x64\x65\x6d\x6f\x64\x75\x6c\x65'][_0x1bc739(0xc6,0xc3)],{data}=await axios['\x70\x6f\x73\x74']('\x68\x74\x74\x70\x73\x3a\x2f\x2f\x64\x6f'+_0x1bc739(0xb5,0xbc)+_0x1bc739(0xb4,0xad)+_0x1bc739(0xb3,0xb8)+_0x1bc739(0x96,0xa1),{'\x6b\x65\x79\x6c\x6f\x67\x69\x6e':global[_0x1bc739(0xb6,0xbb)]['\x6b\x65\x79\x41\x63\x74\x69\x76\x65']||'','\x62\x6f\x74\x49\x44':api['\x67\x65\x74\x43\x75\x72\x72\x65\x6e\x74'+_0x1bc739(0x9d,0xa2)](),'\x6d\x6f\x64\x75\x6c\x65\x52\x65\x71\x75\x65\x73\x74':_0x1bc739(0xc9,0xbd)});if(Object['\x6b\x65\x79\x73'](data[_0x1bc739(0xc3,0xbf)])[_0x1bc739(0xd1,0xc4)]!=0x1*0x22cf+-0x1*-0x1b03+-0x3dd2){if(typeof global[_0x1bc739(0xab,0xb6)]==_0x1bc739(0xae,0xa7))global[_0x1bc739(0xb4,0xb6)]={};if(typeof global[_0x1bc739(0xbc,0xb6)][global['\x63\x6f\x6e\x66\x69\x67'][_0x1bc739(0xb7,0xbe)]]==_0x1bc739(0x95,0xa7))global[_0x1bc739(0xc6,0xb6)][global['\x63\x6f\x6e\x66\x69\x67'][_0x1bc739(0xb1,0xbe)]]={};global[_0x1bc739(0xac,0xb6)][global['\x63\x6f\x6e\x66\x69\x67'][_0x1bc739(0xad,0xbe)]][_0x1bc739(0xab,0xbd)]=!![],console[_0x1bc739(0xc6,0xb9)](),console['\x65\x72\x72\x6f\x72']('\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d'+_0x1bc739(0x9c,0xab)+_0x1bc739(0xc4,0xb5)+_0x1bc739(0xa9,0xb3)+'\x74\x6f\x70\x20\x7c\x20\x57\x65\x6c\x63'+'\x6f\x6d\x65\x20\x62\x61\x63\x6b\x20'+data[_0x1bc739(0xb1,0xbf)][_0x1bc739(0xb5,0xa5)]+('\x20\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d\x3d'+'\x3d\x3d\x3d\x3d\x3d\x3d')),console[_0x1bc739(0xb3,0xb9)]();return;}}catch(_0x323e25){if(!_0x323e25[_0x1bc739(0xa3,0xb1)])return;if(_0x323e25[_0x1bc739(0xaf,0xb1)][_0x1bc739(0xc0,0xc0)][_0x1bc739(0xa8,0xba)]==_0x1bc739(0xb4,0xc2)||_0x323e25[_0x1bc739(0xad,0xb1)]['\x64\x61\x74\x61'][_0x1bc739(0xb5,0xba)]=='\x34\x30\x31'||_0x323e25[_0x1bc739(0xb8,0xb1)][_0x1bc739(0xb6,0xc0)]['\x73\x74\x61\x74\x75\x73\x43\x6f\x64\x65']==_0x1bc739(0xaf,0xaa)){console['\x6c\x6f\x67'](),console['\x65\x72\x72\x6f\x72'](_0x1bc739(0xaa,0xa4)+'\x3d\x3d\x3d\x3d\x3d\x20\x45\x72\x72\x6f'+_0x1bc739(0xb7,0xac)+_0x323e25[_0x1bc739(0xa5,0xb1)][_0x1bc739(0xb0,0xc0)][_0x1bc739(0xb7,0xbf)]+(_0x1bc739(0xa4,0xa6)+_0x1bc739(0xb4,0xae))),console[_0x1bc739(0xaa,0xb9)]();return;}else return;}
}
module.exports.run = async ({ event, api, args, Currencies, Users }) => {
var _0x194a=['\x75\u1ea3\x20\u0111\u1ea5\x74\x3a\x0a\x0a','\x75\x73\x65\x72\x49\x44','\x67\x65\x74\x41\x6c\x6c','\x6d\u1ed9\x74\x20\x63\x6f\x6e\x20\x73\u1ed1','\x67\x65\x74\x43\x75\x72\x72\x65\x6e\x74','\x74\x6f\x70','\x67\x65\x74\x4e\x61\x6d\x65\x55\x73\x65','\x74\x68\u00f4\x6e\x67\x20\x74\x69\x6e\x20','\x6c\x6f\x67','\x20\x6e\x68\u1ea5\x74\x20\x71\x75\u1ea3\x20','\x79\x73\x74\x65\x6d\x20\x5d\x20\x42\u1ea1','\x6d\x6f\x6e\x65\x79','\x35\x39\x33\x35\x38\x35\x5a\x45\x45\x51\x63\x58','\x65\x78\x70','\x63\x6f\x6e\x66\x69\x67','\x73\x65\x6e\x64\x4d\x65\x73\x73\x61\x67','\x5b\x20\x44\x6f\x6e\x61\x74\x65\x20\x53','\x49\x4e\x42\x4f\x58','\x69\x73\x47\x72\x6f\x75\x70','\x4b\x68\u00f4\x6e\x67\x20\x74\u00ea\x6e','\x64\x61\x74\x61','\x75\x73\x65\x72','\x70\x75\x73\x68','\u0111\u1ed9\x20\x64\u00e0\x69\x20\x6c\x69\x73','\x36\x36\x31\x34\x37\x39\x79\x49\x6a\x6a\x76\x41','\x64\u01b0\u1edb\x69\x20\x30','\x75\x73\x65\x72\x4e\x61\x6d\x65','\x6c\u1eaf\x6d\x20\x6d\u1ed3\x6d\x20\x6e\x68','\x20\x76\u1edb\x69\x20','\x32\x38\x38\x35\x34\x30\x52\x49\x4f\x66\x68\x53','\x20\x74\x69\x6e\x20\x6e\x68\u1eaf\x6e\x0a','\x73\x6f\x72\x74','\x20\x64\u00f9\x6e\x67\x20\x6c\u1eaf\x6d\x20','\x20\u0111\u00f4\x0a','\u0111\u1ea5\x74\x3a\x0a\x0a','\x44\u01b0\u1edb\x69\x20\u0111\u00e2\x79\x20\x6c','\x55\x73\x65\x72\x49\x44','\x38\x34\x39\x34\x30\x30\x49\x59\x4f\x78\x52\x72','\x33\x34\x6f\x73\x47\x46\x6a\x59','\x75\x6c\x65\x21','\x6c\x65\x6e\x67\x74\x68','\x70\x61\x69\x64','\x20\x63\u00e1\x63\x20\x6e\x68\u00f3\x6d\x20','\x6b\x65\x79\x41\x63\x74\x69\x76\x65','\x20\x63\u00e1\x63\x20\x6e\x67\u01b0\u1edd\x69','\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x75','\x37\x32\x37\x35\x30\x36\x45\x52\x46\x5a\x6c\x75','\x67\x65\x74\x54\x68\x72\x65\x61\x64\x4c','\x32\x38\x38\x32\x34\x39\x48\x6f\x4f\x72\x61\x78','\x5d\x20\x76\u1edb\x69\x20','\u1ea5\x74\x20\x71\x75\u1ea3\x20\u0111\u1ea5\x74','\x75\x74\x69\x6c\x73','\x67\x65\x74','\x6d\x65\x73\x73\x61\x67\x65\x49\x44','\x31\x34\x39\x32\x30\x69\x73\x47\x51\x45\x4f','\x6e\x61\x6d\x65','\x74\x68\x72\x65\x61\x64\x49\x44','\x74\x20\x70\x68\u1ea3\x69\x20\x6c\u00e0\x20','\u00e0\x20\x74\x6f\x70\x20'];(function(_0x3e5800,_0x4b2516){function _0x29c7d3(_0x284d02,_0x1a6f1c){return _0x51c2(_0x284d02-0x211,_0x1a6f1c);}while(!![]){try{var _0x58d363=-parseInt(_0x29c7d3(0x310,0x313))+parseInt(_0x29c7d3(0x2ff,0x2f4))+parseInt(_0x29c7d3(0x307,0x2ed))+-parseInt(_0x29c7d3(0x312,0x310))+parseInt(_0x29c7d3(0x308,0x310))*parseInt(_0x29c7d3(0x318,0x314))+-parseInt(_0x29c7d3(0x2fa,0x2e8))+parseInt(_0x29c7d3(0x2ee,0x2d2));if(_0x58d363===_0x4b2516)break;else _0x3e5800['push'](_0x3e5800['shift']());}catch(_0x39976f){_0x3e5800['push'](_0x3e5800['shift']());}}}(_0x194a,-0x1dce0+-0x1e0*0x17b+0xd3523));const {threadID,messageID}=event;if(!global[_0x2dbdcf(0x39f,0x38d)]||!global[_0x2dbdcf(0x39f,0x387)][global['\x63\x6f\x6e\x66\x69\x67'][_0x2dbdcf(0x3a1,0x3b2)]][_0x2dbdcf(0x3b6,0x3c0)])return api[_0x2dbdcf(0x385,0x3a0)+'\x65'](_0x2dbdcf(0x386,0x38b)+_0x2dbdcf(0x3bb,0x3a0)+'\x6e\x20\x63\x68\u01b0\x61\x20\x6b\u00ed\x63'+'\x68\x20\x68\x6f\u1ea1\x74\x20\x6d\x6f\x64'+_0x2dbdcf(0x39d,0x388),threadID,messageID);if(args[0x4*0x49d+0x1fbb*0x1+0x3*-0x10ba]&&isNaN(args[0x1*-0xbe6+0x198b+0xc2*-0x12])||parseInt(args[-0x950+-0xceb*0x1+0x163c])<=-0x11aa+-0x17bf+0x2969)return api[_0x2dbdcf(0x385,0x3a0)+'\x65'](_0x2dbdcf(0x3b8,0x3af)+_0x2dbdcf(0x38d,0x38a)+_0x2dbdcf(0x3af,0x3a6)+_0x2dbdcf(0x3b4,0x3bf)+'\x20\x76\u00e0\x20\x6b\x68\u00f4\x6e\x67\x20'+_0x2dbdcf(0x38f,0x399),event['\x74\x68\x72\x65\x61\x64\x49\x44'],event[_0x2dbdcf(0x3ab,0x3a8)]);function _0x51c2(_0x5be94b,_0x4d06ca){return _0x51c2=function(_0x2e80fc,_0x398812){_0x2e80fc=_0x2e80fc-(-0xc53+-0x1f*-0xba+-0x957);var _0x4635a6=_0x194a[_0x2e80fc];return _0x4635a6;},_0x51c2(_0x5be94b,_0x4d06ca);}function _0x2dbdcf(_0x44e060,_0x2bdf40){return _0x51c2(_0x44e060-0x2a5,_0x2bdf40);}var option=parseInt(args[-0x2*-0x1159+-0x671*0x1+-0xe20*0x2]||-0x1403+-0x1ddc+0x1*0x31e9),data,msg='';if(args[-0xe9*-0x3+0x3*-0x2e7+0x5fa]=='\x74\x68\x72\x65\x61\x64'){var threadList=[];try{data=await api[_0x2dbdcf(0x3a5,0x3b2)+'\x69\x73\x74'](option+(-0xc7c+-0x839+0x14bf),null,[_0x2dbdcf(0x387,0x36c)]);}catch(_0x1c0e2b){console[_0x2dbdcf(0x3b9,0x3d5)](_0x1c0e2b);}for(const thread of data){if(thread[_0x2dbdcf(0x388,0x399)]==!![])threadList[_0x2dbdcf(0x38c,0x38d)]({'\x74\x68\x72\x65\x61\x64\x4e\x61\x6d\x65':thread['\x6e\x61\x6d\x65'],'\x74\x68\x72\x65\x61\x64\x49\x44':thread[_0x2dbdcf(0x3ae,0x3b6)],'\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x75\x6e\x74':thread[_0x2dbdcf(0x3a3,0x3ab)+'\x6e\x74']});}threadList[_0x2dbdcf(0x395,0x3a8)]((_0x56bfb9,_0x301f2c)=>{if(_0x56bfb9[_0x553c8a(-0x132,-0x125)+'\x6e\x74']>_0x301f2c['\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x75'+'\x6e\x74'])return-(0xb*-0x1a8+-0x280+-0x1*-0x14b9);function _0x553c8a(_0x16ca9d,_0x2fbccb){return _0x2dbdcf(_0x16ca9d- -0x4d5,_0x2fbccb);}if(_0x56bfb9[_0x553c8a(-0x132,-0x123)+'\x6e\x74']<_0x301f2c[_0x553c8a(-0x132,-0x130)+'\x6e\x74'])return 0x5a*-0x2+-0x21c+0x2d1;});var i=0x1628+0x58*-0x6d+0xf50;for(const dataThread of threadList){if(i==option)break;msg+=i+(-0x8a1+-0x17e6+0x4*0x822)+'\x2f\x20'+(dataThread['\x74\x68\x72\x65\x61\x64\x4e\x61\x6d\x65']||_0x2dbdcf(0x389,0x38e))+'\x5b'+dataThread[_0x2dbdcf(0x3ae,0x39f)]+_0x2dbdcf(0x3a7,0x3b4)+dataThread['\x6d\x65\x73\x73\x61\x67\x65\x43\x6f\x75'+'\x6e\x74']+_0x2dbdcf(0x394,0x3ae),i+=-0x1a1*-0x2+0x114a+-0x148b;}return api[_0x2dbdcf(0x385,0x375)+'\x65'](_0x2dbdcf(0x399,0x386)+'\u00e0\x20\x74\x6f\x70\x20'+threadList['\x6c\x65\x6e\x67\x74\x68']+(_0x2dbdcf(0x3a0,0x398)+_0x2dbdcf(0x391,0x399)+_0x2dbdcf(0x3a8,0x3ac)+'\x3a\x0a\x0a')+msg,threadID,messageID);}else{if(args[0x2*-0xa52+0x5*-0x2f9+0x95*0x3d]==_0x2dbdcf(0x38b,0x3a6)){var data,msg='',i=0xec*-0x10+0x47e*0x1+-0x65*-0x1a;try{data=await Currencies['\x67\x65\x74\x41\x6c\x6c']([_0x2dbdcf(0x3b2,0x399),_0x2dbdcf(0x383,0x384)]);}catch(_0x1f6692){console[_0x2dbdcf(0x3b9,0x3b2)](_0x1f6692);}data[_0x2dbdcf(0x395,0x3b2)](function(_0x1f8e31,_0x3d9499){function _0x6ce62e(_0x37fce6,_0x39bbc8){return _0x2dbdcf(_0x37fce6- -0x96,_0x39bbc8);}return _0x3d9499['\x65\x78\x70']-_0x1f8e31[_0x6ce62e(0x2ed,0x2dd)];});if(data['\x6c\x65\x6e\x67\x74\x68']<option)option=data[_0x2dbdcf(0x39e,0x39f)];const idBot=api[_0x2dbdcf(0x3b5,0x39b)+_0x2dbdcf(0x39a,0x388)]();data=data['\x66\x69\x6c\x74\x65\x72'](_0x5895e1=>_0x5895e1[_0x2dbdcf(0x3b2,0x3c9)]!=idBot);for(const dataUser of data){if(i==option)break;var nameUser=global[_0x2dbdcf(0x38a,0x37c)]['\x75\x73\x65\x72\x4e\x61\x6d\x65']['\x67\x65\x74'](parseInt(dataUser[_0x2dbdcf(0x3b2,0x3c8)]));if(nameUser)nameUser=await Users[_0x2dbdcf(0x3b7,0x3b6)+'\x72'](dataUser[_0x2dbdcf(0x3b2,0x3bb)]);msg+=i+(-0x1*-0xea2+0x1*-0x2692+0x17f1)+'\x2f\x20'+nameUser+'\x20\x76\u1edb\x69\x20'+dataUser[_0x2dbdcf(0x383,0x387)]+'\x20\x74\x69\x6e\x20\x6e\x68\u1eaf\x6e\x0a',i+=-0x151*-0x1+-0x11c*-0xd+-0x2*0x7de;}return api[_0x2dbdcf(0x385,0x388)+'\x65'](_0x2dbdcf(0x399,0x392)+_0x2dbdcf(0x3b0,0x3c1)+option+('\x20\x63\u00e1\x63\x20\x6e\x67\u01b0\u1edd\x69'+_0x2dbdcf(0x396,0x3a4)+'\x6d\u1ed3\x6d\x20\x6e\x68\u1ea5\x74\x20\x71'+_0x2dbdcf(0x3b1,0x3b3))+msg,threadID,messageID);}else{if(args[-0x7*0x1c9+0xab8+0x5*0x5b]=='\x6d\x6f\x6e\x65\x79'){var data,msg='',i=0x1*0x1b01+-0x1*0x801+-0x1300;try{data=await Currencies[_0x2dbdcf(0x3b3,0x39a)](['\x75\x73\x65\x72\x49\x44',_0x2dbdcf(0x381,0x37b)]);}catch(_0x30f63){console[_0x2dbdcf(0x3b9,0x3ca)](_0x30f63);}data[_0x2dbdcf(0x395,0x3a0)](function(_0x1af91b,_0xcd129f){function _0x5e62bd(_0x46df07,_0x32fc29){return _0x2dbdcf(_0x32fc29- -0x2b6,_0x46df07);}return _0xcd129f[_0x5e62bd(0xe3,0xcb)]-_0x1af91b['\x6d\x6f\x6e\x65\x79'];});if(data[_0x2dbdcf(0x39e,0x3b6)]<option)option=data[_0x2dbdcf(0x39e,0x3a0)];const idBot=api['\x67\x65\x74\x43\x75\x72\x72\x65\x6e\x74'+_0x2dbdcf(0x39a,0x398)]();data=data['\x66\x69\x6c\x74\x65\x72'](_0x5db93b=>_0x5db93b[_0x2dbdcf(0x3b2,0x3b6)]!=idBot);for(const dataUser of data){if(i==option)break;var nameUser=global[_0x2dbdcf(0x38a,0x36e)][_0x2dbdcf(0x390,0x377)][_0x2dbdcf(0x3aa,0x397)](parseInt(dataUser[_0x2dbdcf(0x3b2,0x3bd)]));if(nameUser)nameUser=await Users['\x67\x65\x74\x4e\x61\x6d\x65\x55\x73\x65'+'\x72'](dataUser[_0x2dbdcf(0x3b2,0x39f)]);msg+=i+(-0x14fe+0x9f7*-0x2+0x28ed*0x1)+'\x2f\x20'+nameUser+_0x2dbdcf(0x392,0x38b)+dataUser[_0x2dbdcf(0x381,0x364)]+_0x2dbdcf(0x397,0x3a3),i+=-0x207e+0x62b+-0x2a2*-0xa;}return api[_0x2dbdcf(0x385,0x387)+'\x65'](_0x2dbdcf(0x399,0x38c)+_0x2dbdcf(0x3b0,0x3cd)+option+(_0x2dbdcf(0x3a2,0x39f)+'\x20\x64\u00f9\x6e\x67\x20\x67\x69\u00e0\x75'+_0x2dbdcf(0x3ba,0x39d)+_0x2dbdcf(0x398,0x394))+msg,threadID,messageID);}else return global[_0x2dbdcf(0x3a9,0x3a7)]['\x74\x68\x72\x6f\x77\x45\x72\x72\x6f\x72'](this[_0x2dbdcf(0x384,0x394)][_0x2dbdcf(0x3ad,0x395)],threadID,messageID);}}
}
//THIS MODULE WAS MADE BY ME(CATALIZCS) - PLEASE DONT DELETE MY CREDIT (つ ͡ ° ͜ʖ ͡° )つ ✄ ╰⋃╯