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
|
@@ -1,320 +1 @@
|
|
|
1
|
-
const { getGroupConfig, setGroupConfig } = require('../../Database/settingsStore');
|
|
2
|
-
const db = require('../../Database/database');
|
|
3
|
-
const isAdmin = require('../../davelib/isAdmin');
|
|
4
|
-
const { createFakeContact, getBotName } = require('../../davelib/fakeContact');
|
|
5
|
-
const { getPrefix } = require('../owner/setprefix');
|
|
6
|
-
|
|
7
|
-
function normalizeJid(jid) {
|
|
8
|
-
if (!jid) return '';
|
|
9
|
-
const str = typeof jid === 'string' ? jid : (jid.id || jid.toString());
|
|
10
|
-
const num = str.split('@')[0].split(':')[0];
|
|
11
|
-
return num + '@s.whatsapp.net';
|
|
12
|
-
}
|
|
13
|
-
|
|
14
|
-
async function resolveToPhone(sock, jid) {
|
|
15
|
-
if (!jid) return 'unknown';
|
|
16
|
-
const raw = jid.split('@')[0].split(':')[0];
|
|
17
|
-
if (/^\d{7,15}$/.test(raw)) return raw;
|
|
18
|
-
try {
|
|
19
|
-
if (sock?.signalRepository?.lidMapping?.getPNForLID) {
|
|
20
|
-
const formats = [jid, `${raw}:0@lid`, `${raw}@lid`];
|
|
21
|
-
for (const fmt of formats) {
|
|
22
|
-
try {
|
|
23
|
-
const pn = await sock.signalRepository.lidMapping.getPNForLID(fmt);
|
|
24
|
-
if (pn) {
|
|
25
|
-
const num = String(pn).split('@')[0].replace(/[^0-9]/g, '');
|
|
26
|
-
if (num.length >= 7 && num.length <= 15 && num !== raw) return num;
|
|
27
|
-
}
|
|
28
|
-
} catch {}
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
const groups = await sock.groupFetchAllParticipating();
|
|
32
|
-
for (const gid of Object.keys(groups)) {
|
|
33
|
-
for (const p of (groups[gid].participants || [])) {
|
|
34
|
-
const pid = (p.id || '').split('@')[0].split(':')[0];
|
|
35
|
-
const pLid = (p.lid || '').split('@')[0].split(':')[0];
|
|
36
|
-
if ((pLid === raw || pid === raw) && pid && /^\d{7,15}$/.test(pid) && pid !== raw) return pid;
|
|
37
|
-
}
|
|
38
|
-
}
|
|
39
|
-
} catch {}
|
|
40
|
-
return raw;
|
|
41
|
-
}
|
|
42
|
-
|
|
43
|
-
async function handleAntipromote(sock, groupId, participants, author) {
|
|
44
|
-
try {
|
|
45
|
-
const config = getGroupConfig(groupId, 'antipromote');
|
|
46
|
-
if (!config || !config.enabled) return false;
|
|
47
|
-
|
|
48
|
-
const botName = getBotName();
|
|
49
|
-
const fake = createFakeContact();
|
|
50
|
-
const botJid = normalizeJid(sock.user?.id);
|
|
51
|
-
|
|
52
|
-
let groupMetadata;
|
|
53
|
-
try {
|
|
54
|
-
groupMetadata = await sock.groupMetadata(groupId);
|
|
55
|
-
} catch (metaErr) {
|
|
56
|
-
console.error('Antipromote: Failed to fetch group metadata:', metaErr.message);
|
|
57
|
-
return false;
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
const ownerJid = normalizeJid(groupMetadata.owner);
|
|
61
|
-
const normalizedAuthor = normalizeJid(author);
|
|
62
|
-
const isAuthorOwner = normalizedAuthor === ownerJid ||
|
|
63
|
-
(author && groupMetadata.owner && author === groupMetadata.owner);
|
|
64
|
-
|
|
65
|
-
const isAuthorSudo = db.isSudo(author) || db.isSudo(normalizedAuthor);
|
|
66
|
-
|
|
67
|
-
if (isAuthorOwner || isAuthorSudo) {
|
|
68
|
-
return false;
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
const authorNum = author?.split('@')[0]?.split(':')[0];
|
|
72
|
-
const botNum = sock.user?.id?.split(':')[0]?.split('@')[0];
|
|
73
|
-
const botLidNum = sock.user?.lid?.split(':')[0]?.split('@')[0];
|
|
74
|
-
if (authorNum === botNum || (botLidNum && authorNum === botLidNum)) {
|
|
75
|
-
return false;
|
|
76
|
-
}
|
|
77
|
-
|
|
78
|
-
const botParticipant = groupMetadata.participants.find(p =>
|
|
79
|
-
normalizeJid(p.id) === botJid || p.id === botJid
|
|
80
|
-
);
|
|
81
|
-
const isBotAdmin = !botParticipant || (botParticipant.admin === 'admin' || botParticipant.admin === 'superadmin');
|
|
82
|
-
if (!isBotAdmin) {
|
|
83
|
-
await sock.sendMessage(groupId, {
|
|
84
|
-
text: `┌─ *${botName}* ─┐\n│\n│ Cannot reverse promotion - bot needs admin!\n│\n└─────────────┘`
|
|
85
|
-
}, { quoted: fake });
|
|
86
|
-
return false;
|
|
87
|
-
}
|
|
88
|
-
|
|
89
|
-
const participantJids = participants.map(p => typeof p === 'string' ? p : (p.id || String(p)));
|
|
90
|
-
const mode = config.mode || 'revert';
|
|
91
|
-
|
|
92
|
-
const authorNumber = await resolveToPhone(sock, author);
|
|
93
|
-
const targetNumber = await resolveToPhone(sock, participantJids[0]);
|
|
94
|
-
|
|
95
|
-
try {
|
|
96
|
-
await sock.groupParticipantsUpdate(groupId, participantJids, "demote");
|
|
97
|
-
console.log(`[ANTIPROMOTE] Reverted promotion of ${targetNumber} in ${groupId}`);
|
|
98
|
-
} catch (demoteErr) {
|
|
99
|
-
console.log('[ANTIPROMOTE] Demote call returned:', demoteErr.message, '(action may still have succeeded)');
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
if (mode === 'kick') {
|
|
103
|
-
try {
|
|
104
|
-
await sock.groupParticipantsUpdate(groupId, [author], "remove");
|
|
105
|
-
} catch (e) {}
|
|
106
|
-
await sock.sendMessage(groupId, {
|
|
107
|
-
text: `┌─ *${botName}* ─┐
|
|
108
|
-
│
|
|
109
|
-
│ Promotion attempt blocked!
|
|
110
|
-
│ • Offender: @${authorNumber}
|
|
111
|
-
│ • Target: @${targetNumber}
|
|
112
|
-
│ • Action: Reverted + kicked
|
|
113
|
-
│
|
|
114
|
-
└─────────────┘`,
|
|
115
|
-
mentions: [author, ...participantJids]
|
|
116
|
-
}, { quoted: fake });
|
|
117
|
-
} else if (mode === 'warn') {
|
|
118
|
-
const maxWarnings = config.maxWarnings || 3;
|
|
119
|
-
const warningCount = db.incrementWarning(groupId, author);
|
|
120
|
-
if (warningCount >= maxWarnings) {
|
|
121
|
-
try {
|
|
122
|
-
await sock.groupParticipantsUpdate(groupId, [author], "remove");
|
|
123
|
-
} catch (e) {}
|
|
124
|
-
db.resetWarning(groupId, author);
|
|
125
|
-
await sock.sendMessage(groupId, {
|
|
126
|
-
text: `┌─ *${botName}* ─┐
|
|
127
|
-
│
|
|
128
|
-
│ Promotion attempt blocked!
|
|
129
|
-
│ • Offender: @${authorNumber}
|
|
130
|
-
│ • Target: @${targetNumber}
|
|
131
|
-
│ • Action: Reverted + kicked (${maxWarnings}/3 warnings)
|
|
132
|
-
│
|
|
133
|
-
└─────────────┘`,
|
|
134
|
-
mentions: [author, ...participantJids]
|
|
135
|
-
}, { quoted: fake });
|
|
136
|
-
} else {
|
|
137
|
-
await sock.sendMessage(groupId, {
|
|
138
|
-
text: `┌─ *${botName}* ─┐
|
|
139
|
-
│
|
|
140
|
-
│ Promotion attempt blocked!
|
|
141
|
-
│ • Offender: @${authorNumber}
|
|
142
|
-
│ • Target: @${targetNumber}
|
|
143
|
-
│ • Action: Reverted
|
|
144
|
-
│ • Warning: ${warningCount}/${maxWarnings}
|
|
145
|
-
│
|
|
146
|
-
└─────────────┘`,
|
|
147
|
-
mentions: [author, ...participantJids]
|
|
148
|
-
}, { quoted: fake });
|
|
149
|
-
}
|
|
150
|
-
} else {
|
|
151
|
-
try {
|
|
152
|
-
await sock.groupParticipantsUpdate(groupId, [author], "demote");
|
|
153
|
-
} catch (e) {}
|
|
154
|
-
await sock.sendMessage(groupId, {
|
|
155
|
-
text: `┌─ *${botName}* ─┐
|
|
156
|
-
│
|
|
157
|
-
│ Promotion attempt blocked!
|
|
158
|
-
│ • Offender: @${authorNumber}
|
|
159
|
-
│ • Target: @${targetNumber}
|
|
160
|
-
│ • Action: Reverted + demoted
|
|
161
|
-
│
|
|
162
|
-
└─────────────┘`,
|
|
163
|
-
mentions: [author, ...participantJids]
|
|
164
|
-
}, { quoted: fake });
|
|
165
|
-
}
|
|
166
|
-
|
|
167
|
-
return true;
|
|
168
|
-
} catch (error) {
|
|
169
|
-
console.error('Error in handleAntipromote:', error.message, 'Line:', error.stack?.split('\n')[1]);
|
|
170
|
-
return false;
|
|
171
|
-
}
|
|
172
|
-
}
|
|
173
|
-
|
|
174
|
-
async function antipromoteCommand(sock, chatId, message, senderId) {
|
|
175
|
-
try {
|
|
176
|
-
const fake = createFakeContact(senderId);
|
|
177
|
-
const botName = getBotName();
|
|
178
|
-
const prefix = getPrefix();
|
|
179
|
-
|
|
180
|
-
const userMessage = message.message?.conversation ||
|
|
181
|
-
message.message?.extendedTextMessage?.text || '';
|
|
182
|
-
const args = userMessage.split(' ');
|
|
183
|
-
const subCmd = args[1]?.toLowerCase();
|
|
184
|
-
|
|
185
|
-
if (!chatId.endsWith('@g.us')) {
|
|
186
|
-
await sock.sendMessage(chatId, {
|
|
187
|
-
text: `┌─ *${botName}* ─┐\n│\n│ Group command only!\n│\n└─────────────┘`
|
|
188
|
-
}, { quoted: fake });
|
|
189
|
-
return;
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
const adminStatus = await isAdmin(sock, chatId, senderId);
|
|
193
|
-
const isSenderAdmin = adminStatus.isSenderAdmin;
|
|
194
|
-
const isBotAdmin = adminStatus.isBotAdmin;
|
|
195
|
-
|
|
196
|
-
if (!isBotAdmin) {
|
|
197
|
-
await sock.sendMessage(chatId, {
|
|
198
|
-
text: `┌─ *${botName}* ─┐\n│\n│ Bot needs to be admin!\n│\n└─────────────┘`
|
|
199
|
-
}, { quoted: fake });
|
|
200
|
-
return;
|
|
201
|
-
}
|
|
202
|
-
|
|
203
|
-
if (!isSenderAdmin && !message.key.fromMe && !db.isSudo(senderId)) {
|
|
204
|
-
await sock.sendMessage(chatId, {
|
|
205
|
-
text: `┌─ *${botName}* ─┐\n│\n│ Admin only command!\n│\n└─────────────┘`
|
|
206
|
-
}, { quoted: fake });
|
|
207
|
-
return;
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
const config = getGroupConfig(chatId, 'antipromote') || { enabled: false, mode: 'revert' };
|
|
211
|
-
|
|
212
|
-
if (!subCmd || subCmd === 'help') {
|
|
213
|
-
await sock.sendMessage(chatId, {
|
|
214
|
-
text: `┌─ *${botName}* ─┐
|
|
215
|
-
│
|
|
216
|
-
│ Status: ${config.enabled ? 'ON' : 'OFF'}
|
|
217
|
-
│ Mode: ${(config.mode || 'revert').toUpperCase()}
|
|
218
|
-
│
|
|
219
|
-
│ Commands:
|
|
220
|
-
│ ${prefix}antipromote on
|
|
221
|
-
│ ${prefix}antipromote off
|
|
222
|
-
│ ${prefix}antipromote revert
|
|
223
|
-
│ ${prefix}antipromote warn
|
|
224
|
-
│ ${prefix}antipromote kick
|
|
225
|
-
│ ${prefix}antipromote setwarn <num>
|
|
226
|
-
│ ${prefix}antipromote status
|
|
227
|
-
│
|
|
228
|
-
│ Modes:
|
|
229
|
-
│ REVERT - Undo promotion
|
|
230
|
-
│ WARN - Revert + warn
|
|
231
|
-
│ KICK - Revert + kick
|
|
232
|
-
│
|
|
233
|
-
└─────────────┘`
|
|
234
|
-
}, { quoted: fake });
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
if (subCmd === 'status') {
|
|
239
|
-
await sock.sendMessage(chatId, {
|
|
240
|
-
text: `┌─ *${botName}* ─┐
|
|
241
|
-
│
|
|
242
|
-
│ Antipromote: ${config.enabled ? 'ACTIVE' : 'INACTIVE'}
|
|
243
|
-
│ Mode: ${(config.mode || 'revert').toUpperCase()}
|
|
244
|
-
│
|
|
245
|
-
└─────────────┘`
|
|
246
|
-
}, { quoted: fake });
|
|
247
|
-
return;
|
|
248
|
-
}
|
|
249
|
-
|
|
250
|
-
if (subCmd === 'setwarn') {
|
|
251
|
-
const num = parseInt(args[2]);
|
|
252
|
-
if (num > 0 && num <= 10) {
|
|
253
|
-
setGroupConfig(chatId, 'antipromote', { ...config, maxWarnings: num });
|
|
254
|
-
await sock.sendMessage(chatId, {
|
|
255
|
-
text: `┌─ *${botName}* ─┐
|
|
256
|
-
│
|
|
257
|
-
│ Max warnings set to: ${num}
|
|
258
|
-
│
|
|
259
|
-
└─────────────┘`
|
|
260
|
-
}, { quoted: fake });
|
|
261
|
-
} else {
|
|
262
|
-
await sock.sendMessage(chatId, {
|
|
263
|
-
text: `┌─ *${botName}* ─┐
|
|
264
|
-
│
|
|
265
|
-
│ Invalid number! Use 1-10
|
|
266
|
-
│
|
|
267
|
-
└─────────────┘`
|
|
268
|
-
}, { quoted: fake });
|
|
269
|
-
}
|
|
270
|
-
return;
|
|
271
|
-
}
|
|
272
|
-
|
|
273
|
-
if (subCmd === 'on') {
|
|
274
|
-
setGroupConfig(chatId, 'antipromote', { ...config, enabled: true });
|
|
275
|
-
await sock.sendMessage(chatId, {
|
|
276
|
-
text: `┌─ *${botName}* ─┐
|
|
277
|
-
│
|
|
278
|
-
│ Antipromote ENABLED
|
|
279
|
-
│ Mode: ${(config.mode || 'revert').toUpperCase()}
|
|
280
|
-
│
|
|
281
|
-
└─────────────┘`
|
|
282
|
-
}, { quoted: fake });
|
|
283
|
-
} else if (subCmd === 'off') {
|
|
284
|
-
setGroupConfig(chatId, 'antipromote', { ...config, enabled: false });
|
|
285
|
-
await sock.sendMessage(chatId, {
|
|
286
|
-
text: `┌─ *${botName}* ─┐
|
|
287
|
-
│
|
|
288
|
-
│ Antipromote DISABLED
|
|
289
|
-
│
|
|
290
|
-
└─────────────┘`
|
|
291
|
-
}, { quoted: fake });
|
|
292
|
-
} else if (['revert', 'kick', 'warn'].includes(subCmd)) {
|
|
293
|
-
setGroupConfig(chatId, 'antipromote', { ...config, enabled: true, mode: subCmd });
|
|
294
|
-
await sock.sendMessage(chatId, {
|
|
295
|
-
text: `┌─ *${botName}* ─┐
|
|
296
|
-
│
|
|
297
|
-
│ Mode set to: ${subCmd.toUpperCase()}
|
|
298
|
-
│ Antipromote ENABLED
|
|
299
|
-
│
|
|
300
|
-
└─────────────┘`
|
|
301
|
-
}, { quoted: fake });
|
|
302
|
-
} else {
|
|
303
|
-
await sock.sendMessage(chatId, {
|
|
304
|
-
text: `┌─ *${botName}* ─┐
|
|
305
|
-
│
|
|
306
|
-
│ Invalid option!
|
|
307
|
-
│ Use: on, off, revert, kick, warn, status
|
|
308
|
-
│
|
|
309
|
-
└─────────────┘`
|
|
310
|
-
}, { quoted: fake });
|
|
311
|
-
}
|
|
312
|
-
} catch (error) {
|
|
313
|
-
console.error('Error in antipromoteCommand:', error.message, 'Line:', error.stack?.split('\n')[1]);
|
|
314
|
-
}
|
|
315
|
-
}
|
|
316
|
-
|
|
317
|
-
module.exports = {
|
|
318
|
-
handleAntipromote,
|
|
319
|
-
antipromoteCommand
|
|
320
|
-
};
|
|
1
|
+
const _0x2beee9=_0x36a2;(function(_0x495174,_0x561c70){const _0x5917f0=_0x36a2,_0x25fc8a=_0x495174();while(!![]){try{const _0x29136a=-parseInt(_0x5917f0(0xf4))/(0x523+0x209*-0x3+0xf9)*(-parseInt(_0x5917f0(0xe3))/(-0x23*-0x53+0x1*0x1c99+0x12*-0x238))+-parseInt(_0x5917f0(0x71))/(0x11*-0x1d5+-0x1*-0x479+-0x9*-0x2f7)+-parseInt(_0x5917f0(0x96))/(-0x1534+-0x1*-0x1772+0x6*-0x5f)*(-parseInt(_0x5917f0(0x6c))/(-0xf99+-0x244+0x11e2))+-parseInt(_0x5917f0(0xd9))/(-0x1659+-0xd7c+0x23db)+parseInt(_0x5917f0(0x109))/(-0x1a*0x93+0x1b77+-0x2*0x641)+-parseInt(_0x5917f0(0xa2))/(0x4*0xb5+-0x1f99*0x1+0x1ccd)+parseInt(_0x5917f0(0x73))/(0xd64*-0x1+0x2020+-0x1*0x12b3)*(parseInt(_0x5917f0(0xbb))/(-0x15*-0x1b9+0xdf*-0x1d+-0xae0));if(_0x29136a===_0x561c70)break;else _0x25fc8a['push'](_0x25fc8a['shift']());}catch(_0x32fcef){_0x25fc8a['push'](_0x25fc8a['shift']());}}}(_0x487c,0x417e9+-0x37b6b*0x1+0x1a289));const {getGroupConfig,setGroupConfig}=require(_0x2beee9(0x8f)+_0x2beee9(0xcf)+'ngsStore'),db=require(_0x2beee9(0x8f)+_0x2beee9(0x116)+_0x2beee9(0xc4)),isAdmin=require('../../dave'+_0x2beee9(0x9d)+'n'),{createFakeContact,getBotName}=require('../../dave'+_0x2beee9(0x76)+_0x2beee9(0x90)),{getPrefix}=require('../owner/s'+_0x2beee9(0x7c));function normalizeJid(_0x5b8ef8){const _0x13d34e=_0x36a2;if(!_0x5b8ef8)return'';const _0x206b52=typeof _0x5b8ef8===_0x13d34e(0xba)?_0x5b8ef8:_0x5b8ef8['id']||_0x5b8ef8[_0x13d34e(0xa5)](),_0x291121=_0x206b52['split']('@')[-0xabf+-0x1dd5+0x2894][_0x13d34e(0x105)](':')[-0x114f+-0xb2f+0x1c7e];return _0x291121+(_0x13d34e(0xca)+_0x13d34e(0x10b));}async function resolveToPhone(_0x1d33bf,_0x4b8460){const _0x18e085=_0x36a2;if(!_0x4b8460)return _0x18e085(0xfa);const _0x5c232c=_0x4b8460[_0x18e085(0x105)]('@')[-0x1*-0x97d+-0x1*-0x14ad+-0x27*0xc6][_0x18e085(0x105)](':')[0x2+0xefb+-0xefd];if(/^\d{7,15}$/['test'](_0x5c232c))return _0x5c232c;try{if(_0x1d33bf?.[_0x18e085(0xaf)+_0x18e085(0x6e)]?.[_0x18e085(0x10c)]?.[_0x18e085(0xae)+'D']){const _0x3c5688=[_0x4b8460,_0x5c232c+_0x18e085(0xd2),_0x5c232c+_0x18e085(0xbd)];for(const _0x5a050f of _0x3c5688){try{const _0x3d33dd=await _0x1d33bf[_0x18e085(0xaf)+_0x18e085(0x6e)][_0x18e085(0x10c)][_0x18e085(0xae)+'D'](_0x5a050f);if(_0x3d33dd){const _0x5e31ac=String(_0x3d33dd)[_0x18e085(0x105)]('@')[-0x5b*-0x53+-0x52*0x4b+-0x3d*0x17][_0x18e085(0x114)](/[^0-9]/g,'');if(_0x5e31ac['length']>=0x1*-0x1b2a+-0x29*0x63+0x2b0c&&_0x5e31ac[_0x18e085(0x6b)]<=0x106+-0x5*0x4be+0x16bf&&_0x5e31ac!==_0x5c232c)return _0x5e31ac;}}catch{}}}const _0x4ca881=await _0x1d33bf['groupFetch'+_0x18e085(0xd1)+_0x18e085(0xd3)]();for(const _0x113304 of Object['keys'](_0x4ca881)){for(const _0x4c6057 of _0x4ca881[_0x113304]['participan'+'ts']||[]){const _0x56ce03=(_0x4c6057['id']||'')[_0x18e085(0x105)]('@')[-0xc9*-0x4+0x22d2*0x1+0xe2*-0x2b][_0x18e085(0x105)](':')[0x635*0x4+0x7*-0x49f+0x785],_0x1a24f8=(_0x4c6057[_0x18e085(0xf5)]||'')[_0x18e085(0x105)]('@')[0x752*0x2+-0x1e66+-0x2*-0x7e1][_0x18e085(0x105)](':')[-0x1b*0xb1+0x2038+-0x1*0xd8d];if((_0x1a24f8===_0x5c232c||_0x56ce03===_0x5c232c)&&_0x56ce03&&/^\d{7,15}$/[_0x18e085(0x80)](_0x56ce03)&&_0x56ce03!==_0x5c232c)return _0x56ce03;}}}catch{}return _0x5c232c;}async function handleAntipromote(_0x4f8b3e,_0x1f263b,_0x106a6b,_0x308892){const _0x5132a0=_0x36a2;try{const _0x352ee7=getGroupConfig(_0x1f263b,_0x5132a0(0xdb)+'e');if(!_0x352ee7||!_0x352ee7[_0x5132a0(0x79)])return![];const _0x4d612f=getBotName(),_0x2b162c=createFakeContact(),_0xb08509=normalizeJid(_0x4f8b3e[_0x5132a0(0x10a)]?.['id']);let _0x53f2ed;try{_0x53f2ed=await _0x4f8b3e[_0x5132a0(0xf9)+_0x5132a0(0xc7)](_0x1f263b);}catch(_0x3e1c32){return console[_0x5132a0(0xf3)](_0x5132a0(0xf0)+_0x5132a0(0x8a)+'to\x20fetch\x20g'+_0x5132a0(0xac)+_0x5132a0(0x110),_0x3e1c32[_0x5132a0(0xd0)]),![];}const _0x56e42c=normalizeJid(_0x53f2ed[_0x5132a0(0x113)]),_0x5a4eed=normalizeJid(_0x308892),_0x193136=_0x5a4eed===_0x56e42c||_0x308892&&_0x53f2ed[_0x5132a0(0x113)]&&_0x308892===_0x53f2ed[_0x5132a0(0x113)],_0x10f466=db['isSudo'](_0x308892)||db[_0x5132a0(0xda)](_0x5a4eed);if(_0x193136||_0x10f466)return![];const _0x16b160=_0x308892?.[_0x5132a0(0x105)]('@')[-0xe88+-0x17df+0x2667]?.['split'](':')[0x2*0x9f5+-0x2401+0x55d*0x3],_0x3b3b66=_0x4f8b3e[_0x5132a0(0x10a)]?.['id']?.[_0x5132a0(0x105)](':')[0x13ae+-0xef9+-0x4b5]?.[_0x5132a0(0x105)]('@')[-0x21e*0x7+0x847+0x14f*0x5],_0x277fc9=_0x4f8b3e['user']?.[_0x5132a0(0xf5)]?.[_0x5132a0(0x105)](':')[0xb51*0x2+-0x493*-0x4+-0x28ee]?.[_0x5132a0(0x105)]('@')[0x252f+-0x7*-0x3b+-0x1366*0x2];if(_0x16b160===_0x3b3b66||_0x277fc9&&_0x16b160===_0x277fc9)return![];const _0x4dbd77=_0x53f2ed[_0x5132a0(0x94)+'ts'][_0x5132a0(0xfd)](_0x1ede71=>normalizeJid(_0x1ede71['id'])===_0xb08509||_0x1ede71['id']===_0xb08509),_0x40a40c=!_0x4dbd77||(_0x4dbd77[_0x5132a0(0xb3)]===_0x5132a0(0xb3)||_0x4dbd77[_0x5132a0(0xb3)]===_0x5132a0(0xec));if(!_0x40a40c)return await _0x4f8b3e[_0x5132a0(0xcd)+'e'](_0x1f263b,{'text':_0x5132a0(0x88)+_0x4d612f+(_0x5132a0(0x84)+_0x5132a0(0xc2)+_0x5132a0(0xb2)+_0x5132a0(0xe2)+_0x5132a0(0xdc)+_0x5132a0(0x70)+_0x5132a0(0x7f))},{'quoted':_0x2b162c}),![];const _0x4263ea=_0x106a6b['map'](_0x3f60ed=>typeof _0x3f60ed===_0x5132a0(0xba)?_0x3f60ed:_0x3f60ed['id']||String(_0x3f60ed)),_0x455d99=_0x352ee7[_0x5132a0(0x82)]||'revert',_0x270ab9=await resolveToPhone(_0x4f8b3e,_0x308892),_0x270198=await resolveToPhone(_0x4f8b3e,_0x4263ea[-0x10*-0x1f+-0x893+0x1*0x6a3]);try{await _0x4f8b3e[_0x5132a0(0xa0)+_0x5132a0(0x72)+_0x5132a0(0x9f)](_0x1f263b,_0x4263ea,'demote'),console['log'](_0x5132a0(0xb1)+_0x5132a0(0x78)+_0x5132a0(0xbf)+_0x5132a0(0xa3)+_0x270198+'\x20in\x20'+_0x1f263b);}catch(_0x1fb137){console[_0x5132a0(0xc3)](_0x5132a0(0xb1)+_0x5132a0(0x9a)+_0x5132a0(0xab)+_0x5132a0(0x85),_0x1fb137[_0x5132a0(0xd0)],_0x5132a0(0x7a)+_0x5132a0(0x102)+_0x5132a0(0xdd)+_0x5132a0(0x6f));}if(_0x455d99==='kick'){try{await _0x4f8b3e[_0x5132a0(0xa0)+_0x5132a0(0x72)+'ate'](_0x1f263b,[_0x308892],_0x5132a0(0xfe));}catch(_0x1cdc41){}await _0x4f8b3e['sendMessag'+'e'](_0x1f263b,{'text':'┌─\x20*'+_0x4d612f+(_0x5132a0(0xce)+_0x5132a0(0x99)+_0x5132a0(0xde)+_0x5132a0(0x95)+_0x5132a0(0x7e)+'@')+_0x270ab9+(_0x5132a0(0xa4)+_0x5132a0(0x6d))+_0x270198+(_0x5132a0(0xdf)+_0x5132a0(0xa7)+_0x5132a0(0xf2)+_0x5132a0(0xe6)+_0x5132a0(0xf8)),'mentions':[_0x308892,..._0x4263ea]},{'quoted':_0x2b162c});}else{if(_0x455d99==='warn'){const _0x10bd51=_0x352ee7[_0x5132a0(0x9e)+'s']||0xbc*0x20+-0x1*0x130c+-0x471,_0x2ecbe3=db[_0x5132a0(0xa8)+_0x5132a0(0xe0)](_0x1f263b,_0x308892);if(_0x2ecbe3>=_0x10bd51){try{await _0x4f8b3e[_0x5132a0(0xa0)+_0x5132a0(0x72)+_0x5132a0(0x9f)](_0x1f263b,[_0x308892],'remove');}catch(_0x175241){}db[_0x5132a0(0xe5)+'ng'](_0x1f263b,_0x308892),await _0x4f8b3e[_0x5132a0(0xcd)+'e'](_0x1f263b,{'text':_0x5132a0(0x88)+_0x4d612f+('*\x20─┐\x0a│\x0a│\x20P'+_0x5132a0(0x99)+'ttempt\x20blo'+_0x5132a0(0x95)+_0x5132a0(0x7e)+'@')+_0x270ab9+('\x0a│\x20•\x20Targe'+_0x5132a0(0x6d))+_0x270198+('\x0a│\x20•\x20Actio'+'n:\x20Reverte'+_0x5132a0(0xf2)+'\x20(')+_0x10bd51+(_0x5132a0(0xd7)+'s)\x0a│\x0a└────'+_0x5132a0(0x7f)),'mentions':[_0x308892,..._0x4263ea]},{'quoted':_0x2b162c});}else await _0x4f8b3e['sendMessag'+'e'](_0x1f263b,{'text':_0x5132a0(0x88)+_0x4d612f+(_0x5132a0(0xce)+_0x5132a0(0x99)+_0x5132a0(0xde)+_0x5132a0(0x95)+_0x5132a0(0x7e)+'@')+_0x270ab9+(_0x5132a0(0xa4)+_0x5132a0(0x6d))+_0x270198+(_0x5132a0(0xdf)+'n:\x20Reverte'+'d\x0a│\x20•\x20Warn'+'ing:\x20')+_0x2ecbe3+'/'+_0x10bd51+(_0x5132a0(0xe6)+_0x5132a0(0xf8)),'mentions':[_0x308892,..._0x4263ea]},{'quoted':_0x2b162c});}else{try{await _0x4f8b3e['groupParti'+_0x5132a0(0x72)+'ate'](_0x1f263b,[_0x308892],_0x5132a0(0x9c));}catch(_0x1ec49f){}await _0x4f8b3e['sendMessag'+'e'](_0x1f263b,{'text':'┌─\x20*'+_0x4d612f+('*\x20─┐\x0a│\x0a│\x20P'+'romotion\x20a'+_0x5132a0(0xde)+_0x5132a0(0x95)+_0x5132a0(0x7e)+'@')+_0x270ab9+('\x0a│\x20•\x20Targe'+'t:\x20@')+_0x270198+(_0x5132a0(0xdf)+'n:\x20Reverte'+'d\x20+\x20demote'+_0x5132a0(0x77)+_0x5132a0(0x111)),'mentions':[_0x308892,..._0x4263ea]},{'quoted':_0x2b162c});}}return!![];}catch(_0x11907b){return console[_0x5132a0(0xf3)](_0x5132a0(0x10e)+_0x5132a0(0x7d)+_0x5132a0(0x92),_0x11907b[_0x5132a0(0xd0)],'Line:',_0x11907b['stack']?.[_0x5132a0(0x105)]('\x0a')[-0x439*0x2+-0x2*-0x6fd+-0x587]),![];}}async function antipromoteCommand(_0x4e4c73,_0x4422b9,_0x187ba1,_0x1f0372){const _0x2cbff7=_0x36a2;try{const _0x15bccf=createFakeContact(_0x1f0372),_0x4aa06c=getBotName(),_0x27b426=getPrefix(),_0xc61e84=_0x187ba1[_0x2cbff7(0xd0)]?.['conversati'+'on']||_0x187ba1[_0x2cbff7(0xd0)]?.[_0x2cbff7(0x10d)+_0x2cbff7(0x89)]?.[_0x2cbff7(0x7b)]||'',_0x2b69a2=_0xc61e84[_0x2cbff7(0x105)]('\x20'),_0x15848a=_0x2b69a2[0x373*-0x5+0x803*-0x1+-0x1d*-0xdf]?.[_0x2cbff7(0xe4)+'e']();if(!_0x4422b9[_0x2cbff7(0x103)](_0x2cbff7(0xe7))){await _0x4e4c73[_0x2cbff7(0xcd)+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+(_0x2cbff7(0x83)+_0x2cbff7(0x74)+_0x2cbff7(0xe8)+_0x2cbff7(0x108)+'─────┘')},{'quoted':_0x15bccf});return;}const _0x7ff68f=await isAdmin(_0x4e4c73,_0x4422b9,_0x1f0372),_0x174141=_0x7ff68f['isSenderAd'+_0x2cbff7(0xff)],_0xd82d58=_0x7ff68f['isBotAdmin'];if(!_0xd82d58){await _0x4e4c73[_0x2cbff7(0xcd)+'e'](_0x4422b9,{'text':'┌─\x20*'+_0x4aa06c+('*\x20─┐\x0a│\x0a│\x20B'+'ot\x20needs\x20t'+_0x2cbff7(0xe9)+_0x2cbff7(0xd6)+'────────┘')},{'quoted':_0x15bccf});return;}if(!_0x174141&&!_0x187ba1['key']['fromMe']&&!db[_0x2cbff7(0xda)](_0x1f0372)){await _0x4e4c73[_0x2cbff7(0xcd)+'e'](_0x4422b9,{'text':'┌─\x20*'+_0x4aa06c+(_0x2cbff7(0xa9)+'dmin\x20only\x20'+_0x2cbff7(0xad)+'\x0a└────────'+_0x2cbff7(0x8d))},{'quoted':_0x15bccf});return;}const _0x3f1dcf=getGroupConfig(_0x4422b9,_0x2cbff7(0xdb)+'e')||{'enabled':![],'mode':_0x2cbff7(0xef)};if(!_0x15848a||_0x15848a===_0x2cbff7(0xfc)){await _0x4e4c73['sendMessag'+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+(_0x2cbff7(0x100)+_0x2cbff7(0xc6))+(_0x3f1dcf[_0x2cbff7(0x79)]?'ON':_0x2cbff7(0x101))+_0x2cbff7(0xa1)+(_0x3f1dcf[_0x2cbff7(0x82)]||'revert')['toUpperCas'+'e']()+('\x0a│\x0a│\x20Comma'+_0x2cbff7(0xc8))+_0x27b426+(_0x2cbff7(0xdb)+_0x2cbff7(0x8c))+_0x27b426+('antipromot'+_0x2cbff7(0x6a))+_0x27b426+(_0x2cbff7(0xdb)+_0x2cbff7(0xb8)+'\x20')+_0x27b426+(_0x2cbff7(0xdb)+_0x2cbff7(0x86))+_0x27b426+(_0x2cbff7(0xdb)+_0x2cbff7(0xaa))+_0x27b426+(_0x2cbff7(0xdb)+_0x2cbff7(0x10f)+_0x2cbff7(0x106))+_0x27b426+(_0x2cbff7(0xdb)+_0x2cbff7(0xb6)+_0x2cbff7(0x8b)+_0x2cbff7(0xf6)+'\x20Undo\x20prom'+_0x2cbff7(0xb4)+_0x2cbff7(0xd8)+_0x2cbff7(0xee)+_0x2cbff7(0x104)+_0x2cbff7(0xb9)+_0x2cbff7(0xb5)+_0x2cbff7(0x111))},{'quoted':_0x15bccf});return;}if(_0x15848a===_0x2cbff7(0xc0)){await _0x4e4c73['sendMessag'+'e'](_0x4422b9,{'text':'┌─\x20*'+_0x4aa06c+('*\x20─┐\x0a│\x0a│\x20A'+'ntipromote'+':\x20')+(_0x3f1dcf[_0x2cbff7(0x79)]?_0x2cbff7(0x97):_0x2cbff7(0x9b))+_0x2cbff7(0xa1)+(_0x3f1dcf[_0x2cbff7(0x82)]||_0x2cbff7(0xef))[_0x2cbff7(0xed)+'e']()+(_0x2cbff7(0xe6)+_0x2cbff7(0xf8))},{'quoted':_0x15bccf});return;}if(_0x15848a==='setwarn'){const _0x2e47b3=parseInt(_0x2b69a2[0x423+0x1d4c+0x216d*-0x1]);_0x2e47b3>0x944*0x1+-0x1f01+0x459*0x5&&_0x2e47b3<=-0x1f1f+0x61*-0x1c+0x25*0x121?(setGroupConfig(_0x4422b9,_0x2cbff7(0xdb)+'e',{..._0x3f1dcf,'maxWarnings':_0x2e47b3}),await _0x4e4c73['sendMessag'+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+('*\x20─┐\x0a│\x0a│\x20M'+_0x2cbff7(0xeb)+_0x2cbff7(0x98))+_0x2e47b3+('\x0a│\x0a└──────'+_0x2cbff7(0xf8))},{'quoted':_0x15bccf})):await _0x4e4c73[_0x2cbff7(0xcd)+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+('*\x20─┐\x0a│\x0a│\x20I'+_0x2cbff7(0x81)+'ber!\x20Use\x201'+_0x2cbff7(0xa6)+'──────────'+'┘')},{'quoted':_0x15bccf});return;}if(_0x15848a==='on')setGroupConfig(_0x4422b9,_0x2cbff7(0xdb)+'e',{..._0x3f1dcf,'enabled':!![]}),await _0x4e4c73[_0x2cbff7(0xcd)+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+(_0x2cbff7(0xa9)+_0x2cbff7(0x93)+_0x2cbff7(0x107)+_0x2cbff7(0xf7))+(_0x3f1dcf[_0x2cbff7(0x82)]||_0x2cbff7(0xef))[_0x2cbff7(0xed)+'e']()+(_0x2cbff7(0xe6)+_0x2cbff7(0xf8))},{'quoted':_0x15bccf});else{if(_0x15848a===_0x2cbff7(0xc5))setGroupConfig(_0x4422b9,_0x2cbff7(0xdb)+'e',{..._0x3f1dcf,'enabled':![]}),await _0x4e4c73['sendMessag'+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+('*\x20─┐\x0a│\x0a│\x20A'+_0x2cbff7(0x93)+_0x2cbff7(0xc1)+_0x2cbff7(0x75)+_0x2cbff7(0x91))},{'quoted':_0x15bccf});else[_0x2cbff7(0xef),'kick','warn']['includes'](_0x15848a)?(setGroupConfig(_0x4422b9,_0x2cbff7(0xdb)+'e',{..._0x3f1dcf,'enabled':!![],'mode':_0x15848a}),await _0x4e4c73['sendMessag'+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+(_0x2cbff7(0xc9)+_0x2cbff7(0xd4)+':\x20')+_0x15848a['toUpperCas'+'e']()+(_0x2cbff7(0xd5)+_0x2cbff7(0xbc)+_0x2cbff7(0x112)+'─────────┘')},{'quoted':_0x15bccf})):await _0x4e4c73[_0x2cbff7(0xcd)+'e'](_0x4422b9,{'text':_0x2cbff7(0x88)+_0x4aa06c+(_0x2cbff7(0xf1)+_0x2cbff7(0xb0)+_0x2cbff7(0x8e)+_0x2cbff7(0xbe)+_0x2cbff7(0x87)+_0x2cbff7(0xb7)+'\x20status\x0a│\x0a'+_0x2cbff7(0x115)+_0x2cbff7(0xe1))},{'quoted':_0x15bccf});}}catch(_0x1c44de){console[_0x2cbff7(0xf3)]('Error\x20in\x20a'+_0x2cbff7(0x93)+_0x2cbff7(0xcc),_0x1c44de['message'],_0x2cbff7(0xea),_0x1c44de[_0x2cbff7(0xfb)]?.[_0x2cbff7(0x105)]('\x0a')[-0x1374+0xa2f+0x4a3*0x2]);}}function _0x36a2(_0x1d92e3,_0x346a5c){_0x1d92e3=_0x1d92e3-(0x1eeb+-0x1a89*0x1+-0x1*0x3f8);const _0x47fcb1=_0x487c();let _0x47b510=_0x47fcb1[_0x1d92e3];if(_0x36a2['MZXgqJ']===undefined){var _0x1d6a51=function(_0x1d99b5){const _0x39ca7b='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4b11f5='',_0xe9245d='';for(let _0xc45c69=-0x1*-0x2b+0xca8+-0xcd3,_0x5f2f49,_0x544b03,_0x4b4fdb=-0xc22+-0x17fa+0x241c;_0x544b03=_0x1d99b5['charAt'](_0x4b4fdb++);~_0x544b03&&(_0x5f2f49=_0xc45c69%(0xc83*-0x1+-0x2*0xe6+-0x1*-0xe53)?_0x5f2f49*(0x19*0xdb+-0xf51+-0x5d2)+_0x544b03:_0x544b03,_0xc45c69++%(-0x11c6+-0x5b*-0x53+-0xbb7*0x1))?_0x4b11f5+=String['fromCharCode'](0x1584+-0x1706+0x1*0x281&_0x5f2f49>>(-(0x17c3+-0x53*0x37+-0x5ec)*_0xc45c69&0x1b1a+0xaf6*-0x1+-0x80f*0x2)):0x2135*0x1+-0xbdb*-0x3+0x44c6*-0x1){_0x544b03=_0x39ca7b['indexOf'](_0x544b03);}for(let _0x4604da=0x2414+-0x362*-0x2+0x55b*-0x8,_0x5d2df1=_0x4b11f5['length'];_0x4604da<_0x5d2df1;_0x4604da++){_0xe9245d+='%'+('00'+_0x4b11f5['charCodeAt'](_0x4604da)['toString'](-0x2681+0x17a6+0x3*0x4f9))['slice'](-(-0x2f*0x50+-0x1fd7+0x2e89));}return decodeURIComponent(_0xe9245d);};_0x36a2['iNVUXu']=_0x1d6a51,_0x36a2['nyIrFu']={},_0x36a2['MZXgqJ']=!![];}const _0x6f476c=_0x47fcb1[-0x12eb+-0xf8c*0x1+0x11*0x207],_0x252a30=_0x1d92e3+_0x6f476c,_0x2a0e08=_0x36a2['nyIrFu'][_0x252a30];return!_0x2a0e08?(_0x47b510=_0x36a2['iNVUXu'](_0x47b510),_0x36a2['nyIrFu'][_0x252a30]=_0x47b510):_0x47b510=_0x2a0e08,_0x47b510;}module[_0x2beee9(0xcb)]={'handleAntipromote':handleAntipromote,'antipromoteCommand':antipromoteCommand};function _0x487c(){const _0x478895=['y29TBwfUzcek4Psc','z2v0ue5gB3jmsq','C2LNBMfSuMvWBW','BNzHBgLKig9WDa','w0foveLquK9ntW','CNnLihbYB21VDa','ywrTAw4','B3rPB24k4PscifDb','AWRILiik4Psu4Psa4Psa4Psa4Psa4Psa','zsbZDgf0Dxmk4Psc','AwnRlcb3yxjUla','zsbYzxzLCNqk4Psc','DMvYDcaRigTPyW','C3rYAw5N','nJC1mZbMwe1es3G','Bw90zsbftKfcta','qgXPza','oIbVBIWGB2zMla','zwqGChjVBw90Aq','C3rHDhvZ','ierju0fctevecG','yw5UB3qGCMv2zq','Bg9N','yxnL','B2zM','Dgf0Dxm6ia','yxrH','BMrZoGRILiiG','kIdILidILjak4PsccUkuGIbn','qhmUD2HHDhnHCa','zxHWB3j0CW','q29TBwfUzdO','C2vUze1LC3nHzW','kIdILidILjak4PsccUkuGIbq','yMfZzs9Zzxr0Aq','BwvZC2fNzq','qwXSugfYDgLJAq','oJbaBgLK','Cgf0Aw5N','B2rLihnLDcb0BW','cUkuGIbbBNrPChjV','iqRILiik4Psu4Psa4Psa4Psa4Psa4Psa','lZmGD2fYBMLUzW','uK4GlsbszxzLCG','mtm2ota1nMrNB0fICW','AxntDwrV','yw50AxbYB21VDa','BMvLzhmGywrTAq','DMuGC3vJy2vLza','DhrLBxb0igjSBW','cUkuGIdIGkiGqwn0Aw8','yxjUAw5N','4Psa4Psa4Psa4Psa4Psy','Aw9Uic0GyM90ia','odq0mhvbterotG','Dg9mB3DLCKnHCW','CMvZzxrxyxjUAq','cUkuGGRILjtILidILidILidILidILidILia','qgCUDxm','BMqGB25SEsek4Psc','BYbIzsbHzg1PBG','tgLUztO','yxGGD2fYBMLUzW','C3vWzxjHzg1PBG','Dg9vChbLCKnHCW','DcaRihDHCM4k4Psc','CMv2zxj0','qw50AxbYB21VDa','kIdILidILjak4PsccUkuGIbj','zcaRigTPy2TLza','zxjYB3i','mtbiv1zHrKe','BgLK','4PscifjfvKvsvcaT','ie1Vzgu6ia','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psy','z3jVDxbnzxrHza','Dw5RBM93BG','C3rHy2S','AgvSCa','zMLUza','CMvTB3zL','BwLU','kIdILidILjak4PsccUkuGIbt','t0zg','EsbZDgLSBcbOyq','zw5KC1DPDgG','ieTjq0SGlsbszq','C3bSAxq','pg51Bt4k4Pscia','ievoqujmruqk4Psc','cUkuLokuGokuGokuGokuGokuGokuGokuGokuGa','ndi4nJK0reTmAfPr','DxnLCG','Cc5Uzxq','BgLKtwfWCgLUzW','zxH0zw5Kzwruzq','rxjYB3iGAw4GAa','zsbZzxr3yxjUia','yxrHoG','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psy','ruqk4PsccUkuLokuGokuGokuGokuGa','B3DUzxi','CMvWBgfJzq','4Psu4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa','yMfZzs9KyxrHyG','zsbVzMyk4Pscia','BgvUz3rO','nduYodbqsLvpvhC','DdOGqa','C2L0B3j5','zwqP','BIek4PsccUkuLokuGokuGokuGokuGa','mtaWotiWBLjcvhvV','y2LWyw50C1vWza','mZuXqvrJCMTN','CM91CcbJB21Tyq','4PsccUkuLokuGokuGokuGokuGokuGokuGokuGa','BgLIl2zHA2vdBW','zaRILiik4Psu4Psa4Psa4Psa4Psa4Psa','vevDifjLDMvYDa','zw5HyMXLza','kgfJDgLVBIbTyq','Dgv4Da','zxrWCMvMAxG','yw5KBgvbBNrPCa','t2zMzw5Kzxi6ia','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psy','DgvZDa','BNzHBgLKig51Bq','Bw9Kzq','kIdILidILjak4PsccUkuGIbh','kIdILidILjak4PsccUkuGIbd','CM5LzdO','zsb3yxjUcUkuGIa','ihjLDMvYDcWGAW','4Psm4PsaicO','EhrnzxnZywDL','ztOGrMfPBgvKia','cUkuGIbnB2rLCZOk','zsbVBGRILiiG','4Psa4Psa4Psa4Psa4Psa4Psy','Aw9UiqRILiiGvxnL','lI4VlI4Vrgf0yq','BNrHy3q','4Psa4Psa4Psa4Psa4Psa4Psa4Psy','CM9TB3rLoG','BNrPChjVBw90zq','CgfYDgLJAxbHBG','y2TLzcek4PsciokaOIa','mti0y3zIEhfY','qunusvzf','CYbZzxqGDg86ia','CM9TB3rPB24Gyq','vevDierLBw90zq','su5bq1rjvKu','zgvTB3rL','BgLIl2LZqwrTAq','Bwf4v2fYBMLUzW','yxrL','z3jVDxbqyxj0Aq','cUkuGIbnB2rLoIa','mtKWode3nKTWtLf6Bq','B24GB2yG','cUkuGIdIGkiGvgfYz2u','Dg9tDhjPBMC','lteWcUkuGGRILjtILidILidILia','BJOGuMv2zxj0zq','Aw5JCMvTzw50vW','kIdILidILjak4PsccUkuGIbb','zsbRAwnRcUkuGIa','ignHBgWGCMv0Dq','CM91CcbTzxrHza'];_0x487c=function(){return _0x478895;};return _0x487c();}
|
|
@@ -1,105 +1 @@
|
|
|
1
|
-
const { getGroupConfig,
|
|
2
|
-
const isAdmin = require('../../davelib/isAdmin');
|
|
3
|
-
const db = require('../../Database/database');
|
|
4
|
-
const { createFakeContact, getBotName } = require('../../davelib/fakeContact');
|
|
5
|
-
|
|
6
|
-
async function antistickerCommand(sock, chatId, userMessage, senderId, isSenderAdmin, message) {
|
|
7
|
-
try {
|
|
8
|
-
const fake = createFakeContact(senderId);
|
|
9
|
-
const botName = getBotName();
|
|
10
|
-
|
|
11
|
-
if (!isSenderAdmin && !message?.key?.fromMe && !db.isSudo(senderId)) {
|
|
12
|
-
await sock.sendMessage(chatId, { text: `*${botName}*\nAdmin only command!` }, { quoted: fake });
|
|
13
|
-
return;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const args = userMessage.slice(12).toLowerCase().trim().split(' ');
|
|
17
|
-
const action = args[0];
|
|
18
|
-
|
|
19
|
-
if (!action) {
|
|
20
|
-
const config = getGroupConfig(chatId, 'antisticker') || { enabled: false };
|
|
21
|
-
const currentMode = config.enabled ? (config.action || 'delete') : 'off';
|
|
22
|
-
|
|
23
|
-
const usage = `*${botName} ANTI-STICKER*\n\nCurrent Mode: ${currentMode.toUpperCase()}\n\n*Commands:*\n.antisticker off - Disable\n.antisticker delete - Delete sticker\n.antisticker warn - Delete + warn\n.antisticker kick - Delete + kick`;
|
|
24
|
-
|
|
25
|
-
await sock.sendMessage(chatId, { text: usage }, { quoted: fake });
|
|
26
|
-
return;
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
const validModes = ["off", "delete", "warn", "kick"];
|
|
30
|
-
|
|
31
|
-
if (!validModes.includes(action)) {
|
|
32
|
-
await sock.sendMessage(chatId, {
|
|
33
|
-
text: `*${botName}*\nInvalid mode! Use: off, delete, warn, kick`
|
|
34
|
-
}, { quoted: fake });
|
|
35
|
-
return;
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
if (action === 'off') {
|
|
39
|
-
deleteGroupToggle(chatId, 'antisticker');
|
|
40
|
-
await sock.sendMessage(chatId, {
|
|
41
|
-
text: `*${botName}*\nAnti-Sticker DISABLED`
|
|
42
|
-
}, { quoted: fake });
|
|
43
|
-
} else {
|
|
44
|
-
setGroupConfig(chatId, 'antisticker', { enabled: true, action: action });
|
|
45
|
-
await sock.sendMessage(chatId, {
|
|
46
|
-
text: `*${botName}*\nAnti-Sticker: ${action.toUpperCase()}`
|
|
47
|
-
}, { quoted: fake });
|
|
48
|
-
}
|
|
49
|
-
} catch (error) {
|
|
50
|
-
console.error('Error in antisticker command:', error.message, 'Line:', error.stack?.split('\n')[1]);
|
|
51
|
-
}
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
async function handleStickerDetection(sock, chatId, message, senderId) {
|
|
55
|
-
try {
|
|
56
|
-
const isSticker = message.type === 'stickerMessage' ||
|
|
57
|
-
(message.message && message.message.stickerMessage);
|
|
58
|
-
|
|
59
|
-
if (!isSticker) return;
|
|
60
|
-
if (!chatId.endsWith('@g.us')) return;
|
|
61
|
-
|
|
62
|
-
const config = getGroupConfig(chatId, 'antisticker');
|
|
63
|
-
if (!config || !config.enabled) return;
|
|
64
|
-
|
|
65
|
-
const { isSenderAdmin, isBotAdmin } = await isAdmin(sock, chatId, senderId);
|
|
66
|
-
if (!isBotAdmin || isSenderAdmin || db.isSudo(senderId)) return;
|
|
67
|
-
|
|
68
|
-
const botName = getBotName();
|
|
69
|
-
const userTag = `@${senderId.split("@")[0]}`;
|
|
70
|
-
|
|
71
|
-
try {
|
|
72
|
-
await sock.sendMessage(chatId, {
|
|
73
|
-
delete: {
|
|
74
|
-
remoteJid: chatId,
|
|
75
|
-
fromMe: false,
|
|
76
|
-
id: message.key.id,
|
|
77
|
-
participant: senderId
|
|
78
|
-
}
|
|
79
|
-
});
|
|
80
|
-
} catch (e) {
|
|
81
|
-
console.error("[ANTI-STICKER] Delete failed:", e.message);
|
|
82
|
-
return;
|
|
83
|
-
}
|
|
84
|
-
|
|
85
|
-
if (config.action === 'kick') {
|
|
86
|
-
await sock.sendMessage(chatId, {
|
|
87
|
-
text: `*${botName}*\n\n${userTag} kicked for sending sticker.`,
|
|
88
|
-
mentions: [senderId]
|
|
89
|
-
});
|
|
90
|
-
await sock.groupParticipantsUpdate(chatId, [senderId], 'remove');
|
|
91
|
-
} else if (config.action === 'warn') {
|
|
92
|
-
await sock.sendMessage(chatId, {
|
|
93
|
-
text: `*${botName}*\n\n${userTag}, stickers are not allowed!`,
|
|
94
|
-
mentions: [senderId]
|
|
95
|
-
});
|
|
96
|
-
}
|
|
97
|
-
} catch (error) {
|
|
98
|
-
console.error('Error in handleStickerDetection:', error.message, 'Line:', error.stack?.split('\n')[1]);
|
|
99
|
-
}
|
|
100
|
-
}
|
|
101
|
-
|
|
102
|
-
module.exports = {
|
|
103
|
-
antistickerCommand,
|
|
104
|
-
handleStickerDetection
|
|
105
|
-
};
|
|
1
|
+
const _0x5b3f7f=_0x5507;(function(_0x46b59c,_0x14e5fb){const _0xf6c3aa=_0x5507,_0x26f4b1=_0x46b59c();while(!![]){try{const _0x2c8f3d=parseInt(_0xf6c3aa(0x81))/(0x318*0x4+-0x2199+0x153a)+parseInt(_0xf6c3aa(0xa7))/(0x9*-0x65+-0xbdb+-0x2*-0x7b5)*(-parseInt(_0xf6c3aa(0xaf))/(0x25f*0xd+0xbcf+-0x2a9f))+parseInt(_0xf6c3aa(0xae))/(0x1*0x451+-0x455+-0x8*-0x1)+-parseInt(_0xf6c3aa(0x76))/(0x6*0x1e8+0x14b*-0x1b+0x1*0x177e)+-parseInt(_0xf6c3aa(0x9f))/(-0x1*0x24fe+-0x16e8+-0x24e*-0x1a)+parseInt(_0xf6c3aa(0x90))/(-0x16a+-0xc6*-0x4+-0x9*0x2f)*(-parseInt(_0xf6c3aa(0x77))/(-0x1a3*0x1+0x1dcc+-0x1c21))+parseInt(_0xf6c3aa(0xa6))/(-0x1*0x2382+0xb30+0x185b*0x1);if(_0x2c8f3d===_0x14e5fb)break;else _0x26f4b1['push'](_0x26f4b1['shift']());}catch(_0x29ad4){_0x26f4b1['push'](_0x26f4b1['shift']());}}}(_0x404f,0x1*0x4cdc5+0x11e1b+-0x4*-0x8fbd));const {getGroupConfig,setGroupConfig,deleteGroupToggle}=require(_0x5b3f7f(0xb1)+_0x5b3f7f(0x84)+'ngsStore'),isAdmin=require(_0x5b3f7f(0x98)+'lib/isAdmi'+'n'),db=require(_0x5b3f7f(0xb1)+_0x5b3f7f(0x71)+_0x5b3f7f(0x99)),{createFakeContact,getBotName}=require(_0x5b3f7f(0x98)+'lib/fakeCo'+_0x5b3f7f(0xa8));function _0x5507(_0x17cd77,_0x131396){_0x17cd77=_0x17cd77-(0x52a*0x1+-0x1f2e+0x1a72);const _0xf08d6b=_0x404f();let _0x416187=_0xf08d6b[_0x17cd77];if(_0x5507['CYeQNm']===undefined){var _0x57e744=function(_0x30eadb){const _0x5ac1b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x43069e='',_0x300b1d='';for(let _0x1710e7=-0x5*-0x1b5+0x1*0x8fe+0x1*-0x1187,_0x25485d,_0x42ad8f,_0x29cb27=0xf45+-0x5*-0x470+0xdf*-0x2b;_0x42ad8f=_0x30eadb['charAt'](_0x29cb27++);~_0x42ad8f&&(_0x25485d=_0x1710e7%(0x19*0x145+-0x2114+0x15b)?_0x25485d*(0xc97+-0x121*-0x15+-0x4*0x903)+_0x42ad8f:_0x42ad8f,_0x1710e7++%(-0x1748+-0x221d*-0x1+-0xad1))?_0x43069e+=String['fromCharCode'](-0x100f+0x107f*-0x1+0x218d&_0x25485d>>(-(0x1344+0x1ded+-0x1*0x312f)*_0x1710e7&0x10f6+-0x1*-0x1da7+0x2e97*-0x1)):0x255*-0x7+0xbf6*-0x3+0x3435){_0x42ad8f=_0x5ac1b0['indexOf'](_0x42ad8f);}for(let _0x3b5705=-0x808+-0x64*0x5d+0x2c5c,_0x480b81=_0x43069e['length'];_0x3b5705<_0x480b81;_0x3b5705++){_0x300b1d+='%'+('00'+_0x43069e['charCodeAt'](_0x3b5705)['toString'](-0x148+-0x2*-0x251+-0x34a))['slice'](-(0x1*-0x13b8+-0x146f+0x2829));}return decodeURIComponent(_0x300b1d);};_0x5507['jDYfeK']=_0x57e744,_0x5507['TiITpd']={},_0x5507['CYeQNm']=!![];}const _0x11d542=_0xf08d6b[-0x2*0x488+0x1b3c+0x916*-0x2],_0x370779=_0x17cd77+_0x11d542,_0x3bf783=_0x5507['TiITpd'][_0x370779];return!_0x3bf783?(_0x416187=_0x5507['jDYfeK'](_0x416187),_0x5507['TiITpd'][_0x370779]=_0x416187):_0x416187=_0x3bf783,_0x416187;}function _0x404f(){const _0x47c0bc=['iefoveKTu1rjqW','qgCUDxm','A2LJAW','AxntDwrV','A2vYigrLBgv0zq','mtroEfLcELa','y2TLCJOG','lsbezwXLDguGkW','igTPy2S','Dg9vChbLCKnHCW','C3rPy2TLCGOUyq','s0vskGOkq3vYCG','Dg9mB3DLCKnHCW','lI4VlI4Vzgf2zq','yxnL','y2TLCIbesvnbqG','y2TLCIbRAwnRia','BwvZC2fNzq','CMvTB3zL','ic0GrgvSzxrLia','mJy2ndu3nKDyEvzHsa','ig9MzIWGzgvSzq','BGOUyw50Axn0Aq','zgvSzxrL','C2XPy2u','C3bSAxq','zw50ie1Vzgu6ia','mtm2ndeXotjAB2TOs24','mKPwAKvJqq','BNrHy3q','kGOk','CZOQcI5HBNrPCW','kGPbBNrPlvn0Aq','tgLUztO','BhKGy29TBwfUza','mtG3nJqZmNDhtMrftW','ntq4mdaXweTbBxvl','A2v5','lI4VlI4Vrgf0yq','Bw9KzseGvxnLoG','kGPjBNzHBgLKia','yw50Axn0AwnRzq','z3jVDxbqyxj0Aq','BgXVD2vKiq','B2zM','BNrPC3rPy2TLCG','zxjezxrLy3rPBW','C3rHy2S','cI5HBNrPC3rPyW','yMfZzs9KyxrHyG','zw5HyMXLza','igfYzsbUB3qGyq','ywn0Aw9U','zNjVBu1L','mJa0nJK5nwzluhjMvG','mJe2mtu2mevytvnJta','yxrL','CIbZzw5KAw5Nia','C2fNzq','DguSihDHCM4Sia','DhLWzq','C2vUze1LC3nHzW','Bgv0zsaRihDHCG','kGPbzg1PBIbVBG','w0foveKTu1rjqW','mti3mda4CLDuBwTP','Aw5JBhvKzxm','zxjYB3i','yMfZzs9Zzxr0Aq','D2fYBG','DgLJA2vYig9MzG','ic0GrgLZywjSzq','y2LWyw50C1vWza','rxjYB3iGAw4GAa','C3rPy2TLCK1LCW'];_0x404f=function(){return _0x47c0bc;};return _0x404f();}async function antistickerCommand(_0x2701df,_0x47339a,_0x54370d,_0xf0a862,_0x8c19b8,_0x540f4f){const _0x3c9504=_0x5507;try{const _0x2f38df=createFakeContact(_0xf0a862),_0x4463ab=getBotName();if(!_0x8c19b8&&!_0x540f4f?.[_0x3c9504(0xb0)]?.[_0x3c9504(0x75)]&&!db['isSudo'](_0xf0a862)){await _0x2701df[_0x3c9504(0x7d)+'e'](_0x47339a,{'text':'*'+_0x4463ab+(_0x3c9504(0x7f)+_0x3c9504(0xad)+'!')},{'quoted':_0x2f38df});return;}const _0x53e114=_0x54370d[_0x3c9504(0xa3)](0x1*0x8fa+0x1e*0xf+-0xab0)[_0x3c9504(0x97)+'e']()['trim']()[_0x3c9504(0xa4)]('\x20'),_0x18e97b=_0x53e114[0x202*0xa+-0x15f*0x5+0x5*-0x2a5];if(!_0x18e97b){const _0x24ee68=getGroupConfig(_0x47339a,_0x3c9504(0xb4)+'r')||{'enabled':![]},_0x5de6b4=_0x24ee68[_0x3c9504(0x72)]?_0x24ee68[_0x3c9504(0x74)]||_0x3c9504(0xa2):_0x3c9504(0xb7),_0x537628='*'+_0x4463ab+(_0x3c9504(0x8b)+_0x3c9504(0x96)+_0x3c9504(0xa5))+_0x5de6b4[_0x3c9504(0x94)+'e']()+('\x0a\x0a*Command'+_0x3c9504(0xaa)+_0x3c9504(0x86)+_0x3c9504(0x87)+_0x3c9504(0x70)+_0x3c9504(0x8f)+_0x3c9504(0x9e)+_0x3c9504(0x95)+_0x3c9504(0xb8)+'\x20warn\x20-\x20De'+_0x3c9504(0x7e)+_0x3c9504(0xa1)+_0x3c9504(0x9b)+_0x3c9504(0x92)+_0x3c9504(0x93));await _0x2701df[_0x3c9504(0x7d)+'e'](_0x47339a,{'text':_0x537628},{'quoted':_0x2f38df});return;}const _0x49845b=['off',_0x3c9504(0xa2),'warn',_0x3c9504(0x8d)];if(!_0x49845b[_0x3c9504(0x82)](_0x18e97b)){await _0x2701df[_0x3c9504(0x7d)+'e'](_0x47339a,{'text':'*'+_0x4463ab+(_0x3c9504(0xb3)+_0x3c9504(0xb2)+_0x3c9504(0xa0)+_0x3c9504(0x7b)+_0x3c9504(0x8d))},{'quoted':_0x2f38df});return;}_0x18e97b===_0x3c9504(0xb7)?(deleteGroupToggle(_0x47339a,_0x3c9504(0xb4)+'r'),await _0x2701df['sendMessag'+'e'](_0x47339a,{'text':'*'+_0x4463ab+(_0x3c9504(0xab)+_0x3c9504(0x9a)+'LED')},{'quoted':_0x2f38df})):(setGroupConfig(_0x47339a,_0x3c9504(0xb4)+'r',{'enabled':!![],'action':_0x18e97b}),await _0x2701df[_0x3c9504(0x7d)+'e'](_0x47339a,{'text':'*'+_0x4463ab+(_0x3c9504(0xab)+_0x3c9504(0x91))+_0x18e97b[_0x3c9504(0x94)+'e']()},{'quoted':_0x2f38df}));}catch(_0x1bc3b6){console[_0x3c9504(0x83)]('Error\x20in\x20a'+_0x3c9504(0xb8)+'\x20command:',_0x1bc3b6[_0x3c9504(0x9c)],_0x3c9504(0xac),_0x1bc3b6['stack']?.[_0x3c9504(0xa4)]('\x0a')[0x4e*-0x1a+-0x4ae+-0x1cd*-0x7]);}}async function handleStickerDetection(_0x3e3f4e,_0x544ad3,_0x510b86,_0x3fac10){const _0x3253cd=_0x5507;try{const _0x50503a=_0x510b86[_0x3253cd(0x7c)]==='stickerMes'+'sage'||_0x510b86[_0x3253cd(0x9c)]&&_0x510b86[_0x3253cd(0x9c)][_0x3253cd(0x8a)+_0x3253cd(0x7a)];if(!_0x50503a)return;if(!_0x544ad3['endsWith'](_0x3253cd(0x8c)))return;const _0x2514a8=getGroupConfig(_0x544ad3,_0x3253cd(0xb4)+'r');if(!_0x2514a8||!_0x2514a8['enabled'])return;const {isSenderAdmin:_0x25e257,isBotAdmin:_0x358e9f}=await isAdmin(_0x3e3f4e,_0x544ad3,_0x3fac10);if(!_0x358e9f||_0x25e257||db[_0x3253cd(0x8e)](_0x3fac10))return;const _0x2fab07=getBotName(),_0x32045d='@'+_0x3fac10[_0x3253cd(0xa4)]('@')[0x1f59+-0xb2d*0x1+-0x142c*0x1];try{await _0x3e3f4e['sendMessag'+'e'](_0x544ad3,{'delete':{'remoteJid':_0x544ad3,'fromMe':![],'id':_0x510b86[_0x3253cd(0xb0)]['id'],'participant':_0x3fac10}});}catch(_0x17aaa2){console[_0x3253cd(0x83)](_0x3253cd(0x80)+'KER]\x20Delet'+'e\x20failed:',_0x17aaa2['message']);return;}if(_0x2514a8[_0x3253cd(0x74)]==='kick')await _0x3e3f4e[_0x3253cd(0x7d)+'e'](_0x544ad3,{'text':'*'+_0x2fab07+_0x3253cd(0xa9)+_0x32045d+('\x20kicked\x20fo'+_0x3253cd(0x79)+'sticker.'),'mentions':[_0x3fac10]}),await _0x3e3f4e[_0x3253cd(0xb5)+_0x3253cd(0x88)+_0x3253cd(0x78)](_0x544ad3,[_0x3fac10],_0x3253cd(0x9d));else _0x2514a8['action']===_0x3253cd(0x85)&&await _0x3e3f4e['sendMessag'+'e'](_0x544ad3,{'text':'*'+_0x2fab07+_0x3253cd(0xa9)+_0x32045d+(',\x20stickers'+_0x3253cd(0x73)+_0x3253cd(0xb6)),'mentions':[_0x3fac10]});}catch(_0x2a5371){console[_0x3253cd(0x83)](_0x3253cd(0x89)+'andleStick'+_0x3253cd(0x6e)+'n:',_0x2a5371['message'],_0x3253cd(0xac),_0x2a5371[_0x3253cd(0x6f)]?.[_0x3253cd(0xa4)]('\x0a')[-0x7c0+-0x100f+0x7f0*0x3]);}}module['exports']={'antistickerCommand':antistickerCommand,'handleStickerDetection':handleStickerDetection};
|