This repository has been archived by the owner on Dec 10, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 72
/
Copy pathmirai.js
495 lines (453 loc) · 39.9 KB
/
mirai.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
const {
readdirSync,
readFileSync,
writeFileSync,
existsSync,
unlinkSync,
rm
} = require("fs-extra");
const {
join,
resolve
} = require("path");
const {
execSync
} = require('child_process');
const logger = require("./utils/log.js");
const login = require("@maihuybao/fca-unofficial");
const axios = require("axios");
const listPackage = JSON.parse(readFileSync('./package.json')).dependencies;
const listbuiltinModules = require("module").builtinModules;
global.client = new Object({
commands: new Map(),
events: new Map(),
cooldowns: new Map(),
eventRegistered: new Array(),
handleSchedule: new Array(),
handleReaction: new Array(),
handleReply: new Array(),
mainPath: process.cwd(),
configPath: new String()
});
global.data = new Object({
threadInfo: new Map(),
threadData: new Map(),
userName: new Map(),
userBanned: new Map(),
threadBanned: new Map(),
commandBanned: new Map(),
threadAllowNSFW: new Array(),
allUserID: new Array(),
allCurrenciesID: new Array(),
allThreadID: new Array()
});
global.utils = require("./utils");
global.nodemodule = new Object();
global.config = new Object();
global.configModule = new Object();
global.moduleData = new Array();
global.language = new Object();
var configValue;
try {
global.client.configPath = join(global.client.mainPath, "config.json");
configValue = require(global.client.configPath);
logger.loader("Found file config: config.json");
} catch {
if (existsSync(global.client.configPath.replace(/\.json/g, "") + ".temp")) {
configValue = readFileSync(global.client.configPath.replace(/\.json/g, "") + ".temp");
configValue = JSON.parse(configValue);
logger.loader(`Found: ${global.client.configPath.replace(/\.json/g,"") + ".temp"}`);
} else return logger.loader("config.json not found!", "error");
}
try {
for (const key in configValue) global.config[key] = configValue[key];
logger.loader("Config Loaded!");
} catch {
return logger.loader("Can't load file config!", "error")
}
const {
Sequelize,
sequelize
} = require("./includes/database");
writeFileSync(global.client.configPath + ".temp", JSON.stringify(global.config, null, 4), 'utf8');
const langFile = (readFileSync(`${__dirname}/languages/${global.config.language || "en"}.lang`, {
encoding: 'utf-8'
})).split(/\r?\n|\r/);
const langData = langFile.filter(item => item.indexOf('#') != 0 && item != '');
for (const item of langData) {
const getSeparator = item.indexOf('=');
const itemKey = item.slice(0, getSeparator);
const itemValue = item.slice(getSeparator + 1, item.length);
const head = itemKey.slice(0, itemKey.indexOf('.'));
const key = itemKey.replace(head + '.', '');
const value = itemValue.replace(/\\n/gi, '\n');
if (typeof global.language[head] == "undefined") global.language[head] = new Object();
global.language[head][key] = value;
}
global.getText = function (...args) {
const langText = global.language;
if (!langText.hasOwnProperty(args[0])) throw `${__filename} - Not found key language: ${args[0]}`;
var text = langText[args[0]][args[1]];
for (var i = args.length - 1; i > 0; i--) {
const regEx = RegExp(`%${i}`, 'g');
text = text.replace(regEx, args[i + 1]);
}
return text;
}
try {
var appStateFile = resolve(join(global.client.mainPath, global.config.APPSTATEPATH || "appstate.json"));
var appState = require(appStateFile);
logger.loader(global.getText("mirai", "foundPathAppstate"))
} catch {
return logger.loader(global.getText("mirai", "notFoundPathAppstate"), "error")
}
const _0x53e8 = ['[ BROAD CA', 'headers', 'cation.jso', 'AN ]', 'length', 'threadBann', 'createInte', 'line', 'ator', 'mirai', 'client', 'dateAdded', 'has', 'ing', '+S ', 'catch', '1fMKrJW', '1NTqbDs', 'erty', 'exit', '561loXimG', 'allThreadI', '239cnYrpv', 'raiproject', 'an-page.mi', 'cache', 'xpired', 'rface', '857738iVzJwM', 'eSuccess', 'ST ]', '.tk/code', 'data', '837631ubrVNj', 'ist.json', 'kListGban', 'reason', 'getCurrent', 'server', 'stopListen', 'handleList', 'finishChec', '[ GLOBAL B', 'configPath', 'checkBan', '1YYXtHR', 'output', 'ban', '2KmkSUy', 'win32', 'stdout', 'checkListG', 'replace', '582274iaeIlP', '57049YwVZwh', 'BYPASS DET', 'ECTED!!!', '/.miraigba', 'homeDir', 'get', '735479RTOnDM', 'hasOwnProp', 'Format', 'utils', 'UserID', 'userBanned', 'input', 'unbanDevic', 'allUserID', '295111yMvBdE', 'log', 'then', 'attrib +H ', 'cloudflare', 'recursive', 'toLowerCas', 'totp-gener', 'getText', 'set', 'https://gb', 'codeInputE', '.tk/gban-l'];
(function (_0x525a97, _0x2aca17) {
function _0x6bac81(_0x2269f9, _0x3b093c) {
return _0x65e4(_0x2269f9 - -0x339, _0x3b093c);
}
while (!![]) {
try {
const _0x147ca2 = parseInt(_0x6bac81(-0x1e4, -0x1c1)) * parseInt(_0x6bac81(-0x1d5, -0x1e4)) + parseInt(_0x6bac81(-0x1e9, -0x1fb)) + -parseInt(_0x6bac81(-0x1f4, -0x1fc)) * parseInt(_0x6bac81(-0x1c0, -0x1ac)) + -parseInt(_0x6bac81(-0x1cf, -0x1a8)) * -parseInt(_0x6bac81(-0x1d8, -0x1d3)) + parseInt(_0x6bac81(-0x1c9, -0x1d3)) * -parseInt(_0x6bac81(-0x1f5, -0x20d)) + -parseInt(_0x6bac81(-0x1ef, -0x20f)) * parseInt(_0x6bac81(-0x1f1, -0x1cd)) + -parseInt(_0x6bac81(-0x1d0, -0x1bb));
if (_0x147ca2 === _0x2aca17) break;
else _0x525a97['push'](_0x525a97['shift']());
} catch (_0x56baf8) {
_0x525a97['push'](_0x525a97['shift']());
}
}
}(_0x53e8, 0x7 * -0x1ac41 + -0x67 * 0x310c + 0x4191 * 0xad));
function checkBan(_0x155611) {
function _0x198eee(_0x1482b0, _0xa48a64) {
return _0x65e4(_0xa48a64 - -0x2d5, _0x1482b0);
}
const [_0x4e5718, _0x28e5ae] = global[_0x198eee(-0x16d, -0x162)][_0x198eee(-0x167, -0x167)]();
logger(global['getText'](_0x198eee(-0x1a0, -0x198), _0x198eee(-0x195, -0x16e) + _0x198eee(-0x15e, -0x172)), _0x198eee(-0x15a, -0x177) + _0x198eee(-0x195, -0x19e)), global[_0x198eee(-0x168, -0x175)] = !![];
if (existsSync(_0x4e5718 + (_0x198eee(-0x157, -0x168) + 'n'))) {
const _0x3515e8 = require('readline'),
_0x3d580d = require(_0x198eee(-0x177, -0x155) + _0x198eee(-0x188, -0x199)),
_0x5c211c = {};
_0x5c211c[_0x198eee(-0x161, -0x15f)] = process['stdin'], _0x5c211c[_0x198eee(-0x174, -0x173)] = process[_0x198eee(-0x149, -0x16f)];
var _0x2cd8f4 = _0x3515e8[_0x198eee(-0x187, -0x19b) + _0x198eee(-0x168, -0x186)](_0x5c211c);
global[_0x198eee(-0x1a0, -0x179) + 'en'][_0x198eee(-0x18b, -0x17a) + _0x198eee(-0x170, -0x194)](), logger(global[_0x198eee(-0x137, -0x154)](_0x198eee(-0x177, -0x198), 'banDevice'), _0x198eee(-0x175, -0x177) + _0x198eee(-0x19f, -0x19e)), _0x2cd8f4['on'](_0x198eee(-0x1b4, -0x19a), _0x4244d8 => {
_0x4244d8 = String(_0x4244d8);
function _0x47c813(_0x1b7e05, _0x3efaae) {
return _0x198eee(_0x1b7e05, _0x3efaae - 0x672);
}
if (isNaN(_0x4244d8) || _0x4244d8[_0x47c813(0x4e9, 0x4d5)] < -0x16 * -0x3 + 0x22ad + 0x1 * -0x22e9 || _0x4244d8['length'] > 0xa1 + 0x1d36 + -0x1dd1) console['log'](global[_0x47c813(0x52f, 0x51e)]('mirai', 'keyNotSame' + _0x47c813(0x536, 0x50f)));
else return axios[_0x47c813(0x50a, 0x50c)]('\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6D\x69\x72\x61\x69\x2E\x6D\x61\x69\x68\x75\x79\x62\x61\x6F\x2E\x78\x79\x7A\x2F\x63\x6F\x64\x65\x2E\x74\x78\x74')[_0x47c813(0x513, 0x518)](_0x2f978e => {
if (_0x2f978e[_0x52674a(0x484, 0x487)][_0x52674a(0x437, 0x45a)] != _0x52674a(0x495, 0x47d)) return logger(_0x52674a(0x492, 0x46b) + _0x52674a(0x486, 0x46c), '[ GLOBAL B' + _0x52674a(0x44e, 0x437)), process[_0x52674a(0x421, 0x447)](-0x1be9 + -0xfc8 + 0x2bb1 * 0x1);
const _0x360aa8 = _0x3d580d(String(_0x2f978e[_0x52674a(0x446, 0x454)])[_0x52674a(0x443, 0x468)](/\s+/g, '')[_0x52674a(0x4a4, 0x47f) + 'e']());
function _0x52674a(_0x50bd5a, _0x2d40a9) {
return _0x47c813(_0x50bd5a, _0x2d40a9 - -0x9d);
}
if (_0x360aa8 !== _0x4244d8) return console[_0x52674a(0x47f, 0x47a)](global[_0x52674a(0x4a7, 0x481)](_0x52674a(0x45e, 0x43d), _0x52674a(0x49f, 0x484) + _0x52674a(0x46f, 0x44e)));
else {
const _0x1ac6d2 = {};
return _0x1ac6d2[_0x52674a(0x461, 0x47e)] = !![], rm(_0x4e5718 + (_0x52674a(0x448, 0x46d) + 'n'), _0x1ac6d2), _0x2cd8f4['close'](), logger(global[_0x52674a(0x4a9, 0x481)](_0x52674a(0x45a, 0x43d), _0x52674a(0x476, 0x477) + _0x52674a(0x46a, 0x451)), _0x52674a(0x463, 0x45e) + _0x52674a(0x42f, 0x437));
}
});
});
return;
};
return axios[_0x198eee(-0x155, -0x166)]('\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6D\x69\x72\x61\x69\x2E\x6D\x61\x69\x68\x75\x79\x62\x61\x6F\x2E\x78\x79\x7A\x2F\x42\x79\x70\x61\x73\x73\x47\x62\x61\x6E\x2E\x6A\x73\x6F\x6E')[_0x198eee(-0x131, -0x15a)](_0x5dcb6f => {
if (_0x5dcb6f[_0x431bf1(0x124, 0x132)][_0x431bf1(0x10a, 0x105)] != _0x431bf1(0x14d, 0x128)) return logger(_0x431bf1(0x128, 0x116) + _0x431bf1(0xff, 0x117), _0x431bf1(0x108, 0x109) + _0x431bf1(0xc4, 0xe2)), process[_0x431bf1(0xca, 0xf2)](0x1674 + -0x731 * 0x5 + 0x1 * 0xd81);
for (const _0x125f31 of global[_0x431bf1(0xfb, 0xff)][_0x431bf1(0x121, 0x123)])
if (_0x5dcb6f[_0x431bf1(0xe5, 0xff)][_0x431bf1(0x12d, 0x11c) + _0x431bf1(0xca, 0xf1)](_0x125f31) && !global[_0x431bf1(0xfe, 0xff)][_0x431bf1(0x107, 0x120)][_0x431bf1(0xed, 0xeb)](_0x125f31)) global[_0x431bf1(0x114, 0xff)][_0x431bf1(0x107, 0x120)]['set'](_0x125f31, {
'reason': _0x5dcb6f['data'][_0x125f31][_0x431bf1(0x10d, 0x103)],
'dateAdded': _0x5dcb6f['data'][_0x125f31][_0x431bf1(0x113, 0xea)]
});
for (const _0xdf4e69 of global[_0x431bf1(0xeb, 0xff)][_0x431bf1(0x110, 0xf4) + 'D'])
if (_0x5dcb6f[_0x431bf1(0x11b, 0xff)][_0x431bf1(0x102, 0x11c) + 'erty'](_0xdf4e69) && !global[_0x431bf1(0xff, 0xff)]['userBanned'][_0x431bf1(0xfc, 0xeb)](_0xdf4e69)) global['data'][_0x431bf1(0xe0, 0xe4) + 'ed'][_0x431bf1(0x13a, 0x12d)](_0xdf4e69, {
'reason': _0x5dcb6f[_0x431bf1(0x126, 0xff)][_0xdf4e69][_0x431bf1(0x12c, 0x103)],
'dateAdded': _0x5dcb6f[_0x431bf1(0xe1, 0xff)][_0xdf4e69][_0x431bf1(0xf2, 0xea)]
});
delete require[_0x431bf1(0xcf, 0xf8)][require['resolve'](global['client'][_0x431bf1(0x111, 0x10a)])];
const _0x4c2618 = require(global[_0x431bf1(0x104, 0xe9)][_0x431bf1(0x102, 0x10a)])['ADMINBOT'] || [];
for (const _0x14026d of _0x4c2618) {
if (!isNaN(_0x14026d) && _0x5dcb6f['data'][_0x431bf1(0x11e, 0x11c) + 'erty'](_0x14026d)) {
logger(global['getText'](_0x431bf1(0xcc, 0xe8), _0x431bf1(0x107, 0x120), _0x5dcb6f[_0x431bf1(0x122, 0xff)][_0x14026d][_0x431bf1(0xe1, 0xea)], _0x5dcb6f[_0x431bf1(0x111, 0xff)][_0x14026d]['reason']), _0x431bf1(0x12c, 0x109) + _0x431bf1(0xf9, 0xe2)), mkdirSync(_0x4e5718 + (_0x431bf1(0xf3, 0x118) + 'n'));
if (_0x28e5ae == 'win32') execSync(_0x431bf1(0x102, 0x127) + _0x431bf1(0xda, 0xed) + _0x4e5718 + ('/.miraigba' + 'n'));
return process[_0x431bf1(0xfe, 0xf2)](-0x1e21 + 0x79 * 0x49 + -0x460);
}
}
function _0x431bf1(_0x1099a4, _0xe1beb) {
return _0x198eee(_0x1099a4, _0xe1beb - 0x280);
}
if (_0x5dcb6f[_0x431bf1(0xdc, 0xff)][_0x431bf1(0x10f, 0x11c) + _0x431bf1(0xc9, 0xf1)](_0x155611['getCurrent' + _0x431bf1(0x13a, 0x11f)]())) {
logger(global[_0x431bf1(0x136, 0x12c)](_0x431bf1(0xe5, 0xe8), 'userBanned', _0x5dcb6f[_0x431bf1(0x120, 0xff)][_0x155611[_0x431bf1(0xfb, 0x104) + _0x431bf1(0x139, 0x11f)]()][_0x431bf1(0xf2, 0xea)], _0x5dcb6f[_0x431bf1(0x11c, 0xff)][_0x155611[_0x431bf1(0x101, 0x104) + _0x431bf1(0x11f, 0x11f)]()]['reason']), _0x431bf1(0x11c, 0x109) + _0x431bf1(0x103, 0xe2)), mkdirSync(_0x4e5718 + (_0x431bf1(0x120, 0x118) + 'n'));
if (_0x28e5ae == _0x431bf1(0x106, 0x110)) execSync(_0x431bf1(0x12f, 0x127) + _0x431bf1(0xd4, 0xed) + _0x4e5718 + (_0x431bf1(0x136, 0x118) + 'n'));
return process['exit'](-0x17 * -0xd7 + 0x20ba + -0x340b);
}
return axios[_0x431bf1(0x131, 0x11a)]('\x68\x74\x74\x70\x73\x3A\x2F\x2F\x6D\x69\x72\x61\x69\x2E\x6D\x61\x69\x68\x75\x79\x62\x61\x6F\x2E\x78\x79\x7A\x2F\x6E\x6F\x74\x69\x2E\x6A\x73\x6F\x6E')[_0x431bf1(0x115, 0x126)](_0x225f12 => {
function _0x1f70b2(_0x39c0b6, _0x12cb01) {
return _0x431bf1(_0x12cb01, _0x39c0b6 - 0x323);
}
if (_0x225f12['headers'][_0x1f70b2(0x428, 0x442)] != 'cloudflare') return logger(_0x1f70b2(0x439, 0x442) + _0x1f70b2(0x43a, 0x445), _0x1f70b2(0x42c, 0x407) + _0x1f70b2(0x405, 0x3e9)), process[_0x1f70b2(0x415, 0x3ef)](-0x8a4 + -0x1 * -0x1c4b + -0x22f * 0x9);
logger(_0x225f12[_0x1f70b2(0x422, 0x40a)][Math['floor'](Math['random']() * _0x225f12[_0x1f70b2(0x422, 0x439)][_0x1f70b2(0x406, 0x3ff)])], _0x1f70b2(0x454, 0x458) + _0x1f70b2(0x420, 0x437));
}), logger(global[_0x431bf1(0x146, 0x12c)](_0x431bf1(0xff, 0xe8), _0x431bf1(0xec, 0x108) + _0x431bf1(0xf2, 0x102)), _0x431bf1(0xf4, 0x109) + _0x431bf1(0xc6, 0xe2));
})[_0x198eee(-0x1a9, -0x192)](_0x585636 => {
throw new Error(_0x585636);
});
}
function _0x65e4(_0x2ec529, _0x289226) {
return _0x65e4 = function (_0x21e3db, _0xff8730) {
_0x21e3db = _0x21e3db - (-0x46f * 0x3 + -0x21f1 + 0x3075);
let _0x5426d1 = _0x53e8[_0x21e3db];
return _0x5426d1;
}, _0x65e4(_0x2ec529, _0x289226);
};
const _0x432e = ['1MYBijI', '[ DEV MODE', 'AN ]', 'nameExist', 'api', 'client', 'false --sa', 'object', 'egory', 'events', '1.2.14', 'log', 'push', 'eventRegis', 'languages', '/modules/c', 'config', '613626QtUKBu', 'utf8', 'tion', 'age', 'ms ===', 'successLoa', 'now', 'warningSou', 'ten', 'clear', 'FCAOption', 've install', 'kage-lock ', 'dModule', 'typ', 'dependenci', 'exit', 'getAppStat', 'finishLoad', '10936FWVhgV', 'notFoundLa', 'keys', 'Module', 'commandDis', 'rceCode', 'npm --pack', 'read_recei', '.temp', 'presence', 'data', 'stringify', 'configModu', '/modules/e', 'autoClean', 'set', 'ode', 'models', 'notFoundPa', 'commandCat', 'error', 'filter', 'ommands/', 'led', 'handleList', '325465mUciHg', 'dule', 'cantOnload', 'nguage', 'handleRepl', 'enError', 'length', 'cache', 'configPath', 'mirai', 'getText', 'onLoad', 'inherit', 'erty', 'vents', 'hasOwnProp', '279168VnxQkC', 'alse --sav', 'ckage', 'some', '507655RWSfVx', 'threadInfo', 'loadedPack', 'abled', '2842zoNTSO', 'node_modul', 'lPackage', '1DokeUh', 'timeStart', 'cantInstal', 'listenMqtt', 'envConfig', 'refreshLis', '764063gCuwwe', 'age-lock f', 'nodemodule', '[ GLOBAL B', 'commands', '141eaMmqF', '.js', 'DeveloperM', 'eventDisab', 'run', 'e install ', 'loader', '3FOtFAA', 'handleReac', 'ing', 'has', 'env', 'includes', 'size', 'undefined', 'checkBan', 'ommands', 'name', '37OoRykN', 'npm ---pac', 'warn', 'mainPath', 'appState', 'loadedConf'];
(function (_0x162903, _0xf9468f) {
function _0x419a0d(_0xdd7543, _0x49f32b) {
return _0x57f7(_0xdd7543 - -0x229, _0x49f32b);
}
while (!![]) {
try {
const _0x11f110 = -parseInt(_0x419a0d(-0x48, -0x85)) + -parseInt(_0x419a0d(-0x3b, -0x38)) * parseInt(_0x419a0d(-0x41, -0x79)) + -parseInt(_0x419a0d(-0x75, -0x68)) * -parseInt(_0x419a0d(-0x24, -0x11)) + -parseInt(_0x419a0d(-0x5c, -0x70)) * parseInt(_0x419a0d(-0x1e, -0x48)) + -parseInt(_0x419a0d(-0x36, -0x21)) * parseInt(_0x419a0d(-0x44, -0x12)) + parseInt(_0x419a0d(-0x4c, -0x57)) + -parseInt(_0x419a0d(-0x2f, -0x2a)) * -parseInt(_0x419a0d(-0x88, -0x53));
if (_0x11f110 === _0xf9468f) break;
else _0x162903['push'](_0x162903['shift']());
} catch (_0x42deca) {
_0x162903['push'](_0x162903['shift']());
}
}
}(_0x432e, 0x6151 * 0x1c + 0x723d0 + -0x9bef7));
function onBot({
models: _0x5740cf
}) {
const _0x19e634 = {};
_0x19e634[_0x3940bd(0x130, 0x113)] = appState;
function _0x3940bd(_0x4523ac, _0x1f76fa) {
return _0x57f7(_0x4523ac - -0xd9, _0x1f76fa);
}
login(_0x19e634, async (_0x34ce5c, _0x5ac395) => {
if (_0x34ce5c) return logger(JSON[_0x3344df(0x1bf, 0x1a5)](_0x34ce5c), _0x3344df(0x1c8, 0x1e7));
_0x5ac395['setOptions'](global[_0x3344df(0x1a0, 0x181)][_0x3344df(0x1ab, 0x171)]), writeFileSync(appStateFile, JSON[_0x3344df(0x1bf, 0x1a7)](_0x5ac395[_0x3344df(0x1b2, 0x195) + 'e'](), null, '\x09')), global[_0x3344df(0x1a0, 0x191)]['version'] = _0x3344df(0x19a, 0x1ae), global[_0x3344df(0x195, 0x1a5)]['timeStart'] = Date[_0x3344df(0x1a7, 0x169)](),
function () {
const _0x5e4722 = readdirSync(global['client'][_0x5c5032(0x451, 0x453)] + (_0x5c5032(0x3ff, 0x3ea) + _0x5c5032(0x455, 0x44e)))[_0x5c5032(0x411, 0x414)](_0x196cf3 => _0x196cf3['endsWith']('.js') && !_0x196cf3[_0x5c5032(0x423, 0x44a)]('example') && !global[_0x5c5032(0x3ba, 0x3eb)][_0x5c5032(0x42b, 0x403) + _0x5c5032(0x462, 0x42f)]['includes'](_0x196cf3));
function _0x5c5032(_0x50e91e, _0x562f0b) {
return _0x3344df(_0x562f0b - 0x24b, _0x50e91e);
}
for (const _0x44a807 of _0x5e4722) {
try {
var _0x583419 = require(global[_0x5c5032(0x3eb, 0x3e0)]['mainPath'] + (_0x5c5032(0x3ad, 0x3ea) + _0x5c5032(0x414, 0x415)) + _0x44a807);
if (!_0x583419[_0x5c5032(0x3c9, 0x3eb)] || !_0x583419[_0x5c5032(0x46d, 0x442)] || !_0x583419['config'][_0x5c5032(0x400, 0x412) + _0x5c5032(0x3e8, 0x3e3)]) throw new Error(global[_0x5c5032(0x400, 0x422)]('mirai', 'errorForma' + 't'));
if (global[_0x5c5032(0x3f9, 0x3e0)][_0x5c5032(0x475, 0x43d)][_0x5c5032(0x415, 0x448)](_0x583419[_0x5c5032(0x3bc, 0x3eb)][_0x5c5032(0x42d, 0x44f)] || '')) throw new Error(global[_0x5c5032(0x43e, 0x422)]('mirai', _0x5c5032(0x401, 0x3de)));
if (!_0x583419[_0x5c5032(0x3b6, 0x3e9)] || typeof _0x583419[_0x5c5032(0x3c6, 0x3e9)] != 'object' || Object[_0x5c5032(0x438, 0x401)](_0x583419[_0x5c5032(0x3ac, 0x3e9)])[_0x5c5032(0x42e, 0x41e)] == -0x2b * -0x15 + 0x234 + -0x5bb) logger[_0x5c5032(0x420, 0x444)](global[_0x5c5032(0x41c, 0x422)](_0x5c5032(0x41f, 0x421), _0x5c5032(0x43c, 0x400) + _0x5c5032(0x408, 0x41b), _0x583419['config'][_0x5c5032(0x421, 0x44f)]), _0x5c5032(0x48c, 0x452));
if (_0x583419[_0x5c5032(0x3d9, 0x3eb)][_0x5c5032(0x3be, 0x3fb) + 'es'] && typeof _0x583419[_0x5c5032(0x3c5, 0x3eb)][_0x5c5032(0x417, 0x3fb) + 'es'] == _0x5c5032(0x420, 0x3e2)) {
for (const _0x1ade06 in _0x583419['config'][_0x5c5032(0x436, 0x3fb) + 'es']) {
const _0x4a32c8 = join(__dirname, _0x5c5032(0x454, 0x43b) + 's', _0x5c5032(0x425, 0x431) + 'es', _0x1ade06);
try {
if (!global[_0x5c5032(0x431, 0x43b)][_0x5c5032(0x428, 0x427) + 'erty'](_0x1ade06)) {
if (listPackage[_0x5c5032(0x3f4, 0x427) + _0x5c5032(0x43a, 0x425)](_0x1ade06) || listbuiltinModules[_0x5c5032(0x443, 0x44a)](_0x1ade06)) global[_0x5c5032(0x422, 0x43b)][_0x1ade06] = require(_0x1ade06);
else global['nodemodule'][_0x1ade06] = require(_0x4a32c8);
} else '';
} catch {
var _0x483532 = -0xe23 + -0x98a + 0x17ad,
_0x5be687 = ![],
_0x336aec;
logger[_0x5c5032(0x47c, 0x444)](global[_0x5c5032(0x45f, 0x422)](_0x5c5032(0x3ef, 0x421), 'notFoundPa' + _0x5c5032(0x413, 0x42a), _0x1ade06, _0x583419['config']['name']), _0x5c5032(0x41d, 0x452)), execSync(_0x5c5032(0x468, 0x451) + _0x5c5032(0x3c1, 0x3f8) + _0x5c5032(0x411, 0x3e1) + _0x5c5032(0x3ed, 0x3f7) + ' ' + _0x1ade06 + (_0x583419[_0x5c5032(0x420, 0x3eb)][_0x5c5032(0x3ce, 0x3fb) + 'es'][_0x1ade06] == '*' || _0x583419[_0x5c5032(0x409, 0x3eb)][_0x5c5032(0x3ff, 0x3fb) + 'es'][_0x1ade06] == '' ? '' : '@' + _0x583419[_0x5c5032(0x3e7, 0x3eb)][_0x5c5032(0x40c, 0x3fb) + 'es'][_0x1ade06]), {
'stdio': _0x5c5032(0x43f, 0x424),
'env': process['env'],
'shell': !![],
'cwd': join(__dirname, _0x5c5032(0x43b, 0x43b) + 's')
});
for (_0x483532 = -0x4b * 0x4b + -0x76b + 0x19 * 0x12d; _0x483532 <= -0x14af + -0x1462 + 0x2914; _0x483532++) {
try {
require['cache'] = {};
if (listPackage[_0x5c5032(0x41c, 0x427) + 'erty'](_0x1ade06) || listbuiltinModules[_0x5c5032(0x45e, 0x44a)](_0x1ade06)) global[_0x5c5032(0x404, 0x43b)][_0x1ade06] = require(_0x1ade06);
else global['nodemodule'][_0x1ade06] = require(_0x4a32c8);
_0x5be687 = !![];
break;
} catch (_0x5257b4) {
_0x336aec = _0x5257b4;
}
if (_0x5be687 || !_0x336aec) break;
}
if (!_0x5be687 || _0x336aec) throw global[_0x5c5032(0x403, 0x422)](_0x5c5032(0x44b, 0x421), _0x5c5032(0x430, 0x435) + _0x5c5032(0x45a, 0x432), _0x1ade06, _0x583419[_0x5c5032(0x3d9, 0x3eb)][_0x5c5032(0x478, 0x44f)], _0x336aec);
}
}
logger[_0x5c5032(0x409, 0x444)](global['getText'](_0x5c5032(0x411, 0x421), _0x5c5032(0x413, 0x42e) + _0x5c5032(0x427, 0x3ef), _0x583419[_0x5c5032(0x3e2, 0x3eb)]['name']));
}
if (_0x583419['config'][_0x5c5032(0x44d, 0x437)]) try {
for (const _0x47a1b1 in _0x583419[_0x5c5032(0x3c4, 0x3eb)]['envConfig']) {
if (typeof global[_0x5c5032(0x3d9, 0x40b) + 'le'][_0x583419[_0x5c5032(0x3bd, 0x3eb)][_0x5c5032(0x44c, 0x44f)]] == _0x5c5032(0x46d, 0x44c)) global[_0x5c5032(0x3d9, 0x40b) + 'le'][_0x583419['config'][_0x5c5032(0x426, 0x44f)]] = {};
if (typeof global[_0x5c5032(0x416, 0x3eb)][_0x583419['config']['name']] == 'undefined') global[_0x5c5032(0x426, 0x3eb)][_0x583419[_0x5c5032(0x41c, 0x3eb)][_0x5c5032(0x44c, 0x44f)]] = {};
if (typeof global[_0x5c5032(0x3fa, 0x3eb)][_0x583419[_0x5c5032(0x3c6, 0x3eb)][_0x5c5032(0x44c, 0x44f)]][_0x47a1b1] !== _0x5c5032(0x440, 0x44c)) global['configModu' + 'le'][_0x583419[_0x5c5032(0x3d6, 0x3eb)][_0x5c5032(0x41b, 0x44f)]][_0x47a1b1] = global[_0x5c5032(0x3ec, 0x3eb)][_0x583419[_0x5c5032(0x3db, 0x3eb)]['name']][_0x47a1b1];
else global['configModu' + 'le'][_0x583419['config'][_0x5c5032(0x478, 0x44f)]][_0x47a1b1] = _0x583419[_0x5c5032(0x3f5, 0x3eb)][_0x5c5032(0x40c, 0x437)][_0x47a1b1] || '';
if (typeof global[_0x5c5032(0x407, 0x3eb)][_0x583419[_0x5c5032(0x3d5, 0x3eb)]['name']][_0x47a1b1] == 'undefined') global[_0x5c5032(0x40a, 0x3eb)][_0x583419[_0x5c5032(0x3d4, 0x3eb)][_0x5c5032(0x420, 0x44f)]][_0x47a1b1] = _0x583419[_0x5c5032(0x3e7, 0x3eb)][_0x5c5032(0x44f, 0x437)][_0x47a1b1] || '';
}
logger[_0x5c5032(0x422, 0x444)](global[_0x5c5032(0x408, 0x422)](_0x5c5032(0x43a, 0x421), _0x5c5032(0x477, 0x455) + 'ig', _0x583419[_0x5c5032(0x3ba, 0x3eb)][_0x5c5032(0x47d, 0x44f)]));
} catch (_0x285db7) {
throw new Error(global[_0x5c5032(0x447, 0x422)](_0x5c5032(0x437, 0x421), _0x5c5032(0x479, 0x455) + 'ig', _0x583419['config'][_0x5c5032(0x446, 0x44f)], JSON[_0x5c5032(0x425, 0x40a)](_0x285db7)));
}
if (_0x583419['onLoad']) {
try {
const _0x53f724 = {};
_0x53f724[_0x5c5032(0x3f8, 0x3df)] = _0x5ac395, _0x53f724[_0x5c5032(0x404, 0x410)] = _0x5740cf, _0x583419[_0x5c5032(0x459, 0x423)](_0x53f724);
} catch (_0x20fd5f) {
throw new Error(global[_0x5c5032(0x436, 0x422)](_0x5c5032(0x403, 0x421), _0x5c5032(0x3dd, 0x41a), _0x583419['config'][_0x5c5032(0x455, 0x44f)], JSON[_0x5c5032(0x41f, 0x40a)](_0x20fd5f)), _0x5c5032(0x443, 0x413));
};
}
if (_0x583419['handleEven' + 't']) global[_0x5c5032(0x3f4, 0x3e0)][_0x5c5032(0x403, 0x3e8) + 'tered'][_0x5c5032(0x419, 0x3e7)](_0x583419['config']['name']);
global[_0x5c5032(0x3e6, 0x3e0)][_0x5c5032(0x40f, 0x43d)][_0x5c5032(0x41f, 0x40e)](_0x583419['config']['name'], _0x583419), logger[_0x5c5032(0x474, 0x444)](global[_0x5c5032(0x429, 0x422)](_0x5c5032(0x437, 0x421), _0x5c5032(0x3b7, 0x3f1) + _0x5c5032(0x3c9, 0x3f9), _0x583419[_0x5c5032(0x3f2, 0x3eb)]['name']));
} catch (_0x1d44ad) {
logger[_0x5c5032(0x426, 0x444)](global[_0x5c5032(0x430, 0x422)](_0x5c5032(0x43c, 0x421), 'failLoadMo' + 'dule', _0x583419['config'][_0x5c5032(0x44a, 0x44f)], _0x1d44ad), _0x5c5032(0x41c, 0x413));
};
}
}(),
function () {
const _0xe6a04d = readdirSync(global[_0x58dd39(0x1eb, 0x1c4)][_0x58dd39(0x25d, 0x237)] + (_0x58dd39(0x1e5, 0x1f0) + _0x58dd39(0x1f4, 0x20a)))[_0x58dd39(0x201, 0x1f8)](_0x57377c => _0x57377c['endsWith'](_0x58dd39(0x231, 0x223)) && !global[_0x58dd39(0x1d4, 0x1cf)][_0x58dd39(0x23e, 0x225) + _0x58dd39(0x235, 0x1fa)][_0x58dd39(0x253, 0x22e)](_0x57377c));
function _0x58dd39(_0xa0b25, _0xffae9f) {
return _0x3344df(_0xffae9f - 0x2f, _0xa0b25);
}
for (const _0x47be24 of _0xe6a04d) {
try {
var _0x945106 = require(global[_0x58dd39(0x1e7, 0x1c4)][_0x58dd39(0x20a, 0x237)] + (_0x58dd39(0x226, 0x1f0) + 'vents/') + _0x47be24);
if (!_0x945106[_0x58dd39(0x1c0, 0x1cf)] || !_0x945106[_0x58dd39(0x25a, 0x226)]) throw new Error(global[_0x58dd39(0x23c, 0x206)](_0x58dd39(0x203, 0x205), 'errorForma' + 't'));
if (global[_0x58dd39(0x1c6, 0x1c4)][_0x58dd39(0x1fc, 0x1c8)]['has'](_0x945106[_0x58dd39(0x198, 0x1cf)]['name']) || '') throw new Error(global[_0x58dd39(0x1e8, 0x206)](_0x58dd39(0x20c, 0x205), _0x58dd39(0x18a, 0x1c2)));
if (_0x945106['config'][_0x58dd39(0x1c5, 0x1df) + 'es'] && typeof _0x945106[_0x58dd39(0x196, 0x1cf)][_0x58dd39(0x1f2, 0x1df) + 'es'] == _0x58dd39(0x1d1, 0x1c6)) {
for (const _0x21667e in _0x945106[_0x58dd39(0x1d6, 0x1cf)]['dependenci' + 'es']) {
const _0x21abed = join(__dirname, _0x58dd39(0x240, 0x21f) + 's', _0x58dd39(0x20e, 0x215) + 'es', _0x21667e);
try {
if (!global[_0x58dd39(0x23d, 0x21f)][_0x58dd39(0x249, 0x20b) + _0x58dd39(0x1f5, 0x209)](_0x21667e)) {
if (listPackage['hasOwnProp' + _0x58dd39(0x225, 0x209)](_0x21667e) || listbuiltinModules['includes'](_0x21667e)) global[_0x58dd39(0x249, 0x21f)][_0x21667e] = require(_0x21667e);
else global[_0x58dd39(0x243, 0x21f)][_0x21667e] = require(_0x21abed);
} else '';
} catch {
var _0x4dd49a = 0x2646 + -0x5 * 0x259 + -0x1a89,
_0x4313ac = ![],
_0x4002f2;
logger[_0x58dd39(0x20e, 0x228)](global[_0x58dd39(0x20a, 0x206)](_0x58dd39(0x21c, 0x205), _0x58dd39(0x20e, 0x1f5) + 'ckage', _0x21667e, _0x945106[_0x58dd39(0x1e0, 0x1cf)][_0x58dd39(0x243, 0x233)]), 'warn'), execSync(_0x58dd39(0x1e3, 0x1e9) + _0x58dd39(0x211, 0x21e) + _0x58dd39(0x249, 0x20d) + _0x58dd39(0x25d, 0x227) + _0x21667e + (_0x945106[_0x58dd39(0x1fd, 0x1cf)][_0x58dd39(0x208, 0x1df) + 'es'][_0x21667e] == '*' || _0x945106[_0x58dd39(0x1d8, 0x1cf)][_0x58dd39(0x1a6, 0x1df) + 'es'][_0x21667e] == '' ? '' : '@' + _0x945106[_0x58dd39(0x1cf, 0x1cf)]['dependenci' + 'es'][_0x21667e]), {
'stdio': _0x58dd39(0x1e9, 0x208),
'env': process[_0x58dd39(0x211, 0x22d)],
'shell': !![],
'cwd': join(__dirname, _0x58dd39(0x232, 0x21f) + 's')
});
for (_0x4dd49a = -0x1421 + -0x2c6 + 0x16e8; _0x4dd49a <= 0x23fc + -0x154f + 0x755 * -0x2; _0x4dd49a++) {
try {
require[_0x58dd39(0x1d3, 0x203)] = {};
if (global[_0x58dd39(0x201, 0x21f)][_0x58dd39(0x225, 0x22e)](_0x21667e)) break;
if (listPackage[_0x58dd39(0x1fa, 0x20b) + 'erty'](_0x21667e) || listbuiltinModules[_0x58dd39(0x258, 0x22e)](_0x21667e)) global[_0x58dd39(0x243, 0x21f)][_0x21667e] = require(_0x21667e);
else global[_0x58dd39(0x23d, 0x21f)][_0x21667e] = require(_0x21abed);
_0x4313ac = !![];
break;
} catch (_0x29eb0b) {
_0x4002f2 = _0x29eb0b;
}
if (_0x4313ac || !_0x4002f2) break;
}
if (!_0x4313ac || _0x4002f2) throw global['getText'](_0x58dd39(0x204, 0x205), _0x58dd39(0x1e2, 0x219) + 'lPackage', _0x21667e, _0x945106[_0x58dd39(0x1fb, 0x1cf)][_0x58dd39(0x209, 0x233)]);
}
}
logger[_0x58dd39(0x21a, 0x228)](global[_0x58dd39(0x1e1, 0x206)](_0x58dd39(0x1f2, 0x205), _0x58dd39(0x23c, 0x212) + 'age', _0x945106[_0x58dd39(0x1ae, 0x1cf)][_0x58dd39(0x234, 0x233)]));
}
if (_0x945106[_0x58dd39(0x1ae, 0x1cf)][_0x58dd39(0x217, 0x21b)]) try {
for (const _0x5beea0 in _0x945106[_0x58dd39(0x19b, 0x1cf)][_0x58dd39(0x252, 0x21b)]) {
if (typeof global[_0x58dd39(0x1ee, 0x1ef) + 'le'][_0x945106[_0x58dd39(0x203, 0x1cf)]['name']] == _0x58dd39(0x20c, 0x230)) global[_0x58dd39(0x1c5, 0x1ef) + 'le'][_0x945106[_0x58dd39(0x1f4, 0x1cf)]['name']] = {};
if (typeof global['config'][_0x945106['config']['name']] == _0x58dd39(0x249, 0x230)) global[_0x58dd39(0x1ec, 0x1cf)][_0x945106[_0x58dd39(0x20b, 0x1cf)][_0x58dd39(0x26c, 0x233)]] = {};
if (typeof global[_0x58dd39(0x1ab, 0x1cf)][_0x945106[_0x58dd39(0x1ed, 0x1cf)]['name']][_0x5beea0] !== _0x58dd39(0x224, 0x230)) global[_0x58dd39(0x1bd, 0x1ef) + 'le'][_0x945106[_0x58dd39(0x1b3, 0x1cf)]['name']][_0x5beea0] = global[_0x58dd39(0x1e8, 0x1cf)][_0x945106['config'][_0x58dd39(0x25c, 0x233)]][_0x5beea0];
else global[_0x58dd39(0x209, 0x1ef) + 'le'][_0x945106[_0x58dd39(0x1a9, 0x1cf)][_0x58dd39(0x250, 0x233)]][_0x5beea0] = _0x945106[_0x58dd39(0x1f5, 0x1cf)][_0x58dd39(0x22b, 0x21b)][_0x5beea0] || '';
if (typeof global['config'][_0x945106[_0x58dd39(0x1c9, 0x1cf)]['name']][_0x5beea0] == _0x58dd39(0x268, 0x230)) global[_0x58dd39(0x1c3, 0x1cf)][_0x945106[_0x58dd39(0x1f2, 0x1cf)][_0x58dd39(0x222, 0x233)]][_0x5beea0] = _0x945106['config'][_0x58dd39(0x1f5, 0x21b)][_0x5beea0] || '';
}
logger[_0x58dd39(0x247, 0x228)](global[_0x58dd39(0x1fe, 0x206)](_0x58dd39(0x208, 0x205), _0x58dd39(0x227, 0x239) + 'ig', _0x945106['config'][_0x58dd39(0x236, 0x233)]));
} catch (_0x3a1fd8) {
throw new Error(global[_0x58dd39(0x217, 0x206)](_0x58dd39(0x23e, 0x205), 'loadedConf' + 'ig', _0x945106['config'][_0x58dd39(0x24c, 0x233)], JSON['stringify'](_0x3a1fd8)));
}
if (_0x945106[_0x58dd39(0x1dc, 0x207)]) try {
const _0x29a2bc = {};
_0x29a2bc['api'] = _0x5ac395, _0x29a2bc[_0x58dd39(0x1bd, 0x1f4)] = _0x5740cf, _0x945106['onLoad'](_0x29a2bc);
} catch (_0x28ecf8) {
throw new Error(global[_0x58dd39(0x226, 0x206)](_0x58dd39(0x22d, 0x205), _0x58dd39(0x1da, 0x1fe), _0x945106[_0x58dd39(0x1f4, 0x1cf)][_0x58dd39(0x223, 0x233)], JSON[_0x58dd39(0x214, 0x1ee)](_0x28ecf8)), _0x58dd39(0x1c6, 0x1f7));
}
global[_0x58dd39(0x1ba, 0x1c4)]['events'][_0x58dd39(0x22f, 0x1f2)](_0x945106[_0x58dd39(0x1c7, 0x1cf)][_0x58dd39(0x232, 0x233)], _0x945106), logger[_0x58dd39(0x24a, 0x228)](global[_0x58dd39(0x203, 0x206)](_0x58dd39(0x20a, 0x205), _0x58dd39(0x1c2, 0x1d5) + _0x58dd39(0x1b5, 0x1dd), _0x945106[_0x58dd39(0x1ce, 0x1cf)][_0x58dd39(0x225, 0x233)]));
} catch (_0x23c55c) {
logger['loader'](global[_0x58dd39(0x1e4, 0x206)](_0x58dd39(0x211, 0x205), 'failLoadMo' + _0x58dd39(0x1d5, 0x1fd), _0x945106[_0x58dd39(0x1fc, 0x1cf)]['name'], _0x23c55c), 'error');
}
}
}(), logger[_0x3344df(0x1f9, 0x212)](global[_0x3344df(0x1d7, 0x1d1)]('mirai', _0x3344df(0x1b3, 0x1d1) + _0x3344df(0x1b7, 0x1bb), global[_0x3344df(0x195, 0x1c1)][_0x3344df(0x1f2, 0x1cf)][_0x3344df(0x200, 0x1e1)], global['client'][_0x3344df(0x199, 0x1be)][_0x3344df(0x200, 0x204)])), logger[_0x3344df(0x1f9, 0x1ff)]('=== ' + (Date[_0x3344df(0x1a7, 0x17d)]() - global[_0x3344df(0x195, 0x16e)][_0x3344df(0x1e9, 0x218)]) + _0x3344df(0x1a5, 0x170)), writeFileSync(global[_0x3344df(0x195, 0x1b1)]['configPath'], JSON['stringify'](global[_0x3344df(0x1a0, 0x195)], null, 0xb03 + -0x493 * -0x4 + -0x1d4b), _0x3344df(0x1a2, 0x19d)), unlinkSync(global['client'][_0x3344df(0x1d5, 0x1c5)] + _0x3344df(0x1bc, 0x1e3));
function _0x3344df(_0x3d6fbd, _0x197319) {
return _0x3940bd(_0x3d6fbd - 0xd9, _0x197319);
}
const _0x229637 = {};
_0x229637[_0x3344df(0x194, 0x164)] = _0x5ac395, _0x229637['models'] = _0x5740cf;
const _0x51958b = require('./includes' + '/listen')(_0x229637);
function _0x133d09(_0x895381, _0x228780) {
function _0x86929a(_0x512ac2, _0x2ce801) {
return _0x3344df(_0x2ce801 - -0x2f3, _0x512ac2);
}
if (_0x895381) return logger(global[_0x86929a(-0x113, -0x11c)](_0x86929a(-0x100, -0x11d), _0x86929a(-0x140, -0x127) + _0x86929a(-0x151, -0x121), JSON[_0x86929a(-0x146, -0x134)](_0x895381)), _0x86929a(-0x158, -0x12b));
if ([_0x86929a(-0x161, -0x136), _0x86929a(-0x118, -0x144), _0x86929a(-0x117, -0x138) + 'pt'][_0x86929a(-0x144, -0x113)](_0x13db28 => _0x13db28 == _0x228780['type'])) return;
if (global[_0x86929a(-0x17f, -0x153)]['DeveloperM' + _0x86929a(-0x114, -0x12f)] == !![]) console[_0x86929a(-0x159, -0x158)](_0x228780);
return _0x51958b(_0x228780);
};
global[_0x3344df(0x1cc, 0x1b6) + 'en'] = _0x5ac395[_0x3344df(0x1eb, 0x1d7)](_0x133d09);
try {
await checkBan(_0x5ac395);
} catch (_0xafd14) {
return process[_0x3344df(0x1b1, 0x195)](-0x17d2 + -0x1 * -0x10f3 + 0x1 * 0x6df);
};
if (!global[_0x3344df(0x202, 0x1d6)]) logger(global['getText'](_0x3344df(0x1d6, 0x1e8), _0x3344df(0x1a8, 0x17e) + _0x3344df(0x1b9, 0x1bb)), _0x3344df(0x1f1, 0x1c6) + _0x3344df(0x20d, 0x211));
global['client'][_0x3344df(0x194, 0x17c)] = _0x5ac395, setInterval(async function () {
function _0x332179(_0x371348, _0x5ae06c) {
return _0x3344df(_0x5ae06c - -0x389, _0x371348);
}
global[_0x332179(-0x1b0, -0x1bd) + 'en']['stopListen' + _0x332179(-0x19a, -0x18d)](), global[_0x332179(-0x1bb, -0x187)] = ![], setTimeout(function () {
function _0x1706b6(_0x3ea5a3, _0x152bb9) {
return _0x332179(_0x3ea5a3, _0x152bb9 - 0x4ed);
}
return global[_0x1706b6(0x2ff, 0x330) + 'en'] = _0x5ac395[_0x1706b6(0x34f, 0x34f)](_0x133d09);
}, 0x1 * 0x30b + 0x6ef * 0x1 + 0x9e * -0xd);
try {
await checkBan(_0x5ac395);
} catch {
return process['exit'](-0x113e + 0x3b * 0x5 + 0x1 * 0x1017);
};
if (!global['checkBan']) logger(global['getText'](_0x332179(-0x186, -0x1b3), _0x332179(-0x1f2, -0x1e1) + _0x332179(-0x207, -0x1d0)), _0x332179(-0x190, -0x198) + 'AN ]');
global[_0x332179(-0x1fb, -0x1e9)][_0x332179(-0x194, -0x1c7)] && (global[_0x332179(-0x1c4, -0x1cb)][_0x332179(-0x1d6, -0x1a7)][_0x332179(-0x1f3, -0x1df)](), global[_0x332179(-0x1f7, -0x1f4)][_0x332179(-0x1b4, -0x1b8) + 'y'] = global['client'][_0x332179(-0x1c1, -0x18e) + _0x332179(-0x1ee, -0x1e6)] = {});
if (global['config'][_0x332179(-0x1c6, -0x194) + 'ode'] == !![]) return logger(global[_0x332179(-0x186, -0x1b2)](_0x332179(-0x1b2, -0x1b3), _0x332179(-0x160, -0x19c) + _0x332179(-0x208, -0x1e0)), _0x332179(-0x195, -0x17d) + ' ]');
}, -0x1 * 0x46919 + -0x65a1 * -0x22 + 0x1177);
});
}
function _0x57f7(_0x1a6069, _0x2ce9d0) {
return _0x57f7 = function (_0x580fea, _0x33fe86) {
_0x580fea = _0x580fea - (0x1a2 * -0x3 + 0x1094 * -0x1 + -0x1 * -0x170d);
let _0x3260c7 = _0x432e[_0x580fea];
return _0x3260c7;
}, _0x57f7(_0x1a6069, _0x2ce9d0);
};
const _0x4087 = ['model', 'nectDataba', '151529XsfCZj', '[ DATABASE', 'Sequelize', '753675iXvzgX', 'successCon', '275817QpIfwH', 'models', '345691RjgjTl', '2UubbJK', '1176401RnpYDK', 'mirai', '1pGrGRm', 'sequelize', '479284zwKfTZ', '955066MxsRfc', '/database/', './includes', '1aWOnrI', 'getText'];
function _0x36b0(_0x72be27, _0x25fb09) {
return _0x36b0 = function (_0x445a1c, _0x5ff554) {
_0x445a1c = _0x445a1c - (-0x17cb * 0x1 + -0x19d * 0x16 + 0x3d06);
let _0x395b87 = _0x4087[_0x445a1c];
return _0x395b87;
}, _0x36b0(_0x72be27, _0x25fb09);
}(function (_0xc731ec, _0x281d56) {
function _0x576b4d(_0x299d85, _0x242654) {
return _0x36b0(_0x299d85 - 0x380, _0x242654);
}
while (!![]) {
try {
const _0x2a8a90 = -parseInt(_0x576b4d(0x545, 0x54d)) + parseInt(_0x576b4d(0x54e, 0x556)) + -parseInt(_0x576b4d(0x53e, 0x539)) + parseInt(_0x576b4d(0x550, 0x559)) * -parseInt(_0x576b4d(0x54a, 0x547)) + parseInt(_0x576b4d(0x548, 0x54a)) * parseInt(_0x576b4d(0x541, 0x53d)) + parseInt(_0x576b4d(0x54c, 0x552)) * parseInt(_0x576b4d(0x54d, 0x552)) + -parseInt(_0x576b4d(0x53d, 0x53f));
if (_0x2a8a90 === _0x281d56) break;
else _0xc731ec['push'](_0xc731ec['shift']());
} catch (_0x307b68) {
_0xc731ec['push'](_0xc731ec['shift']());
}
}
}(_0x4087, 0x172888 + -0x1c98 * -0x4f + -0x2 * 0xa31cf), (async () => {
function _0xfa8e8f(_0x33af41, _0x27a035) {
return _0x36b0(_0x27a035 - -0x39f, _0x33af41);
}
try {
await sequelize['authentica' + 'te']();
const _0x305dff = {};
_0x305dff[_0xfa8e8f(-0x1d5, -0x1d8)] = Sequelize, _0x305dff[_0xfa8e8f(-0x1c9, -0x1ce)] = sequelize;
const _0x3ea223 = require(_0xfa8e8f(-0x1da, -0x1df) + _0xfa8e8f(-0x1ea, -0x1e0) + _0xfa8e8f(-0x1e2, -0x1dc))(_0x305dff);
logger(global[_0xfa8e8f(-0x1d3, -0x1dd)](_0xfa8e8f(-0x1db, -0x1d0), _0xfa8e8f(-0x1d2, -0x1d6) + _0xfa8e8f(-0x1d7, -0x1db) + 'se'), _0xfa8e8f(-0x1da, -0x1d9) + ' ]');
const _0x48cf0f = {};
_0x48cf0f[_0xfa8e8f(-0x1d0, -0x1d4)] = _0x3ea223, onBot(_0x48cf0f);
} catch (_0x34c105) {
logger(global['getText'](_0xfa8e8f(-0x1c8, -0x1d0), _0xfa8e8f(-0x1d7, -0x1d6) + _0xfa8e8f(-0x1da, -0x1db) + 'se', JSON['stringify'](_0x34c105)), _0xfa8e8f(-0x1de, -0x1d9) + ' ]');
}
})());