@znan/wabot 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,29 @@
1
+ declare class Cached {
2
+ static cacheFunction(id: any, meta: () => Promise<any>): void;
3
+ static getCache(m: any): void;
4
+ private cache;
5
+ private cacheTtl;
6
+ private nullCacheTtl;
7
+ constructor(defaultCacheTtl?: number, defaultNullCacheTtl?: number);
8
+ /**
9
+ *
10
+ * @param key
11
+ * @param value
12
+ * @param ttl
13
+ */
14
+ setCache(key: string, value: any, ttl: number): void;
15
+ /**
16
+ *
17
+ * @param key
18
+ * @returns
19
+ */
20
+ getCache<T = any>(key: string): T | null;
21
+ /**
22
+ *
23
+ * @param key
24
+ * @param asyncFunction
25
+ * @returns
26
+ */
27
+ cacheFunction<T = any>(key: string, asyncFunction: () => Promise<T>): Promise<T | null>;
28
+ }
29
+ export = Cached;
@@ -0,0 +1 @@
1
+ 'use strict';(function(_0x2a2280,_0x15d64b){const _0x99d3f1=_0x514a,_0x41f55b=_0x2a2280();while(!![]){try{const _0x2b9b75=-parseInt(_0x99d3f1(0x8c))/0x1+-parseInt(_0x99d3f1(0x93))/0x2+-parseInt(_0x99d3f1(0x98))/0x3+-parseInt(_0x99d3f1(0x94))/0x4*(parseInt(_0x99d3f1(0x9a))/0x5)+-parseInt(_0x99d3f1(0x9e))/0x6+-parseInt(_0x99d3f1(0x8f))/0x7*(parseInt(_0x99d3f1(0x96))/0x8)+parseInt(_0x99d3f1(0x90))/0x9;if(_0x2b9b75===_0x15d64b)break;else _0x41f55b['push'](_0x41f55b['shift']());}catch(_0x315925){_0x41f55b['push'](_0x41f55b['shift']());}}}(_0x4bc5,0x618a2));function _0x9860(){const _0x2f01cb=_0x514a,_0x3cb447=[_0x2f01cb(0x8e),_0x2f01cb(0x9c),_0x2f01cb(0x91),_0x2f01cb(0x8b),'cacheFunction',_0x2f01cb(0xa0),_0x2f01cb(0x87),_0x2f01cb(0x9f),_0x2f01cb(0x8a),_0x2f01cb(0x95),'error','delete',_0x2f01cb(0x86),_0x2f01cb(0x8d),_0x2f01cb(0x97),'301284xOggxk','exports','cacheTtl',_0x2f01cb(0x88),'488fvbBbJ','Method\x20not\x20implemented.',_0x2f01cb(0x99),_0x2f01cb(0x89),_0x2f01cb(0x9b)];return _0x9860=function(){return _0x3cb447;},_0x9860();}const _0x122df2=_0x1c00;(function(_0x3afce9,_0x32d2f8){const _0x115f39=_0x514a,_0x3784ef=_0x1c00,_0x162f12=_0x3afce9();while(!![]){try{const _0x4d2aa6=parseInt(_0x3784ef(0x6f))/0x1+parseInt(_0x3784ef(0x79))/0x2+parseInt(_0x3784ef(0x69))/0x3+-parseInt(_0x3784ef(0x73))/0x4*(parseInt(_0x3784ef(0x77))/0x5)+-parseInt(_0x3784ef(0x6e))/0x6*(parseInt(_0x3784ef(0x7f))/0x7)+-parseInt(_0x3784ef(0x72))/0x8+-parseInt(_0x3784ef(0x7a))/0x9*(-parseInt(_0x3784ef(0x6c))/0xa);if(_0x4d2aa6===_0x32d2f8)break;else _0x162f12[_0x115f39(0x92)](_0x162f12['shift']());}catch(_0x1b7306){_0x162f12['push'](_0x162f12['shift']());}}}(_0x9860,0x8f6dd));class Cached{static[_0x122df2(0x7c)](_0x372dc8,_0x2d91f1){const _0x34e99a=_0x122df2;throw new Error(_0x34e99a(0x74));}static[_0x122df2(0x78)](_0xdcb8eb){const _0x3d2533=_0x514a;throw new Error(_0x3d2533(0x9d));}constructor(_0x5c8d0b=0x2bf20,_0x2c040d=0xea60){const _0x320590=_0x514a,_0x5f5329=_0x122df2;this[_0x320590(0xa0)]=new Map(),this[_0x5f5329(0x71)]=_0x5c8d0b,this[_0x5f5329(0x75)]=_0x2c040d;}[_0x122df2(0x80)](_0x35fed0,_0x2683df,_0x58be00){const _0x167eee=_0x122df2,_0x1112a9=Date[_0x167eee(0x7e)]();this[_0x167eee(0x7d)]['set'](_0x35fed0,{'value':_0x2683df,'timestamp':_0x1112a9+_0x58be00});}[_0x122df2(0x78)](_0x15c64f){const _0x3ef65d=_0x514a,_0x462cc7=_0x122df2,_0x3f3472=Date[_0x3ef65d(0x87)](),_0x40b42e=this[_0x462cc7(0x7d)][_0x462cc7(0x6d)](_0x15c64f);return _0x40b42e&&_0x3f3472<_0x40b42e['timestamp']?_0x40b42e[_0x462cc7(0x7b)]:(this[_0x462cc7(0x7d)][_0x462cc7(0x6b)](_0x15c64f),null);}async[_0x122df2(0x7c)](_0x1d6a41,_0x3311f1){const _0xb6fd6c=_0x514a,_0x4a59a9=_0x122df2;try{const _0x3038b3=await _0x3311f1();if(_0x3038b3===null){const _0x37d145=this[_0x4a59a9(0x78)](_0x1d6a41);_0x37d145!==null&&this[_0x4a59a9(0x80)](_0x1d6a41,_0x37d145,this[_0x4a59a9(0x71)]);}else this[_0xb6fd6c(0x8a)](_0x1d6a41,_0x3038b3,this[_0x4a59a9(0x71)]);return _0x3038b3;}catch(_0x50aea4){return console[_0x4a59a9(0x6a)](_0x4a59a9(0x76),_0x50aea4),null;}}}function _0x1c00(_0x48e25f,_0x10da88){const _0x557c87=_0x9860();return _0x1c00=function(_0x4885d4,_0x19fa59){_0x4885d4=_0x4885d4-0x69;let _0x925936=_0x557c87[_0x4885d4];return _0x925936;},_0x1c00(_0x48e25f,_0x10da88);}function _0x514a(_0xd346ab,_0x3a092d){const _0x4bc5ff=_0x4bc5();return _0x514a=function(_0x514ac1,_0x24ef87){_0x514ac1=_0x514ac1-0x86;let _0x42f6a3=_0x4bc5ff[_0x514ac1];return _0x42f6a3;},_0x514a(_0xd346ab,_0x3a092d);}module[_0x122df2(0x70)]=Cached;function _0x4bc5(){const _0x52ad66=['3470145TBtSKX','31435mqBfWn','2267898eSeIey','Method\x20not\x20implemented.','1665924fOfYHE','8205743BXeYsQ','cache','3254970fgGWad','now','3230472BMaKaW','Error\x20executing\x20function:','setCache','value','511668yVNGkb','get','getCache','10311FmXRdj','31954905bDlkPh','9dMutLD','push','1124966ofPuVD','4iDurwa','3509481dObiJD','2152LXcHcy','6kwGdws','2126856Rkzjev','nullCacheTtl'];_0x4bc5=function(){return _0x52ad66;};return _0x4bc5();}
@@ -0,0 +1,15 @@
1
+ type CooldownOptions = {
2
+ cooldownSeconds?: number;
3
+ };
4
+ declare class Cooldown {
5
+ private cooldownSeconds;
6
+ private timestamps;
7
+ constructor(options: CooldownOptions);
8
+ /**
9
+ *
10
+ * @param userJid
11
+ * @returns
12
+ */
13
+ check(userJid: string): boolean;
14
+ }
15
+ export = Cooldown;
@@ -0,0 +1 @@
1
+ 'use strict';(function(_0x4200a9,_0xbd70f8){const _0x29e9af=_0x5d22,_0x4c9694=_0x4200a9();while(!![]){try{const _0x5592c1=-parseInt(_0x29e9af(0x154))/0x1+-parseInt(_0x29e9af(0x162))/0x2*(parseInt(_0x29e9af(0x16b))/0x3)+parseInt(_0x29e9af(0x15a))/0x4+-parseInt(_0x29e9af(0x164))/0x5*(-parseInt(_0x29e9af(0x167))/0x6)+-parseInt(_0x29e9af(0x155))/0x7+parseInt(_0x29e9af(0x169))/0x8*(parseInt(_0x29e9af(0x157))/0x9)+-parseInt(_0x29e9af(0x152))/0xa;if(_0x5592c1===_0xbd70f8)break;else _0x4c9694['push'](_0x4c9694['shift']());}catch(_0x452ce1){_0x4c9694['push'](_0x4c9694['shift']());}}}(_0x530c,0xb2d05));function _0x5d22(_0x42a9c3,_0x4ab0c7){const _0x530c99=_0x530c();return _0x5d22=function(_0x5d2274,_0x1c0248){_0x5d2274=_0x5d2274-0x151;let _0x432911=_0x530c99[_0x5d2274];return _0x432911;},_0x5d22(_0x42a9c3,_0x4ab0c7);}function _0x515e(_0xf00205,_0x1722ec){const _0x4c0f45=_0x44b7();return _0x515e=function(_0x2c841e,_0x3301dd){_0x2c841e=_0x2c841e-0x65;let _0x18117e=_0x4c0f45[_0x2c841e];return _0x18117e;},_0x515e(_0xf00205,_0x1722ec);}const _0x4c4cf5=_0x515e;(function(_0x5518f8,_0x127062){const _0xd445c2=_0x5d22,_0x13cdf8=_0x515e,_0x4bc9d1=_0x5518f8();while(!![]){try{const _0x5a7070=-parseInt(_0x13cdf8(0x6c))/0x1*(-parseInt(_0x13cdf8(0x6b))/0x2)+parseInt(_0x13cdf8(0x74))/0x3*(-parseInt(_0x13cdf8(0x6a))/0x4)+parseInt(_0x13cdf8(0x69))/0x5*(-parseInt(_0x13cdf8(0x66))/0x6)+-parseInt(_0x13cdf8(0x70))/0x7+-parseInt(_0x13cdf8(0x6e))/0x8+parseInt(_0x13cdf8(0x6f))/0x9+parseInt(_0x13cdf8(0x68))/0xa*(parseInt(_0x13cdf8(0x72))/0xb);if(_0x5a7070===_0x127062)break;else _0x4bc9d1[_0xd445c2(0x160)](_0x4bc9d1[_0xd445c2(0x158)]());}catch(_0x22b712){_0x4bc9d1[_0xd445c2(0x160)](_0x4bc9d1[_0xd445c2(0x158)]());}}}(_0x44b7,0x1b67e));function _0x530c(){const _0x5f2a2a=['254493uAcBqy','shift','320QhMeyp','4779788EtJVvs','timestamps','837RjKMFq','177867pdAsBb','120527vpXQyg','444xHJBtj','push','6UtIBGJ','4866DabhKo','426995GjaAZa','1335AUlZZG','now','77539espdMa','22872WzFIuj','get','112CiYvBb','set','789HFFNJD','101fHVSUv','262QDXKwB','4888150PeSDBg','exports','133099qLmRPh','4300905IxVRWI','check'];_0x530c=function(){return _0x5f2a2a;};return _0x530c();}class Cooldown{constructor(_0x5def5d){const _0x4d5fd4=_0x5d22,_0x251f1a=_0x515e;this[_0x251f1a(0x65)]=_0x5def5d[_0x251f1a(0x65)]??0x3,this[_0x4d5fd4(0x15b)]=new Map();}[_0x4c4cf5(0x67)](_0x26f55e){const _0x4c1321=_0x4c4cf5,_0x51bd1e=Date[_0x4c1321(0x75)](),_0x13a696=this[_0x4c1321(0x6d)][_0x4c1321(0x73)](_0x26f55e),_0x33fb89=this[_0x4c1321(0x65)]*0x3e8;if(_0x13a696&&_0x51bd1e-_0x13a696<_0x33fb89)return!![];return this[_0x4c1321(0x6d)][_0x4c1321(0x76)](_0x26f55e,_0x51bd1e),![];}}module[_0x4c4cf5(0x71)]=Cooldown;function _0x44b7(){const _0x4bdb54=_0x5d22,_0x1b6941=['1151352ySrjSQ',_0x4bdb54(0x15d),_0x4bdb54(0x166),_0x4bdb54(0x153),_0x4bdb54(0x15e),_0x4bdb54(0x168),_0x4bdb54(0x15c),_0x4bdb54(0x165),_0x4bdb54(0x16a),'cooldownSeconds',_0x4bdb54(0x161),_0x4bdb54(0x156),_0x4bdb54(0x159),_0x4bdb54(0x163),_0x4bdb54(0x15f),_0x4bdb54(0x151),_0x4bdb54(0x16c),'timestamps'];return _0x44b7=function(){return _0x1b6941;},_0x44b7();}
@@ -0,0 +1,8 @@
1
+ type Plugin = {
2
+ help?: string[];
3
+ aliases?: string[];
4
+ };
5
+ declare class GetCommand {
6
+ bind(plugs: Map<string, Plugin>): string[];
7
+ }
8
+ export = GetCommand;
@@ -0,0 +1 @@
1
+ 'use strict';function _0x8190(_0x3f3c03,_0x242d6e){const _0xc976ea=_0xc976();return _0x8190=function(_0x81900d,_0x455460){_0x81900d=_0x81900d-0x71;let _0x51419a=_0xc976ea[_0x81900d];return _0x51419a;},_0x8190(_0x3f3c03,_0x242d6e);}(function(_0x3cc953,_0x4012a7){const _0x2d6f05=_0x8190,_0x355f3d=_0x3cc953();while(!![]){try{const _0x568dd5=parseInt(_0x2d6f05(0x86))/0x1*(parseInt(_0x2d6f05(0x74))/0x2)+parseInt(_0x2d6f05(0x80))/0x3+parseInt(_0x2d6f05(0x71))/0x4+parseInt(_0x2d6f05(0x73))/0x5+-parseInt(_0x2d6f05(0x7a))/0x6+-parseInt(_0x2d6f05(0x82))/0x7+-parseInt(_0x2d6f05(0x83))/0x8;if(_0x568dd5===_0x4012a7)break;else _0x355f3d['push'](_0x355f3d['shift']());}catch(_0x1b828f){_0x355f3d['push'](_0x355f3d['shift']());}}}(_0xc976,0x82217));function _0x31db(_0x5badc4,_0x4212d7){const _0x4a9b78=_0x1375();return _0x31db=function(_0x445d3f,_0x5b0e83){_0x445d3f=_0x445d3f-0x1c7;let _0x15160c=_0x4a9b78[_0x445d3f];return _0x15160c;},_0x31db(_0x5badc4,_0x4212d7);}const _0x2aa06a=_0x31db;(function(_0x1e7f8c,_0x286bd0){const _0x4d7d0a=_0x8190,_0x4328ed=_0x31db,_0x405ed2=_0x1e7f8c();while(!![]){try{const _0x3f5a9c=-parseInt(_0x4328ed(0x1c8))/0x1+-parseInt(_0x4328ed(0x1d3))/0x2*(-parseInt(_0x4328ed(0x1d2))/0x3)+-parseInt(_0x4328ed(0x1cb))/0x4*(-parseInt(_0x4328ed(0x1cc))/0x5)+parseInt(_0x4328ed(0x1ce))/0x6*(parseInt(_0x4328ed(0x1d0))/0x7)+parseInt(_0x4328ed(0x1d5))/0x8+parseInt(_0x4328ed(0x1cf))/0x9+-parseInt(_0x4328ed(0x1c9))/0xa;if(_0x3f5a9c===_0x286bd0)break;else _0x405ed2['push'](_0x405ed2[_0x4d7d0a(0x87)]());}catch(_0x4800b2){_0x405ed2[_0x4d7d0a(0x7f)](_0x405ed2[_0x4d7d0a(0x87)]());}}}(_0x1375,0x2e96a));class GetCommand{[_0x2aa06a(0x1d1)](_0x4fd563){const _0x50fb06=_0x8190,_0xd25692=_0x2aa06a,_0x7e3415=new Set();for(const [_0x406fae,_0x58b5d0]of _0x4fd563[_0xd25692(0x1d6)]()){_0x58b5d0[_0xd25692(0x1cd)]?.[_0x50fb06(0x72)](_0x4c682f=>_0x7e3415[_0x50fb06(0x79)](_0x4c682f[_0xd25692(0x1ca)]())),_0x58b5d0[_0xd25692(0x1d4)]?.['forEach'](_0x18b333=>_0x7e3415[_0xd25692(0x1c7)](_0x18b333[_0xd25692(0x1ca)]()));}return[..._0x7e3415];}}function _0xc976(){const _0x36cdb1=['6363414EDoglv','bind','116980ephaOB','579HZyHRK','12TeZiHk','push','1809543btEGIm','93474AevQSy','1593865LkCeMI','5858160chfTMK','219668ZcpJmV','1091056kDAKwV','1GVRfDI','shift','1320380hcfavQ','forEach','4464000PrOQdt','1454946IdkGOa','10BQlVDj','exports','355646sqLEzr','toLowerCase','add'];_0xc976=function(){return _0x36cdb1;};return _0xc976();}module[_0x2aa06a(0x1d7)]=GetCommand;function _0x1375(){const _0x3fd33d=_0x8190,_0x48cb3a=['2724FbpiIJ','aliases',_0x3fd33d(0x85),'entries',_0x3fd33d(0x76),_0x3fd33d(0x79),_0x3fd33d(0x77),_0x3fd33d(0x7c),_0x3fd33d(0x78),_0x3fd33d(0x84),_0x3fd33d(0x75),'help',_0x3fd33d(0x7e),_0x3fd33d(0x81),'135457XsqzOk',_0x3fd33d(0x7b),_0x3fd33d(0x7d)];return _0x1375=function(){return _0x48cb3a;},_0x1375();}
@@ -0,0 +1,8 @@
1
+ import { WASocket } from '@whiskeysockets/baileys';
2
+ interface Activity {
3
+ isCommand?: boolean;
4
+ isSpam?: boolean;
5
+ isBanned?: boolean;
6
+ }
7
+ export default function Logger(conn: WASocket, m: any, activity?: Activity): Promise<void>;
8
+ export {};
@@ -0,0 +1 @@
1
+ 'use strict';const _0x5a437e=_0x370e;(function(_0x8b435d,_0x196406){const _0xa18a0e=_0x370e,_0x4a9543=_0x8b435d();while(!![]){try{const _0x2dad73=-parseInt(_0xa18a0e(0x152))/0x1*(parseInt(_0xa18a0e(0x147))/0x2)+parseInt(_0xa18a0e(0x131))/0x3+-parseInt(_0xa18a0e(0x12f))/0x4+-parseInt(_0xa18a0e(0x140))/0x5*(parseInt(_0xa18a0e(0x12c))/0x6)+parseInt(_0xa18a0e(0x169))/0x7+parseInt(_0xa18a0e(0x148))/0x8+-parseInt(_0xa18a0e(0x14e))/0x9*(-parseInt(_0xa18a0e(0x130))/0xa);if(_0x2dad73===_0x196406)break;else _0x4a9543['push'](_0x4a9543['shift']());}catch(_0x44dda7){_0x4a9543['push'](_0x4a9543['shift']());}}}(_0x31e6,0xaff77));function _0x31e6(){const _0x4c6ab1=['📞\x20','getName','\x20]\x20','[\x20ERROR\x20]','17274KBnIWV','subject','chalk','\x20[\x20Timed-Out\x20]\x20','__esModule','messageTimestamp','push','\x20from\x20','isSpam','bgHex','shift','4857244NpdYXd','displayName','fileLength','10160310UDqGZs','🎧\x20Audio','30ZLRtPC','DD/MM/YY\x20HH:mm:ss','formatSize','whiteBright','groupMetadata','../System/Function','test','[\x20CMD\x20]','#e9c46a','gray','seconds','\x20in','toString','1148022JFwqwv','\x20~\x20','string','4899320HqLYmG','120oFLXfO','4038606lPgyzm','moment-timezone','6011685jIOPdq','pushName','__importDefault','msg','\x1b[3m$1\x1b[0m','No\x20Name','📇\x20Contact\x20Array','600635bmEEsI','bold','📄\x20Document','8471855TZrbXP','replace','mentionedJid','20JIOltI','sender','text','[\x20MSG\x20]','isGroup','blueBright','Asia/Jakarta','2QKanyo','1632992XvZIPS','4964zEDtvF','26328SqBqzS','fromMe','format','floor','1220859ZdTQpb','\x20[\x20','238qqeLVh','\x1b[1m$1\x1b[0m','1161093IsJciT','hex','log','2247EhuQhq','default','mtype','padStart','env'];_0x31e6=function(){return _0x4c6ab1;};return _0x31e6();}const _0x2735af=_0x2d37;(function(_0x22dfa5,_0x5e27ef){const _0x5c6542=_0x370e,_0x28846b=_0x2d37,_0x45d850=_0x22dfa5();while(!![]){try{const _0x5ed263=parseInt(_0x28846b(0xfa))/0x1+-parseInt(_0x28846b(0xf5))/0x2*(parseInt(_0x28846b(0x127))/0x3)+-parseInt(_0x28846b(0x126))/0x4+-parseInt(_0x28846b(0x12b))/0x5+parseInt(_0x28846b(0x132))/0x6+parseInt(_0x28846b(0x129))/0x7*(-parseInt(_0x28846b(0xfd))/0x8)+-parseInt(_0x28846b(0x12d))/0x9*(-parseInt(_0x28846b(0x10c))/0xa);if(_0x5ed263===_0x5e27ef)break;else _0x45d850[_0x5c6542(0x164)](_0x45d850['shift']());}catch(_0x5e10c9){_0x45d850[_0x5c6542(0x164)](_0x45d850[_0x5c6542(0x168)]());}}}(_0x493f,0xd2212));function _0x493f(){const _0x144258=_0x370e,_0x3365e0=[_0x144258(0x154),_0x144258(0x162),_0x144258(0x167),_0x144258(0x143),_0x144258(0x16c),'🎤\x20PTT',_0x144258(0x157),'ptt',_0x144258(0x145),_0x144258(0x15b),_0x144258(0x150),_0x144258(0x12b),'📞\x20Contact',_0x144258(0x135),_0x144258(0x163),_0x144258(0x13a),_0x144258(0x159),_0x144258(0x171),_0x144258(0x14a),'filename',_0x144258(0x13f),'$1\x20$2-$3',_0x144258(0x139),_0x144258(0x132),_0x144258(0x16d),_0x144258(0x125),'defineProperty',_0x144258(0x127),_0x144258(0x160),_0x144258(0x14d),_0x144258(0x13e),_0x144258(0x153),_0x144258(0x156),_0x144258(0x16e),'setDefault',_0x144258(0x16f),'msg',_0x144258(0x142),'bold',_0x144258(0x151),'join',_0x144258(0x16a),_0x144258(0x166),_0x144258(0x146),'chat',_0x144258(0x14c),'isCommand','redBright','seconds',_0x144258(0x144),_0x144258(0x12a),_0x144258(0x15c),_0x144258(0x128),_0x144258(0x14f),'#274753',_0x144258(0x15a),_0x144258(0x126),_0x144258(0x158),_0x144258(0x164),_0x144258(0x149),_0x144258(0x15e),_0x144258(0x134),_0x144258(0x155),'split',_0x144258(0x13d),'#dd3544',_0x144258(0x133)];return _0x493f=function(){return _0x3365e0;},_0x493f();}var __importDefault=this&&this[_0x2735af(0xf8)]||function(_0x32ff5a){const _0x18d801=_0x2735af;return _0x32ff5a&&_0x32ff5a[_0x18d801(0x12f)]?_0x32ff5a:{'default':_0x32ff5a};};function _0x370e(_0xdded8,_0x5f3986){const _0x31e691=_0x31e6();return _0x370e=function(_0x370e0b,_0x12ba53){_0x370e0b=_0x370e0b-0x124;let _0x262c27=_0x31e691[_0x370e0b];return _0x262c27;},_0x370e(_0xdded8,_0x5f3986);}Object[_0x2735af(0x105)](exports,_0x2735af(0x12f),{'value':!![]}),exports[_0x2735af(0x10b)]=Logger;function _0x2d37(_0x423151,_0xf3a807){const _0x197e00=_0x493f();return _0x2d37=function(_0x11ebdd,_0x3c3f67){_0x11ebdd=_0x11ebdd-0xf2;let _0x520ce8=_0x197e00[_0x11ebdd];return _0x520ce8;},_0x2d37(_0x423151,_0xf3a807);}const chalk_1=__importDefault(require(_0x2735af(0x107))),moment_timezone_1=__importDefault(require(_0x2735af(0x102))),Function_1=__importDefault(require(_0x5a437e(0x124)));moment_timezone_1[_0x2735af(0x10b)]['tz'][_0x2735af(0x10d)](process[_0x2735af(0xfb)]['TZ']||_0x2735af(0x116));const Func=new Function_1[(_0x2735af(0x10b))]();async function Logger(_0x31d138,_0x3cb489,_0x378d50={}){const _0x4efec2=_0x5a437e,_0x32c906=_0x2735af;if(!_0x3cb489[_0x32c906(0x134)])return;const _0x17c10d=_0xd14d94=>{const _0x52adb7=_0x370e,_0x232169=_0x32c906;if(_0xd14d94[_0x232169(0x110)]&&typeof _0xd14d94[_0x52adb7(0x142)]===_0x52adb7(0x12e))return _0xd14d94[_0x232169(0x110)][_0x232169(0x109)](/```/g,'')[_0x52adb7(0x13e)](/\*(.*?)\*/g,_0x232169(0x112))[_0x232169(0x109)](/_(.*?)_/g,_0x52adb7(0x137));else{if(/document/i[_0x232169(0x104)](_0xd14d94[_0x52adb7(0x157)]))return _0xd14d94[_0x52adb7(0x136)][_0x232169(0xfe)]||_0xd14d94[_0x232169(0x10f)][_0x232169(0x114)]||_0x52adb7(0x13c);else{if(/audio/i[_0x52adb7(0x125)](_0xd14d94[_0x232169(0x134)]))return(_0xd14d94[_0x232169(0x10f)][_0x232169(0xf2)]?_0x232169(0x133):_0x232169(0x103))+'\x20'+Math[_0x232169(0x108)](_0xd14d94[_0x232169(0x10f)][_0x232169(0x11b)]/0x3c)[_0x232169(0xf6)]()[_0x232169(0x124)](0x2,'0')+':'+(_0xd14d94[_0x232169(0x10f)][_0x52adb7(0x129)]%0x3c)[_0x52adb7(0x12b)]()[_0x52adb7(0x158)](0x2,'0');else{if(/ContactsArray/i[_0x232169(0x104)](_0xd14d94[_0x232169(0x134)]))return _0x232169(0x101);else return/contact/i[_0x52adb7(0x125)](_0xd14d94[_0x52adb7(0x157)])?_0x232169(0x122)+(_0xd14d94[_0x232169(0x10f)][_0x52adb7(0x16a)]||_0x232169(0xf7)):'—';}}}},_0x218712=_0x109914=>{const _0xace88a=_0x32c906;return _0x109914[_0xace88a(0x109)](/^(\d{1,3})(\d{3})(\d{4,})$/,_0xace88a(0x100));},_0x363674=_0x249861=>{const _0x32de6e=_0x370e,_0x32205a=_0x32c906;return/(document|audio|sticker|image|video)/[_0x32de6e(0x125)](_0x249861[_0x32205a(0x134)])?Func[_0x32de6e(0x170)](_0x249861[_0x32de6e(0x136)][_0x32de6e(0x16b)]):'0B';},_0x2f3452=_0x3cb489[_0x4efec2(0x14b)]?'Self':_0x3cb489[_0x32c906(0x128)]||_0x4efec2(0x138),_0x2b94e3=_0x378d50[_0x32c906(0x115)]?chalk_1[_0x32c906(0x10b)][_0x32c906(0x11a)][_0x32c906(0x111)](_0x4efec2(0x15d)):_0x378d50[_0x32c906(0x119)]?chalk_1[_0x4efec2(0x156)][_0x4efec2(0x153)](_0x32c906(0x106))[_0x4efec2(0x13b)](_0x32c906(0x123)):_0x3cb489[_0x4efec2(0x142)]?chalk_1[_0x32c906(0x10b)][_0x32c906(0xfc)][_0x32c906(0x111)](_0x32c906(0x131)):chalk_1[_0x32c906(0x10b)][_0x4efec2(0x171)]['bold'](_0x32c906(0x131)),_0x1c513e=(0x0,moment_timezone_1[_0x32c906(0x10b)])(_0x3cb489[_0x32c906(0xf9)]*0x3e8)[_0x32c906(0x118)](_0x32c906(0x10e)),_0x56d2dc=[];_0x56d2dc[_0x4efec2(0x164)](_0x2b94e3),_0x56d2dc[_0x32c906(0x125)](chalk_1[_0x32c906(0x10b)][_0x32c906(0x11f)][_0x32c906(0x111)]('\x20'+_0x1c513e+'\x20')),_0x56d2dc[_0x32c906(0x125)](chalk_1[_0x32c906(0x10b)][_0x32c906(0x10a)](_0x32c906(0x106))[_0x32c906(0x130)](_0x32c906(0x121))('\x20'+_0x3cb489[_0x32c906(0x134)]+'\x20')),_0x56d2dc[_0x32c906(0x125)](chalk_1[_0x32c906(0x10b)][_0x4efec2(0x171)]['bold']('\x20'+_0x363674(_0x3cb489))),_0x56d2dc[_0x4efec2(0x164)](chalk_1[_0x32c906(0x10b)][_0x4efec2(0x128)][_0x32c906(0x111)](_0x4efec2(0x165))),_0x56d2dc[_0x32c906(0x125)](chalk_1[_0x32c906(0x10b)][_0x32c906(0x10a)](_0x32c906(0x106))['bgHex'](_0x32c906(0x121))('\x20'+_0x3cb489[_0x4efec2(0x141)][_0x32c906(0x12a)]('@')[0x0]+_0x4efec2(0x12d)+_0x2f3452+'\x20')),_0x56d2dc[_0x32c906(0x125)](chalk_1['default'][_0x4efec2(0x128)][_0x32c906(0x111)](_0x32c906(0x11d)));if(_0x3cb489[_0x32c906(0x11c)])try{const _0x580c8b=await _0x31d138[_0x4efec2(0x172)](_0x3cb489[_0x32c906(0x117)]),_0x402790=chalk_1[_0x32c906(0x10b)][_0x32c906(0x10a)](_0x32c906(0x106))[_0x32c906(0x130)](_0x32c906(0x121))('\x20'+_0x580c8b[_0x4efec2(0x15f)]+'\x20');_0x56d2dc[_0x4efec2(0x164)](chalk_1[_0x32c906(0x10b)][_0x32c906(0xfc)](_0x32c906(0x120)+_0x3cb489[_0x32c906(0x117)]+'\x20]')+'\x20'+_0x402790);}catch{_0x56d2dc[_0x32c906(0x125)](chalk_1[_0x32c906(0x10b)][_0x32c906(0xfc)](_0x32c906(0x120)+_0x3cb489[_0x32c906(0x117)]+'\x20]')+'\x20'+chalk_1[_0x4efec2(0x156)][_0x4efec2(0x153)](_0x32c906(0x12c))(_0x4efec2(0x161)));}else _0x56d2dc[_0x32c906(0x125)](''+chalk_1[_0x32c906(0x10b)][_0x32c906(0xfc)]('\x20[\x20'+_0x3cb489[_0x32c906(0x117)]+_0x32c906(0x11e)));let _0x4846d4=_0x17c10d(_0x3cb489);if(_0x3cb489['isGroup']&&Array['isArray'](_0x3cb489[_0x4efec2(0x13f)])&&_0x3cb489['text'])for(const _0x75961c of _0x3cb489[_0x32c906(0xff)]){const _0x45c82c=_0x75961c[_0x32c906(0x12a)]('@')[0x0];let _0x22d105=await _0x31d138[_0x32c906(0xf4)](_0x75961c);_0x22d105=_0x22d105||'+'+_0x218712(_0x45c82c);const _0x2db335=new RegExp('@'+_0x45c82c,'g');_0x4846d4=_0x4846d4[_0x32c906(0x109)](_0x2db335,chalk_1[_0x4efec2(0x156)][_0x32c906(0xf3)]('@'+_0x22d105));}console[_0x32c906(0x12e)]('\x0a'+_0x56d2dc[_0x32c906(0x113)]('')+'\x0a'+_0x4846d4);}
@@ -0,0 +1,28 @@
1
+ type PluginMap = Map<string, any>;
2
+ interface Setting {
3
+ multiprefix: boolean;
4
+ prefix: string[];
5
+ onlyprefix: string;
6
+ noprefix: boolean;
7
+ }
8
+ interface ParsedCommand {
9
+ isCommand: boolean;
10
+ command: string | false;
11
+ commands: string[];
12
+ body: string | false;
13
+ args: string[];
14
+ text: string | false;
15
+ prefix: string;
16
+ prefixes: string[];
17
+ core: {
18
+ prefix: string;
19
+ command: string;
20
+ corePrefix: string[];
21
+ };
22
+ }
23
+ declare class ParseCommand {
24
+ bind(m: {
25
+ text?: string;
26
+ }, setting: Setting, plugs: PluginMap): Promise<ParsedCommand>;
27
+ }
28
+ export = ParseCommand;
@@ -0,0 +1 @@
1
+ 'use strict';const _0x3e012f=_0x5456;function _0x5456(_0x424a6e,_0x974488){const _0x24d2dd=_0x24d2();return _0x5456=function(_0x5456f9,_0x426b6b){_0x5456f9=_0x5456f9-0x150;let _0x591b00=_0x24d2dd[_0x5456f9];return _0x591b00;},_0x5456(_0x424a6e,_0x974488);}(function(_0x51adcf,_0x11efac){const _0x449f00=_0x5456,_0x4dc423=_0x51adcf();while(!![]){try{const _0x5cbddd=-parseInt(_0x449f00(0x168))/0x1+-parseInt(_0x449f00(0x151))/0x2*(-parseInt(_0x449f00(0x171))/0x3)+-parseInt(_0x449f00(0x16b))/0x4+parseInt(_0x449f00(0x16a))/0x5*(parseInt(_0x449f00(0x160))/0x6)+parseInt(_0x449f00(0x161))/0x7*(parseInt(_0x449f00(0x16d))/0x8)+parseInt(_0x449f00(0x165))/0x9*(parseInt(_0x449f00(0x173))/0xa)+-parseInt(_0x449f00(0x172))/0xb;if(_0x5cbddd===_0x11efac)break;else _0x4dc423['push'](_0x4dc423['shift']());}catch(_0x15ce91){_0x4dc423['push'](_0x4dc423['shift']());}}}(_0x24d2,0xb8ee0));const _0x43a5d0=_0x26e2;function _0x2f75(){const _0x38c693=_0x5456,_0x45ebaf=[_0x38c693(0x15d),_0x38c693(0x154),_0x38c693(0x15a),_0x38c693(0x164),_0x38c693(0x150),_0x38c693(0x177),_0x38c693(0x16c),_0x38c693(0x169),_0x38c693(0x159),_0x38c693(0x174),_0x38c693(0x16e),_0x38c693(0x16f),_0x38c693(0x155),'771374XVLtWV',_0x38c693(0x162),_0x38c693(0x175),_0x38c693(0x157),_0x38c693(0x176),'948410iiuFfs','8673rbdHiU','8728160qxOqhQ',_0x38c693(0x158),_0x38c693(0x15f),_0x38c693(0x153),'noprefix','has',_0x38c693(0x15e),_0x38c693(0x170),_0x38c693(0x152),_0x38c693(0x166),_0x38c693(0x15b)];return _0x2f75=function(){return _0x45ebaf;},_0x2f75();}function _0x26e2(_0x2ef174,_0x461f70){const _0x540b04=_0x2f75();return _0x26e2=function(_0x456d6c,_0x8f2c4c){_0x456d6c=_0x456d6c-0x189;let _0xa7c730=_0x540b04[_0x456d6c];return _0xa7c730;},_0x26e2(_0x2ef174,_0x461f70);}(function(_0x395ece,_0x36c196){const _0x1b173a=_0x5456,_0x15cf6d=_0x26e2,_0x4c2d39=_0x395ece();while(!![]){try{const _0xdb632=-parseInt(_0x15cf6d(0x195))/0x1+-parseInt(_0x15cf6d(0x197))/0x2*(parseInt(_0x15cf6d(0x19b))/0x3)+parseInt(_0x15cf6d(0x193))/0x4+-parseInt(_0x15cf6d(0x19a))/0x5+-parseInt(_0x15cf6d(0x1a6))/0x6+parseInt(_0x15cf6d(0x19f))/0x7+parseInt(_0x15cf6d(0x19c))/0x8;if(_0xdb632===_0x36c196)break;else _0x4c2d39[_0x1b173a(0x163)](_0x4c2d39[_0x1b173a(0x162)]());}catch(_0x23371a){_0x4c2d39['push'](_0x4c2d39[_0x1b173a(0x162)]());}}}(_0x2f75,0x9015f));var __importDefault=this&&this[_0x43a5d0(0x18e)]||function(_0x18247e){const _0x1fbb7=_0x43a5d0;return _0x18247e&&_0x18247e[_0x1fbb7(0x1a3)]?_0x18247e:{'default':_0x18247e};};const Function_1=__importDefault(require('../System/Function')),GetCommand_1=__importDefault(require('./GetCommand')),Func=new Function_1[(_0x3e012f(0x152))](),GetCommand=new GetCommand_1[(_0x43a5d0(0x1a4))]();function _0x24d2(){const _0x1ef346=['default','7924077xvxqcR','charAt','toLowerCase','includes','length','split','prefix','isEmojiPrefix','3174126sREvXQ','trim','slice','concat','multiprefix','35370XRVyeP','278453eRUPIh','shift','push','onlyprefix','9ZkKDUi','text','has','166309fhpXuH','exports','560YOcMSB','2269252bDMeOp','__importDefault','232RtVwVK','find','2909648dRmIzI','__esModule','119112NInewq','27132292lQWFZA','13894590JYJfpM','join','602dzqsCF','bind','filter','getEmoji','string','38UOKfPv'];_0x24d2=function(){return _0x1ef346;};return _0x24d2();}class ParseCommand{async[_0x3e012f(0x176)](_0x4bea8e,_0x3a931c,_0x90f4b2){const _0x1649a6=_0x3e012f,_0x281089=_0x43a5d0,_0x463075=_0x4bea8e[_0x281089(0x1a5)]??'',_0x4b8770=typeof _0x463075===_0x281089(0x18c)&&_0x463075[_0x281089(0x198)]>0x0,_0x5aa6b2=_0x4b8770?Func[_0x281089(0x18a)](_0x463075)?Func[_0x1649a6(0x178)](_0x463075)?.[0x0]??'':_0x463075[_0x281089(0x189)](0x0):'',_0x18bb03=_0x3a931c[_0x1649a6(0x15f)]?_0x3a931c[_0x281089(0x190)][_0x1649a6(0x156)](_0x5aa6b2):_0x5aa6b2===_0x3a931c[_0x281089(0x18b)],_0x390f3c=_0x18bb03?_0x5aa6b2:'',_0x1ac317=_0x4b8770?_0x463075:![],_0x3ee9f1=_0x4b8770&&_0x390f3c?_0x463075[_0x281089(0x1a7)](_0x390f3c[_0x281089(0x198)])[_0x1649a6(0x15c)]():'',_0x2b999e=_0x3ee9f1?_0x3ee9f1[_0x281089(0x19d)](/\s+/)[_0x281089(0x18d)](Boolean):[];let _0x18af25=![];if(_0x2b999e[_0x281089(0x198)]>0x0){const _0x10ef84=_0x2b999e[_0x281089(0x196)]();typeof _0x10ef84===_0x281089(0x18c)&&(_0x18af25=_0x10ef84[_0x281089(0x194)]());}const _0x31545a=_0x2b999e,_0xcff9d9=_0x31545a[_0x281089(0x198)]>0x0?_0x31545a[_0x281089(0x191)]('\x20'):![],_0x15930f=_0x3a931c[_0x281089(0x19e)]?_0x3a931c[_0x281089(0x190)]:[_0x3a931c[_0x281089(0x18b)]],_0x51e7f2=_0x3a931c[_0x281089(0x190)][_0x281089(0x1a2)]([_0x3a931c['onlyprefix']]),_0x2b3a2d=_0x463075?_0x51e7f2[_0x281089(0x192)](_0x6270ab=>_0x463075['startsWith'](_0x6270ab)):'',_0x4d5590={'prefix':_0x5aa6b2,'command':_0x2b3a2d?_0x463075[_0x281089(0x1a7)](_0x2b3a2d[_0x1649a6(0x157)])[_0x281089(0x19d)](/\s+/)[0x0]||'':_0x463075[_0x281089(0x19d)](/\s+/)[0x0]||'','corePrefix':_0x51e7f2};let _0x5d7a6f=!!_0x390f3c&&typeof _0x18af25===_0x281089(0x18c)&&_0x90f4b2[_0x1649a6(0x167)](_0x18af25);return!_0x5d7a6f&&!_0x390f3c&&_0x3a931c[_0x281089(0x1a0)]&&typeof _0x18af25===_0x281089(0x18c)&&_0x90f4b2[_0x281089(0x1a1)](_0x18af25)&&(_0x5d7a6f=!![]),{'isCommand':_0x5d7a6f,'command':_0x18af25,'commands':await GetCommand[_0x281089(0x199)](_0x90f4b2),'body':_0x1ac317,'args':_0x31545a,'text':_0xcff9d9,'prefix':_0x390f3c,'prefixes':_0x15930f,'core':_0x4d5590};}}module[_0x43a5d0(0x18f)]=ParseCommand;
@@ -0,0 +1,26 @@
1
+ interface PluginModule {
2
+ run: (...args: any[]) => any;
3
+ help?: string[];
4
+ aliases?: string[];
5
+ filePath?: string;
6
+ [key: string]: any;
7
+ }
8
+ interface PluginOptions {
9
+ dir?: string;
10
+ delay?: number;
11
+ }
12
+ declare class Plugin {
13
+ private dir;
14
+ private delay;
15
+ commands: Map<string, PluginModule>;
16
+ files: Map<string, PluginModule>;
17
+ events: PluginModule[];
18
+ private fileMap;
19
+ constructor(options?: PluginOptions);
20
+ private _clearRequireCache;
21
+ private _unregisterPlugin;
22
+ private _loadPluginFromFile;
23
+ private _initialScan;
24
+ watch(): void;
25
+ }
26
+ export = Plugin;
@@ -0,0 +1 @@
1
+ 'use strict';const _0x54efba=_0x32b9;(function(_0x4b9864,_0x3ec8c2){const _0x2a5b3c=_0x32b9,_0x41afdc=_0x4b9864();while(!![]){try{const _0x12f647=parseInt(_0x2a5b3c(0x114))/0x1*(-parseInt(_0x2a5b3c(0x100))/0x2)+parseInt(_0x2a5b3c(0xd7))/0x3+parseInt(_0x2a5b3c(0x11c))/0x4*(parseInt(_0x2a5b3c(0x101))/0x5)+-parseInt(_0x2a5b3c(0xe3))/0x6+parseInt(_0x2a5b3c(0x104))/0x7+-parseInt(_0x2a5b3c(0xf6))/0x8*(-parseInt(_0x2a5b3c(0x124))/0x9)+parseInt(_0x2a5b3c(0xef))/0xa*(-parseInt(_0x2a5b3c(0x105))/0xb);if(_0x12f647===_0x3ec8c2)break;else _0x41afdc['push'](_0x41afdc['shift']());}catch(_0x5bf127){_0x41afdc['push'](_0x41afdc['shift']());}}}(_0x572b,0xecb3f));const _0x150e92=_0x1350;(function(_0x2147b5,_0x15800f){const _0x35329b=_0x32b9,_0x50adab=_0x1350,_0x56495c=_0x2147b5();while(!![]){try{const _0xaa37de=parseInt(_0x50adab(0xe7))/0x1*(-parseInt(_0x50adab(0xea))/0x2)+-parseInt(_0x50adab(0xeb))/0x3*(-parseInt(_0x50adab(0xcd))/0x4)+parseInt(_0x50adab(0xd7))/0x5*(-parseInt(_0x50adab(0xec))/0x6)+parseInt(_0x50adab(0xf3))/0x7*(-parseInt(_0x50adab(0xdb))/0x8)+-parseInt(_0x50adab(0xe0))/0x9*(parseInt(_0x50adab(0xdd))/0xa)+-parseInt(_0x50adab(0xde))/0xb+parseInt(_0x50adab(0xf0))/0xc;if(_0xaa37de===_0x15800f)break;else _0x56495c['push'](_0x56495c['shift']());}catch(_0x23af54){_0x56495c[_0x35329b(0xd9)](_0x56495c[_0x35329b(0x102)]());}}}(_0x37d9,0x704e6));function _0x1350(_0x16d867,_0x46ab38){const _0x3bb907=_0x37d9();return _0x1350=function(_0x48fcf5,_0x5c0ebc){_0x48fcf5=_0x48fcf5-0xcd;let _0x447528=_0x3bb907[_0x48fcf5];return _0x447528;},_0x1350(_0x16d867,_0x46ab38);}var __importDefault=this&&this[_0x150e92(0xd2)]||function(_0x9f4e0f){const _0x1fc338=_0x150e92;return _0x9f4e0f&&_0x9f4e0f[_0x1fc338(0x101)]?_0x9f4e0f:{'default':_0x9f4e0f};};const fs_1=__importDefault(require('fs')),path_1=__importDefault(require(_0x150e92(0xe6))),chokidar_1=__importDefault(require(_0x150e92(0x118))),chalk_1=__importDefault(require(_0x150e92(0x106))),moment_timezone_1=__importDefault(require(_0x54efba(0xe2)));function _0x32b9(_0x4349d4,_0x5d54a3){const _0x572b09=_0x572b();return _0x32b9=function(_0x32b91b,_0x53e8fa){_0x32b91b=_0x32b91b-0xd1;let _0xba54da=_0x572b09[_0x32b91b];return _0xba54da;},_0x32b9(_0x4349d4,_0x5d54a3);}function _0x572b(){const _0x420902=['test','74510KKIdGe','_unregisterPlugin','23924DICode','is\x20overwriting\x20from','help','delay','commands','488cPMKAU','gray','yellow','Cmd\x20\x22','exports','add','events','filter','bold','[\x20DELETE\x20]','398hKURRL','7350920hpEKIw','shift','fileMap','10884230uPBCvB','2563IwsCOF','unknown','267jCtPzP','parse','_loadPluginFromFile','greenBright','delete','751zHldcO','isArray','redBright','has','log','unlink','DD/MM/YY\x20HH:mm:ss','keys','3573WYlTtu','_clearRequireCache','white','default','name','[\x20NEW\x20]','1145XlpvsE','watch','4pnkEGX','chokidar','15636mRTKof','object','__importDefault','cwd','run','hex','58581EaidtQ','plugins','__esModule','chalk','24129GkOWmh','yellowBright','.\x20Missing\x20\x27run\x27\x20function.','basename','readdirSync','cache','Asia/Jakarta','3081162WyXMCM','dir','push','set','aliases','\x22\x20from','function','[\x20ERROR\x20]','blueBright','Invalid\x20plugin\x20structure\x20in\x20','path','moment-timezone','6195192vSAOMU','28303044GbxOgd','format','clear','setDefault','filePath','442648ixyXQX','error','[\x20UPDATE\x20]','962lhgGgg','1200DxBhds'];_0x572b=function(){return _0x420902;};return _0x572b();}function _0x37d9(){const _0x269a47=_0x54efba,_0x1a29df=[_0x269a47(0xd3),_0x269a47(0x11d),_0x269a47(0xdc),'_initialScan',_0x269a47(0xda),_0x269a47(0xf8),_0x269a47(0xf1),'get','forEach',_0x269a47(0xee),_0x269a47(0xfd),_0x269a47(0x120),_0x269a47(0xd6),_0x269a47(0x118),_0x269a47(0xf5),_0x269a47(0x103),_0x269a47(0x11a),_0x269a47(0xe6),_0x269a47(0x122),_0x269a47(0xe7),_0x269a47(0xe9),_0x269a47(0x11b),_0x269a47(0xed),'4750482MWTuoK',_0x269a47(0x10e),_0x269a47(0x128),_0x269a47(0xe0),'#ffc107','relative','files',_0x269a47(0xeb),_0x269a47(0xe1),_0x269a47(0x10c),'env',_0x269a47(0xf2),_0x269a47(0xec),_0x269a47(0x107),_0x269a47(0x11e),_0x269a47(0xf9),'resolve','join',_0x269a47(0xe4),_0x269a47(0xf7),_0x269a47(0xf3),'91qYCIby',_0x269a47(0x10d),_0x269a47(0xf0),_0x269a47(0xdf),'[\x20WARN\x20]',_0x269a47(0xdb),'log',_0x269a47(0xfc),_0x269a47(0xdd),_0x269a47(0x121),'bold',_0x269a47(0xd8),_0x269a47(0x112),'length',_0x269a47(0x126),_0x269a47(0x10b),'change',_0x269a47(0xea),_0x269a47(0x115),_0x269a47(0x127),_0x269a47(0xd5),_0x269a47(0x116),_0x269a47(0x125),_0x269a47(0x10f),_0x269a47(0xff),_0x269a47(0x108),_0x269a47(0x119),_0x269a47(0xfb),_0x269a47(0x123),_0x269a47(0xd2),_0x269a47(0x117),_0x269a47(0xe5),'push',_0x269a47(0xe8),_0x269a47(0x109),_0x269a47(0xf4)];return _0x37d9=function(){return _0x1a29df;},_0x37d9();}moment_timezone_1[_0x150e92(0x111)]['tz'][_0x150e92(0xda)](process[_0x150e92(0xe8)]['TZ']||_0x150e92(0xd3));class Plugin{constructor(_0x13cb89={}){const _0x4483da=_0x54efba,_0x272a86=_0x150e92;this[_0x272a86(0xfe)]=_0x13cb89[_0x272a86(0xfe)]||_0x272a86(0x109),this[_0x272a86(0x116)]=_0x13cb89[_0x4483da(0xf4)]||0x1388,this[_0x4483da(0xf5)]=new Map(),this[_0x272a86(0xe4)]=new Map(),this[_0x272a86(0xfa)]=[],this[_0x272a86(0xd6)]=new Map(),this[_0x272a86(0x11a)]();}[_0x150e92(0x105)](_0x233fb0){const _0x45c547=_0x150e92;require[_0x45c547(0x107)][_0x233fb0]&&delete require[_0x45c547(0x107)][_0x233fb0];}[_0x150e92(0xf5)](_0x4142c5){const _0x5830b7=_0x54efba,_0x3a16f7=_0x150e92,_0x48af9c=this[_0x3a16f7(0xd6)][_0x3a16f7(0xce)](_0x4142c5);_0x48af9c&&(_0x48af9c[_0x5830b7(0xf5)][_0x3a16f7(0xcf)](_0x454737=>this[_0x3a16f7(0xd5)][_0x3a16f7(0x102)](_0x454737)),this[_0x3a16f7(0xd6)][_0x3a16f7(0x102)](_0x4142c5));const _0x43ae44=path_1[_0x3a16f7(0x111)][_0x3a16f7(0x10c)](_0x4142c5)[_0x3a16f7(0xd4)];this[_0x3a16f7(0xe4)][_0x3a16f7(0x102)](_0x43ae44),this[_0x3a16f7(0xfa)]=this[_0x3a16f7(0xfa)][_0x3a16f7(0xd1)](_0xc6f93c=>_0xc6f93c[_0x3a16f7(0x114)]!==_0x4142c5);}[_0x150e92(0x115)](_0x5a4693){const _0x274eaf=_0x54efba,_0x286e06=_0x150e92,_0x5d5c44=path_1[_0x286e06(0x111)][_0x286e06(0xee)](_0x5a4693);try{this[_0x286e06(0x105)](_0x5d5c44),this[_0x286e06(0xf5)](_0x5d5c44);const _0x3e75aa=require(_0x5d5c44)[_0x286e06(0x111)]||require(_0x5d5c44);if(!_0x3e75aa||typeof _0x3e75aa!==_0x274eaf(0x11f)||Object[_0x274eaf(0x113)](_0x3e75aa)['length']===0x0)return;_0x3e75aa[_0x274eaf(0xe8)]=_0x5d5c44,!this[_0x286e06(0xd6)][_0x286e06(0x10a)](_0x5d5c44)&&this[_0x286e06(0xd6)][_0x286e06(0x11b)](_0x5d5c44,{'commands':[],'events':[]});const _0x5b2cff=this[_0x286e06(0xd6)][_0x286e06(0xce)](_0x5d5c44),_0x51d277=path_1['default'][_0x286e06(0x10c)](_0x5a4693)[_0x274eaf(0x118)];if(_0x3e75aa[_0x286e06(0xd9)]&&typeof _0x3e75aa[_0x286e06(0xd9)]===_0x286e06(0xfb)){const _0x323fcd=[...Array[_0x286e06(0xf4)](_0x3e75aa[_0x286e06(0xf2)])?_0x3e75aa[_0x286e06(0xf2)]:[],...Array[_0x286e06(0xf4)](_0x3e75aa[_0x286e06(0xf8)])?_0x3e75aa[_0x286e06(0xf8)]:[]];_0x323fcd[_0x286e06(0x100)]>0x0?(_0x323fcd[_0x286e06(0xcf)](_0x563db6=>{const _0x5c6ea4=_0x274eaf,_0x6c662c=_0x286e06;if(this[_0x5c6ea4(0xf5)][_0x6c662c(0x10a)](_0x563db6)){const _0x5ce2d6=this[_0x6c662c(0xd5)][_0x6c662c(0xce)](_0x563db6),_0x4b2408=_0x5ce2d6?.[_0x6c662c(0x114)]?path_1[_0x5c6ea4(0x117)][_0x6c662c(0xe3)](process[_0x5c6ea4(0x121)](),_0x5ce2d6[_0x6c662c(0x114)]):_0x5c6ea4(0x106);console[_0x6c662c(0xf9)](chalk_1[_0x5c6ea4(0x117)][_0x6c662c(0x10f)](_0x6c662c(0xe2))[_0x6c662c(0xfd)]('[\x20WARN\x20]'),chalk_1[_0x6c662c(0x111)][_0x6c662c(0x108)](_0x6c662c(0xed)+_0x563db6+_0x6c662c(0x119)),chalk_1[_0x6c662c(0x111)][_0x6c662c(0x11c)][_0x6c662c(0xfd)](path_1[_0x5c6ea4(0x117)][_0x6c662c(0x117)](_0x5a4693)),chalk_1[_0x6c662c(0x111)][_0x6c662c(0x108)](_0x6c662c(0xe9)),chalk_1[_0x6c662c(0x111)]['gray'][_0x6c662c(0xfd)](_0x4b2408));}this[_0x6c662c(0xd5)][_0x6c662c(0x11b)](_0x563db6,_0x3e75aa),_0x5b2cff[_0x6c662c(0xd5)][_0x6c662c(0x113)](_0x563db6);}),this[_0x286e06(0xe4)][_0x286e06(0x11b)](_0x51d277,_0x3e75aa)):(this[_0x286e06(0xfa)][_0x286e06(0x113)](_0x3e75aa),_0x5b2cff[_0x286e06(0xfa)]['push'](_0x3e75aa));}else console[_0x286e06(0xf9)](chalk_1[_0x286e06(0x111)][_0x274eaf(0xd1)][_0x286e06(0xfd)](_0x286e06(0xf7)),chalk_1[_0x274eaf(0x117)][_0x286e06(0xf1)][_0x286e06(0xfd)](_0x286e06(0xe1)+path_1[_0x274eaf(0x117)][_0x274eaf(0xd3)](_0x5a4693)+_0x286e06(0x110)));}catch(_0x49ad08){console[_0x274eaf(0x110)](chalk_1[_0x286e06(0x111)][_0x286e06(0xdf)][_0x286e06(0xfd)](_0x274eaf(0xde)),chalk_1[_0x274eaf(0x117)][_0x286e06(0xf1)][_0x274eaf(0xfe)]((0x0,moment_timezone_1[_0x286e06(0x111)])()[_0x286e06(0x112)](_0x286e06(0xff))),'~',chalk_1[_0x274eaf(0x117)][_0x286e06(0x108)][_0x286e06(0xfd)](path_1[_0x286e06(0x111)][_0x286e06(0x117)](_0x5a4693)+'\x0a'),_0x49ad08);}}[_0x150e92(0x11a)](_0x58cd7f=this[_0x54efba(0xd8)]){const _0x3acc38=_0x54efba,_0x395f17=_0x150e92,_0x52f69f=fs_1[_0x395f17(0x111)][_0x3acc38(0xd4)](_0x58cd7f,{'withFileTypes':!![]});for(const _0x4405e4 of _0x52f69f){const _0x3d1f91=path_1[_0x395f17(0x111)][_0x395f17(0xef)](_0x58cd7f,_0x4405e4[_0x395f17(0xd4)]);if(_0x4405e4['isDirectory']())this[_0x395f17(0x11a)](_0x3d1f91);else/\.(js|mjs|cjs)$/[_0x395f17(0xd0)](_0x4405e4[_0x395f17(0xd4)])&&this[_0x3acc38(0x109)](_0x3d1f91);}}[_0x54efba(0x11b)](){const _0x2fc50d=_0x54efba,_0x457896=_0x150e92;let _0x34d86f=null;const _0x2a3cc4=new Map(),_0x1137cf=this['delay'],_0x5dff74=()=>{const _0x5dda2b=_0x1350;_0x2a3cc4[_0x5dda2b(0xcf)]((_0x51664b,_0x1d6189)=>{const _0x151ead=_0x32b9,_0x1123ed=_0x5dda2b,_0x45817a=path_1['default'][_0x1123ed(0xe3)](process[_0x1123ed(0xfc)](),_0x1d6189),_0x9ba8fe=chalk_1[_0x1123ed(0x111)][_0x1123ed(0xf1)][_0x1123ed(0xfd)]((0x0,moment_timezone_1[_0x1123ed(0x111)])()[_0x1123ed(0x112)](_0x1123ed(0xff)));switch(_0x51664b){case _0x1123ed(0x10e):console['log'](chalk_1[_0x151ead(0x117)][_0x151ead(0x10a)]['bold'](_0x1123ed(0x10d)),_0x9ba8fe,'~',chalk_1[_0x1123ed(0x111)][_0x151ead(0x116)][_0x1123ed(0xfd)](_0x45817a)),this[_0x151ead(0x109)](_0x1d6189);break;case _0x1123ed(0x103):console['log'](chalk_1[_0x1123ed(0x111)][_0x1123ed(0xf6)][_0x1123ed(0xfd)](_0x1123ed(0xe5)),_0x9ba8fe,'~',chalk_1[_0x1123ed(0x111)]['white']['bold'](_0x45817a)),this[_0x1123ed(0x115)](_0x1d6189);break;case _0x151ead(0x111):console[_0x1123ed(0xf9)](chalk_1[_0x1123ed(0x111)][_0x1123ed(0xdf)][_0x1123ed(0xfd)](_0x1123ed(0x10b)),_0x9ba8fe,'~',chalk_1[_0x1123ed(0x111)][_0x1123ed(0x108)][_0x1123ed(0xfd)](_0x45817a)),this[_0x1123ed(0xf5)](path_1[_0x1123ed(0x111)][_0x1123ed(0xee)](_0x1d6189));break;}}),_0x2a3cc4[_0x5dda2b(0xd8)]();},_0x5ca8a1=(_0x40d44e,_0x1c44a3)=>{const _0x5e6051=_0x1350;if(!/\.(js|cjs|mjs)$/[_0x5e6051(0xd0)](_0x1c44a3))return;if(_0x34d86f)clearTimeout(_0x34d86f);_0x2a3cc4[_0x5e6051(0x11b)](path_1[_0x5e6051(0x111)][_0x5e6051(0xee)](_0x1c44a3),_0x40d44e),_0x34d86f=setTimeout(_0x5dff74,_0x1137cf);},_0x1d8d3a=chokidar_1[_0x457896(0x111)][_0x457896(0xdc)](this[_0x457896(0xfe)],{'ignored':/(^|[\/\\])\../,'persistent':!![],'ignoreInitial':!![],'depth':0x63});_0x1d8d3a['on']('add',_0x554b90=>_0x5ca8a1(_0x457896(0x10e),_0x554b90))['on'](_0x457896(0x103),_0x3a4a8a=>_0x5ca8a1(_0x457896(0x103),_0x3a4a8a))['on'](_0x2fc50d(0x111),_0x3cfc92=>_0x5ca8a1(_0x2fc50d(0x111),_0x3cfc92))['on'](_0x457896(0x104),_0x498498=>console[_0x2fc50d(0xea)](chalk_1[_0x457896(0x111)]['redBright'][_0x457896(0xfd)]('[\x20ERROR\x20]'),chalk_1[_0x457896(0x111)][_0x457896(0xf1)][_0x457896(0xfd)]((0x0,moment_timezone_1[_0x457896(0x111)])()[_0x457896(0x112)](_0x457896(0xff))),_0x498498));}}module[_0x54efba(0xfa)]=Plugin;
@@ -0,0 +1,10 @@
1
+ declare class Session {
2
+ private session;
3
+ private BACKUP_DIR;
4
+ constructor(sessionPath: string);
5
+ private init;
6
+ backup(conn: any, path: any): Promise<void>;
7
+ restore(conn: any): Promise<void>;
8
+ isBackupExist(conn: any): Promise<boolean>;
9
+ }
10
+ export = Session;
@@ -0,0 +1 @@
1
+ 'use strict';const _0x378b42=_0xcd78;(function(_0x2499fa,_0x5dab85){const _0xd7ed09=_0xcd78,_0x2f6940=_0x2499fa();while(!![]){try{const _0x3b18d4=parseInt(_0xd7ed09(0xe2))/0x1+-parseInt(_0xd7ed09(0xf3))/0x2+-parseInt(_0xd7ed09(0xec))/0x3+parseInt(_0xd7ed09(0xf5))/0x4+-parseInt(_0xd7ed09(0xe9))/0x5+parseInt(_0xd7ed09(0xdf))/0x6*(-parseInt(_0xd7ed09(0xde))/0x7)+parseInt(_0xd7ed09(0xf2))/0x8*(parseInt(_0xd7ed09(0xe8))/0x9);if(_0x3b18d4===_0x5dab85)break;else _0x2f6940['push'](_0x2f6940['shift']());}catch(_0x2ebc33){_0x2f6940['push'](_0x2f6940['shift']());}}}(_0x12bd,0xac7de));const _0x4e1c6=_0x1f4b;(function(_0x16e977,_0x3e2854){const _0xad88b3=_0xcd78,_0x3a1caa=_0x1f4b,_0x11797f=_0x16e977();while(!![]){try{const _0x24bf85=-parseInt(_0x3a1caa(0xab))/0x1+parseInt(_0x3a1caa(0xa0))/0x2+-parseInt(_0x3a1caa(0x98))/0x3*(-parseInt(_0x3a1caa(0x9b))/0x4)+-parseInt(_0x3a1caa(0x94))/0x5*(parseInt(_0x3a1caa(0x93))/0x6)+-parseInt(_0x3a1caa(0x96))/0x7*(parseInt(_0x3a1caa(0xa6))/0x8)+-parseInt(_0x3a1caa(0x95))/0x9*(-parseInt(_0x3a1caa(0xac))/0xa)+parseInt(_0x3a1caa(0x9d))/0xb*(-parseInt(_0x3a1caa(0x8e))/0xc);if(_0x24bf85===_0x3e2854)break;else _0x11797f['push'](_0x11797f['shift']());}catch(_0x46cda9){_0x11797f[_0xad88b3(0xf7)](_0x11797f['shift']());}}}(_0x2b72,0xe5fd2));var __importDefault=this&&this[_0x4e1c6(0x97)]||function(_0x76372a){const _0x17222b=_0x4e1c6;return _0x76372a&&_0x76372a[_0x17222b(0xa3)]?_0x76372a:{'default':_0x76372a};};function _0x12bd(){const _0x4fa3bb=['push','10616304FMKioe','exports','BACKUP_DIR','restore','__importDefault','310144HkZmBj','../System/Function','7qBlBDE','readFileSync','5JxobiH','./session_backup','552030MiGTHA','4288TUbuJI','session_backup','22LYXCjF','224MugWPM','37392KkpUZZ','isBackupExist','init','253182tgOvxg','existsSync','__esModule','2444896Wlkldb','mkdirSync','utf-8','9TsYxEB','563645NskCPf','backup','default','3227772rflUGl','./session_backup/','decodeJid','373689kqMOlI','/creds.json','stringify','19701872pAqMHg','2263616sQchBU','writeFileSync','2041980QXInik','delay'];_0x12bd=function(){return _0x4fa3bb;};return _0x12bd();}const fs_1=__importDefault(require('fs')),Func=new(require(_0x378b42(0xfe)))();class Session{constructor(_0x2d2535){const _0x3f109f=_0x378b42,_0x5677b2=_0x4e1c6;this[_0x3f109f(0xfa)]=_0x5677b2(0xa2),this[_0x5677b2(0xaa)]=_0x2d2535,this[_0x5677b2(0x92)]();}[_0x4e1c6(0x92)](){const _0xdd978e=_0x378b42,_0x15f61f=_0x4e1c6,_0x900028=_0x15f61f(0x8d);if(!fs_1[_0x15f61f(0x9a)][_0x15f61f(0xa8)](_0x900028))fs_1[_0x15f61f(0x9a)][_0xdd978e(0xe6)](_0x900028);}async[_0x4e1c6(0xa5)](_0x45fab1,_0xc3f4d5){const _0x204331=_0x378b42,_0x577dec=_0x4e1c6;try{const _0x1089ad=_0x45fab1[_0x577dec(0x8a)](_0x45fab1[_0x577dec(0xad)]['id'])[_0x577dec(0x9e)](/@.+/,''),_0x428902=_0x577dec(0x9f)+_0x1089ad,_0x52c446=_0xc3f4d5+_0x204331(0xf0),_0x474bc9=_0x428902+_0x577dec(0xa1);await Func[_0x577dec(0x8f)](0x5dc);if(!fs_1[_0x577dec(0x9a)][_0x204331(0xe3)](_0x428902))fs_1[_0x204331(0xeb)][_0x577dec(0x91)](_0x428902);if(fs_1[_0x577dec(0x9a)][_0x204331(0xe3)](_0x52c446)){const _0x5bc855=JSON[_0x577dec(0xa4)](fs_1[_0x577dec(0x9a)][_0x204331(0x100)](_0x52c446,_0x577dec(0xa9)));fs_1[_0x577dec(0x9a)][_0x577dec(0x8b)](_0x474bc9,JSON[_0x577dec(0x8c)](_0x5bc855));}}catch(_0x1e150f){console[_0x577dec(0xa7)](_0x1e150f);}}async[_0x4e1c6(0x99)](_0x5082ec){const _0x46d46e=_0x378b42,_0x204732=_0x4e1c6;try{const _0x393d10=_0x5082ec[_0x46d46e(0xee)](_0x5082ec[_0x204732(0xad)]['id'])[_0x204732(0x9e)](/@.+/,''),_0x59c77a=this[_0x46d46e(0xfa)]+'/'+_0x393d10+_0x204732(0xa1),_0x8b809a=this[_0x204732(0xaa)]+_0x204732(0xa1);await Func[_0x204732(0x8f)](0x5dc);if(fs_1[_0x204732(0x9a)][_0x204732(0xa8)](_0x59c77a)){if(!fs_1[_0x204732(0x9a)][_0x204732(0xa8)](this[_0x204732(0xaa)]))fs_1[_0x204732(0x9a)][_0x204732(0x91)](this[_0x204732(0xaa)],{'recursive':!![]});const _0x26e23c=JSON[_0x204732(0xa4)](fs_1[_0x46d46e(0xeb)][_0x204732(0x90)](_0x59c77a,_0x46d46e(0xe7)));fs_1[_0x204732(0x9a)][_0x204732(0x8b)](_0x8b809a,JSON[_0x204732(0x8c)](_0x26e23c));}}catch(_0x2ccce4){console['error'](_0x2ccce4);}}async[_0x4e1c6(0x9c)](_0xbb75a3){const _0x200f7e=_0x378b42,_0x454062=_0x4e1c6;try{const _0x36ead7=_0xbb75a3[_0x454062(0x8a)](_0xbb75a3[_0x454062(0xad)]['id'])[_0x454062(0x9e)](/@.+/,''),_0x32f069=_0x200f7e(0xed)+_0x36ead7+_0x200f7e(0xf0);return fs_1[_0x454062(0x9a)][_0x200f7e(0xe3)](_0x32f069);}catch{return![];}}}function _0xcd78(_0x2dfbcc,_0x3edb63){const _0x12bd5b=_0x12bd();return _0xcd78=function(_0xcd784,_0x6f6498){_0xcd784=_0xcd784-0xd8;let _0x590965=_0x12bd5b[_0xcd784];return _0x590965;},_0xcd78(_0x2dfbcc,_0x3edb63);}function _0x1f4b(_0x2e1387,_0x32c9ea){const _0x5b42b4=_0x2b72();return _0x1f4b=function(_0x135a12,_0x12e252){_0x135a12=_0x135a12-0x8a;let _0x39f00d=_0x5b42b4[_0x135a12];return _0x39f00d;},_0x1f4b(_0x2e1387,_0x32c9ea);}module[_0x378b42(0xf9)]=Session;function _0x2b72(){const _0x3c50a9=_0x378b42,_0xfee976=[_0x3c50a9(0xfd),'280KSzZpe','user',_0x3c50a9(0xee),_0x3c50a9(0xf4),_0x3c50a9(0xf1),_0x3c50a9(0xd9),_0x3c50a9(0xf8),_0x3c50a9(0xf6),_0x3c50a9(0x100),'mkdirSync',_0x3c50a9(0xe1),_0x3c50a9(0xda),_0x3c50a9(0xd8),_0x3c50a9(0xef),_0x3c50a9(0xff),_0x3c50a9(0xfc),'2571YYzbhs',_0x3c50a9(0xfb),'default',_0x3c50a9(0xdb),_0x3c50a9(0xe0),_0x3c50a9(0xdd),'replace',_0x3c50a9(0xed),_0x3c50a9(0xe5),_0x3c50a9(0xf0),_0x3c50a9(0xdc),_0x3c50a9(0xe4),'parse',_0x3c50a9(0xea),'1521384byaSdh','error',_0x3c50a9(0xe3),_0x3c50a9(0xe7),'session'];return _0x2b72=function(){return _0xfee976;},_0x2b72();}
@@ -0,0 +1,32 @@
1
+ interface UserData {
2
+ banned?: boolean;
3
+ ban_temporary?: number;
4
+ ban_times?: number;
5
+ }
6
+ interface Setting {
7
+ antispam: boolean;
8
+ }
9
+ interface Message {
10
+ sender: string;
11
+ chat: string;
12
+ }
13
+ interface Connection {
14
+ reply(chat: string, text: string, quoted: Message): void;
15
+ }
16
+ interface SpamOptions {
17
+ mode?: 'command' | 'msg' | 'all';
18
+ messageLimit?: number;
19
+ timeWindowSeconds?: number;
20
+ banCooldownSeconds?: number;
21
+ maxBanTimes?: number;
22
+ commandCooldownSeconds?: number;
23
+ }
24
+ declare class Spam {
25
+ private config;
26
+ private userMessages;
27
+ private commandCooldown;
28
+ constructor(options: SpamOptions);
29
+ check(conn: Connection, m: Message, users: UserData, isCommand?: boolean, command?: string, setting?: Setting): boolean;
30
+ private detectSpam;
31
+ }
32
+ export = Spam;
@@ -0,0 +1 @@
1
+ 'use strict';const _0x456974=_0x1c72;(function(_0x5c6a0d,_0xd8177b){const _0x491161=_0x1c72,_0x9459c4=_0x5c6a0d();while(!![]){try{const _0x738d04=parseInt(_0x491161(0xc5))/0x1*(parseInt(_0x491161(0x9d))/0x2)+parseInt(_0x491161(0xb1))/0x3+parseInt(_0x491161(0x97))/0x4+parseInt(_0x491161(0xb3))/0x5*(parseInt(_0x491161(0x9c))/0x6)+parseInt(_0x491161(0x96))/0x7*(parseInt(_0x491161(0xad))/0x8)+-parseInt(_0x491161(0x99))/0x9*(-parseInt(_0x491161(0xa4))/0xa)+-parseInt(_0x491161(0xa7))/0xb;if(_0x738d04===_0xd8177b)break;else _0x9459c4['push'](_0x9459c4['shift']());}catch(_0x25d561){_0x9459c4['push'](_0x9459c4['shift']());}}}(_0x5f41,0x2da3d));function _0x1c72(_0x179553,_0x34181b){const _0x5f417c=_0x5f41();return _0x1c72=function(_0x1c72c3,_0x5e56b8){_0x1c72c3=_0x1c72c3-0x94;let _0x406388=_0x5f417c[_0x1c72c3];return _0x406388;},_0x1c72(_0x179553,_0x34181b);}const _0x3ee609=_0x4173;function _0x4173(_0x4785c1,_0x27f338){const _0x11c6fa=_0x4ff8();return _0x4173=function(_0x165f49,_0x5ca0a7){_0x165f49=_0x165f49-0x160;let _0x5a0aa5=_0x11c6fa[_0x165f49];return _0x5a0aa5;},_0x4173(_0x4785c1,_0x27f338);}(function(_0x7d5521,_0x19e45b){const _0x56ae7e=_0x1c72,_0x1bd150=_0x4173,_0x1b06dc=_0x7d5521();while(!![]){try{const _0x12bdb9=parseInt(_0x1bd150(0x176))/0x1+parseInt(_0x1bd150(0x175))/0x2*(-parseInt(_0x1bd150(0x163))/0x3)+-parseInt(_0x1bd150(0x17a))/0x4*(parseInt(_0x1bd150(0x166))/0x5)+parseInt(_0x1bd150(0x168))/0x6+parseInt(_0x1bd150(0x16d))/0x7+-parseInt(_0x1bd150(0x171))/0x8+parseInt(_0x1bd150(0x16f))/0x9;if(_0x12bdb9===_0x19e45b)break;else _0x1b06dc[_0x56ae7e(0xa3)](_0x1b06dc['shift']());}catch(_0x5388e0){_0x1b06dc['push'](_0x1b06dc[_0x56ae7e(0xaf)]());}}}(_0x4ff8,0x3b18b));var __importDefault=this&&this[_0x456974(0xa8)]||function(_0x2133b5){const _0xb2bbf9=_0x4173;return _0x2133b5&&_0x2133b5[_0xb2bbf9(0x18a)]?_0x2133b5:{'default':_0x2133b5};};function _0x5f41(){const _0x48a542=['toFixed','messageLimit','\x20/\x20','../System/Function','banned','push','2574800wGnHcJ','commandCooldown','*\x20again.','13352295ioXbFT','__importDefault','filter','maxBanTimes','452SRzHVW','\x20]\x20You\x27ve\x20been\x20warned\x20many\x20times!\x20*You\x20are\x20permanently\x20banned!','488CTyUQo','__esModule','shift','set','942528OCbKob','now','95QUxNFb','command','get','length','italic','\x20seconds*\x20before\x20using\x20*','20166wrybYk','ban_times','\x20]\x20You\x20have\x20been\x20detected\x20spamming!\x20You\x20are\x20temporarily\x20banned\x20for\x20*','431676rJnjbN','ban_temporary','banCooldownSeconds','sender','antispam','commandCooldownSeconds','default','delete','⚠️\x20Wait\x20*','1bbQxof','chat','userMessages','3830840uSMEXL','⚠️\x20[\x20','7044003wTTTGU','9583RqMLxT','1484776cKfKdH','config','9uOZgcs','\x20seconds*.','261187UOfjxq','33186zaTvct','538676OWdhwc'];_0x5f41=function(){return _0x48a542;};return _0x5f41();}const Logger_1=__importDefault(require(_0x3ee609(0x181))),Func=new(require(_0x3ee609(0x16a)))();class Spam{constructor(_0x192352){const _0x52c2f9=_0x456974,_0x3acfac=_0x3ee609;this[_0x3acfac(0x17e)]={'mode':_0x192352[_0x3acfac(0x18d)]||_0x3acfac(0x165),'messageLimit':_0x192352[_0x3acfac(0x160)]||0x5,'timeWindowSeconds':_0x192352[_0x3acfac(0x18b)]||0xa,'banCooldownSeconds':_0x192352['banCooldownSeconds']||0x1e,'maxBanTimes':_0x192352[_0x3acfac(0x190)]||0x3,'commandCooldownSeconds':_0x192352[_0x3acfac(0x16e)]||0x3},this[_0x3acfac(0x162)]=new Map(),this[_0x52c2f9(0xa5)]=new Map();}[_0x3ee609(0x169)](_0x372fb8,_0x48bcda,_0x3ca9b8,_0x747660=![],_0x34e4e9,_0xe6178e){const _0xd002fa=_0x456974,_0x24b2e0=_0x3ee609;if(_0x3ca9b8[_0x24b2e0(0x189)]||_0x3ca9b8[_0xd002fa(0xbd)]&&_0x3ca9b8[_0x24b2e0(0x180)]>Date[_0x24b2e0(0x182)]())return(0x0,Logger_1[_0x24b2e0(0x18f)])(_0x372fb8,_0x48bcda,{'isBanned':!![]}),!![];_0x3ca9b8[_0x24b2e0(0x180)]&&_0x3ca9b8[_0x24b2e0(0x180)]<=Date[_0xd002fa(0xb2)]()&&(_0x3ca9b8[_0x24b2e0(0x180)]=0x0);const _0x59479c=_0xe6178e?.[_0x24b2e0(0x17d)]&&this[_0x24b2e0(0x170)](_0x48bcda[_0x24b2e0(0x17b)],_0x747660);(0x0,Logger_1[_0xd002fa(0xc2)])(_0x372fb8,_0x48bcda,{'isCommand':_0x747660,'isSpam':_0x59479c});if(_0x59479c){_0x3ca9b8[_0x24b2e0(0x16c)]=(_0x3ca9b8[_0x24b2e0(0x16c)]||0x0)+0x1;const _0x41b8b4=this[_0x24b2e0(0x17e)][_0x24b2e0(0x183)];_0x3ca9b8[_0x24b2e0(0x180)]=Date[_0x24b2e0(0x182)]()+_0x41b8b4*0x3e8;let _0x57d342=_0x24b2e0(0x17f)+_0x3ca9b8[_0xd002fa(0xba)]+_0x24b2e0(0x161)+this[_0xd002fa(0x98)][_0x24b2e0(0x190)]+_0x24b2e0(0x179)+_0x41b8b4+_0x24b2e0(0x184);return _0x3ca9b8[_0x24b2e0(0x16c)]>=this[_0x24b2e0(0x17e)][_0x24b2e0(0x190)]&&(_0x3ca9b8[_0x24b2e0(0x189)]=!![],_0x3ca9b8[_0x24b2e0(0x180)]=0x0,_0x3ca9b8[_0xd002fa(0xba)]=0x0,_0x57d342=_0x24b2e0(0x17f)+_0x3ca9b8[_0x24b2e0(0x16c)]+_0x24b2e0(0x161)+this[_0x24b2e0(0x17e)]['maxBanTimes']+_0x24b2e0(0x16b)),_0x372fb8[_0x24b2e0(0x178)](_0x48bcda[_0x24b2e0(0x167)],Func[_0x24b2e0(0x17c)](_0x24b2e0(0x172),_0x57d342),_0x48bcda),!![];}if(_0x747660&&_0x34e4e9){const _0x45ee41=_0x48bcda[_0x24b2e0(0x17b)]+'_'+_0x34e4e9,_0x1df9d2=Date[_0x24b2e0(0x182)](),_0x21be98=this[_0xd002fa(0xa5)]['get'](_0x45ee41),_0x107757=this[_0x24b2e0(0x17e)][_0x24b2e0(0x16e)]*0x3e8;if(_0x21be98&&_0x1df9d2-_0x21be98<_0x107757){const _0x2f6f49=((_0x107757-(_0x1df9d2-_0x21be98))/0x3e8)[_0xd002fa(0x9e)](0x1);return _0x372fb8[_0x24b2e0(0x178)](_0x48bcda[_0x24b2e0(0x167)],Func[_0x24b2e0(0x17c)](_0x24b2e0(0x172),_0x24b2e0(0x18c)+_0x2f6f49+_0xd002fa(0xb8)+_0x34e4e9+_0x24b2e0(0x18e)),_0x48bcda),!![];}this[_0x24b2e0(0x187)][_0x24b2e0(0x174)](_0x45ee41,_0x1df9d2);}return![];}[_0x3ee609(0x170)](_0x35260a,_0x5437ae){const _0x3194f9=_0x456974,_0x317951=_0x3ee609;if(this[_0x3194f9(0x98)][_0x317951(0x18d)]===_0x317951(0x165)&&!_0x5437ae||this[_0x317951(0x17e)][_0x317951(0x18d)]===_0x317951(0x185)&&_0x5437ae)return![];const _0x44c101=Date[_0x317951(0x182)](),_0x334246=this[_0x3194f9(0xc7)][_0x317951(0x164)](_0x35260a)||[],_0xcb692a=this[_0x317951(0x17e)][_0x317951(0x18b)]*0x3e8,_0x16d7b5=_0x334246[_0x3194f9(0xa9)](_0x4cec2c=>_0x44c101-_0x4cec2c<_0xcb692a);_0x16d7b5[_0x317951(0x186)](_0x44c101),this[_0x317951(0x162)][_0x317951(0x174)](_0x35260a,_0x16d7b5);if(_0x16d7b5[_0x317951(0x177)]>this[_0x3194f9(0x98)][_0x3194f9(0x9f)])return this[_0x317951(0x162)][_0x317951(0x188)](_0x35260a),!![];return![];}}function _0x4ff8(){const _0x4721d4=_0x456974,_0x3c88d5=[_0x4721d4(0xba),'302862PQsGVo',_0x4721d4(0xc1),_0x4721d4(0x95),'detectSpam',_0x4721d4(0xc8),_0x4721d4(0xb7),'exports',_0x4721d4(0xb0),_0x4721d4(0xb9),_0x4721d4(0x9b),_0x4721d4(0xb6),'reply',_0x4721d4(0xbb),_0x4721d4(0xab),_0x4721d4(0xbf),'texted',_0x4721d4(0xc0),_0x4721d4(0x98),_0x4721d4(0x94),_0x4721d4(0xbd),'./Logger',_0x4721d4(0xb2),_0x4721d4(0xbe),_0x4721d4(0x9a),'msg','push',_0x4721d4(0xa5),_0x4721d4(0xc3),_0x4721d4(0xa2),_0x4721d4(0xae),'timeWindowSeconds',_0x4721d4(0xc4),'mode',_0x4721d4(0xa6),'default',_0x4721d4(0xaa),_0x4721d4(0x9f),_0x4721d4(0xa0),_0x4721d4(0xc7),'45LHNKCR',_0x4721d4(0xb5),_0x4721d4(0xb4),'12695tXPYQF',_0x4721d4(0xc6),_0x4721d4(0xbc),'check',_0x4721d4(0xa1),_0x4721d4(0xac)];return _0x4ff8=function(){return _0x3c88d5;},_0x4ff8();}module[_0x3ee609(0x173)]=Spam;
package/package.json ADDED
@@ -0,0 +1,52 @@
1
+ {
2
+ "name": "@znan/wabot",
3
+ "version": "0.0.5",
4
+ "description": "Simple module WhatsApp Bot",
5
+ "keywords": [
6
+ "wabot",
7
+ "bot",
8
+ "whatsapp-bot",
9
+ "baileys"
10
+ ],
11
+ "homepage": "https://github.com/znanx/wabot#readme",
12
+ "bugs": {
13
+ "url": "https://github.com/znanx/wabot/issues"
14
+ },
15
+ "repository": {
16
+ "type": "git",
17
+ "url": "git+https://github.com/znanx/wabot.git"
18
+ },
19
+ "license": "MIT",
20
+ "author": "znan",
21
+ "main": "index.js",
22
+ "types": "index.d.ts",
23
+ "dependencies": {
24
+ "@alyachan/api": "^0.0.15",
25
+ "@cacheable/node-cache": "^1.5.5",
26
+ "@hapi/boom": "^10.0.1",
27
+ "async-retry": "^1.3.3",
28
+ "awesome-phonenumber": "~2.59.0",
29
+ "chalk": "~4.1.2",
30
+ "chokidar": "~4.0.3",
31
+ "crypto-digest-sync": "^1.0.0",
32
+ "css-select": "5.1.0",
33
+ "dotenv": "^16.5.0",
34
+ "file-type": "~16.5.2",
35
+ "fluent-ffmpeg": "~2.1.3",
36
+ "form-data": "~4.0.0",
37
+ "fs": "^0.0.1-security",
38
+ "jimp": "~0.22.12",
39
+ "mime-types": "~2.1.32",
40
+ "miniget": "~4.2.3",
41
+ "moment-timezone": "^0.6.0",
42
+ "node-cache": "^5.1.2",
43
+ "node-cron": "^4.2.1",
44
+ "node-fetch": "2",
45
+ "node-id3": "0.2.7",
46
+ "node-webpmux": "^3.2.1",
47
+ "pino": "^9.7.0",
48
+ "qrcode-terminal": "^0.12.0",
49
+ "rootpath": "^0.1.2",
50
+ "syntax-error": "^1.4.0"
51
+ }
52
+ }