jsdecryptor 4.0.3 → 4.0.4
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.
- package/Database/database.js +1 -446
- package/Database/migration.js +1 -327
- package/Database/pgSync.js +1 -229
- package/Database/settingsStore.js +1 -305
- package/config.js +1 -32
- package/dave.js +1 -3063
- package/davelib/botConfig.js +1 -71
- package/davelib/greetings.js +1 -47
- package/davelib/id.js +1 -11
- package/davelib/index.js +1 -577
- package/davelib/isAdmin.js +1 -32
- package/davelib/isBanned.js +1 -12
- package/davelib/isOwner.js +1 -15
- package/davelib/messageConfig.js +1 -15
- package/davelib/messageHandler.js +1 -87
- package/davelib/reactions.js +1 -180
- package/davelib/welcome.js +1 -100
- package/daveset.js +1 -16
- package/davexcore/anti/antiaudio.js +1 -106
- package/davexcore/anti/antibadword.js +1 -313
- package/davexcore/anti/antibug.js +1 -156
- package/davexcore/anti/anticall.js +1 -219
- package/davexcore/anti/antichart.js +1 -280
- package/davexcore/anti/antidelete.js +1 -673
- package/davexcore/anti/antideletestatus.js +1 -535
- package/davexcore/anti/antidemote.js +1 -352
- package/davexcore/anti/antidocument.js +1 -105
- package/davexcore/anti/antiedit.js +1 -410
- package/davexcore/anti/antifiles.js +1 -109
- package/davexcore/anti/antigroupmention.js +1 -206
- package/davexcore/anti/antiimage.js +1 -105
- package/davexcore/anti/antikick.js +1 -125
- package/davexcore/anti/antilink.js +1 -237
- package/davexcore/anti/antimention.js +1 -143
- package/davexcore/anti/antipromote.js +1 -320
- package/davexcore/anti/antisticker.js +1 -105
- package/davexcore/anti/antitag.js +1 -191
- package/davexcore/anti/antivideo.js +1 -105
- package/davexcore/anti/antiviewonce.js +1 -396
- package/davexcore/anti/groupanticall.js +1 -262
- package/davexcore/anti/mention.js +1 -242
- package/davexcore/automation/alwaysonline.js +1 -226
- package/davexcore/automation/autoReadReciepts.js +1 -96
- package/davexcore/automation/autoread.js +1 -104
- package/davexcore/automation/autorecording.js +1 -197
- package/davexcore/automation/autostatus.js +1 -317
- package/davexcore/automation/autotyping.js +1 -197
- package/davexcore/automation/chatbot.js +1 -444
- package/davexcore/automation/chatmanage.js +1 -199
- package/davexcore/automation/devReact.js +1 -43
- package/davexcore/automation/goodbye.js +1 -181
- package/davexcore/automation/greetings.js +1 -154
- package/davexcore/automation/welcome.js +1 -187
- package/davexcore/group/addmember.js +1 -101
- package/davexcore/group/ban.js +1 -63
- package/davexcore/group/blockUnblock.js +1 -177
- package/davexcore/group/clear.js +1 -196
- package/davexcore/group/creategroup.js +1 -43
- package/davexcore/group/demote.js +1 -115
- package/davexcore/group/disappear.js +1 -67
- package/davexcore/group/groupinfo.js +1 -167
- package/davexcore/group/groupmanage.js +1 -133
- package/davexcore/group/hidetag.js +1 -108
- package/davexcore/group/joinrequests.js +1 -145
- package/davexcore/group/kick.js +1 -92
- package/davexcore/group/kickall.js +1 -63
- package/davexcore/group/leave.js +1 -38
- package/davexcore/group/linkgroup.js +1 -63
- package/davexcore/group/mute.js +1 -57
- package/davexcore/group/online.js +1 -117
- package/davexcore/group/pmblocker.js +1 -65
- package/davexcore/group/promote.js +1 -93
- package/davexcore/group/resetlink.js +1 -57
- package/davexcore/group/staff.js +1 -99
- package/davexcore/group/tag.js +1 -111
- package/davexcore/group/tagadmins.js +1 -88
- package/davexcore/group/tagall.js +1 -99
- package/davexcore/group/tagnotadmin.js +1 -92
- package/davexcore/group/topmembers.js +1 -202
- package/davexcore/group/unban.js +1 -64
- package/davexcore/group/unmute.js +1 -45
- package/davexcore/group/warn.js +1 -83
- package/davexcore/group/warnings.js +1 -26
- package/davexcore/owner/alive.js +1 -67
- package/davexcore/owner/bio.js +1 -49
- package/davexcore/owner/broadcast.js +1 -74
- package/davexcore/owner/chanel.js +1 -79
- package/davexcore/owner/channelid.js +1 -50
- package/davexcore/owner/clearsession.js +1 -86
- package/davexcore/owner/help.js +1 -649
- package/davexcore/owner/hijack.js +1 -69
- package/davexcore/owner/menuManage.js +1 -173
- package/davexcore/owner/menuSettings.js +1 -1
- package/davexcore/owner/owner.js +1 -17
- package/davexcore/owner/pair.js +1 -160
- package/davexcore/owner/pinchat.js +1 -44
- package/davexcore/owner/ping.js +1 -65
- package/davexcore/owner/profilepic.js +1 -61
- package/davexcore/owner/resetmenuimage.js +1 -16
- package/davexcore/owner/setGroupStatus.js +1 -315
- package/davexcore/owner/setbotconfig.js +1 -306
- package/davexcore/owner/setfont.js +1 -79
- package/davexcore/owner/setowner.js +1 -144
- package/davexcore/owner/setprefix.js +1 -131
- package/davexcore/owner/settings.js +1 -98
- package/davexcore/owner/startupwelcome.js +1 -94
- package/davexcore/owner/sudo.js +1 -138
- package/davexcore/owner/update.js +1 -282
- package/davexcore/utility/bible.js +1 -239
- package/davexcore/utility/encrypt.js +1 -99
- package/davexcore/utility/sports.js +1 -403
- package/index.js +1 -994
- package/package.json +1 -1
package/davelib/index.js
CHANGED
|
@@ -1,577 +1 @@
|
|
|
1
|
-
const { getGroupConfig, setGroupConfig, deleteGroupToggle, getOwnerConfig, setOwnerConfig } = require('../Database/settingsStore');
|
|
2
|
-
const db = require('../Database/database');
|
|
3
|
-
const { migrateFromJson, cleanupLegacyFiles } = require('../Database/migration');
|
|
4
|
-
const { createFakeContact, getBotName, getMenuImage, getOwnerName, createStyledMessage, createSuccessMessage, createErrorMessage, createInfoMessage, sendWithFakeContact, sendStyledWithFakeContact } = require('./fakeContact');
|
|
5
|
-
|
|
6
|
-
migrateFromJson();
|
|
7
|
-
|
|
8
|
-
function loadUserGroupData() {
|
|
9
|
-
try {
|
|
10
|
-
const result = {
|
|
11
|
-
antibadword: {},
|
|
12
|
-
antilink: {},
|
|
13
|
-
antitag: {},
|
|
14
|
-
antimention: {},
|
|
15
|
-
antigroupmention: {},
|
|
16
|
-
antidemote: {},
|
|
17
|
-
antisticker: {},
|
|
18
|
-
antiimage: {},
|
|
19
|
-
antiaudio: {},
|
|
20
|
-
antidocument: {},
|
|
21
|
-
antifiles: {},
|
|
22
|
-
antipromote: {},
|
|
23
|
-
antivideo: {},
|
|
24
|
-
antibug: {},
|
|
25
|
-
antichart: {},
|
|
26
|
-
welcome: {},
|
|
27
|
-
goodbye: {},
|
|
28
|
-
chatbot: {},
|
|
29
|
-
warnings: {},
|
|
30
|
-
sudo: db.getAllSudoUsers()
|
|
31
|
-
};
|
|
32
|
-
|
|
33
|
-
const allGroupJids = db.getAllGroupJids();
|
|
34
|
-
for (const groupJid of allGroupJids) {
|
|
35
|
-
const settings = db.getAllGroupSettings(groupJid);
|
|
36
|
-
for (const [key, value] of Object.entries(settings)) {
|
|
37
|
-
if (result.hasOwnProperty(key)) {
|
|
38
|
-
result[key][groupJid] = value;
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
result.warnings = db.getAllWarnings();
|
|
44
|
-
|
|
45
|
-
return result;
|
|
46
|
-
} catch (error) {
|
|
47
|
-
console.error('Error loading user group data:', error);
|
|
48
|
-
return {
|
|
49
|
-
antibadword: {},
|
|
50
|
-
antilink: {},
|
|
51
|
-
antitag: {},
|
|
52
|
-
antimention: {},
|
|
53
|
-
antigroupmention: {},
|
|
54
|
-
antidemote: {},
|
|
55
|
-
antisticker: {},
|
|
56
|
-
antiimage: {},
|
|
57
|
-
antiaudio: {},
|
|
58
|
-
antidocument: {},
|
|
59
|
-
antifiles: {},
|
|
60
|
-
antipromote: {},
|
|
61
|
-
antivideo: {},
|
|
62
|
-
antibug: {},
|
|
63
|
-
antichart: {},
|
|
64
|
-
welcome: {},
|
|
65
|
-
goodbye: {},
|
|
66
|
-
chatbot: {},
|
|
67
|
-
warnings: {},
|
|
68
|
-
sudo: []
|
|
69
|
-
};
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
|
|
73
|
-
function saveUserGroupData(data) {
|
|
74
|
-
try {
|
|
75
|
-
if (data.sudo && Array.isArray(data.sudo)) {
|
|
76
|
-
const currentSudo = db.getAllSudoUsers();
|
|
77
|
-
for (const user of data.sudo) {
|
|
78
|
-
if (!currentSudo.includes(user)) {
|
|
79
|
-
db.addSudoUser(user);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
}
|
|
83
|
-
|
|
84
|
-
const features = [
|
|
85
|
-
'antibadword', 'antilink', 'antitag', 'antimention', 'antigroupmention',
|
|
86
|
-
'antidemote', 'antisticker', 'antiimage', 'antiaudio', 'antidocument',
|
|
87
|
-
'antifiles', 'antipromote', 'antivideo', 'antibug', 'antichart',
|
|
88
|
-
'welcome', 'goodbye', 'chatbot'
|
|
89
|
-
];
|
|
90
|
-
|
|
91
|
-
for (const feature of features) {
|
|
92
|
-
if (data[feature] && typeof data[feature] === 'object') {
|
|
93
|
-
for (const [groupId, config] of Object.entries(data[feature])) {
|
|
94
|
-
setGroupConfig(groupId, feature, config);
|
|
95
|
-
}
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
|
|
99
|
-
if (data.warnings && typeof data.warnings === 'object') {
|
|
100
|
-
for (const [groupId, users] of Object.entries(data.warnings)) {
|
|
101
|
-
if (typeof users === 'object') {
|
|
102
|
-
for (const [userId, count] of Object.entries(users)) {
|
|
103
|
-
db.setWarningCount(groupId, userId, count);
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
|
|
109
|
-
return true;
|
|
110
|
-
} catch (error) {
|
|
111
|
-
console.error('Error saving user group data:', error);
|
|
112
|
-
return false;
|
|
113
|
-
}
|
|
114
|
-
}
|
|
115
|
-
|
|
116
|
-
async function setAntilink(groupId, type, action) {
|
|
117
|
-
setGroupConfig(groupId, 'antilink', {
|
|
118
|
-
enabled: type === 'on' || type === 'delete' || type === 'kick' || type === 'warn',
|
|
119
|
-
action: action || 'delete'
|
|
120
|
-
});
|
|
121
|
-
return true;
|
|
122
|
-
}
|
|
123
|
-
|
|
124
|
-
async function getAntilink(groupId) {
|
|
125
|
-
return getGroupConfig(groupId, 'antilink');
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
async function removeAntilink(groupId) {
|
|
129
|
-
deleteGroupToggle(groupId, 'antilink');
|
|
130
|
-
return true;
|
|
131
|
-
}
|
|
132
|
-
|
|
133
|
-
async function setAntimention(groupId, type, action, maxMentions = 5) {
|
|
134
|
-
setGroupConfig(groupId, 'antimention', {
|
|
135
|
-
enabled: type === 'on' || type === true,
|
|
136
|
-
action: action || 'delete',
|
|
137
|
-
maxMentions: maxMentions
|
|
138
|
-
});
|
|
139
|
-
return true;
|
|
140
|
-
}
|
|
141
|
-
|
|
142
|
-
async function getAntimention(groupId) {
|
|
143
|
-
return getGroupConfig(groupId, 'antimention');
|
|
144
|
-
}
|
|
145
|
-
|
|
146
|
-
async function removeAntimention(groupId) {
|
|
147
|
-
deleteGroupToggle(groupId, 'antimention');
|
|
148
|
-
return true;
|
|
149
|
-
}
|
|
150
|
-
|
|
151
|
-
async function setAntitag(groupId, type, action) {
|
|
152
|
-
setGroupConfig(groupId, 'antitag', {
|
|
153
|
-
enabled: type === 'on',
|
|
154
|
-
action: action || 'delete'
|
|
155
|
-
});
|
|
156
|
-
return true;
|
|
157
|
-
}
|
|
158
|
-
|
|
159
|
-
async function getAntitag(groupId) {
|
|
160
|
-
return getGroupConfig(groupId, 'antitag');
|
|
161
|
-
}
|
|
162
|
-
|
|
163
|
-
async function removeAntitag(groupId) {
|
|
164
|
-
deleteGroupToggle(groupId, 'antitag');
|
|
165
|
-
return true;
|
|
166
|
-
}
|
|
167
|
-
|
|
168
|
-
async function setAntigroupmention(groupId, type, action) {
|
|
169
|
-
setGroupConfig(groupId, 'antigroupmention', {
|
|
170
|
-
enabled: type === 'on',
|
|
171
|
-
action: action || 'delete'
|
|
172
|
-
});
|
|
173
|
-
return true;
|
|
174
|
-
}
|
|
175
|
-
|
|
176
|
-
async function getAntigroupmention(groupId) {
|
|
177
|
-
return getGroupConfig(groupId, 'antigroupmention');
|
|
178
|
-
}
|
|
179
|
-
|
|
180
|
-
async function removeAntigroupmention(groupId) {
|
|
181
|
-
deleteGroupToggle(groupId, 'antigroupmention');
|
|
182
|
-
return true;
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
async function setAntidemote(groupId, type) {
|
|
186
|
-
setGroupConfig(groupId, 'antidemote', {
|
|
187
|
-
enabled: type === 'on' || type === true
|
|
188
|
-
});
|
|
189
|
-
return true;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
async function getAntidemote(groupId) {
|
|
193
|
-
return getGroupConfig(groupId, 'antidemote');
|
|
194
|
-
}
|
|
195
|
-
|
|
196
|
-
async function removeAntidemote(groupId) {
|
|
197
|
-
deleteGroupToggle(groupId, 'antidemote');
|
|
198
|
-
return true;
|
|
199
|
-
}
|
|
200
|
-
|
|
201
|
-
async function setAntipromote(groupId, type) {
|
|
202
|
-
setGroupConfig(groupId, 'antipromote', {
|
|
203
|
-
enabled: type === 'on' || type === true
|
|
204
|
-
});
|
|
205
|
-
return true;
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
async function getAntipromote(groupId) {
|
|
209
|
-
return getGroupConfig(groupId, 'antipromote');
|
|
210
|
-
}
|
|
211
|
-
|
|
212
|
-
async function removeAntipromote(groupId) {
|
|
213
|
-
deleteGroupToggle(groupId, 'antipromote');
|
|
214
|
-
return true;
|
|
215
|
-
}
|
|
216
|
-
|
|
217
|
-
async function setAntisticker(groupId, type, action) {
|
|
218
|
-
setGroupConfig(groupId, 'antisticker', {
|
|
219
|
-
enabled: type === 'on' || type === true,
|
|
220
|
-
action: action || 'delete'
|
|
221
|
-
});
|
|
222
|
-
return true;
|
|
223
|
-
}
|
|
224
|
-
|
|
225
|
-
async function getAntisticker(groupId) {
|
|
226
|
-
return getGroupConfig(groupId, 'antisticker');
|
|
227
|
-
}
|
|
228
|
-
|
|
229
|
-
async function removeAntisticker(groupId) {
|
|
230
|
-
deleteGroupToggle(groupId, 'antisticker');
|
|
231
|
-
return true;
|
|
232
|
-
}
|
|
233
|
-
|
|
234
|
-
async function setAntiimage(groupId, type, action) {
|
|
235
|
-
setGroupConfig(groupId, 'antiimage', {
|
|
236
|
-
enabled: type === 'on' || type === true,
|
|
237
|
-
action: action || 'delete'
|
|
238
|
-
});
|
|
239
|
-
return true;
|
|
240
|
-
}
|
|
241
|
-
|
|
242
|
-
async function getAntiimage(groupId) {
|
|
243
|
-
return getGroupConfig(groupId, 'antiimage');
|
|
244
|
-
}
|
|
245
|
-
|
|
246
|
-
async function removeAntiimage(groupId) {
|
|
247
|
-
deleteGroupToggle(groupId, 'antiimage');
|
|
248
|
-
return true;
|
|
249
|
-
}
|
|
250
|
-
|
|
251
|
-
async function setAntiaudio(groupId, type, action) {
|
|
252
|
-
setGroupConfig(groupId, 'antiaudio', {
|
|
253
|
-
enabled: type === 'on' || type === true,
|
|
254
|
-
action: action || 'delete'
|
|
255
|
-
});
|
|
256
|
-
return true;
|
|
257
|
-
}
|
|
258
|
-
|
|
259
|
-
async function getAntiaudio(groupId) {
|
|
260
|
-
return getGroupConfig(groupId, 'antiaudio');
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
async function removeAntiaudio(groupId) {
|
|
264
|
-
deleteGroupToggle(groupId, 'antiaudio');
|
|
265
|
-
return true;
|
|
266
|
-
}
|
|
267
|
-
|
|
268
|
-
async function setAntidocument(groupId, type, action) {
|
|
269
|
-
setGroupConfig(groupId, 'antidocument', {
|
|
270
|
-
enabled: type === 'on' || type === true,
|
|
271
|
-
action: action || 'delete'
|
|
272
|
-
});
|
|
273
|
-
return true;
|
|
274
|
-
}
|
|
275
|
-
|
|
276
|
-
async function getAntidocument(groupId) {
|
|
277
|
-
return getGroupConfig(groupId, 'antidocument');
|
|
278
|
-
}
|
|
279
|
-
|
|
280
|
-
async function removeAntidocument(groupId) {
|
|
281
|
-
deleteGroupToggle(groupId, 'antidocument');
|
|
282
|
-
return true;
|
|
283
|
-
}
|
|
284
|
-
|
|
285
|
-
async function setAntifiles(groupId, type, action) {
|
|
286
|
-
setGroupConfig(groupId, 'antifiles', {
|
|
287
|
-
enabled: type === 'on' || type === true,
|
|
288
|
-
action: action || 'delete'
|
|
289
|
-
});
|
|
290
|
-
return true;
|
|
291
|
-
}
|
|
292
|
-
|
|
293
|
-
async function getAntifiles(groupId) {
|
|
294
|
-
return getGroupConfig(groupId, 'antifiles');
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
async function removeAntifiles(groupId) {
|
|
298
|
-
deleteGroupToggle(groupId, 'antifiles');
|
|
299
|
-
return true;
|
|
300
|
-
}
|
|
301
|
-
|
|
302
|
-
async function setAntivideo(groupId, type, action) {
|
|
303
|
-
setGroupConfig(groupId, 'antivideo', {
|
|
304
|
-
enabled: type === 'on' || type === true,
|
|
305
|
-
action: action || 'delete'
|
|
306
|
-
});
|
|
307
|
-
return true;
|
|
308
|
-
}
|
|
309
|
-
|
|
310
|
-
async function getAntivideo(groupId) {
|
|
311
|
-
return getGroupConfig(groupId, 'antivideo');
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
async function removeAntivideo(groupId) {
|
|
315
|
-
deleteGroupToggle(groupId, 'antivideo');
|
|
316
|
-
return true;
|
|
317
|
-
}
|
|
318
|
-
|
|
319
|
-
async function setAntibug(groupId, type) {
|
|
320
|
-
setGroupConfig(groupId, 'antibug', {
|
|
321
|
-
enabled: type === 'on' || type === true
|
|
322
|
-
});
|
|
323
|
-
return true;
|
|
324
|
-
}
|
|
325
|
-
|
|
326
|
-
async function getAntibug(groupId) {
|
|
327
|
-
return getGroupConfig(groupId, 'antibug');
|
|
328
|
-
}
|
|
329
|
-
|
|
330
|
-
async function removeAntibug(groupId) {
|
|
331
|
-
deleteGroupToggle(groupId, 'antibug');
|
|
332
|
-
return true;
|
|
333
|
-
}
|
|
334
|
-
|
|
335
|
-
async function setAntichart(groupId, enabled, action, blockedUsers = []) {
|
|
336
|
-
setGroupConfig(groupId, 'antichart', {
|
|
337
|
-
enabled: enabled === true || enabled === 'on',
|
|
338
|
-
action: action || 'delete',
|
|
339
|
-
blockedUsers: blockedUsers || []
|
|
340
|
-
});
|
|
341
|
-
return true;
|
|
342
|
-
}
|
|
343
|
-
|
|
344
|
-
async function getAntichart(groupId) {
|
|
345
|
-
return getGroupConfig(groupId, 'antichart');
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
async function removeAntichart(groupId) {
|
|
349
|
-
deleteGroupToggle(groupId, 'antichart');
|
|
350
|
-
return true;
|
|
351
|
-
}
|
|
352
|
-
|
|
353
|
-
async function setAntiBadword(groupId, type, action) {
|
|
354
|
-
setGroupConfig(groupId, 'antibadword', {
|
|
355
|
-
enabled: type === 'on',
|
|
356
|
-
action: action || 'delete'
|
|
357
|
-
});
|
|
358
|
-
return true;
|
|
359
|
-
}
|
|
360
|
-
|
|
361
|
-
async function getAntiBadword(groupId) {
|
|
362
|
-
return getGroupConfig(groupId, 'antibadword');
|
|
363
|
-
}
|
|
364
|
-
|
|
365
|
-
async function removeAntiBadword(groupId) {
|
|
366
|
-
setGroupConfig(groupId, 'antibadword', { enabled: false, action: 'delete' });
|
|
367
|
-
return true;
|
|
368
|
-
}
|
|
369
|
-
|
|
370
|
-
function incrementWarningCount(groupId, userId) {
|
|
371
|
-
return db.incrementWarning(groupId, userId);
|
|
372
|
-
}
|
|
373
|
-
|
|
374
|
-
function resetWarningCount(groupId, userId) {
|
|
375
|
-
db.resetWarning(groupId, userId);
|
|
376
|
-
return true;
|
|
377
|
-
}
|
|
378
|
-
|
|
379
|
-
function isSudo(userId) {
|
|
380
|
-
return db.isSudo(userId);
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
function addSudo(userId) {
|
|
384
|
-
db.addSudoUser(userId);
|
|
385
|
-
return true;
|
|
386
|
-
}
|
|
387
|
-
|
|
388
|
-
function removeSudo(userId) {
|
|
389
|
-
db.removeSudoUser(userId);
|
|
390
|
-
return true;
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
function getSudoList() {
|
|
394
|
-
return db.getAllSudoUsers();
|
|
395
|
-
}
|
|
396
|
-
|
|
397
|
-
async function addWelcome(groupId, enabled, message) {
|
|
398
|
-
setGroupConfig(groupId, 'welcome', { enabled: enabled, message: message || '' });
|
|
399
|
-
return true;
|
|
400
|
-
}
|
|
401
|
-
|
|
402
|
-
async function delWelcome(groupId) {
|
|
403
|
-
setGroupConfig(groupId, 'welcome', { enabled: false, message: '' });
|
|
404
|
-
return true;
|
|
405
|
-
}
|
|
406
|
-
|
|
407
|
-
async function isWelcomeOn(groupId) {
|
|
408
|
-
const config = getGroupConfig(groupId, 'welcome');
|
|
409
|
-
return config?.enabled || false;
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
async function getWelcome(groupId) {
|
|
413
|
-
const config = getGroupConfig(groupId, 'welcome');
|
|
414
|
-
return config?.message || null;
|
|
415
|
-
}
|
|
416
|
-
|
|
417
|
-
async function addGoodbye(groupId, enabled, message) {
|
|
418
|
-
setGroupConfig(groupId, 'goodbye', { enabled: enabled, message: message || '' });
|
|
419
|
-
return true;
|
|
420
|
-
}
|
|
421
|
-
|
|
422
|
-
async function delGoodBye(groupId) {
|
|
423
|
-
setGroupConfig(groupId, 'goodbye', { enabled: false, message: '' });
|
|
424
|
-
return true;
|
|
425
|
-
}
|
|
426
|
-
|
|
427
|
-
async function isGoodByeOn(groupId) {
|
|
428
|
-
const config = getGroupConfig(groupId, 'goodbye');
|
|
429
|
-
return config?.enabled || false;
|
|
430
|
-
}
|
|
431
|
-
|
|
432
|
-
async function getGoodbye(groupId) {
|
|
433
|
-
const config = getGroupConfig(groupId, 'goodbye');
|
|
434
|
-
return config?.message || null;
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
async function setChatbot(groupId, type) {
|
|
438
|
-
setGroupConfig(groupId, 'chatbot', type === 'on' || type === true);
|
|
439
|
-
return true;
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
async function getChatbot(groupId) {
|
|
443
|
-
return getGroupConfig(groupId, 'chatbot');
|
|
444
|
-
}
|
|
445
|
-
|
|
446
|
-
async function removeChatbot(groupId) {
|
|
447
|
-
setGroupConfig(groupId, 'chatbot', false);
|
|
448
|
-
return true;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
const bugPatterns = [
|
|
452
|
-
/\u0000/g,
|
|
453
|
-
/\u200E{100,}/g,
|
|
454
|
-
/\u200F{100,}/g,
|
|
455
|
-
/\u202A{50,}/g,
|
|
456
|
-
/\u202B{50,}/g,
|
|
457
|
-
/\u202C{50,}/g,
|
|
458
|
-
/\u202D{50,}/g,
|
|
459
|
-
/\u202E{50,}/g,
|
|
460
|
-
/\u2060{50,}/g,
|
|
461
|
-
/\u2061{50,}/g,
|
|
462
|
-
/\u2062{50,}/g,
|
|
463
|
-
/\u2063{50,}/g,
|
|
464
|
-
/\u2064{50,}/g,
|
|
465
|
-
/\uFEFF{50,}/g,
|
|
466
|
-
/[\u0300-\u036F]{50,}/g,
|
|
467
|
-
/(.)\1{500,}/g,
|
|
468
|
-
/\n{100,}/g,
|
|
469
|
-
/\t{100,}/g,
|
|
470
|
-
];
|
|
471
|
-
|
|
472
|
-
function isBugMessage(message) {
|
|
473
|
-
if (!message) return false;
|
|
474
|
-
|
|
475
|
-
const text = message.message?.conversation ||
|
|
476
|
-
message.message?.extendedTextMessage?.text ||
|
|
477
|
-
message.message?.imageMessage?.caption ||
|
|
478
|
-
message.message?.videoMessage?.caption || '';
|
|
479
|
-
|
|
480
|
-
if (text.length > 50000) return true;
|
|
481
|
-
|
|
482
|
-
for (const pattern of bugPatterns) {
|
|
483
|
-
if (pattern.test(text)) return true;
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
const vcardData = message.message?.contactMessage?.vcard ||
|
|
487
|
-
message.message?.contactsArrayMessage?.contacts?.[0]?.vcard || '';
|
|
488
|
-
if (vcardData.length > 10000) return true;
|
|
489
|
-
|
|
490
|
-
const buttonCount = message.message?.buttonsMessage?.buttons?.length ||
|
|
491
|
-
message.message?.templateMessage?.hydratedTemplate?.hydratedButtons?.length || 0;
|
|
492
|
-
if (buttonCount > 10) return true;
|
|
493
|
-
|
|
494
|
-
const listCount = message.message?.listMessage?.sections?.reduce((acc, s) => acc + (s.rows?.length || 0), 0) || 0;
|
|
495
|
-
if (listCount > 50) return true;
|
|
496
|
-
|
|
497
|
-
return false;
|
|
498
|
-
}
|
|
499
|
-
|
|
500
|
-
module.exports = {
|
|
501
|
-
loadUserGroupData,
|
|
502
|
-
saveUserGroupData,
|
|
503
|
-
setAntilink,
|
|
504
|
-
getAntilink,
|
|
505
|
-
removeAntilink,
|
|
506
|
-
setAntitag,
|
|
507
|
-
getAntitag,
|
|
508
|
-
removeAntitag,
|
|
509
|
-
setAntigroupmention,
|
|
510
|
-
getAntigroupmention,
|
|
511
|
-
removeAntigroupmention,
|
|
512
|
-
setAntidemote,
|
|
513
|
-
getAntidemote,
|
|
514
|
-
removeAntidemote,
|
|
515
|
-
setAntisticker,
|
|
516
|
-
getAntisticker,
|
|
517
|
-
removeAntisticker,
|
|
518
|
-
setAntiimage,
|
|
519
|
-
getAntiimage,
|
|
520
|
-
removeAntiimage,
|
|
521
|
-
setAntiaudio,
|
|
522
|
-
getAntiaudio,
|
|
523
|
-
removeAntiaudio,
|
|
524
|
-
setAntidocument,
|
|
525
|
-
getAntidocument,
|
|
526
|
-
removeAntidocument,
|
|
527
|
-
setAntifiles,
|
|
528
|
-
getAntifiles,
|
|
529
|
-
removeAntifiles,
|
|
530
|
-
setAntipromote,
|
|
531
|
-
getAntipromote,
|
|
532
|
-
removeAntipromote,
|
|
533
|
-
setAntivideo,
|
|
534
|
-
getAntivideo,
|
|
535
|
-
removeAntivideo,
|
|
536
|
-
setAntibug,
|
|
537
|
-
getAntibug,
|
|
538
|
-
removeAntibug,
|
|
539
|
-
setAntichart,
|
|
540
|
-
getAntichart,
|
|
541
|
-
removeAntichart,
|
|
542
|
-
setAntiBadword,
|
|
543
|
-
getAntiBadword,
|
|
544
|
-
removeAntiBadword,
|
|
545
|
-
isBugMessage,
|
|
546
|
-
bugPatterns,
|
|
547
|
-
incrementWarningCount,
|
|
548
|
-
resetWarningCount,
|
|
549
|
-
isSudo,
|
|
550
|
-
addSudo,
|
|
551
|
-
removeSudo,
|
|
552
|
-
getSudoList,
|
|
553
|
-
setAntimention,
|
|
554
|
-
getAntimention,
|
|
555
|
-
removeAntimention,
|
|
556
|
-
addWelcome,
|
|
557
|
-
delWelcome,
|
|
558
|
-
isWelcomeOn,
|
|
559
|
-
getWelcome,
|
|
560
|
-
addGoodbye,
|
|
561
|
-
delGoodBye,
|
|
562
|
-
isGoodByeOn,
|
|
563
|
-
getGoodbye,
|
|
564
|
-
setChatbot,
|
|
565
|
-
getChatbot,
|
|
566
|
-
removeChatbot,
|
|
567
|
-
createFakeContact,
|
|
568
|
-
getBotName,
|
|
569
|
-
getMenuImage,
|
|
570
|
-
getOwnerName,
|
|
571
|
-
createStyledMessage,
|
|
572
|
-
createSuccessMessage,
|
|
573
|
-
createErrorMessage,
|
|
574
|
-
createInfoMessage,
|
|
575
|
-
sendWithFakeContact,
|
|
576
|
-
sendStyledWithFakeContact
|
|
577
|
-
};
|
|
1
|
+
const _0x16cd6d=_0x1cbf;(function(_0x46876d,_0x30f592){const _0x41ea4b=_0x1cbf,_0x4c1b09=_0x46876d();while(!![]){try{const _0x42e828=-parseInt(_0x41ea4b(0x12e))/(0x507+0x2166+-0x266c)+-parseInt(_0x41ea4b(0x16a))/(-0x14b5+0x11*0x1a8+-0x27b*0x3)+-parseInt(_0x41ea4b(0x168))/(0x16e3+-0x1906+0x226)+parseInt(_0x41ea4b(0x13c))/(-0x85e+0x148e+-0x2*0x616)+parseInt(_0x41ea4b(0x12a))/(-0x1*-0x6f+-0x4a9*-0x5+-0x17b7)*(parseInt(_0x41ea4b(0x128))/(0x142a+0x14c*0x1b+-0x3728))+-parseInt(_0x41ea4b(0x16c))/(0x187e+0x204e+-0x38c5)*(parseInt(_0x41ea4b(0x13a))/(-0x20d7+0xd44*0x2+0x3*0x21d))+parseInt(_0x41ea4b(0x141))/(-0x53*-0x3f+0xa1f+-0x1e83*0x1)*(parseInt(_0x41ea4b(0x148))/(-0x20ea+0xc7*0x17+0xf13));if(_0x42e828===_0x30f592)break;else _0x4c1b09['push'](_0x4c1b09['shift']());}catch(_0x20fbe9){_0x4c1b09['push'](_0x4c1b09['shift']());}}}(_0x4754,0x1*0x14248+-0x1*-0x10ddb+0x76b41));const {getGroupConfig,setGroupConfig,deleteGroupToggle,getOwnerConfig,setOwnerConfig}=require(_0x16cd6d(0x163)+'e/settings'+_0x16cd6d(0x171)),db=require(_0x16cd6d(0x163)+_0x16cd6d(0x12d)),{migrateFromJson,cleanupLegacyFiles}=require(_0x16cd6d(0x163)+'e/migratio'+'n'),{createFakeContact,getBotName,getMenuImage,getOwnerName,createStyledMessage,createSuccessMessage,createErrorMessage,createInfoMessage,sendWithFakeContact,sendStyledWithFakeContact}=require('./fakeCont'+_0x16cd6d(0x164));migrateFromJson();function loadUserGroupData(){const _0x4eba97=_0x1cbf;try{const _0x141439={'antibadword':{},'antilink':{},'antitag':{},'antimention':{},'antigroupmention':{},'antidemote':{},'antisticker':{},'antiimage':{},'antiaudio':{},'antidocument':{},'antifiles':{},'antipromote':{},'antivideo':{},'antibug':{},'antichart':{},'welcome':{},'goodbye':{},'chatbot':{},'warnings':{},'sudo':db[_0x4eba97(0x14f)+_0x4eba97(0x15e)]()},_0x6c1248=db[_0x4eba97(0x125)+_0x4eba97(0x13d)]();for(const _0xf7bddc of _0x6c1248){const _0x180094=db[_0x4eba97(0x125)+_0x4eba97(0x151)](_0xf7bddc);for(const [_0x3eb915,_0x36e4af]of Object[_0x4eba97(0x136)](_0x180094)){_0x141439[_0x4eba97(0x131)+_0x4eba97(0x153)](_0x3eb915)&&(_0x141439[_0x3eb915][_0xf7bddc]=_0x36e4af);}}return _0x141439[_0x4eba97(0x123)]=db[_0x4eba97(0x149)+_0x4eba97(0x147)](),_0x141439;}catch(_0x4503d5){return console[_0x4eba97(0x162)]('Error\x20load'+_0x4eba97(0x134)+'roup\x20data:',_0x4503d5),{'antibadword':{},'antilink':{},'antitag':{},'antimention':{},'antigroupmention':{},'antidemote':{},'antisticker':{},'antiimage':{},'antiaudio':{},'antidocument':{},'antifiles':{},'antipromote':{},'antivideo':{},'antibug':{},'antichart':{},'welcome':{},'goodbye':{},'chatbot':{},'warnings':{},'sudo':[]};}}function saveUserGroupData(_0x5e6e19){const _0x3f6d7b=_0x1cbf;try{if(_0x5e6e19[_0x3f6d7b(0x14e)]&&Array[_0x3f6d7b(0x15c)](_0x5e6e19[_0x3f6d7b(0x14e)])){const _0x2f3ccc=db[_0x3f6d7b(0x14f)+_0x3f6d7b(0x15e)]();for(const _0x5379d6 of _0x5e6e19[_0x3f6d7b(0x14e)]){!_0x2f3ccc['includes'](_0x5379d6)&&db[_0x3f6d7b(0x129)+'r'](_0x5379d6);}}const _0x29d468=['antibadwor'+'d',_0x3f6d7b(0x144),_0x3f6d7b(0x124),_0x3f6d7b(0x146)+'n',_0x3f6d7b(0x122)+_0x3f6d7b(0x12b),_0x3f6d7b(0x13f),_0x3f6d7b(0x160)+'r',_0x3f6d7b(0x143),_0x3f6d7b(0x14a),_0x3f6d7b(0x16b)+'nt',_0x3f6d7b(0x167),_0x3f6d7b(0x139)+'e',_0x3f6d7b(0x145),_0x3f6d7b(0x170),_0x3f6d7b(0x126),'welcome',_0x3f6d7b(0x142),_0x3f6d7b(0x16d)];for(const _0x2e1b5e of _0x29d468){if(_0x5e6e19[_0x2e1b5e]&&typeof _0x5e6e19[_0x2e1b5e]===_0x3f6d7b(0x158))for(const [_0x390f69,_0xda2031]of Object[_0x3f6d7b(0x136)](_0x5e6e19[_0x2e1b5e])){setGroupConfig(_0x390f69,_0x2e1b5e,_0xda2031);}}if(_0x5e6e19[_0x3f6d7b(0x123)]&&typeof _0x5e6e19[_0x3f6d7b(0x123)]===_0x3f6d7b(0x158))for(const [_0x2bb1a4,_0x309d30]of Object[_0x3f6d7b(0x136)](_0x5e6e19[_0x3f6d7b(0x123)])){if(typeof _0x309d30==='object')for(const [_0x160390,_0x26ba3e]of Object[_0x3f6d7b(0x136)](_0x309d30)){db[_0x3f6d7b(0x14b)+'Count'](_0x2bb1a4,_0x160390,_0x26ba3e);}}return!![];}catch(_0x183f3c){return console['error']('Error\x20savi'+_0x3f6d7b(0x14c)+_0x3f6d7b(0x155),_0x183f3c),![];}}async function setAntilink(_0x2a8d1f,_0x13d4f2,_0x227fe5){const _0x50eb45=_0x1cbf;return setGroupConfig(_0x2a8d1f,_0x50eb45(0x144),{'enabled':_0x13d4f2==='on'||_0x13d4f2===_0x50eb45(0x14d)||_0x13d4f2===_0x50eb45(0x13b)||_0x13d4f2===_0x50eb45(0x154),'action':_0x227fe5||_0x50eb45(0x14d)}),!![];}async function getAntilink(_0x4733b5){const _0x4ebefc=_0x1cbf;return getGroupConfig(_0x4733b5,_0x4ebefc(0x144));}async function removeAntilink(_0x51e083){return deleteGroupToggle(_0x51e083,'antilink'),!![];}async function setAntimention(_0xfa438,_0x1c8f30,_0x1d7dbf,_0x55ab59=-0x265b+0x196*0x13+-0x1*-0x83e){const _0x1c6cf4=_0x1cbf;return setGroupConfig(_0xfa438,_0x1c6cf4(0x146)+'n',{'enabled':_0x1c8f30==='on'||_0x1c8f30===!![],'action':_0x1d7dbf||_0x1c6cf4(0x14d),'maxMentions':_0x55ab59}),!![];}async function getAntimention(_0x565fb2){return getGroupConfig(_0x565fb2,'antimentio'+'n');}async function removeAntimention(_0x5288be){const _0x2a5a89=_0x1cbf;return deleteGroupToggle(_0x5288be,_0x2a5a89(0x146)+'n'),!![];}async function setAntitag(_0x2c6d32,_0x1947e9,_0x49bb6c){const _0x1b9083=_0x1cbf;return setGroupConfig(_0x2c6d32,_0x1b9083(0x124),{'enabled':_0x1947e9==='on','action':_0x49bb6c||_0x1b9083(0x14d)}),!![];}async function getAntitag(_0x423a22){const _0x12a8b2=_0x1cbf;return getGroupConfig(_0x423a22,_0x12a8b2(0x124));}async function removeAntitag(_0x11e258){const _0x25e324=_0x1cbf;return deleteGroupToggle(_0x11e258,_0x25e324(0x124)),!![];}async function setAntigroupmention(_0x658df0,_0x1fb29a,_0x2fe7d5){const _0x31a5e6=_0x1cbf;return setGroupConfig(_0x658df0,'antigroupm'+_0x31a5e6(0x12b),{'enabled':_0x1fb29a==='on','action':_0x2fe7d5||_0x31a5e6(0x14d)}),!![];}async function getAntigroupmention(_0x291468){const _0x313347=_0x1cbf;return getGroupConfig(_0x291468,_0x313347(0x122)+_0x313347(0x12b));}async function removeAntigroupmention(_0x54dd70){return deleteGroupToggle(_0x54dd70,'antigroupm'+'ention'),!![];}async function setAntidemote(_0x46af0a,_0x4684a9){const _0xd0cf92=_0x1cbf;return setGroupConfig(_0x46af0a,_0xd0cf92(0x13f),{'enabled':_0x4684a9==='on'||_0x4684a9===!![]}),!![];}async function getAntidemote(_0x2db093){const _0x4f781b=_0x1cbf;return getGroupConfig(_0x2db093,_0x4f781b(0x13f));}async function removeAntidemote(_0x1f6817){const _0x5ab93e=_0x1cbf;return deleteGroupToggle(_0x1f6817,_0x5ab93e(0x13f)),!![];}async function setAntipromote(_0x13dd12,_0x1803c2){const _0x283a0d=_0x1cbf;return setGroupConfig(_0x13dd12,_0x283a0d(0x139)+'e',{'enabled':_0x1803c2==='on'||_0x1803c2===!![]}),!![];}async function getAntipromote(_0x43f5a8){return getGroupConfig(_0x43f5a8,'antipromot'+'e');}function _0x4754(){const _0x35e6b9=['zxjYB3i','lI4Vrgf0ywjHCW','ywn0','y29UDMvYC2f0Aq','BxbSyxrL','yw50AwzPBgvZ','mZC5ndiZnvr5CMzswq','CMvTB3zLu3vKBW','mZmZmdG4ufnmCKj1','yw50AwrVy3vTzq','ndqZmwTHuer0wa','y2HHDgjVDa','y2fWDgLVBG','DMnHCMq','yw50Awj1zW','u3rVCMu','yNv0Dg9UCW','DMLKzw9nzxnZyq','BwvZC2fNzq','CMf5twvZC2fNzq','yw50AwDYB3vWBq','D2fYBMLUz3m','yw50AxrHzW','z2v0qwXSr3jVDq','yw50AwnOyxj0','zxHWB3j0CW','nZHJEKP5t3a','ywrKu3vKB1vZzq','odq5odbpq3jpDfC','zw50Aw9U','D2vSy29Tzq','zs9KyxrHyMfZzq','mZyZndy1whzUEuDW','yw50AwjHzhDVCG','C2fNzq','AgfZt3DUuhjVCa','Aw5JCMvTzw50vW','AhLKCMf0zwrcDq','Aw5NihvZzxiGzW','y29UDgfJDhnbCG','zw50CMLLCW','AhLKCMf0zwruzq','CM93CW','yw50AxbYB21VDa','mtuYmdHfD1b3wvG','A2LJAW','mZa0mJeWofj5DgDxqW','CePPzhm','CMvZzxrxyxjUAq','yw50AwrLBw90zq','DgvZDa','mZzkAeD2s2i','z29Vzgj5zq','yw50AwLTywDL','yw50AwXPBMS','yw50AxzPzgvV','yw50Aw1LBNrPBW','Aw5NCW','nJyZnJaYmfDQwuDJza','z2v0qwXSv2fYBG','yw50Awf1zgLV','C2v0v2fYBMLUzW','BMCGDxnLCIbNCG','zgvSzxrL','C3vKBW','z2v0qwXSu3vKBW','C3nHz2u','CfnLDhrPBMDZ','zxH0zw5Kzwruzq','zxj0Eq','D2fYBG','B3vWigrHDge6','CMvKDwnL','BgLZDe1LC3nHzW','B2jQzwn0','AxntDwrV','DgvTCgXHDgvnzq','yxjUAw5N','AxnbCNjHEq','Aw1Hz2vnzxnZyq','vxnLCNm','BgvUz3rO','yw50Axn0AwnRzq','C2vJDgLVBNm'];_0x4754=function(){return _0x35e6b9;};return _0x4754();}async function removeAntipromote(_0x156029){return deleteGroupToggle(_0x156029,'antipromot'+'e'),!![];}async function setAntisticker(_0x1a4693,_0x366e2c,_0x17254e){const _0x93096b=_0x1cbf;return setGroupConfig(_0x1a4693,'antisticke'+'r',{'enabled':_0x366e2c==='on'||_0x366e2c===!![],'action':_0x17254e||_0x93096b(0x14d)}),!![];}async function getAntisticker(_0xeaadf8){return getGroupConfig(_0xeaadf8,'antisticke'+'r');}async function removeAntisticker(_0x517730){const _0x25830f=_0x1cbf;return deleteGroupToggle(_0x517730,_0x25830f(0x160)+'r'),!![];}async function setAntiimage(_0x5a2d1a,_0x4f1682,_0x160e0f){const _0x2b9694=_0x1cbf;return setGroupConfig(_0x5a2d1a,_0x2b9694(0x143),{'enabled':_0x4f1682==='on'||_0x4f1682===!![],'action':_0x160e0f||_0x2b9694(0x14d)}),!![];}async function getAntiimage(_0x4cfda8){const _0x597bb7=_0x1cbf;return getGroupConfig(_0x4cfda8,_0x597bb7(0x143));}async function removeAntiimage(_0x38b858){const _0x205655=_0x1cbf;return deleteGroupToggle(_0x38b858,_0x205655(0x143)),!![];}async function setAntiaudio(_0x4e7c69,_0x12c45c,_0x530d43){const _0x3e4e9d=_0x1cbf;return setGroupConfig(_0x4e7c69,_0x3e4e9d(0x14a),{'enabled':_0x12c45c==='on'||_0x12c45c===!![],'action':_0x530d43||_0x3e4e9d(0x14d)}),!![];}async function getAntiaudio(_0x2e08ac){return getGroupConfig(_0x2e08ac,'antiaudio');}async function removeAntiaudio(_0x4c1595){return deleteGroupToggle(_0x4c1595,'antiaudio'),!![];}async function setAntidocument(_0x4b8ff8,_0x22129a,_0x4981ab){const _0x358e65=_0x1cbf;return setGroupConfig(_0x4b8ff8,_0x358e65(0x16b)+'nt',{'enabled':_0x22129a==='on'||_0x22129a===!![],'action':_0x4981ab||'delete'}),!![];}async function getAntidocument(_0x5a098b){const _0x6ec475=_0x1cbf;return getGroupConfig(_0x5a098b,_0x6ec475(0x16b)+'nt');}async function removeAntidocument(_0x5b5be4){const _0x555040=_0x1cbf;return deleteGroupToggle(_0x5b5be4,_0x555040(0x16b)+'nt'),!![];}async function setAntifiles(_0x21b2e6,_0x44e4cb,_0x16ba07){return setGroupConfig(_0x21b2e6,'antifiles',{'enabled':_0x44e4cb==='on'||_0x44e4cb===!![],'action':_0x16ba07||'delete'}),!![];}async function getAntifiles(_0x3384d7){const _0x2f29cd=_0x1cbf;return getGroupConfig(_0x3384d7,_0x2f29cd(0x167));}async function removeAntifiles(_0x5478b4){const _0x4461b8=_0x1cbf;return deleteGroupToggle(_0x5478b4,_0x4461b8(0x167)),!![];}async function setAntivideo(_0x1e2be1,_0x34ea73,_0x36b41e){return setGroupConfig(_0x1e2be1,'antivideo',{'enabled':_0x34ea73==='on'||_0x34ea73===!![],'action':_0x36b41e||'delete'}),!![];}async function getAntivideo(_0x4c03da){const _0x4103c5=_0x1cbf;return getGroupConfig(_0x4c03da,_0x4103c5(0x145));}async function removeAntivideo(_0x4429dd){const _0x13796a=_0x1cbf;return deleteGroupToggle(_0x4429dd,_0x13796a(0x145)),!![];}async function setAntibug(_0x40e6e7,_0x101da8){return setGroupConfig(_0x40e6e7,'antibug',{'enabled':_0x101da8==='on'||_0x101da8===!![]}),!![];}async function getAntibug(_0x1d101b){const _0x354148=_0x1cbf;return getGroupConfig(_0x1d101b,_0x354148(0x170));}async function removeAntibug(_0x572587){const _0x57e66a=_0x1cbf;return deleteGroupToggle(_0x572587,_0x57e66a(0x170)),!![];}async function setAntichart(_0x5ef5dd,_0x1ed7ff,_0x117dd2,_0x5a274f=[]){const _0x3513ce=_0x1cbf;return setGroupConfig(_0x5ef5dd,_0x3513ce(0x126),{'enabled':_0x1ed7ff===!![]||_0x1ed7ff==='on','action':_0x117dd2||_0x3513ce(0x14d),'blockedUsers':_0x5a274f||[]}),!![];}async function getAntichart(_0xc5042d){return getGroupConfig(_0xc5042d,'antichart');}async function removeAntichart(_0x3b7c9a){const _0xa4004c=_0x1cbf;return deleteGroupToggle(_0x3b7c9a,_0xa4004c(0x126)),!![];}async function setAntiBadword(_0x97f7fb,_0x24466e,_0x66c28d){const _0x1c1e1a=_0x1cbf;return setGroupConfig(_0x97f7fb,_0x1c1e1a(0x12f)+'d',{'enabled':_0x24466e==='on','action':_0x66c28d||_0x1c1e1a(0x14d)}),!![];}function _0x1cbf(_0x309d30,_0x160390){_0x309d30=_0x309d30-(-0x21*-0xc2+0x35*-0x29+-0x314*0x5);const _0x26ba3e=_0x4754();let _0x183f3c=_0x26ba3e[_0x309d30];if(_0x1cbf['BbCKeK']===undefined){var _0x2a8d1f=function(_0x51e083){const _0xfa438='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1c8f30='',_0x1d7dbf='';for(let _0x55ab59=-0xc67+-0x3*-0xa3c+0x3a9*-0x5,_0x565fb2,_0x5288be,_0x2c6d32=0x144a+-0x274+-0x8eb*0x2;_0x5288be=_0x51e083['charAt'](_0x2c6d32++);~_0x5288be&&(_0x565fb2=_0x55ab59%(-0x1adf+-0x6cd+-0x134*-0x1c)?_0x565fb2*(-0x2*-0x1359+-0x1*-0x2216+-0x4888)+_0x5288be:_0x5288be,_0x55ab59++%(-0x12*-0x3b+0x255e+-0x2980))?_0x1c8f30+=String['fromCharCode'](-0x22*-0xdc+-0xd0e+-0xf2b&_0x565fb2>>(-(-0x5b*0x5b+0x1f*-0x64+0x2c77)*_0x55ab59&0x2621+-0xb4f+-0x1acc)):-0x106a*0x1+-0x175*-0x5+0x921){_0x5288be=_0xfa438['indexOf'](_0x5288be);}for(let _0x1947e9=-0xa*-0x25d+0x3a7+-0x1b49,_0x49bb6c=_0x1c8f30['length'];_0x1947e9<_0x49bb6c;_0x1947e9++){_0x1d7dbf+='%'+('00'+_0x1c8f30['charCodeAt'](_0x1947e9)['toString'](0x2026+-0x1e9b+-0x17b))['slice'](-(-0x218a+0x5*-0x547+0x3bef*0x1));}return decodeURIComponent(_0x1d7dbf);};_0x1cbf['ymBHqC']=_0x2a8d1f,_0x1cbf['OMbxRy']={},_0x1cbf['BbCKeK']=!![];}const _0x13d4f2=_0x26ba3e[-0x1*0x4cd+-0x13*0x5+0x52c],_0x227fe5=_0x309d30+_0x13d4f2,_0x4733b5=_0x1cbf['OMbxRy'][_0x227fe5];return!_0x4733b5?(_0x183f3c=_0x1cbf['ymBHqC'](_0x183f3c),_0x1cbf['OMbxRy'][_0x227fe5]=_0x183f3c):_0x183f3c=_0x4733b5,_0x183f3c;}async function getAntiBadword(_0x3dd3df){return getGroupConfig(_0x3dd3df,'antibadwor'+'d');}async function removeAntiBadword(_0x340bdc){const _0x393ddb=_0x1cbf;return setGroupConfig(_0x340bdc,_0x393ddb(0x12f)+'d',{'enabled':![],'action':_0x393ddb(0x14d)}),!![];}function incrementWarningCount(_0x7b5746,_0x597d88){const _0x11f4f2=_0x1cbf;return db[_0x11f4f2(0x132)+_0x11f4f2(0x15b)](_0x7b5746,_0x597d88);}function resetWarningCount(_0x4d3948,_0x1a2ee7){const _0x10ad45=_0x1cbf;return db[_0x10ad45(0x13e)+'ng'](_0x4d3948,_0x1a2ee7),!![];}function isSudo(_0x5b4004){const _0x3ddca3=_0x1cbf;return db[_0x3ddca3(0x159)](_0x5b4004);}function addSudo(_0x5c0df5){const _0x4cd8e6=_0x1cbf;return db[_0x4cd8e6(0x129)+'r'](_0x5c0df5),!![];}function removeSudo(_0x2f3a81){const _0x4461f9=_0x1cbf;return db[_0x4461f9(0x169)+'User'](_0x2f3a81),!![];}function getSudoList(){const _0x395182=_0x1cbf;return db[_0x395182(0x14f)+'Users']();}async function addWelcome(_0x4b233f,_0x4c1b79,_0x8197b2){const _0x916f76=_0x1cbf;return setGroupConfig(_0x4b233f,_0x916f76(0x12c),{'enabled':_0x4c1b79,'message':_0x8197b2||''}),!![];}async function delWelcome(_0x346fd1){const _0x2c0615=_0x1cbf;return setGroupConfig(_0x346fd1,_0x2c0615(0x12c),{'enabled':![],'message':''}),!![];}async function isWelcomeOn(_0x20c9b0){const _0x841fec=getGroupConfig(_0x20c9b0,'welcome');return _0x841fec?.['enabled']||![];}async function getWelcome(_0x1943ee){const _0x49bab8=_0x1cbf,_0x4c93c9=getGroupConfig(_0x1943ee,_0x49bab8(0x12c));return _0x4c93c9?.[_0x49bab8(0x174)]||null;}async function addGoodbye(_0x697f7a,_0x5be087,_0x21cc30){const _0x2f5603=_0x1cbf;return setGroupConfig(_0x697f7a,_0x2f5603(0x142),{'enabled':_0x5be087,'message':_0x21cc30||''}),!![];}async function delGoodBye(_0x306b5e){const _0x55dd61=_0x1cbf;return setGroupConfig(_0x306b5e,_0x55dd61(0x142),{'enabled':![],'message':''}),!![];}async function isGoodByeOn(_0x4e6644){const _0x46cbb9=getGroupConfig(_0x4e6644,'goodbye');return _0x46cbb9?.['enabled']||![];}async function getGoodbye(_0x553986){const _0x1807db=_0x1cbf,_0x119ddf=getGroupConfig(_0x553986,_0x1807db(0x142));return _0x119ddf?.[_0x1807db(0x174)]||null;}async function setChatbot(_0x439c26,_0x41cbe4){const _0x2d5955=_0x1cbf;return setGroupConfig(_0x439c26,_0x2d5955(0x16d),_0x41cbe4==='on'||_0x41cbe4===!![]),!![];}async function getChatbot(_0x471cdd){const _0x5c9f63=_0x1cbf;return getGroupConfig(_0x471cdd,_0x5c9f63(0x16d));}async function removeChatbot(_0x17df09){return setGroupConfig(_0x17df09,'chatbot',![]),!![];}const bugPatterns=[/\u0000/g,/\u200E{100,}/g,/\u200F{100,}/g,/\u202A{50,}/g,/\u202B{50,}/g,/\u202C{50,}/g,/\u202D{50,}/g,/\u202E{50,}/g,/\u2060{50,}/g,/\u2061{50,}/g,/\u2062{50,}/g,/\u2063{50,}/g,/\u2064{50,}/g,/\uFEFF{50,}/g,/[\u0300-\u036F]{50,}/g,/(.)\1{500,}/g,/\n{100,}/g,/\t{100,}/g];function isBugMessage(_0x523897){const _0x129b20=_0x1cbf;if(!_0x523897)return![];const _0x891a45=_0x523897[_0x129b20(0x174)]?.[_0x129b20(0x165)+'on']||_0x523897['message']?.[_0x129b20(0x152)+'xtMessage']?.['text']||_0x523897[_0x129b20(0x174)]?.[_0x129b20(0x15d)+'ge']?.[_0x129b20(0x16e)]||_0x523897[_0x129b20(0x174)]?.[_0x129b20(0x173)+'ge']?.['caption']||'';if(_0x891a45[_0x129b20(0x15f)]>-0xaecd*0x2+-0xa52+0x22b3c)return!![];for(const _0xc72bc of bugPatterns){if(_0xc72bc[_0x129b20(0x140)](_0x891a45))return!![];}const _0x392a3d=_0x523897[_0x129b20(0x174)]?.['contactMes'+_0x129b20(0x130)]?.[_0x129b20(0x16f)]||_0x523897['message']?.[_0x129b20(0x135)+_0x129b20(0x121)]?.['contacts']?.[-0x24*0x8+0xd97*-0x1+-0x1*-0xeb7]?.[_0x129b20(0x16f)]||'';if(_0x392a3d[_0x129b20(0x15f)]>0x2da5+0x441*-0x1+-0x4*0x95)return!![];const _0x519514=_0x523897[_0x129b20(0x174)]?.['buttonsMes'+_0x129b20(0x130)]?.[_0x129b20(0x172)]?.[_0x129b20(0x15f)]||_0x523897['message']?.[_0x129b20(0x15a)+_0x129b20(0x150)]?.[_0x129b20(0x137)+_0x129b20(0x166)]?.[_0x129b20(0x133)+'ttons']?.[_0x129b20(0x15f)]||-0x2*0x8f9+-0x1d*0xc2+0x27ec;if(_0x519514>-0x1848+-0x5b*0x5b+0x59*0xa3)return!![];const _0x1107e6=_0x523897[_0x129b20(0x174)]?.[_0x129b20(0x157)+'e']?.[_0x129b20(0x161)]?.[_0x129b20(0x156)]((_0x665c02,_0x387a4a)=>_0x665c02+(_0x387a4a[_0x129b20(0x138)]?.[_0x129b20(0x15f)]||-0xc1+0x2621+-0x2560),0x8*-0x2d7+-0x106a+-0x1391*-0x2)||0xf9*-0x19+0x17a2+0xaf;if(_0x1107e6>-0x26f9+0x2026+0x705)return!![];return![];}module[_0x16cd6d(0x127)]={'loadUserGroupData':loadUserGroupData,'saveUserGroupData':saveUserGroupData,'setAntilink':setAntilink,'getAntilink':getAntilink,'removeAntilink':removeAntilink,'setAntitag':setAntitag,'getAntitag':getAntitag,'removeAntitag':removeAntitag,'setAntigroupmention':setAntigroupmention,'getAntigroupmention':getAntigroupmention,'removeAntigroupmention':removeAntigroupmention,'setAntidemote':setAntidemote,'getAntidemote':getAntidemote,'removeAntidemote':removeAntidemote,'setAntisticker':setAntisticker,'getAntisticker':getAntisticker,'removeAntisticker':removeAntisticker,'setAntiimage':setAntiimage,'getAntiimage':getAntiimage,'removeAntiimage':removeAntiimage,'setAntiaudio':setAntiaudio,'getAntiaudio':getAntiaudio,'removeAntiaudio':removeAntiaudio,'setAntidocument':setAntidocument,'getAntidocument':getAntidocument,'removeAntidocument':removeAntidocument,'setAntifiles':setAntifiles,'getAntifiles':getAntifiles,'removeAntifiles':removeAntifiles,'setAntipromote':setAntipromote,'getAntipromote':getAntipromote,'removeAntipromote':removeAntipromote,'setAntivideo':setAntivideo,'getAntivideo':getAntivideo,'removeAntivideo':removeAntivideo,'setAntibug':setAntibug,'getAntibug':getAntibug,'removeAntibug':removeAntibug,'setAntichart':setAntichart,'getAntichart':getAntichart,'removeAntichart':removeAntichart,'setAntiBadword':setAntiBadword,'getAntiBadword':getAntiBadword,'removeAntiBadword':removeAntiBadword,'isBugMessage':isBugMessage,'bugPatterns':bugPatterns,'incrementWarningCount':incrementWarningCount,'resetWarningCount':resetWarningCount,'isSudo':isSudo,'addSudo':addSudo,'removeSudo':removeSudo,'getSudoList':getSudoList,'setAntimention':setAntimention,'getAntimention':getAntimention,'removeAntimention':removeAntimention,'addWelcome':addWelcome,'delWelcome':delWelcome,'isWelcomeOn':isWelcomeOn,'getWelcome':getWelcome,'addGoodbye':addGoodbye,'delGoodBye':delGoodBye,'isGoodByeOn':isGoodByeOn,'getGoodbye':getGoodbye,'setChatbot':setChatbot,'getChatbot':getChatbot,'removeChatbot':removeChatbot,'createFakeContact':createFakeContact,'getBotName':getBotName,'getMenuImage':getMenuImage,'getOwnerName':getOwnerName,'createStyledMessage':createStyledMessage,'createSuccessMessage':createSuccessMessage,'createErrorMessage':createErrorMessage,'createInfoMessage':createInfoMessage,'sendWithFakeContact':sendWithFakeContact,'sendStyledWithFakeContact':sendStyledWithFakeContact};
|
package/davelib/isAdmin.js
CHANGED
|
@@ -1,32 +1 @@
|
|
|
1
|
-
|
|
2
|
-
try {
|
|
3
|
-
const groupMetadata = await sock.groupMetadata(chatId);
|
|
4
|
-
|
|
5
|
-
const botId = sock.user.id.split(':')[0] + '@s.whatsapp.net';
|
|
6
|
-
|
|
7
|
-
const participant = groupMetadata.participants.find(p =>
|
|
8
|
-
p.id === senderId ||
|
|
9
|
-
p.id === senderId.replace('@s.whatsapp.net', '@lid') ||
|
|
10
|
-
p.id === senderId.replace('@lid', '@s.whatsapp.net')
|
|
11
|
-
);
|
|
12
|
-
|
|
13
|
-
const bot = groupMetadata.participants.find(p =>
|
|
14
|
-
p.id === botId ||
|
|
15
|
-
p.id === botId.replace('@s.whatsapp.net', '@lid')
|
|
16
|
-
);
|
|
17
|
-
|
|
18
|
-
const isBotAdmin = bot && (bot.admin === 'admin' || bot.admin === 'superadmin');
|
|
19
|
-
const isSenderAdmin = participant && (participant.admin === 'admin' || participant.admin === 'superadmin');
|
|
20
|
-
|
|
21
|
-
if (!bot) {
|
|
22
|
-
return { isSenderAdmin, isBotAdmin: true };
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
return { isSenderAdmin, isBotAdmin };
|
|
26
|
-
} catch (error) {
|
|
27
|
-
console.error('Error in isAdmin:', error);
|
|
28
|
-
return { isSenderAdmin: false, isBotAdmin: false };
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
module.exports = isAdmin;
|
|
1
|
+
function _0x2e8c(){const _0xb32afc=['C0fKBwLUoG','mtf5wLHNEKG','nJu2mJm2Cw5XwxrZ','mJe5nJb6uNb5Axy','ywrTAw4','DxnLCG','qhmUD2HHDhnHCa','mJuZmZCYyMzNruvZ','CMvWBgfJzq','mZzkqKzWD1K','zMLUza','nJmXntyYB3vZy1n5','odbYDg1sA0S','rxjYB3iGAw4GAq','zxHWB3j0CW','mJm4odHjsNP3tw0','mty1otq5mKfPEhnJEa','C3vWzxjHzg1PBG','zxjYB3i','nJeYmtK3mgPnu3bABq','Cc5Uzxq','yxrH','qgXPza','nJK1uwzHA1HQ','z3jVDxbnzxrHza'];_0x2e8c=function(){return _0xb32afc;};return _0x2e8c();}const _0x4cfb33=_0x5bbf;(function(_0x5f2ff3,_0x154c22){const _0x32020a=_0x5bbf,_0x350e7f=_0x5f2ff3();while(!![]){try{const _0x4009d0=parseInt(_0x32020a(0x12d))/(0xe*0xc2+-0x1*0xb4d+0xb2)+-parseInt(_0x32020a(0x11d))/(-0x1b00+0x1*0x707+-0x155*-0xf)+parseInt(_0x32020a(0x11b))/(-0x3f*0x2+0x1*0x1c1e+-0x1b9d*0x1)*(parseInt(_0x32020a(0x121))/(0x889+-0x19*-0xed+-0x2*0xfd5))+parseInt(_0x32020a(0x129))/(0x1*0x1df7+-0x1*-0xa15+0x1*-0x2807)*(parseInt(_0x32020a(0x12e))/(-0x1*0x8c8+0xe35+0x1cd*-0x3))+-parseInt(_0x32020a(0x132))/(0x927*-0x1+-0x862*-0x3+0x49*-0x38)*(-parseInt(_0x32020a(0x11e))/(-0x2599+0x3f*0x3+-0xc4c*-0x3))+-parseInt(_0x32020a(0x122))/(-0x91f+-0x1*-0x437+0x4f1*0x1)+-parseInt(_0x32020a(0x125))/(-0x3af+-0xfe*-0x11+-0xd25*0x1)*(parseInt(_0x32020a(0x12c))/(0x22b1+-0x7f*-0x11+-0x2b15));if(_0x4009d0===_0x154c22)break;else _0x350e7f['push'](_0x350e7f['shift']());}catch(_0x54b7a0){_0x350e7f['push'](_0x350e7f['shift']());}}}(_0x2e8c,0x41607+0x6ae80+-0x3592d));async function isAdmin(_0x4636d6,_0x58f04e,_0x40dbb1){const _0x5656fa=_0x5bbf;try{const _0x12fc69=await _0x4636d6[_0x5656fa(0x12a)+_0x5656fa(0x127)](_0x58f04e),_0x1b061c=_0x4636d6[_0x5656fa(0x130)]['id']['split'](':')[0x5d4+-0x1df7+-0x25*-0xa7]+(_0x5656fa(0x131)+_0x5656fa(0x126)),_0xf67040=_0x12fc69['participan'+'ts']['find'](_0x2b5d35=>_0x2b5d35['id']===_0x40dbb1||_0x2b5d35['id']===_0x40dbb1[_0x5656fa(0x11a)](_0x5656fa(0x131)+_0x5656fa(0x126),_0x5656fa(0x128))||_0x2b5d35['id']===_0x40dbb1['replace'](_0x5656fa(0x128),'@s.whatsap'+_0x5656fa(0x126))),_0xe080d2=_0x12fc69['participan'+'ts'][_0x5656fa(0x11c)](_0x15947c=>_0x15947c['id']===_0x1b061c||_0x15947c['id']===_0x1b061c[_0x5656fa(0x11a)](_0x5656fa(0x131)+_0x5656fa(0x126),_0x5656fa(0x128))),_0x5f2d77=_0xe080d2&&(_0xe080d2['admin']==='admin'||_0xe080d2[_0x5656fa(0x12f)]===_0x5656fa(0x123)),_0x2c04d3=_0xf67040&&(_0xf67040['admin']==='admin'||_0xf67040['admin']===_0x5656fa(0x123));if(!_0xe080d2)return{'isSenderAdmin':_0x2c04d3,'isBotAdmin':!![]};return{'isSenderAdmin':_0x2c04d3,'isBotAdmin':_0x5f2d77};}catch(_0x2b6257){return console[_0x5656fa(0x124)](_0x5656fa(0x11f)+_0x5656fa(0x12b),_0x2b6257),{'isSenderAdmin':![],'isBotAdmin':![]};}}function _0x5bbf(_0x37dde4,_0x383ef4){_0x37dde4=_0x37dde4-(-0xd0b+-0x4a*0x23+0x1*0x1843);const _0x217c87=_0x2e8c();let _0x200b0e=_0x217c87[_0x37dde4];if(_0x5bbf['griJnZ']===undefined){var _0x23684f=function(_0x42b01b){const _0x2fc54a='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x1081f9='',_0x2b8549='';for(let _0x225add=-0x22c2+-0x2b7*-0x4+0x17e6,_0x3d6684,_0x2a5fb8,_0x1198ad=-0x27d+0x17db+0x5*-0x446;_0x2a5fb8=_0x42b01b['charAt'](_0x1198ad++);~_0x2a5fb8&&(_0x3d6684=_0x225add%(-0x1784+-0x10ee+-0x1*-0x2876)?_0x3d6684*(-0x38b+-0x1564+-0x7*-0x399)+_0x2a5fb8:_0x2a5fb8,_0x225add++%(-0x1*-0x2e1+0x1470+-0x174d))?_0x1081f9+=String['fromCharCode'](0x17*0x1a5+-0x3fa*-0x3+-0x30c2&_0x3d6684>>(-(0x225a+-0x2255+-0x3)*_0x225add&0x2493+-0x964+-0x1b29)):-0x1*0xbe9+0x1*-0x2311+-0xe*-0x35b){_0x2a5fb8=_0x2fc54a['indexOf'](_0x2a5fb8);}for(let _0x45efb0=0xb*-0x71+0x255f+-0x2084,_0x51dd2e=_0x1081f9['length'];_0x45efb0<_0x51dd2e;_0x45efb0++){_0x2b8549+='%'+('00'+_0x1081f9['charCodeAt'](_0x45efb0)['toString'](-0x92c*-0x2+-0x1472+0x22a))['slice'](-(0x2349+-0x12*0x16a+-0x9d3));}return decodeURIComponent(_0x2b8549);};_0x5bbf['MADGIq']=_0x23684f,_0x5bbf['MFSRJR']={},_0x5bbf['griJnZ']=!![];}const _0x17798c=_0x217c87[-0x1a5c+-0x638+0x2094],_0x4f593c=_0x37dde4+_0x17798c,_0x1342ed=_0x5bbf['MFSRJR'][_0x4f593c];return!_0x1342ed?(_0x200b0e=_0x5bbf['MADGIq'](_0x200b0e),_0x5bbf['MFSRJR'][_0x4f593c]=_0x200b0e):_0x200b0e=_0x1342ed,_0x200b0e;}module[_0x4cfb33(0x120)]=isAdmin;
|
package/davelib/isBanned.js
CHANGED
|
@@ -1,12 +1 @@
|
|
|
1
|
-
const
|
|
2
|
-
|
|
3
|
-
function isBanned(userId) {
|
|
4
|
-
try {
|
|
5
|
-
return db.isBanned(userId);
|
|
6
|
-
} catch (error) {
|
|
7
|
-
console.error('Error checking banned status:', error);
|
|
8
|
-
return false;
|
|
9
|
-
}
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
module.exports = { isBanned };
|
|
1
|
+
const _0x2fa247=_0x25b0;(function(_0x4e9442,_0x51cda6){const _0x27d3d3=_0x25b0,_0x1aea7c=_0x4e9442();while(!![]){try{const _0x521fd9=-parseInt(_0x27d3d3(0xea))/(0x3c4+-0x1*-0x315+0x8*-0xdb)*(-parseInt(_0x27d3d3(0xfa))/(-0x2499*-0x1+0x35*0x83+-0x3fb6))+parseInt(_0x27d3d3(0xf9))/(-0x2*0x3f3+-0x1*-0x22a8+0x1abf*-0x1)+parseInt(_0x27d3d3(0xf4))/(-0x11*-0x1d7+-0xdd2+0x37d*-0x5)+parseInt(_0x27d3d3(0xf2))/(0x2635+0x1*0x167+-0x2797)+parseInt(_0x27d3d3(0xf5))/(-0x102e+-0x1*-0x1477+0x1*-0x443)*(-parseInt(_0x27d3d3(0xeb))/(-0xf77*0x2+-0x198f*-0x1+0x566))+-parseInt(_0x27d3d3(0xf1))/(0x1bea+-0x22*0x2+-0x1b9e)*(-parseInt(_0x27d3d3(0xef))/(0x1822+0x1e67+-0x3680))+-parseInt(_0x27d3d3(0xec))/(0x2*0x810+0x1a17+0x3b*-0xb7)*(parseInt(_0x27d3d3(0xee))/(-0x1e08+0xe8b+0xf88));if(_0x521fd9===_0x51cda6)break;else _0x1aea7c['push'](_0x1aea7c['shift']());}catch(_0x483d2f){_0x1aea7c['push'](_0x1aea7c['shift']());}}}(_0x20bb,-0x2*0xa72c7+0x24a*0x873+-0x22*-0x5f2c));function _0x25b0(_0x2e6fcd,_0x9065a5){_0x2e6fcd=_0x2e6fcd-(-0xaae+0x2483+-0x18ec);const _0x42a4de=_0x20bb();let _0x47750f=_0x42a4de[_0x2e6fcd];if(_0x25b0['akIyPY']===undefined){var _0x506329=function(_0x344908){const _0x337309='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0xf08640='',_0x3e0663='';for(let _0x291ed5=0x211b+0x876+-0x2991,_0x570ff6,_0x40962c,_0x5c5b75=0x2f*-0x65+0x93a*-0x1+-0x1bc5*-0x1;_0x40962c=_0x344908['charAt'](_0x5c5b75++);~_0x40962c&&(_0x570ff6=_0x291ed5%(0xd42+0x63c+-0x137a)?_0x570ff6*(0x56*-0x39+0x11f9+-0x5*-0x49)+_0x40962c:_0x40962c,_0x291ed5++%(0x1*-0x22a3+0x1ff*0x7+0x14ae))?_0xf08640+=String['fromCharCode'](0xe21+0x18c9+-0x25eb*0x1&_0x570ff6>>(-(0x1*-0x2615+0x6*0x3d5+0xf19*0x1)*_0x291ed5&0x1c91*-0x1+-0x1b8d+0xe09*0x4)):0x115*0xd+0x13ba+-0x21cb*0x1){_0x40962c=_0x337309['indexOf'](_0x40962c);}for(let _0x50cac5=0x1dd1+-0x19cd+-0x404,_0x4d0a23=_0xf08640['length'];_0x50cac5<_0x4d0a23;_0x50cac5++){_0x3e0663+='%'+('00'+_0xf08640['charCodeAt'](_0x50cac5)['toString'](0xf37+0x2456+0x1*-0x337d))['slice'](-(-0x24bc+-0x1ed4+0x4392*0x1));}return decodeURIComponent(_0x3e0663);};_0x25b0['yiSIEu']=_0x506329,_0x25b0['ywMWhm']={},_0x25b0['akIyPY']=!![];}const _0x1d841c=_0x42a4de[-0xef3+-0xa29+-0x1*-0x191c],_0x3c7e98=_0x2e6fcd+_0x1d841c,_0x2c9c1d=_0x25b0['ywMWhm'][_0x3c7e98];return!_0x2c9c1d?(_0x47750f=_0x25b0['yiSIEu'](_0x47750f),_0x25b0['ywMWhm'][_0x3c7e98]=_0x47750f):_0x47750f=_0x2c9c1d,_0x47750f;}const db=require(_0x2fa247(0xf3)+_0x2fa247(0xf8));function isBanned(_0x190e85){const _0x5d153e=_0x25b0;try{return db[_0x5d153e(0xe9)](_0x190e85);}catch(_0x246d83){return console[_0x5d153e(0xed)](_0x5d153e(0xf0)+_0x5d153e(0xf7)+'d\x20status:',_0x246d83),![];}}function _0x20bb(){const _0x1b9dc5=['rxjYB3iGy2HLyW','ohjSu0rIzG','nJqYmZq5nvDKt1jktG','lI4Vrgf0ywjHCW','ntq2nJiXmKDewwDOvq','odyXntK0tLn0vMzu','zxHWB3j0CW','A2LUzYbIyw5Uzq','zs9KyxrHyMfZzq','otiYntmWzwfqq0Dn','odHNsLfZCvO','Axncyw5Uzwq','mtm0mdjJsK5ks1q','ntzPAxP3s1K','mJqXmhDQrND6zq','zxjYB3i','otG4nZLltvjXr3K','ndqZnZG5mwrWuvPXDa'];_0x20bb=function(){return _0x1b9dc5;};return _0x20bb();}module[_0x2fa247(0xf6)]={'isBanned':isBanned};
|