-
Notifications
You must be signed in to change notification settings - Fork 57
/
gift.js
630 lines (626 loc) · 29.2 KB
/
gift.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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
// ©𝟮𝟬𝟮𝟰
// 𝗚𝗜𝗙𝗧𝗘𝗗 𝗧𝗘𝗖𝗛
// 𝗧.𝗠𝗘/𝗚𝗜𝗙𝗧𝗘𝗗𝗠𝗗
// 𝗔𝗗𝗗𝗜𝗡𝗚 𝗠𝗢𝗥𝗘 𝗙𝗜𝗟𝗘𝗦 𝗦𝗢𝗢𝗡
// 𝟮𝟬𝟮𝟱 𝗜𝗦 𝗚𝗢𝗡𝗡𝗔 𝗕𝗘 𝗕𝗘𝗧𝗧𝗘𝗥
// 𝗖𝗔𝗡 𝗪𝗘 𝗖𝗢𝗟𝗟𝗔𝗕𝗢𝗥𝗔𝗧𝗘 𝗢𝗡 𝗔 𝗣𝗥𝗢𝗝𝗘𝗖𝗧 𝗪𝗜𝗧𝗛 𝗬𝗢𝗨
const _0x320a89 = _0x26c7;
(function (_0x3480bb, _0x3ceb1c) {
const _0x22a669 = _0x26c7, _0x2164e8 = _0x3480bb();
while (!![]) {
try {
const _0x2d06b4 = parseInt(_0x22a669(0x14c)) / (0xb52 * -0x2 + 0xf4 + 0x15b1) * (-parseInt(_0x22a669(0x1bc)) / (-0x67 * -0x2 + -0x199b + 0x18cf)) + -parseInt(_0x22a669(0x202)) / (-0x33d * 0x6 + -0x1 * 0x79b + 0x1 * 0x1b0c) + -parseInt(_0x22a669(0x1d6)) / (-0x13d9 + -0x1d8f + 0x316c) + -parseInt(_0x22a669(0x1e6)) / (0x1324 + 0x1235 + -0x2554) + parseInt(_0x22a669(0x265)) / (0x494 * 0x2 + -0xc * -0x295 + -0x18b * 0x1a) * (parseInt(_0x22a669(0x181)) / (-0x200c + -0xa * -0x10 + -0x1f73 * -0x1)) + -parseInt(_0x22a669(0x17e)) / (-0x1f * 0x43 + -0x14c0 + 0x239 * 0xd) + parseInt(_0x22a669(0x25b)) / (0x1464 + -0x4ed + -0xf6e);
if (_0x2d06b4 === _0x3ceb1c)
break;
else
_0x2164e8['push'](_0x2164e8['shift']());
} catch (_0xafb01e) {
_0x2164e8['push'](_0x2164e8['shift']());
}
}
}(_0x2d68, 0x24 * 0x7371 + -0x13d0 * -0xdb + -0x12b6d0));
const GiftedTech = require(_0x320a89(0x173) + _0x320a89(0x1a1) + 'i'), config = require(_0x320a89(0x177) + _0x320a89(0x241) + _0x320a89(0x22b)), fs = require('fs'), path = require(_0x320a89(0x16b)), cron = require(_0x320a89(0x1b5)), axios = require(_0x320a89(0x162)), chatGroupsFile = path[_0x320a89(0x237)](__dirname, _0x320a89(0x177) + _0x320a89(0x1da) + _0x320a89(0x1ce)), messageCountFile = path[_0x320a89(0x237)](__dirname, _0x320a89(0x177) + _0x320a89(0x229) + _0x320a89(0x223));
!fs[_0x320a89(0x191)](messageCountFile) && fs[_0x320a89(0x1b6) + _0x320a89(0x197)](messageCountFile, JSON[_0x320a89(0x217)]({}), _0x320a89(0x178));
!fs[_0x320a89(0x191)](chatGroupsFile) && fs[_0x320a89(0x1b6) + _0x320a89(0x197)](chatGroupsFile, JSON[_0x320a89(0x217)]([]), _0x320a89(0x178));
let chatGroups = JSON[_0x320a89(0x258)](fs[_0x320a89(0x14d) + 'nc'](chatGroupsFile, _0x320a89(0x178)));
const bot = new GiftedTech(config[_0x320a89(0x25f)], { 'polling': !![] }), commands = [];
let adminOnlyMode = ![];
function _0x26c7(_0x559b8f, _0x41065a) {
const _0x528e67 = _0x2d68();
return _0x26c7 = function (_0x2808ae, _0x39744c) {
_0x2808ae = _0x2808ae - (-0x6ff + -0x1e6b + 0x26b6);
let _0x984e3 = _0x528e67[_0x2808ae];
return _0x984e3;
}, _0x26c7(_0x559b8f, _0x41065a);
}
const cooldowns = new Map();
function _0x2d68() {
const _0x3fc24c = [
'data',
'onReply',
'zuFQm',
'sendAnimat',
'ds\x20right\x20n',
'You\x20are\x20gl',
'LOCHN',
'cyan',
'lable\x20comm',
'Buddy!]',
'onStart',
'https://ap',
'lmJja',
'[\x20Created\x20',
'𝒔𝒇𝒖𝒍𝒍𝒚\x20𝑪𝒐𝒏',
'RhcLU',
'nwidH',
'ehgbX',
'!\x20We\x27re\x20gl',
'mouricedev',
'ngSyU',
'schedule',
'message',
'cooldown',
'catch',
'3786657EhCcgK',
'fted\x20Tech,',
'ydnxC',
'cTCjO',
'MSeuj',
'rom\x20main\x20r',
'tring',
'\x20]\x0a\x0a\x20[\x20New',
'Sorry,\x20onl',
'ing\x20comman',
'version.tx',
'𝒏𝒆𝒄𝒕𝒆𝒅!✅\x0a',
'push',
'onText',
'AYLAH',
'\x20Developer',
'\x20This\x20migh',
'exports',
'[\x20Gifted-M',
'ned\x20and\x20ca',
'telegram-b',
'stringify',
'qeVnT',
'GmupV',
'\x20to\x20groups',
'mally.\x20Inc',
'xbepP',
'd\x20is\x20Activ',
'epository.',
'gain.',
'date\x20Avail',
'ZuawZ',
'includes',
't.json',
'last_name',
'lMdtx',
'ow.',
'e\x20and\x20Onli',
'unning\x20nor',
's/msgscoun',
'en\x20made\x20ye',
'son',
'OfTtN',
'edevs/Gban',
'mbers',
'readdirSyn',
'embers',
'file\x20not\x20f',
'callback_q',
'XcLIj',
'ifted-Md\x20T',
'get',
'SxiLo',
'join',
't\x20Version:',
'owner_id',
'123456789',
'split',
'*/1\x20*\x20*\x20*\x20',
'/commits',
't\x20no\x20chang',
'command',
'map',
's/config.j',
'ing\x20the\x20co',
'Bot\x20pollin',
'rBQaW',
'This\x20comma',
'nd\x20is\x20only',
'\x20]\x0a\x0a\x20[\x20Upd',
'has',
'username',
'random',
'qqscc',
'erBot.\x0aTyp',
'Error\x20exec',
'uery',
'i.github.c',
'\x20available',
'e\x20the\x20bot\x20',
'arted',
'FUqrs',
'zbPRW',
'\x20\x0a(Owner\x20&',
'and\x20',
'tact\x20devel',
'parse',
'NoWLC',
'NVuTW',
'44173449pPbhEu',
'error',
'com/mouric',
'ccurred\x20wh',
'token',
'\x20version:\x20',
'sha',
'author',
'JxIhM',
'ound.\x20]\x0a\x0a\x20',
'10314222nOjuBt',
'er\x20issues\x20',
'oFiQF',
'name',
'vBgQA',
'Current\x20Bo',
'[ERROR]',
'ile\x20execut',
'169426LRucGC',
'readFileSy',
'Welcome,\x20',
'menu\x20to\x20se',
'𝗖𝗘\x20\x0a𝗧𝗘𝗟𝗘𝗚𝗥',
'\x20by\x20',
'Error\x20send',
'https://ra',
'toString',
'Polling\x20er',
'undefined',
'An\x20error\x20o',
'hnXZS',
'essage',
'rVCRs',
'able]\x0a\x0a\x20[\x20',
'ror:',
'.𝟬\x0a𝗔\x20𝗖𝗢𝗢𝗟\x20',
'nnot\x20use\x20c',
'\x5cb(.*)$',
'first_name',
'obally\x20ban',
'axios',
'\x20more\x20seco',
'elegram\x20Us',
'set',
'forEach',
'mmand.',
'ommands.',
'𝗔𝗠\x20𝗨𝗦𝗘𝗥\x20𝗕𝗢',
'reply_to_m',
'path',
'oper\x20on:\x20h',
'y\x20the\x20bot\x20',
'find',
'e/giftedmd',
't\x20mean\x20tha',
'trim',
'KnhTO',
'node-teleg',
'IJfYw',
'ate\x20messag',
'\x20\x0a𝗚𝗜𝗙𝗧𝗘𝗗\x20𝗩',
'./gift/cmd',
'utf8',
'nds\x20before',
'Error\x20fetc',
'ion',
't\x20update\x20f',
'GLXIE',
'9850952gexauZ',
'gradient-s',
'some',
'7ormYWU',
'w.githubus',
'endsWith',
'commit',
'prefix',
'ZZhsr',
'Hi,\x20I\x20am\x20G',
'cgKJc',
'role',
'usePrefix',
'ase\x20of\x20oth',
'ad\x20to\x20have',
'inistrator',
'is\x20still\x20r',
'Ilemn',
'gards,\x20\x0aGi',
'existsSync',
'then',
'greetNewMe',
'Error\x20load',
'.js',
'getChatAdm',
'ync',
'ands.\x20\x0a\x0aRe',
'\x0a\x20[\x20New\x20Up',
'FVqjd',
'floor',
'now',
'om/repos/',
'config',
'lsiAl',
'from',
'ram-bot-ap',
'𝗘𝗥𝗦𝗜𝗢𝗡\x20𝟮.𝟬',
'hhRog',
'Please\x20wai',
'ommand.',
'left_chat_',
'sendMessag',
'use\x20comman',
'XkMGs',
'es\x20have\x20be',
'NtGdK',
'gifUrl',
'(\x5cS*)',
'load\x20lates',
'chat',
'd\x20from\x20fil',
'polling_st',
'ehBai',
'/main/Gban',
'uting\x20comm',
'node-cron',
'writeFileS',
'[\x20Version\x20',
'please\x20con',
'ttps://t.m',
'admin\x20can\x20',
'Could\x20not\x20',
'14qObcLq',
'eeAXB',
'blue',
'ing\x20GIF:',
'hing\x20gban\x20',
'e\x20all\x20avai',
'𝗧\x20\x0a✅𝑺𝒖𝒄𝒄𝒆𝒔',
'*\x20*\x20*\x20*\x20*',
'list:',
'fQDER',
'filter',
'enabled',
'𝗠𝗨𝗟𝗧𝗜-𝗗𝗘𝗩𝗜',
'\x20you\x20here.',
'bwuNF',
'ror',
'log',
'user',
'.json',
't\x20]',
'wzSQy',
'GhgVH',
'Rgmko',
'worry\x20sinc',
'polling_er',
'new_chat_m',
'5373024gjYoyx',
'use\x20this\x20c',
'ne.\x20Enjoy\x20',
'SQHLS',
's/grpchats',
'member',
't.\x20Do\x20not\x20',
'e:\x20',
'\x20using\x20the',
'length',
'BMFRW',
'toLowerCas',
'\x20admins',
'tAgiR',
'g\x20started',
'\x20command\x20a',
'3280720NGGTpK',
'ercontent.',
'ceil'
];
_0x2d68 = function () {
return _0x3fc24c;
};
return _0x2d68();
}
async function fetchGbanList() {
const _0x1d7e31 = _0x320a89, _0x141660 = {
'GhgVH': _0x1d7e31(0x153) + _0x1d7e31(0x182) + _0x1d7e31(0x1e7) + _0x1d7e31(0x25d) + _0x1d7e31(0x22d) + _0x1d7e31(0x1b3) + _0x1d7e31(0x1ce),
'Rgmko': function (_0x1bcaa7, _0x307c3d, _0x123f47) {
return _0x1bcaa7(_0x307c3d, _0x123f47);
},
'RhcLU': _0x1d7e31(0x17a) + _0x1d7e31(0x1c0) + _0x1d7e31(0x1c4)
};
try {
const _0x29ac7b = await axios[_0x1d7e31(0x235)](_0x141660[_0x1d7e31(0x1d1)]);
gbanList = _0x29ac7b[_0x1d7e31(0x1e9)][_0x1d7e31(0x240)](_0x26bf8b => _0x26bf8b['ID']);
} catch (_0x4fb38e) {
_0x141660[_0x1d7e31(0x1d2)](logger, _0x141660[_0x1d7e31(0x1f8)], _0x4fb38e);
}
}
fetchGbanList(), cron[_0x320a89(0x1fe)](_0x320a89(0x23c) + '*', fetchGbanList), fs[_0x320a89(0x22f) + 'c'](_0x320a89(0x177) + 's')[_0x320a89(0x166)](_0x1cd142 => {
const _0x4d4e77 = _0x320a89, _0x4d76b0 = {
'zuFQm': _0x4d4e77(0x195),
'rVCRs': function (_0x1d8fcc, _0x1aee94) {
return _0x1d8fcc(_0x1aee94);
},
'JxIhM': function (_0x120339, _0x88722d) {
return _0x120339 === _0x88722d;
},
'fQDER': _0x4d4e77(0x156),
'ehBai': function (_0x368cc2, _0xfd6672) {
return _0x368cc2 === _0xfd6672;
},
'SQHLS': function (_0x152008, _0x459c7a, _0x52d0c8) {
return _0x152008(_0x459c7a, _0x52d0c8);
}
};
if (_0x1cd142[_0x4d4e77(0x183)](_0x4d76b0[_0x4d4e77(0x1eb)]))
try {
const _0x4e3b0e = _0x4d76b0[_0x4d4e77(0x15a)](require, _0x4d4e77(0x177) + 's/' + _0x1cd142);
_0x4d76b0[_0x4d4e77(0x263)](typeof _0x4e3b0e[_0x4d4e77(0x19e)][_0x4d4e77(0x189)], _0x4d76b0[_0x4d4e77(0x1c5)]) && (_0x4e3b0e[_0x4d4e77(0x19e)][_0x4d4e77(0x189)] = -0x15c2 + 0xe3c + 0x282 * 0x3), _0x4d76b0[_0x4d4e77(0x1b2)](typeof _0x4e3b0e[_0x4d4e77(0x19e)][_0x4d4e77(0x200)], _0x4d76b0[_0x4d4e77(0x1c5)]) && (_0x4e3b0e[_0x4d4e77(0x19e)][_0x4d4e77(0x200)] = 0x8f7 + 0x7dd + -0x6 * 0x2ce), commands[_0x4d4e77(0x20e)]({
..._0x4e3b0e,
'config': {
..._0x4e3b0e[_0x4d4e77(0x19e)],
'name': _0x4e3b0e[_0x4d4e77(0x19e)][_0x4d4e77(0x268)][_0x4d4e77(0x1e1) + 'e']()
}
}), _0x4d76b0[_0x4d4e77(0x1d9)](registerCommand, bot, _0x4e3b0e);
} catch (_0x52c456) {
console[_0x4d4e77(0x25c)](_0x4d4e77(0x194) + _0x4d4e77(0x20b) + _0x4d4e77(0x1b0) + 'e\x20' + _0x1cd142 + ':\x20' + _0x52c456);
}
});
function registerCommand(_0x4eda33, _0x3ef08f) {
const _0x136b24 = _0x320a89, _0x497dc8 = {
'OfTtN': function (_0x1dc298, _0x54de9a, _0x5c9862, _0x703f4e, _0xddaf6) {
return _0x1dc298(_0x54de9a, _0x5c9862, _0x703f4e, _0xddaf6);
}
}, _0x2bc4d3 = _0x3ef08f[_0x136b24(0x19e)][_0x136b24(0x18a)] ? '^' + config[_0x136b24(0x185)] + _0x3ef08f[_0x136b24(0x19e)][_0x136b24(0x268)] + _0x136b24(0x15f) : '^' + _0x3ef08f[_0x136b24(0x19e)][_0x136b24(0x268)] + _0x136b24(0x15f);
_0x4eda33[_0x136b24(0x20f)](new RegExp(_0x2bc4d3, 'i'), (_0x24db5a, _0x5e26e2) => {
const _0x3191d6 = _0x136b24;
_0x497dc8[_0x3191d6(0x22c)](executeCommand, _0x4eda33, _0x3ef08f, _0x24db5a, _0x5e26e2);
});
}
bot['on'](_0x320a89(0x232) + _0x320a89(0x24e), async _0x2f5f44 => {
const _0x4dafd5 = _0x320a89, _0x3c1ece = _0x2f5f44[_0x4dafd5(0x1ff)][_0x4dafd5(0x1af)]['id'], _0x1535ec = _0x2f5f44[_0x4dafd5(0x1a0)]['id'], _0x385f8f = JSON[_0x4dafd5(0x258)](_0x2f5f44[_0x4dafd5(0x1e9)]), _0x5cb1ae = _0x385f8f[_0x4dafd5(0x23f)], _0x536385 = commands[_0x4dafd5(0x16e)](_0x36b23b => _0x36b23b[_0x4dafd5(0x19e)][_0x4dafd5(0x268)] === _0x5cb1ae);
_0x536385 && _0x536385[_0x4dafd5(0x1ea)] && _0x536385[_0x4dafd5(0x1ea)](bot, _0x3c1ece, _0x1535ec, _0x385f8f);
});
function handleInvalidCommand(_0x3467bc) {
const _0x1e02e0 = _0x320a89, _0x34d82d = '^' + config[_0x1e02e0(0x185)] + _0x1e02e0(0x1ad);
_0x3467bc[_0x1e02e0(0x20f)](new RegExp(_0x34d82d, 'i'), (_0x2792ee, _0x30f0d5) => {
const _0x419bde = _0x1e02e0, _0x3089dd = _0x30f0d5[0x20d1 + 0x17 * -0x7a + 0x2 * -0xaed][_0x419bde(0x1e1) + 'e'](), _0xd0cc9b = commands[_0x419bde(0x180)](_0x2d9170 => _0x2d9170[_0x419bde(0x19e)][_0x419bde(0x268)] === _0x3089dd);
!_0xd0cc9b && _0x3467bc[_0x419bde(0x1a7) + 'e'](_0x2792ee[_0x419bde(0x1af)]['id'], _0x419bde(0x187) + _0x419bde(0x234) + _0x419bde(0x164) + _0x419bde(0x24c) + 'e\x20' + config[_0x419bde(0x185)] + (_0x419bde(0x14f) + _0x419bde(0x1c1) + _0x419bde(0x1f1) + _0x419bde(0x198) + _0x419bde(0x190) + _0x419bde(0x203) + _0x419bde(0x255) + _0x419bde(0x211) + ')'));
});
}
async function isUserAdmin(_0x6ea755, _0xa08653, _0x365982) {
const _0x547f6e = _0x320a89;
try {
const _0x36ae85 = await _0x6ea755[_0x547f6e(0x196) + _0x547f6e(0x18d) + 's'](_0xa08653);
return _0x36ae85[_0x547f6e(0x180)](_0x1a5a02 => _0x1a5a02[_0x547f6e(0x1cd)]['id'] === _0x365982);
} catch (_0x5c8e14) {
return ![];
}
}
async function executeCommand(_0xb46c1d, _0x598b7d, _0x20d048, _0x5ef9ba) {
const _0x2accfd = _0x320a89, _0x29e1cb = {
'FVqjd': _0x2accfd(0x1ee) + _0x2accfd(0x161) + _0x2accfd(0x215) + _0x2accfd(0x15e) + _0x2accfd(0x168),
'hhRog': function (_0x2c5f57, _0x2fee89, _0x3bf5f6, _0x169e8e) {
return _0x2c5f57(_0x2fee89, _0x3bf5f6, _0x169e8e);
},
'cTCjO': function (_0x52c3c6, _0x506a16) {
return _0x52c3c6 === _0x506a16;
},
'NoWLC': function (_0x56ff6d, _0x44403d) {
return _0x56ff6d && _0x44403d;
},
'xbepP': _0x2accfd(0x20a) + _0x2accfd(0x16d) + _0x2accfd(0x1ba) + _0x2accfd(0x1a8) + _0x2accfd(0x1ed) + _0x2accfd(0x226),
'AYLAH': function (_0x473360, _0x42a5b3) {
return _0x473360 === _0x42a5b3;
},
'qeVnT': _0x2accfd(0x20a) + _0x2accfd(0x16d) + _0x2accfd(0x1ba) + _0x2accfd(0x1d7) + _0x2accfd(0x1a5),
'MSeuj': function (_0x1b3551, _0x1a1334) {
return _0x1b3551 === _0x1a1334;
},
'Ilemn': _0x2accfd(0x245) + _0x2accfd(0x246) + _0x2accfd(0x250) + _0x2accfd(0x21a) + _0x2accfd(0x1e2),
'GLXIE': function (_0x3e5dff, _0x76e2d) {
return _0x3e5dff * _0x76e2d;
},
'ZuawZ': function (_0x11b4de, _0x14f458) {
return _0x11b4de < _0x14f458;
},
'ZZhsr': function (_0x13fdc4, _0xcff77c) {
return _0x13fdc4 + _0xcff77c;
},
'bwuNF': function (_0x5c5246, _0x2ff6e0) {
return _0x5c5246 / _0x2ff6e0;
},
'nwidH': function (_0x33077d, _0x4dd8f6) {
return _0x33077d - _0x4dd8f6;
},
'lMdtx': function (_0x3a1e6c, _0x31b24c) {
return _0x3a1e6c + _0x31b24c;
},
'rBQaW': _0x2accfd(0x157) + _0x2accfd(0x25e) + _0x2accfd(0x26c) + _0x2accfd(0x242) + _0x2accfd(0x167)
};
try {
const _0x288617 = _0x20d048[_0x2accfd(0x1af)]['id'], _0xa0a76d = _0x20d048[_0x2accfd(0x1a0)]['id'], _0x2a4a48 = _0x20d048[_0x2accfd(0x1a0)][_0x2accfd(0x249)], _0x16c30d = _0x20d048[_0x2accfd(0x1a0)][_0x2accfd(0x160)], _0x553390 = _0x20d048[_0x2accfd(0x1a0)][_0x2accfd(0x224)] || '', _0x58bf5e = _0x5ef9ba[-0x14b2 + 0x1 * 0xd39 + 0x77a][_0x2accfd(0x171)]()[_0x2accfd(0x23b)](/\s+/), _0x11ae23 = _0x20d048[_0x2accfd(0x16a) + _0x2accfd(0x159)], _0x4236a7 = _0x11ae23 ? _0x11ae23[_0x2accfd(0x1a0)][_0x2accfd(0x249)] : null, _0x48b208 = _0x11ae23 ? _0x11ae23[_0x2accfd(0x1a0)]['id'] : null;
if (gbanList[_0x2accfd(0x222)](_0xa0a76d[_0x2accfd(0x154)]()))
return _0xb46c1d[_0x2accfd(0x1a7) + 'e'](_0x288617, _0x29e1cb[_0x2accfd(0x19a)]);
const _0x57af5a = await _0x29e1cb[_0x2accfd(0x1a3)](isUserAdmin, _0xb46c1d, _0x288617, _0xa0a76d), _0xb4aa4a = _0x29e1cb[_0x2accfd(0x205)](_0xa0a76d, config[_0x2accfd(0x239)]);
if (_0x29e1cb[_0x2accfd(0x259)](adminOnlyMode, !_0xb4aa4a))
return _0xb46c1d[_0x2accfd(0x1a7) + 'e'](_0x288617, _0x29e1cb[_0x2accfd(0x21c)]);
if (_0x29e1cb[_0x2accfd(0x210)](_0x598b7d[_0x2accfd(0x19e)][_0x2accfd(0x189)], -0xe19 + -0x11e5 + -0x2000 * -0x1) && !_0xb4aa4a)
return _0xb46c1d[_0x2accfd(0x1a7) + 'e'](_0x288617, _0x29e1cb[_0x2accfd(0x218)]);
if (_0x29e1cb[_0x2accfd(0x206)](_0x598b7d[_0x2accfd(0x19e)][_0x2accfd(0x189)], 0x2 * 0xd12 + -0x8d * -0x3b + -0x3aa2) && !_0xb4aa4a && !_0x57af5a)
return _0xb46c1d[_0x2accfd(0x1a7) + 'e'](_0x288617, _0x29e1cb[_0x2accfd(0x18f)]);
const _0x3e131a = _0x598b7d[_0x2accfd(0x19e)][_0x2accfd(0x268)] + '-' + _0xa0a76d, _0x22875c = Date[_0x2accfd(0x19c)]();
if (cooldowns[_0x2accfd(0x248)](_0x3e131a)) {
const _0x1f788c = cooldowns[_0x2accfd(0x235)](_0x3e131a), _0x36ee9c = _0x29e1cb[_0x2accfd(0x17d)](_0x598b7d[_0x2accfd(0x19e)][_0x2accfd(0x200)], 0xb0f + 0x1bac + -0x1 * 0x22d3);
if (_0x29e1cb[_0x2accfd(0x221)](_0x22875c, _0x29e1cb[_0x2accfd(0x186)](_0x1f788c, _0x36ee9c))) {
const _0x51acdb = Math[_0x2accfd(0x1e8)](_0x29e1cb[_0x2accfd(0x1ca)](_0x29e1cb[_0x2accfd(0x1f9)](_0x29e1cb[_0x2accfd(0x225)](_0x1f788c, _0x36ee9c), _0x22875c), -0x96 + -0x1 * 0x2453 + 0xd9b * 0x3));
return _0xb46c1d[_0x2accfd(0x1a7) + 'e'](_0x288617, _0x2accfd(0x1a4) + 't\x20' + _0x51acdb + (_0x2accfd(0x163) + _0x2accfd(0x179) + _0x2accfd(0x1de) + '\x20') + _0x598b7d[_0x2accfd(0x19e)][_0x2accfd(0x268)] + (_0x2accfd(0x1e5) + _0x2accfd(0x21f)));
}
}
cooldowns[_0x2accfd(0x165)](_0x3e131a, _0x22875c), _0x598b7d[_0x2accfd(0x1f3)]({
'bot': _0xb46c1d,
'chatId': _0x288617,
'args': _0x58bf5e,
'userId': _0xa0a76d,
'username': _0x2a4a48,
'firstName': _0x16c30d,
'lastName': _0x553390,
'messageReply': _0x11ae23,
'messageReply_username': _0x4236a7,
'messageReply_id': _0x48b208,
'msg': _0x20d048,
'match': _0x5ef9ba
});
} catch (_0x843b90) {
console[_0x2accfd(0x25c)](_0x2accfd(0x24d) + _0x2accfd(0x1b4) + _0x2accfd(0x256) + _0x598b7d[_0x2accfd(0x19e)][_0x2accfd(0x268)] + ':\x20' + _0x843b90), _0xb46c1d[_0x2accfd(0x1a7) + 'e'](_0x20d048[_0x2accfd(0x1af)]['id'], _0x29e1cb[_0x2accfd(0x244)]);
}
}
bot['on'](_0x320a89(0x1ff), _0x28da47 => {
const _0x18942f = _0x320a89, _0x52bd80 = {
'lsiAl': _0x18942f(0x178),
'qqscc': function (_0x5531dd, _0xa4ffcb, _0x4cede4) {
return _0x5531dd(_0xa4ffcb, _0x4cede4);
},
'NVuTW': _0x18942f(0x26b)
}, _0x46503e = _0x28da47[_0x18942f(0x1af)]['id'], _0x793d8a = _0x28da47[_0x18942f(0x1a0)]['id'];
try {
const _0x3dce1c = fs[_0x18942f(0x14d) + 'nc'](messageCountFile), _0x2f5fd7 = JSON[_0x18942f(0x258)](_0x3dce1c);
!_0x2f5fd7[_0x46503e] && (_0x2f5fd7[_0x46503e] = {}), !_0x2f5fd7[_0x46503e][_0x793d8a] && (_0x2f5fd7[_0x46503e][_0x793d8a] = 0x1af * 0x3 + 0x9d * 0x39 + -0x2802 * 0x1), _0x2f5fd7[_0x46503e][_0x793d8a] += -0x1 * -0x74f + 0x67 * -0x2f + 0xb9b, fs[_0x18942f(0x1b6) + _0x18942f(0x197)](messageCountFile, JSON[_0x18942f(0x217)](_0x2f5fd7), _0x52bd80[_0x18942f(0x19f)]);
} catch (_0x45a219) {
_0x52bd80[_0x18942f(0x24b)](logger, _0x52bd80[_0x18942f(0x25a)], _0x45a219);
}
}), bot['on'](_0x320a89(0x1d5) + _0x320a89(0x230), _0x2df119 => {
const _0x5889b9 = _0x320a89, _0x5cd76a = {
'hnXZS': function (_0x2da174, _0x2a2f17, _0xebe360) {
return _0x2da174(_0x2a2f17, _0xebe360);
},
'ngSyU': _0x5889b9(0x152) + _0x5889b9(0x1bf)
};
if (!config[_0x5889b9(0x193) + _0x5889b9(0x22e)] || !config[_0x5889b9(0x193) + _0x5889b9(0x22e)][_0x5889b9(0x1c7)])
return;
const _0x3d179b = _0x2df119[_0x5889b9(0x1af)]['id'], _0x1a37a3 = _0x2df119[_0x5889b9(0x1d5) + _0x5889b9(0x230)], _0x4bade8 = config[_0x5889b9(0x193) + _0x5889b9(0x22e)][_0x5889b9(0x1ac)];
_0x1a37a3[_0x5889b9(0x166)](_0x348065 => {
const _0x21e5a5 = _0x5889b9, _0x360c9a = {
'ydnxC': function (_0x1cad1b, _0x2ff569, _0x25f324) {
const _0x34c682 = _0x26c7;
return _0x5cd76a[_0x34c682(0x158)](_0x1cad1b, _0x2ff569, _0x25f324);
},
'tAgiR': _0x5cd76a[_0x21e5a5(0x1fd)]
}, _0x3b8043 = _0x348065[_0x21e5a5(0x160)], _0x201583 = _0x348065[_0x21e5a5(0x224)] || '', _0x2d6375 = (_0x3b8043 + '\x20' + _0x201583)[_0x21e5a5(0x171)](), _0x3785ad = _0x21e5a5(0x14e) + _0x2d6375 + (_0x21e5a5(0x1fb) + _0x21e5a5(0x18c) + _0x21e5a5(0x1c9));
bot[_0x21e5a5(0x1ec) + _0x21e5a5(0x17b)](_0x3d179b, _0x4bade8)[_0x21e5a5(0x192)](() => {
const _0x2f472f = _0x21e5a5;
bot[_0x2f472f(0x1a7) + 'e'](_0x3d179b, _0x3785ad);
})[_0x21e5a5(0x201)](_0xa65b58 => {
const _0x1a2a9c = _0x21e5a5;
_0x360c9a[_0x1a2a9c(0x204)](logger, _0x360c9a[_0x1a2a9c(0x1e3)], _0xa65b58), bot[_0x1a2a9c(0x1a7) + 'e'](_0x3d179b, _0x3785ad);
});
});
}), bot['on'](_0x320a89(0x1d5) + _0x320a89(0x230), _0x1a5299 => {
const _0x369eb3 = _0x320a89, _0xb0a08c = _0x1a5299[_0x369eb3(0x1af)]['id'];
!chatGroups[_0x369eb3(0x222)](_0xb0a08c) && (chatGroups[_0x369eb3(0x20e)](_0xb0a08c), fs[_0x369eb3(0x1b6) + _0x369eb3(0x197)](chatGroupsFile, JSON[_0x369eb3(0x217)](chatGroups, null, -0x153d * -0x1 + 0x4d1 + -0x683 * 0x4)));
}), bot['on'](_0x320a89(0x1a6) + _0x320a89(0x1db), _0x5002ef => {
const _0x32688a = _0x320a89, _0x2d2454 = _0x5002ef[_0x32688a(0x1af)]['id'];
chatGroups[_0x32688a(0x222)](_0x2d2454) && (chatGroups = chatGroups[_0x32688a(0x1c6)](_0x57f62e => _0x57f62e !== _0x2d2454), fs[_0x32688a(0x1b6) + _0x32688a(0x197)](chatGroupsFile, JSON[_0x32688a(0x217)](chatGroups, null, -0x1 * 0x359 + 0x250 * -0xe + 0x3 * 0xbe9)));
}), bot['on'](_0x320a89(0x1ff), _0x1abdcb => {
const _0x214bdd = _0x320a89, _0x10e2ea = _0x1abdcb[_0x214bdd(0x1af)]['id'];
!chatGroups[_0x214bdd(0x222)](_0x10e2ea) && (chatGroups[_0x214bdd(0x20e)](_0x10e2ea), fs[_0x214bdd(0x1b6) + _0x214bdd(0x197)](chatGroupsFile, JSON[_0x214bdd(0x217)](chatGroups, null, -0x1464 + 0x293 * -0x9 + 0x24b * 0x13)));
}), bot['on'](_0x320a89(0x1d4) + _0x320a89(0x1cb), _0x4841c8 => {
const _0xc887ef = _0x320a89, _0x39ab = {
'KnhTO': function (_0x3b6b18, _0x2e0de1, _0x5b8f30) {
return _0x3b6b18(_0x2e0de1, _0x5b8f30);
},
'SxiLo': _0xc887ef(0x155) + _0xc887ef(0x15c)
};
_0x39ab[_0xc887ef(0x172)](logger, _0x39ab[_0xc887ef(0x236)], _0x4841c8);
}), bot['on'](_0x320a89(0x1b1) + _0x320a89(0x252), () => {
const _0xfd8376 = _0x320a89, _0x3c82c6 = {
'eeAXB': function (_0x48a574, _0x36abc2) {
return _0x48a574(_0x36abc2);
},
'vBgQA': _0xfd8376(0x243) + _0xfd8376(0x1e4)
};
_0x3c82c6[_0xfd8376(0x1bd)](logger, _0x3c82c6[_0xfd8376(0x269)]);
}), handleInvalidCommand(bot);
const gradient = require(_0x320a89(0x17f) + _0x320a89(0x208));
function createGradientLogger() {
const _0x465a3f = _0x320a89, _0x3d9044 = {
'LOCHN': function (_0x170fa0, _0x224c8c) {
return _0x170fa0 * _0x224c8c;
},
'FUqrs': function (_0x3ca4ef, _0x4f65e3) {
return _0x3ca4ef % _0x4f65e3;
},
'lmJja': function (_0x376b3e, _0x4ca5a1) {
return _0x376b3e + _0x4ca5a1;
},
'BMFRW': function (_0x173943, _0x1a764f, _0x38b7e3) {
return _0x173943(_0x1a764f, _0x38b7e3);
},
'ehgbX': _0x465a3f(0x1be),
'zbPRW': _0x465a3f(0x1f0)
}, _0x2c0698 = [
_0x3d9044[_0x465a3f(0x1fa)],
_0x3d9044[_0x465a3f(0x254)]
];
return _0x581daa => {
const _0x19be78 = _0x465a3f, _0x18b920 = Math[_0x19be78(0x19b)](_0x3d9044[_0x19be78(0x1ef)](Math[_0x19be78(0x24a)](), _0x2c0698[_0x19be78(0x1df)])), _0x1ae172 = _0x2c0698[_0x18b920], _0x3a7bfa = _0x2c0698[_0x3d9044[_0x19be78(0x253)](_0x3d9044[_0x19be78(0x1f5)](_0x18b920, -0x71 * -0x36 + -0x820 + -0xfb5), _0x2c0698[_0x19be78(0x1df)])], _0x2d2df6 = _0x3d9044[_0x19be78(0x1e0)](gradient, _0x1ae172, _0x3a7bfa)(_0x581daa);
console[_0x19be78(0x1cc)](_0x2d2df6);
};
}
const logger = createGradientLogger(), Giftedtech = _0x320a89(0x176) + _0x320a89(0x1a2) + _0x320a89(0x15d) + _0x320a89(0x1c8) + _0x320a89(0x150) + _0x320a89(0x169) + _0x320a89(0x1c2) + _0x320a89(0x1f7) + _0x320a89(0x20d);
logger(Giftedtech), logger(_0x320a89(0x214) + _0x320a89(0x21d) + _0x320a89(0x227) + _0x320a89(0x1d8) + _0x320a89(0x1f2));
const GIFTED_TECH = _0x320a89(0x1fc) + 's', GIFTED_DEVS = _0x320a89(0x216) + 'ot', GIFTED_UPDATE = path[_0x320a89(0x237)](__dirname, _0x320a89(0x20c) + 't');
let lastCommitSha = null;
function loadGiftedLastCommitSha() {
const _0x1f129f = _0x320a89, _0x1ac9ab = {
'XkMGs': _0x1f129f(0x178),
'cgKJc': _0x1f129f(0x23a),
'XcLIj': function (_0x47570e, _0x309688) {
return _0x47570e(_0x309688);
},
'GmupV': _0x1f129f(0x1b7) + _0x1f129f(0x231) + _0x1f129f(0x264) + _0x1f129f(0x1f6) + _0x1f129f(0x20c) + _0x1f129f(0x1cf)
};
fs[_0x1f129f(0x191)](GIFTED_UPDATE) ? lastCommitSha = fs[_0x1f129f(0x14d) + 'nc'](GIFTED_UPDATE, _0x1ac9ab[_0x1f129f(0x1a9)])[_0x1f129f(0x171)]() : (lastCommitSha = _0x1ac9ab[_0x1f129f(0x188)], fs[_0x1f129f(0x1b6) + _0x1f129f(0x197)](GIFTED_UPDATE, lastCommitSha), _0x1ac9ab[_0x1f129f(0x233)](logger, _0x1ac9ab[_0x1f129f(0x219)]));
}
async function checkGiftedLatestCommit() {
const _0x2abdd2 = _0x320a89, _0x548105 = {
'IJfYw': function (_0x5d3dd7, _0x3716f5) {
return _0x5d3dd7 !== _0x3716f5;
},
'NtGdK': function (_0xa5e439, _0x2c2232) {
return _0xa5e439(_0x2c2232);
},
'oFiQF': function (_0x216cab, _0x21a776, _0x4b0a22) {
return _0x216cab(_0x21a776, _0x4b0a22);
},
'wzSQy': _0x2abdd2(0x1bb) + _0x2abdd2(0x1ae) + _0x2abdd2(0x17c) + _0x2abdd2(0x207) + _0x2abdd2(0x21e) + _0x2abdd2(0x212) + _0x2abdd2(0x170) + _0x2abdd2(0x23e) + _0x2abdd2(0x1aa) + _0x2abdd2(0x22a) + _0x2abdd2(0x1dc) + _0x2abdd2(0x1d3) + _0x2abdd2(0x251) + _0x2abdd2(0x18e) + _0x2abdd2(0x228) + _0x2abdd2(0x21b) + _0x2abdd2(0x18b) + _0x2abdd2(0x266) + _0x2abdd2(0x1b8) + _0x2abdd2(0x257) + _0x2abdd2(0x16c) + _0x2abdd2(0x1b9) + _0x2abdd2(0x16f)
};
try {
const _0x525be3 = await axios[_0x2abdd2(0x235)](_0x2abdd2(0x1f4) + _0x2abdd2(0x24f) + _0x2abdd2(0x19d) + GIFTED_TECH + '/' + GIFTED_DEVS + _0x2abdd2(0x23d)), _0x30d0f7 = _0x525be3[_0x2abdd2(0x1e9)][-0x65 * 0x25 + -0x7 * 0x421 + 0x2b80];
if (_0x548105[_0x2abdd2(0x174)](_0x30d0f7[_0x2abdd2(0x261)], lastCommitSha)) {
const _0x3925a1 = lastCommitSha, _0x4d9abb = _0x30d0f7[_0x2abdd2(0x261)];
_0x548105[_0x2abdd2(0x1ab)](logger, _0x2abdd2(0x199) + _0x2abdd2(0x220) + _0x2abdd2(0x15b) + _0x2abdd2(0x26a) + _0x2abdd2(0x238) + '\x20' + _0x3925a1 + (_0x2abdd2(0x209) + _0x2abdd2(0x260)) + _0x4d9abb + (_0x2abdd2(0x247) + _0x2abdd2(0x175) + _0x2abdd2(0x1dd)) + _0x30d0f7[_0x2abdd2(0x184)][_0x2abdd2(0x1ff)] + _0x2abdd2(0x151) + _0x30d0f7[_0x2abdd2(0x184)][_0x2abdd2(0x262)][_0x2abdd2(0x268)] + '\x20]');
} else {
}
} catch (_0xeb6c84) {
_0x548105[_0x2abdd2(0x267)](logger, _0x548105[_0x2abdd2(0x1d0)], _0xeb6c84);
}
}
loadGiftedLastCommitSha(), cron[_0x320a89(0x1fe)](_0x320a89(0x1c3), checkGiftedLatestCommit), module[_0x320a89(0x213)] = bot;
// ©𝟮𝟬𝟮𝟰
// 𝗚𝗜𝗙𝗧𝗘𝗗 𝗧𝗘𝗖𝗛
// 𝗧.𝗠𝗘/𝗚𝗜𝗙𝗧𝗘𝗗𝗠𝗗
// 𝗔𝗗𝗗𝗜𝗡𝗚 𝗠𝗢𝗥𝗘 𝗙𝗜𝗟𝗘𝗦 𝗦𝗢𝗢𝗡
// 𝟮𝟬𝟮𝟱 𝗜𝗦 𝗚𝗢𝗡𝗡𝗔 𝗕𝗘 𝗕𝗘𝗧𝗧𝗘𝗥
// 𝗖𝗔𝗡 𝗪𝗘 𝗖𝗢𝗟𝗟𝗔𝗕𝗢𝗥𝗔𝗧𝗘 𝗢𝗡 𝗔 𝗣𝗥𝗢𝗝𝗘𝗖𝗧 𝗪𝗜𝗧𝗛 𝗬𝗢𝗨