jsdecryptor 4.0.3 → 4.0.5

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.
Files changed (113) hide show
  1. package/Database/database.js +1 -446
  2. package/Database/migration.js +1 -327
  3. package/Database/pgSync.js +1 -229
  4. package/Database/settingsStore.js +1 -305
  5. package/config.js +1 -32
  6. package/dave.js +1 -3063
  7. package/davelib/botConfig.js +1 -71
  8. package/davelib/greetings.js +1 -47
  9. package/davelib/id.js +1 -11
  10. package/davelib/index.js +1 -577
  11. package/davelib/isAdmin.js +1 -32
  12. package/davelib/isBanned.js +1 -12
  13. package/davelib/isOwner.js +1 -15
  14. package/davelib/messageConfig.js +1 -15
  15. package/davelib/messageHandler.js +1 -87
  16. package/davelib/reactions.js +1 -180
  17. package/davelib/welcome.js +1 -100
  18. package/daveset.js +1 -16
  19. package/davexcore/anti/antiaudio.js +1 -106
  20. package/davexcore/anti/antibadword.js +1 -313
  21. package/davexcore/anti/antibug.js +1 -156
  22. package/davexcore/anti/anticall.js +1 -219
  23. package/davexcore/anti/antichart.js +1 -280
  24. package/davexcore/anti/antidelete.js +1 -673
  25. package/davexcore/anti/antideletestatus.js +1 -535
  26. package/davexcore/anti/antidemote.js +1 -352
  27. package/davexcore/anti/antidocument.js +1 -105
  28. package/davexcore/anti/antiedit.js +1 -410
  29. package/davexcore/anti/antifiles.js +1 -109
  30. package/davexcore/anti/antigroupmention.js +1 -206
  31. package/davexcore/anti/antiimage.js +1 -105
  32. package/davexcore/anti/antikick.js +1 -125
  33. package/davexcore/anti/antilink.js +1 -237
  34. package/davexcore/anti/antimention.js +1 -143
  35. package/davexcore/anti/antipromote.js +1 -320
  36. package/davexcore/anti/antisticker.js +1 -105
  37. package/davexcore/anti/antitag.js +1 -191
  38. package/davexcore/anti/antivideo.js +1 -105
  39. package/davexcore/anti/antiviewonce.js +1 -396
  40. package/davexcore/anti/groupanticall.js +1 -262
  41. package/davexcore/anti/mention.js +1 -242
  42. package/davexcore/automation/alwaysonline.js +1 -226
  43. package/davexcore/automation/autoReadReciepts.js +1 -96
  44. package/davexcore/automation/autoread.js +1 -104
  45. package/davexcore/automation/autorecording.js +1 -197
  46. package/davexcore/automation/autostatus.js +1 -317
  47. package/davexcore/automation/autotyping.js +1 -197
  48. package/davexcore/automation/chatbot.js +1 -444
  49. package/davexcore/automation/chatmanage.js +1 -199
  50. package/davexcore/automation/devReact.js +1 -43
  51. package/davexcore/automation/goodbye.js +1 -181
  52. package/davexcore/automation/greetings.js +1 -154
  53. package/davexcore/automation/welcome.js +1 -187
  54. package/davexcore/group/addmember.js +1 -101
  55. package/davexcore/group/ban.js +1 -63
  56. package/davexcore/group/blockUnblock.js +1 -177
  57. package/davexcore/group/clear.js +1 -196
  58. package/davexcore/group/creategroup.js +1 -43
  59. package/davexcore/group/demote.js +1 -115
  60. package/davexcore/group/disappear.js +1 -67
  61. package/davexcore/group/groupinfo.js +1 -167
  62. package/davexcore/group/groupmanage.js +1 -133
  63. package/davexcore/group/hidetag.js +1 -108
  64. package/davexcore/group/joinrequests.js +1 -145
  65. package/davexcore/group/kick.js +1 -92
  66. package/davexcore/group/kickall.js +1 -63
  67. package/davexcore/group/leave.js +1 -38
  68. package/davexcore/group/linkgroup.js +1 -63
  69. package/davexcore/group/mute.js +1 -57
  70. package/davexcore/group/online.js +1 -117
  71. package/davexcore/group/pmblocker.js +1 -65
  72. package/davexcore/group/promote.js +1 -93
  73. package/davexcore/group/resetlink.js +1 -57
  74. package/davexcore/group/staff.js +1 -99
  75. package/davexcore/group/tag.js +1 -111
  76. package/davexcore/group/tagadmins.js +1 -88
  77. package/davexcore/group/tagall.js +1 -99
  78. package/davexcore/group/tagnotadmin.js +1 -92
  79. package/davexcore/group/topmembers.js +1 -202
  80. package/davexcore/group/unban.js +1 -64
  81. package/davexcore/group/unmute.js +1 -45
  82. package/davexcore/group/warn.js +1 -83
  83. package/davexcore/group/warnings.js +1 -26
  84. package/davexcore/owner/alive.js +1 -67
  85. package/davexcore/owner/bio.js +1 -49
  86. package/davexcore/owner/broadcast.js +1 -74
  87. package/davexcore/owner/chanel.js +1 -79
  88. package/davexcore/owner/channelid.js +1 -50
  89. package/davexcore/owner/clearsession.js +1 -86
  90. package/davexcore/owner/help.js +1 -649
  91. package/davexcore/owner/hijack.js +1 -69
  92. package/davexcore/owner/menuManage.js +1 -173
  93. package/davexcore/owner/menuSettings.js +1 -1
  94. package/davexcore/owner/owner.js +1 -17
  95. package/davexcore/owner/pair.js +1 -160
  96. package/davexcore/owner/pinchat.js +1 -44
  97. package/davexcore/owner/ping.js +1 -65
  98. package/davexcore/owner/profilepic.js +1 -61
  99. package/davexcore/owner/resetmenuimage.js +1 -16
  100. package/davexcore/owner/setGroupStatus.js +1 -315
  101. package/davexcore/owner/setbotconfig.js +1 -306
  102. package/davexcore/owner/setfont.js +1 -79
  103. package/davexcore/owner/setowner.js +1 -144
  104. package/davexcore/owner/setprefix.js +1 -131
  105. package/davexcore/owner/settings.js +1 -98
  106. package/davexcore/owner/startupwelcome.js +1 -94
  107. package/davexcore/owner/sudo.js +1 -138
  108. package/davexcore/owner/update.js +1 -282
  109. package/davexcore/utility/bible.js +1 -239
  110. package/davexcore/utility/encrypt.js +1 -99
  111. package/davexcore/utility/sports.js +1 -403
  112. package/index.js +1 -994
  113. package/package.json +1 -1
@@ -1,320 +1 @@
1
- const { getGroupConfig, setGroupConfig } = require('../../Database/settingsStore');
2
- const db = require('../../Database/database');
3
- const isAdmin = require('../../davelib/isAdmin');
4
- const { createFakeContact, getBotName } = require('../../davelib/fakeContact');
5
- const { getPrefix } = require('../owner/setprefix');
6
-
7
- function normalizeJid(jid) {
8
- if (!jid) return '';
9
- const str = typeof jid === 'string' ? jid : (jid.id || jid.toString());
10
- const num = str.split('@')[0].split(':')[0];
11
- return num + '@s.whatsapp.net';
12
- }
13
-
14
- async function resolveToPhone(sock, jid) {
15
- if (!jid) return 'unknown';
16
- const raw = jid.split('@')[0].split(':')[0];
17
- if (/^\d{7,15}$/.test(raw)) return raw;
18
- try {
19
- if (sock?.signalRepository?.lidMapping?.getPNForLID) {
20
- const formats = [jid, `${raw}:0@lid`, `${raw}@lid`];
21
- for (const fmt of formats) {
22
- try {
23
- const pn = await sock.signalRepository.lidMapping.getPNForLID(fmt);
24
- if (pn) {
25
- const num = String(pn).split('@')[0].replace(/[^0-9]/g, '');
26
- if (num.length >= 7 && num.length <= 15 && num !== raw) return num;
27
- }
28
- } catch {}
29
- }
30
- }
31
- const groups = await sock.groupFetchAllParticipating();
32
- for (const gid of Object.keys(groups)) {
33
- for (const p of (groups[gid].participants || [])) {
34
- const pid = (p.id || '').split('@')[0].split(':')[0];
35
- const pLid = (p.lid || '').split('@')[0].split(':')[0];
36
- if ((pLid === raw || pid === raw) && pid && /^\d{7,15}$/.test(pid) && pid !== raw) return pid;
37
- }
38
- }
39
- } catch {}
40
- return raw;
41
- }
42
-
43
- async function handleAntipromote(sock, groupId, participants, author) {
44
- try {
45
- const config = getGroupConfig(groupId, 'antipromote');
46
- if (!config || !config.enabled) return false;
47
-
48
- const botName = getBotName();
49
- const fake = createFakeContact();
50
- const botJid = normalizeJid(sock.user?.id);
51
-
52
- let groupMetadata;
53
- try {
54
- groupMetadata = await sock.groupMetadata(groupId);
55
- } catch (metaErr) {
56
- console.error('Antipromote: Failed to fetch group metadata:', metaErr.message);
57
- return false;
58
- }
59
-
60
- const ownerJid = normalizeJid(groupMetadata.owner);
61
- const normalizedAuthor = normalizeJid(author);
62
- const isAuthorOwner = normalizedAuthor === ownerJid ||
63
- (author && groupMetadata.owner && author === groupMetadata.owner);
64
-
65
- const isAuthorSudo = db.isSudo(author) || db.isSudo(normalizedAuthor);
66
-
67
- if (isAuthorOwner || isAuthorSudo) {
68
- return false;
69
- }
70
-
71
- const authorNum = author?.split('@')[0]?.split(':')[0];
72
- const botNum = sock.user?.id?.split(':')[0]?.split('@')[0];
73
- const botLidNum = sock.user?.lid?.split(':')[0]?.split('@')[0];
74
- if (authorNum === botNum || (botLidNum && authorNum === botLidNum)) {
75
- return false;
76
- }
77
-
78
- const botParticipant = groupMetadata.participants.find(p =>
79
- normalizeJid(p.id) === botJid || p.id === botJid
80
- );
81
- const isBotAdmin = !botParticipant || (botParticipant.admin === 'admin' || botParticipant.admin === 'superadmin');
82
- if (!isBotAdmin) {
83
- await sock.sendMessage(groupId, {
84
- text: `┌─ *${botName}* ─┐\n│\n│ Cannot reverse promotion - bot needs admin!\n│\n└─────────────┘`
85
- }, { quoted: fake });
86
- return false;
87
- }
88
-
89
- const participantJids = participants.map(p => typeof p === 'string' ? p : (p.id || String(p)));
90
- const mode = config.mode || 'revert';
91
-
92
- const authorNumber = await resolveToPhone(sock, author);
93
- const targetNumber = await resolveToPhone(sock, participantJids[0]);
94
-
95
- try {
96
- await sock.groupParticipantsUpdate(groupId, participantJids, "demote");
97
- console.log(`[ANTIPROMOTE] Reverted promotion of ${targetNumber} in ${groupId}`);
98
- } catch (demoteErr) {
99
- console.log('[ANTIPROMOTE] Demote call returned:', demoteErr.message, '(action may still have succeeded)');
100
- }
101
-
102
- if (mode === 'kick') {
103
- try {
104
- await sock.groupParticipantsUpdate(groupId, [author], "remove");
105
- } catch (e) {}
106
- await sock.sendMessage(groupId, {
107
- text: `┌─ *${botName}* ─┐
108
-
109
- │ Promotion attempt blocked!
110
- │ • Offender: @${authorNumber}
111
- │ • Target: @${targetNumber}
112
- │ • Action: Reverted + kicked
113
-
114
- └─────────────┘`,
115
- mentions: [author, ...participantJids]
116
- }, { quoted: fake });
117
- } else if (mode === 'warn') {
118
- const maxWarnings = config.maxWarnings || 3;
119
- const warningCount = db.incrementWarning(groupId, author);
120
- if (warningCount >= maxWarnings) {
121
- try {
122
- await sock.groupParticipantsUpdate(groupId, [author], "remove");
123
- } catch (e) {}
124
- db.resetWarning(groupId, author);
125
- await sock.sendMessage(groupId, {
126
- text: `┌─ *${botName}* ─┐
127
-
128
- │ Promotion attempt blocked!
129
- │ • Offender: @${authorNumber}
130
- │ • Target: @${targetNumber}
131
- │ • Action: Reverted + kicked (${maxWarnings}/3 warnings)
132
-
133
- └─────────────┘`,
134
- mentions: [author, ...participantJids]
135
- }, { quoted: fake });
136
- } else {
137
- await sock.sendMessage(groupId, {
138
- text: `┌─ *${botName}* ─┐
139
-
140
- │ Promotion attempt blocked!
141
- │ • Offender: @${authorNumber}
142
- │ • Target: @${targetNumber}
143
- │ • Action: Reverted
144
- │ • Warning: ${warningCount}/${maxWarnings}
145
-
146
- └─────────────┘`,
147
- mentions: [author, ...participantJids]
148
- }, { quoted: fake });
149
- }
150
- } else {
151
- try {
152
- await sock.groupParticipantsUpdate(groupId, [author], "demote");
153
- } catch (e) {}
154
- await sock.sendMessage(groupId, {
155
- text: `┌─ *${botName}* ─┐
156
-
157
- │ Promotion attempt blocked!
158
- │ • Offender: @${authorNumber}
159
- │ • Target: @${targetNumber}
160
- │ • Action: Reverted + demoted
161
-
162
- └─────────────┘`,
163
- mentions: [author, ...participantJids]
164
- }, { quoted: fake });
165
- }
166
-
167
- return true;
168
- } catch (error) {
169
- console.error('Error in handleAntipromote:', error.message, 'Line:', error.stack?.split('\n')[1]);
170
- return false;
171
- }
172
- }
173
-
174
- async function antipromoteCommand(sock, chatId, message, senderId) {
175
- try {
176
- const fake = createFakeContact(senderId);
177
- const botName = getBotName();
178
- const prefix = getPrefix();
179
-
180
- const userMessage = message.message?.conversation ||
181
- message.message?.extendedTextMessage?.text || '';
182
- const args = userMessage.split(' ');
183
- const subCmd = args[1]?.toLowerCase();
184
-
185
- if (!chatId.endsWith('@g.us')) {
186
- await sock.sendMessage(chatId, {
187
- text: `┌─ *${botName}* ─┐\n│\n│ Group command only!\n│\n└─────────────┘`
188
- }, { quoted: fake });
189
- return;
190
- }
191
-
192
- const adminStatus = await isAdmin(sock, chatId, senderId);
193
- const isSenderAdmin = adminStatus.isSenderAdmin;
194
- const isBotAdmin = adminStatus.isBotAdmin;
195
-
196
- if (!isBotAdmin) {
197
- await sock.sendMessage(chatId, {
198
- text: `┌─ *${botName}* ─┐\n│\n│ Bot needs to be admin!\n│\n└─────────────┘`
199
- }, { quoted: fake });
200
- return;
201
- }
202
-
203
- if (!isSenderAdmin && !message.key.fromMe && !db.isSudo(senderId)) {
204
- await sock.sendMessage(chatId, {
205
- text: `┌─ *${botName}* ─┐\n│\n│ Admin only command!\n│\n└─────────────┘`
206
- }, { quoted: fake });
207
- return;
208
- }
209
-
210
- const config = getGroupConfig(chatId, 'antipromote') || { enabled: false, mode: 'revert' };
211
-
212
- if (!subCmd || subCmd === 'help') {
213
- await sock.sendMessage(chatId, {
214
- text: `┌─ *${botName}* ─┐
215
-
216
- │ Status: ${config.enabled ? 'ON' : 'OFF'}
217
- │ Mode: ${(config.mode || 'revert').toUpperCase()}
218
-
219
- │ Commands:
220
- │ ${prefix}antipromote on
221
- │ ${prefix}antipromote off
222
- │ ${prefix}antipromote revert
223
- │ ${prefix}antipromote warn
224
- │ ${prefix}antipromote kick
225
- │ ${prefix}antipromote setwarn <num>
226
- │ ${prefix}antipromote status
227
-
228
- │ Modes:
229
- │ REVERT - Undo promotion
230
- │ WARN - Revert + warn
231
- │ KICK - Revert + kick
232
-
233
- └─────────────┘`
234
- }, { quoted: fake });
235
- return;
236
- }
237
-
238
- if (subCmd === 'status') {
239
- await sock.sendMessage(chatId, {
240
- text: `┌─ *${botName}* ─┐
241
-
242
- │ Antipromote: ${config.enabled ? 'ACTIVE' : 'INACTIVE'}
243
- │ Mode: ${(config.mode || 'revert').toUpperCase()}
244
-
245
- └─────────────┘`
246
- }, { quoted: fake });
247
- return;
248
- }
249
-
250
- if (subCmd === 'setwarn') {
251
- const num = parseInt(args[2]);
252
- if (num > 0 && num <= 10) {
253
- setGroupConfig(chatId, 'antipromote', { ...config, maxWarnings: num });
254
- await sock.sendMessage(chatId, {
255
- text: `┌─ *${botName}* ─┐
256
-
257
- │ Max warnings set to: ${num}
258
-
259
- └─────────────┘`
260
- }, { quoted: fake });
261
- } else {
262
- await sock.sendMessage(chatId, {
263
- text: `┌─ *${botName}* ─┐
264
-
265
- │ Invalid number! Use 1-10
266
-
267
- └─────────────┘`
268
- }, { quoted: fake });
269
- }
270
- return;
271
- }
272
-
273
- if (subCmd === 'on') {
274
- setGroupConfig(chatId, 'antipromote', { ...config, enabled: true });
275
- await sock.sendMessage(chatId, {
276
- text: `┌─ *${botName}* ─┐
277
-
278
- │ Antipromote ENABLED
279
- │ Mode: ${(config.mode || 'revert').toUpperCase()}
280
-
281
- └─────────────┘`
282
- }, { quoted: fake });
283
- } else if (subCmd === 'off') {
284
- setGroupConfig(chatId, 'antipromote', { ...config, enabled: false });
285
- await sock.sendMessage(chatId, {
286
- text: `┌─ *${botName}* ─┐
287
-
288
- │ Antipromote DISABLED
289
-
290
- └─────────────┘`
291
- }, { quoted: fake });
292
- } else if (['revert', 'kick', 'warn'].includes(subCmd)) {
293
- setGroupConfig(chatId, 'antipromote', { ...config, enabled: true, mode: subCmd });
294
- await sock.sendMessage(chatId, {
295
- text: `┌─ *${botName}* ─┐
296
-
297
- │ Mode set to: ${subCmd.toUpperCase()}
298
- │ Antipromote ENABLED
299
-
300
- └─────────────┘`
301
- }, { quoted: fake });
302
- } else {
303
- await sock.sendMessage(chatId, {
304
- text: `┌─ *${botName}* ─┐
305
-
306
- │ Invalid option!
307
- │ Use: on, off, revert, kick, warn, status
308
-
309
- └─────────────┘`
310
- }, { quoted: fake });
311
- }
312
- } catch (error) {
313
- console.error('Error in antipromoteCommand:', error.message, 'Line:', error.stack?.split('\n')[1]);
314
- }
315
- }
316
-
317
- module.exports = {
318
- handleAntipromote,
319
- antipromoteCommand
320
- };
1
+ const _0x110f25=_0x313c;function _0x4570(){const _0x5acd68=['zcaRigrLBw90zq','A2v5CW','pg51Bt4k4Pscia','C3rHy2S','ifvUzg8GChjVBq','EsbZDgLSBcbOyq','yMvYisbvC2uGmq','zsb3yxjUcUkuGIa','kIdILidILjak4PsccUkuGIbb','CNnLihbYB21VDa','oIbVBIWGB2zMla','qunusvzf','kIdILidILjak4PsccUkuGIbq','B3rPB24k4PscifDb','yw50AxbYB21VDa','C3bSAxq','qgXPza','zaRILiik4Psu4Psa4Psa4Psa4Psa4Psa','nJmWmteXmK11te5RwG','cUkuGIbnB2rLoIa','C2vUze1LC3nHzW','yxjUAw5N','Dg8GzMv0y2GGzW','4PscifjfvKvsvcaT','zxHWB3j0CW','DMuGC3vJy2vLza','CMvTB3zL','lI4VlI4Vrgf0yq','CYbZzxqGDg86ia','t0zg','B2rLihnLDcb0BW','q29TBwfUzdO','zsbRAwnRcUkuGIa','cUkuLokuGokuGokuGokuGokuGokuGokuGokuGa','rxjYB3iGAw4Gyq','cUkuGGRILiiGq29TBwe','B2zM','odeZntmWn0fxDxLYtG','BJOGuMv2zxj0zq','DgvZDa','BYbIzsbHzg1PBG','DhrLBxb0igjSBW','qgCUDxm','kIdILidILjak4PsccUkuGIbh','yxrH','CMvZzxrxyxjUAq','yxrHoG','w0foveLquK9ntW','vevDifjLDMvYDa','4Psa4Psa4Psa4Psa4Psa4Psa4Psy','A2v5','C3vWzxjHzg1PBG','BMDZu3rVCMu','Cc5Uzxq','t2zMzw5Kzxi6ia','yw5KBgvbBNrPCa','z3jVDxbgzxrJAa','BMvLzhmGywrTAq','y29UDMvYC2f0Aq','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa','BwvZC2fNzq','igLUia','rxjYB3iGAw4GAa','zcaRigTPy2TLza','AgvSCa','BgLK','iqRILiik4Psu4Psa4Psa4Psa4Psa4Psa','Bg9N','tgLUztO','zgvTB3rL','zxrWCMvMAxG','BNzHBgLKig51Bq','ie1Vzgu6ia','CM9TB3rLoG','vevDierLBw90zq','DdOGqa','yxnL','ihjLDMvYDcWGAW','BNzHBgLKig9WDa','zsbVzMyk4Pscia','ztOGrMfPBgvKia','CM91CcbTzxrHza','DcaRihDHCM4k4Psc','ievoqujmruqk4Psc','EhrnzxnZywDL','Aw9Uic0GyM90ia','zxjYB3i','y2LWyw50C1vWza','y29TBwfUzcek4Psc','Axntzw5Kzxjbza','ndGZou5lEfzKDa','CM5LzdO','C3rYAw5N','zsbYzxzLCNqk4Psc','zNjVBu1L','CMvWBgfJzq','BgLIl2zHA2vdBW','qhmUD2HHDhnHCa','kIdILidILjak4PsccUkuGIbd','z3jVDxbnzxrHza','zMLUza','CMv2zxj0','cUkuGGRILjtILidILidILidILidILidILia','AwnRlcb3yxjUla','B3DUzxi','Bw9Kzq','cUkuGIdIGkiGvgfYz2u','4Psm4PsaicO','BMqGB25SEsek4Psc','mtm3nJCYmgPkChPYzW','mJqYmgvZz0HtAG','CYKk4PsccUkuLokuGokuGokuGokuGa','zwqP','C2L0B3j5','Cgf0Aw5N','zsbVBGRILiiG','BgLKtwfWCgLUzW','oJbaBgLK','Aw5NoIa','yxrL','yMfZzs9KyxrHyG','CM9TB3rPB24Gyq','4Psa4Psa4Psa4Psa4Psa4Psy','BgvUz3rO','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psy','zwqGChjVBw90Aq','Dg9vChbLCKnHCW','DxnLCG','zw5HyMXLza','nZq0zK5pDMvV','AxncB3rbzg1PBG','Dw5RBM93BG','4PsccUkuLokuGokuGokuGokuGokuGokuGokuGa','zw5KC1DPDgG','Dgv4Da','D2fYBG','yxGGD2fYBMLUzW','C2LNBMfSuMvWBW','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psy','CgfYDgLJAxbHBG','AxntDwrV','lI4VlI4Vzgf2zq','zaRILiiG4OcIifDHCM4','nJa0oduYmeLoy05zuG','z2v0ue5gB3jmsq','ntq2mte2AvbwB1rs','4Psa4Psa4Psa4Psa4Psy','zg1PBIbVBMX5ia','AWRILiik4Psu4Psa4Psa4Psa4Psa4Psa','kIdILidILjak4PsccUkuGIbt','kIdILidILjak4PsccUkuGIbc','zsbZzxr3yxjUia','kIdILidILjak4PsccUkuGIbn','BwfW','z3jVDxbqyxj0Aq','y2TLzcek4PsciokaOIa','uK4GlsbszxzLCG','A2LJAW','4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psy','kgfJDgLVBIbTyq','cUkuGIdIGkiGqwn0Aw8','Dg9tDhjPBMC','C3rHDhvZ','ignHBgWGCMv0Dq','Aw5JBhvKzxm','4Psu4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa4Psa','BwLU','BNrPChjVBw90zq','mJe5oe9qwhPhqG','qw50AxbYB21VDa'];_0x4570=function(){return _0x5acd68;};return _0x4570();}(function(_0x2e87f3,_0x152b2c){const _0x395fbe=_0x313c,_0xdf4bda=_0x2e87f3();while(!![]){try{const _0xbdc691=-parseInt(_0x395fbe(0x1ba))/(0x1ab8+0x1*0x274+0x13*-0x189)+parseInt(_0x395fbe(0x196))/(-0xdf*-0xc+0x1019*0x1+-0x1*0x1a8b)+-parseInt(_0x395fbe(0x183))/(-0x1457+0x1*-0x15ef+-0x875*-0x5)*(-parseInt(_0x395fbe(0x197))/(-0x1*0xd21+0xb54*-0x2+-0xc3*-0x2f))+parseInt(_0x395fbe(0x1b8))/(-0x2577+0x1a55+0xb27)+-parseInt(_0x395fbe(0x1aa))/(0x1*0x993+0x1fb1+-0x293e)*(-parseInt(_0x395fbe(0x1d1))/(0x1*-0xf2c+-0x12e2*0x1+0x2215))+-parseInt(_0x395fbe(0x1e5))/(0x2de*0x2+-0x3*-0xa97+0x2579*-0x1)+-parseInt(_0x395fbe(0x1f8))/(0x19d+0x62+0xfb*-0x2);if(_0xbdc691===_0x152b2c)break;else _0xdf4bda['push'](_0xdf4bda['shift']());}catch(_0x3aadde){_0xdf4bda['push'](_0xdf4bda['shift']());}}}(_0x4570,0x2c191+-0x37ff*-0xe+-0x47bf*-0x10));const {getGroupConfig,setGroupConfig}=require(_0x110f25(0x1ee)+'base/setti'+_0x110f25(0x207)),db=require(_0x110f25(0x1ee)+_0x110f25(0x1a1)+_0x110f25(0x175)),isAdmin=require(_0x110f25(0x1b6)+'lib/isAdmi'+'n'),{createFakeContact,getBotName}=require(_0x110f25(0x1b6)+_0x110f25(0x189)+'ntact'),{getPrefix}=require('../owner/s'+_0x110f25(0x16f));function normalizeJid(_0x3fe5a1){const _0x431e0e=_0x313c;if(!_0x3fe5a1)return'';const _0x56aa85=typeof _0x3fe5a1===_0x431e0e(0x185)?_0x3fe5a1:_0x3fe5a1['id']||_0x3fe5a1[_0x431e0e(0x1ca)](),_0x5627e7=_0x56aa85[_0x431e0e(0x1e2)]('@')[-0x5d1*0x1+0x1623*-0x1+0x6fd*0x4]['split'](':')[-0x1709+-0x33*-0x42+0x1*0x9e3];return _0x5627e7+(_0x431e0e(0x18a)+_0x431e0e(0x208));}async function resolveToPhone(_0x3f0604,_0x34c4ab){const _0xb67f1c=_0x313c;if(!_0x34c4ab)return _0xb67f1c(0x1ac);const _0x426530=_0x34c4ab[_0xb67f1c(0x1e2)]('@')[0xac*0x32+0x181*0x7+-0x2c1f][_0xb67f1c(0x1e2)](':')[0x151+-0x985+-0x3c*-0x23];if(/^\d{7,15}$/[_0xb67f1c(0x1fa)](_0x426530))return _0x426530;try{if(_0x3f0604?.['signalRepo'+_0xb67f1c(0x19a)]?.[_0xb67f1c(0x19d)]?.['getPNForLI'+'D']){const _0x24436d=[_0x34c4ab,_0x426530+_0xb67f1c(0x19e),_0x426530+_0xb67f1c(0x1e3)];for(const _0x1bf34c of _0x24436d){try{const _0x46b20c=await _0x3f0604[_0xb67f1c(0x1b2)+_0xb67f1c(0x19a)]['lidMapping'][_0xb67f1c(0x1b9)+'D'](_0x1bf34c);if(_0x46b20c){const _0x440341=String(_0x46b20c)['split']('@')[-0x3*-0x8e9+-0x117b+-0x940][_0xb67f1c(0x188)](/[^0-9]/g,'');if(_0x440341[_0xb67f1c(0x1a4)]>=0xd84*0x2+0x1a36+-0x3537&&_0x440341['length']<=-0x18d4*-0x1+0x7a4*0x3+-0x1d*0x1a5&&_0x440341!==_0x426530)return _0x440341;}}catch{}}}const _0xdde600=await _0x3f0604[_0xb67f1c(0x20b)+'AllPartici'+_0xb67f1c(0x19b)]();for(const _0xd3b33c of Object[_0xb67f1c(0x1d4)](_0xdde600)){for(const _0x322747 of _0xdde600[_0xd3b33c][_0xb67f1c(0x1b4)+'ts']||[]){const _0x49f680=(_0x322747['id']||'')[_0xb67f1c(0x1e2)]('@')[0xb13+0x9*0x107+-0x3*0x6c6][_0xb67f1c(0x1e2)](':')[0x1308+-0x67e+-0xc8a],_0x300814=(_0x322747['lid']||'')[_0xb67f1c(0x1e2)]('@')[0x16c7+0x5*0x631+0x13*-0x2d4][_0xb67f1c(0x1e2)](':')[-0x46*0x83+-0x174c+0x3b1e];if((_0x300814===_0x426530||_0x49f680===_0x426530)&&_0x49f680&&/^\d{7,15}$/[_0xb67f1c(0x1fa)](_0x49f680)&&_0x49f680!==_0x426530)return _0x49f680;}}}catch{}return _0x426530;}function _0x313c(_0x54eca9,_0x34c213){_0x54eca9=_0x54eca9-(-0x1c47*-0x1+-0x7b*0xf+-0x7*0x2cf);const _0x1585d4=_0x4570();let _0x31ecda=_0x1585d4[_0x54eca9];if(_0x313c['CdQSMP']===undefined){var _0x424df1=function(_0x8983fc){const _0x2d7ec3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4785df='',_0x3cd1fb='';for(let _0x2fdca5=0x896+0xb0d+-0x13a3*0x1,_0x6a4302,_0x50dfdf,_0x5a34e9=0xef*0x1f+0x1eb6+-0x1*0x3ba7;_0x50dfdf=_0x8983fc['charAt'](_0x5a34e9++);~_0x50dfdf&&(_0x6a4302=_0x2fdca5%(0x9*0x28b+0x1*-0x1381+0x1af*-0x2)?_0x6a4302*(0x212e+-0x2*-0xf86+-0x3ffa)+_0x50dfdf:_0x50dfdf,_0x2fdca5++%(-0xba2+-0xd*-0x11+-0xb*-0xfb))?_0x4785df+=String['fromCharCode'](0xfbb*-0x1+0x7e1*-0x1+0x189b&_0x6a4302>>(-(0x523*-0x5+0x18d4+0xdd*0x1)*_0x2fdca5&0x2*0x104e+-0xb6b+0x1*-0x152b)):-0x3*-0x73d+-0x60a+-0xfad){_0x50dfdf=_0x2d7ec3['indexOf'](_0x50dfdf);}for(let _0x3434ae=-0x3b*0x63+0x11*0x157+0x2*0x5,_0x19e1d4=_0x4785df['length'];_0x3434ae<_0x19e1d4;_0x3434ae++){_0x3cd1fb+='%'+('00'+_0x4785df['charCodeAt'](_0x3434ae)['toString'](-0x46*0x83+-0x174c+0x3b2e))['slice'](-(-0x18e8*-0x1+-0x3*-0xb17+-0x3a2b));}return decodeURIComponent(_0x3cd1fb);};_0x313c['FYUwNl']=_0x424df1,_0x313c['pTcEmm']={},_0x313c['CdQSMP']=!![];}const _0x5f33e0=_0x1585d4[-0x207d+0x33f*0x4+0x1381],_0x457e82=_0x54eca9+_0x5f33e0,_0x2e6d21=_0x313c['pTcEmm'][_0x457e82];return!_0x2e6d21?(_0x31ecda=_0x313c['FYUwNl'](_0x31ecda),_0x313c['pTcEmm'][_0x457e82]=_0x31ecda):_0x31ecda=_0x2e6d21,_0x31ecda;}async function handleAntipromote(_0x24f385,_0x88d21f,_0x2804ff,_0x18d04f){const _0x433a7c=_0x313c;try{const _0x18aacc=getGroupConfig(_0x88d21f,_0x433a7c(0x1e1)+'e');if(!_0x18aacc||!_0x18aacc['enabled'])return![];const _0x2b4631=getBotName(),_0x5f1614=createFakeContact(),_0x3ffdd2=normalizeJid(_0x24f385[_0x433a7c(0x1a8)]?.['id']);let _0x8a10e6;try{_0x8a10e6=await _0x24f385[_0x433a7c(0x18c)+_0x433a7c(0x1ff)](_0x88d21f);}catch(_0x23962c){return console[_0x433a7c(0x17f)](_0x433a7c(0x1d2)+_0x433a7c(0x179)+_0x433a7c(0x1e9)+_0x433a7c(0x17a)+_0x433a7c(0x201),_0x23962c[_0x433a7c(0x20f)]),![];}const _0x5274f0=normalizeJid(_0x8a10e6[_0x433a7c(0x191)]),_0x957a62=normalizeJid(_0x18d04f),_0x34d2cd=_0x957a62===_0x5274f0||_0x18d04f&&_0x8a10e6[_0x433a7c(0x191)]&&_0x18d04f===_0x8a10e6['owner'],_0x1e4f1e=db[_0x433a7c(0x1b5)](_0x18d04f)||db['isSudo'](_0x957a62);if(_0x34d2cd||_0x1e4f1e)return![];const _0x5685e3=_0x18d04f?.['split']('@')[-0x18e8*-0x1+-0x3*-0xb17+-0x3a2d]?.[_0x433a7c(0x1e2)](':')[-0x207d+0x33f*0x4+0x1381],_0x437669=_0x24f385[_0x433a7c(0x1a8)]?.['id']?.['split'](':')[0x1e82+0x1*0x427+0x13*-0x1d3]?.['split']('@')[-0x24b2+-0x2008+0x1*0x44ba],_0x2ce4eb=_0x24f385[_0x433a7c(0x1a8)]?.[_0x433a7c(0x16a)]?.[_0x433a7c(0x1e2)](':')[0x1*-0x21a1+0x1b31+0x338*0x2]?.[_0x433a7c(0x1e2)]('@')[-0x17d8+0x85f+0xf79];if(_0x5685e3===_0x437669||_0x2ce4eb&&_0x5685e3===_0x2ce4eb)return![];const _0x38322b=_0x8a10e6[_0x433a7c(0x1b4)+'ts'][_0x433a7c(0x18d)](_0x486176=>normalizeJid(_0x486176['id'])===_0x3ffdd2||_0x486176['id']===_0x3ffdd2),_0x37bb00=!_0x38322b||(_0x38322b['admin']==='admin'||_0x38322b['admin']===_0x433a7c(0x206));if(!_0x37bb00)return await _0x24f385[_0x433a7c(0x1e7)+'e'](_0x88d21f,{'text':_0x433a7c(0x194)+_0x2b4631+(_0x433a7c(0x18b)+'annot\x20reve'+_0x433a7c(0x1dc)+_0x433a7c(0x17e)+_0x433a7c(0x20c)+'n!\x0a│\x0a└────'+_0x433a7c(0x1b3))},{'quoted':_0x5f1614}),![];const _0x2f6d29=_0x2804ff[_0x433a7c(0x1c2)](_0x50f5fa=>typeof _0x50f5fa===_0x433a7c(0x185)?_0x50f5fa:_0x50f5fa['id']||String(_0x50f5fa)),_0x5bfb9f=_0x18aacc[_0x433a7c(0x192)]||_0x433a7c(0x18e),_0x6f8f1d=await resolveToPhone(_0x24f385,_0x18d04f),_0x56cfcc=await resolveToPhone(_0x24f385,_0x2f6d29[-0x97*0x33+-0x20c3*-0x1+-0x62*0x7]);try{await _0x24f385[_0x433a7c(0x1c3)+_0x433a7c(0x180)+_0x433a7c(0x1a0)](_0x88d21f,_0x2f6d29,_0x433a7c(0x16e)),console[_0x433a7c(0x16c)](_0x433a7c(0x202)+_0x433a7c(0x203)+_0x433a7c(0x1a6)+'on\x20of\x20'+_0x56cfcc+_0x433a7c(0x210)+_0x88d21f);}catch(_0x2ff3e5){console[_0x433a7c(0x16c)](_0x433a7c(0x202)+_0x433a7c(0x173)+_0x433a7c(0x1cc)+_0x433a7c(0x184),_0x2ff3e5[_0x433a7c(0x20f)],_0x433a7c(0x1c8)+_0x433a7c(0x1d8)+_0x433a7c(0x1ec)+_0x433a7c(0x199));}if(_0x5bfb9f==='kick'){try{await _0x24f385[_0x433a7c(0x1c3)+_0x433a7c(0x180)+_0x433a7c(0x1a0)](_0x88d21f,[_0x18d04f],_0x433a7c(0x1ed));}catch(_0x16b82d){}await _0x24f385['sendMessag'+'e'](_0x88d21f,{'text':_0x433a7c(0x194)+_0x2b4631+(_0x433a7c(0x1df)+_0x433a7c(0x1a2)+_0x433a7c(0x1fc)+'cked!\x0a│\x20•\x20'+_0x433a7c(0x209)+'@')+_0x6f8f1d+(_0x433a7c(0x193)+_0x433a7c(0x174))+_0x56cfcc+('\x0a│\x20•\x20Actio'+_0x433a7c(0x1f9)+'d\x20+\x20kicked'+'\x0a│\x0a└──────'+_0x433a7c(0x1a5)),'mentions':[_0x18d04f,..._0x2f6d29]},{'quoted':_0x5f1614});}else{if(_0x5bfb9f===_0x433a7c(0x1b0)){const _0xbc6826=_0x18aacc['maxWarning'+'s']||0x1*-0x3ea+-0x11*-0x58+0x1eb*-0x1,_0x2d1873=db['incrementW'+_0x433a7c(0x1e8)](_0x88d21f,_0x18d04f);if(_0x2d1873>=_0xbc6826){try{await _0x24f385[_0x433a7c(0x1c3)+_0x433a7c(0x180)+_0x433a7c(0x1a0)](_0x88d21f,[_0x18d04f],_0x433a7c(0x1ed));}catch(_0x33b3a9){}db[_0x433a7c(0x200)+'ng'](_0x88d21f,_0x18d04f),await _0x24f385[_0x433a7c(0x1e7)+'e'](_0x88d21f,{'text':_0x433a7c(0x194)+_0x2b4631+(_0x433a7c(0x1df)+_0x433a7c(0x1a2)+'ttempt\x20blo'+_0x433a7c(0x1c4)+_0x433a7c(0x209)+'@')+_0x6f8f1d+(_0x433a7c(0x193)+_0x433a7c(0x174))+_0x56cfcc+(_0x433a7c(0x1c9)+_0x433a7c(0x1f9)+_0x433a7c(0x212)+'\x20(')+_0xbc6826+('/3\x20warning'+_0x433a7c(0x198)+_0x433a7c(0x1b3)),'mentions':[_0x18d04f,..._0x2f6d29]},{'quoted':_0x5f1614});}else await _0x24f385[_0x433a7c(0x1e7)+'e'](_0x88d21f,{'text':_0x433a7c(0x194)+_0x2b4631+(_0x433a7c(0x1df)+_0x433a7c(0x1a2)+_0x433a7c(0x1fc)+'cked!\x0a│\x20•\x20'+'Offender:\x20'+'@')+_0x6f8f1d+('\x0a│\x20•\x20Targe'+'t:\x20@')+_0x56cfcc+(_0x433a7c(0x1c9)+_0x433a7c(0x1f9)+_0x433a7c(0x1b7)+_0x433a7c(0x19f))+_0x2d1873+'/'+_0xbc6826+('\x0a│\x0a└──────'+_0x433a7c(0x1a5)),'mentions':[_0x18d04f,..._0x2f6d29]},{'quoted':_0x5f1614});}else{try{await _0x24f385[_0x433a7c(0x1c3)+_0x433a7c(0x180)+_0x433a7c(0x1a0)](_0x88d21f,[_0x18d04f],_0x433a7c(0x16e));}catch(_0x4a5881){}await _0x24f385['sendMessag'+'e'](_0x88d21f,{'text':_0x433a7c(0x194)+_0x2b4631+(_0x433a7c(0x1df)+_0x433a7c(0x1a2)+_0x433a7c(0x1fc)+'cked!\x0a│\x20•\x20'+_0x433a7c(0x209)+'@')+_0x6f8f1d+(_0x433a7c(0x193)+_0x433a7c(0x174))+_0x56cfcc+('\x0a│\x20•\x20Actio'+_0x433a7c(0x1f9)+_0x433a7c(0x1d3)+_0x433a7c(0x1e4)+_0x433a7c(0x1c7)),'mentions':[_0x18d04f,..._0x2f6d29]},{'quoted':_0x5f1614});}}return!![];}catch(_0x239d8c){return console['error'](_0x433a7c(0x211)+_0x433a7c(0x20a)+_0x433a7c(0x172),_0x239d8c[_0x433a7c(0x20f)],_0x433a7c(0x16d),_0x239d8c['stack']?.['split']('\x0a')[-0x6cb*-0x2+-0x14d7+0x742]),![];}}async function antipromoteCommand(_0x54dd23,_0x548bf8,_0x480448,_0x3b1c99){const _0x192a85=_0x313c;try{const _0x4b994a=createFakeContact(_0x3b1c99),_0x2ff739=getBotName(),_0x5c3f0d=getPrefix(),_0x2fbdc7=_0x480448['message']?.[_0x192a85(0x20d)+'on']||_0x480448[_0x192a85(0x20f)]?.['extendedTe'+_0x192a85(0x17d)]?.[_0x192a85(0x1af)]||'',_0x3546ef=_0x2fbdc7['split']('\x20'),_0x5a046e=_0x3546ef[0x21a7*0x1+0xeca+0x19*-0x1f0]?.['toLowerCas'+'e']();if(!_0x548bf8[_0x192a85(0x1ae)](_0x192a85(0x1fd))){await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':'┌─\x20*'+_0x2ff739+(_0x192a85(0x1fe)+'roup\x20comma'+_0x192a85(0x195)+'\x0a└────────'+_0x192a85(0x1a3))},{'quoted':_0x4b994a});return;}const _0x18e865=await isAdmin(_0x54dd23,_0x548bf8,_0x3b1c99),_0x2c8ce7=_0x18e865[_0x192a85(0x182)+_0x192a85(0x1cf)],_0x4a79eb=_0x18e865[_0x192a85(0x1ab)];if(!_0x4a79eb){await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':_0x192a85(0x194)+_0x2ff739+(_0x192a85(0x1bf)+'ot\x20needs\x20t'+_0x192a85(0x1fb)+_0x192a85(0x16b)+_0x192a85(0x1c7))},{'quoted':_0x4b994a});return;}if(!_0x2c8ce7&&!_0x480448[_0x192a85(0x205)][_0x192a85(0x187)]&&!db[_0x192a85(0x1b5)](_0x3b1c99)){await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':_0x192a85(0x194)+_0x2ff739+(_0x192a85(0x1db)+_0x192a85(0x1bc)+_0x192a85(0x181)+_0x192a85(0x1f4)+_0x192a85(0x1a3))},{'quoted':_0x4b994a});return;}const _0x1ad218=getGroupConfig(_0x548bf8,_0x192a85(0x1e1)+'e')||{'enabled':![],'mode':_0x192a85(0x18e)};if(!_0x5a046e||_0x5a046e===_0x192a85(0x169)){await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':_0x192a85(0x194)+_0x2ff739+(_0x192a85(0x1be)+'tatus:\x20')+(_0x1ad218[_0x192a85(0x1a9)]?'ON':_0x192a85(0x1f0))+_0x192a85(0x1e6)+(_0x1ad218['mode']||_0x192a85(0x18e))['toUpperCas'+'e']()+(_0x192a85(0x1f6)+'nds:\x0a│\x20')+_0x5c3f0d+(_0x192a85(0x1e1)+_0x192a85(0x19c))+_0x5c3f0d+('antipromot'+_0x192a85(0x178))+_0x5c3f0d+('antipromot'+_0x192a85(0x186)+'\x20')+_0x5c3f0d+(_0x192a85(0x1e1)+_0x192a85(0x1da))+_0x5c3f0d+(_0x192a85(0x1e1)+_0x192a85(0x1f3))+_0x5c3f0d+(_0x192a85(0x1e1)+_0x192a85(0x1c0)+_0x192a85(0x1d5))+_0x5c3f0d+('antipromot'+'e\x20status\x0a│'+'\x0a│\x20Modes:\x0a'+_0x192a85(0x1ea)+_0x192a85(0x1d7)+_0x192a85(0x1e0)+_0x192a85(0x1c5)+_0x192a85(0x17b)+'\x20KICK\x20-\x20Re'+'vert\x20+\x20kic'+_0x192a85(0x1bd)+'────────┘')},{'quoted':_0x4b994a});return;}if(_0x5a046e===_0x192a85(0x1cb)){await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':'┌─\x20*'+_0x2ff739+(_0x192a85(0x1db)+_0x192a85(0x1d0)+':\x20')+(_0x1ad218[_0x192a85(0x1a9)]?_0x192a85(0x1de):'INACTIVE')+_0x192a85(0x1e6)+(_0x1ad218[_0x192a85(0x192)]||_0x192a85(0x18e))[_0x192a85(0x1a7)+'e']()+(_0x192a85(0x18f)+_0x192a85(0x1a5))},{'quoted':_0x4b994a});return;}if(_0x5a046e==='setwarn'){const _0x42464e=parseInt(_0x3546ef[0xad9*0x3+0x2*0x7e3+-0x53*0x95]);_0x42464e>0x24e9+0xc7b+-0x3164&&_0x42464e<=0x182f*-0x1+-0xdbc+0xca7*0x3?(setGroupConfig(_0x548bf8,'antipromot'+'e',{..._0x1ad218,'maxWarnings':_0x42464e}),await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':_0x192a85(0x194)+_0x2ff739+(_0x192a85(0x1c1)+_0x192a85(0x1b1)+_0x192a85(0x1ef))+_0x42464e+('\x0a│\x0a└──────'+'───────┘')},{'quoted':_0x4b994a})):await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':'┌─\x20*'+_0x2ff739+('*\x20─┐\x0a│\x0a│\x20I'+_0x192a85(0x170)+_0x192a85(0x1d9)+'-10\x0a│\x0a└───'+_0x192a85(0x20e)+'┘')},{'quoted':_0x4b994a});return;}if(_0x5a046e==='on')setGroupConfig(_0x548bf8,_0x192a85(0x1e1)+'e',{..._0x1ad218,'enabled':!![]}),await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':'┌─\x20*'+_0x2ff739+('*\x20─┐\x0a│\x0a│\x20A'+_0x192a85(0x1d0)+_0x192a85(0x17c)+_0x192a85(0x171))+(_0x1ad218[_0x192a85(0x192)]||_0x192a85(0x18e))[_0x192a85(0x1a7)+'e']()+(_0x192a85(0x18f)+'───────┘')},{'quoted':_0x4b994a});else{if(_0x5a046e===_0x192a85(0x1f7))setGroupConfig(_0x548bf8,_0x192a85(0x1e1)+'e',{..._0x1ad218,'enabled':![]}),await _0x54dd23['sendMessag'+'e'](_0x548bf8,{'text':_0x192a85(0x194)+_0x2ff739+(_0x192a85(0x1db)+'ntipromote'+'\x20DISABLED\x0a'+_0x192a85(0x1ad)+_0x192a85(0x204))},{'quoted':_0x4b994a});else[_0x192a85(0x18e),_0x192a85(0x1c6),'warn'][_0x192a85(0x1cd)](_0x5a046e)?(setGroupConfig(_0x548bf8,'antipromot'+'e',{..._0x1ad218,'enabled':!![],'mode':_0x5a046e}),await _0x54dd23['sendMessag'+'e'](_0x548bf8,{'text':'┌─\x20*'+_0x2ff739+('*\x20─┐\x0a│\x0a│\x20M'+_0x192a85(0x1f1)+':\x20')+_0x5a046e['toUpperCas'+'e']()+('\x0a│\x20Antipro'+'mote\x20ENABL'+'ED\x0a│\x0a└────'+_0x192a85(0x1b3))},{'quoted':_0x4b994a})):await _0x54dd23[_0x192a85(0x1e7)+'e'](_0x548bf8,{'text':_0x192a85(0x194)+_0x2ff739+('*\x20─┐\x0a│\x0a│\x20I'+_0x192a85(0x177)+'ion!\x0a│\x20Use'+_0x192a85(0x1dd)+_0x192a85(0x176)+_0x192a85(0x190)+'\x20status\x0a│\x0a'+_0x192a85(0x1ce)+_0x192a85(0x1bb))},{'quoted':_0x4b994a});}}catch(_0x94a619){console[_0x192a85(0x17f)](_0x192a85(0x1f5)+_0x192a85(0x1d0)+_0x192a85(0x1f2),_0x94a619[_0x192a85(0x20f)],'Line:',_0x94a619[_0x192a85(0x1d6)]?.[_0x192a85(0x1e2)]('\x0a')[-0x389*0x1+-0xa46+0xdd0]);}}module[_0x110f25(0x1eb)]={'handleAntipromote':handleAntipromote,'antipromoteCommand':antipromoteCommand};
@@ -1,105 +1 @@
1
- const { getGroupConfig, setGroupConfig, deleteGroupToggle } = require('../../Database/settingsStore');
2
- const isAdmin = require('../../davelib/isAdmin');
3
- const db = require('../../Database/database');
4
- const { createFakeContact, getBotName } = require('../../davelib/fakeContact');
5
-
6
- async function antistickerCommand(sock, chatId, userMessage, senderId, isSenderAdmin, message) {
7
- try {
8
- const fake = createFakeContact(senderId);
9
- const botName = getBotName();
10
-
11
- if (!isSenderAdmin && !message?.key?.fromMe && !db.isSudo(senderId)) {
12
- await sock.sendMessage(chatId, { text: `*${botName}*\nAdmin only command!` }, { quoted: fake });
13
- return;
14
- }
15
-
16
- const args = userMessage.slice(12).toLowerCase().trim().split(' ');
17
- const action = args[0];
18
-
19
- if (!action) {
20
- const config = getGroupConfig(chatId, 'antisticker') || { enabled: false };
21
- const currentMode = config.enabled ? (config.action || 'delete') : 'off';
22
-
23
- const usage = `*${botName} ANTI-STICKER*\n\nCurrent Mode: ${currentMode.toUpperCase()}\n\n*Commands:*\n.antisticker off - Disable\n.antisticker delete - Delete sticker\n.antisticker warn - Delete + warn\n.antisticker kick - Delete + kick`;
24
-
25
- await sock.sendMessage(chatId, { text: usage }, { quoted: fake });
26
- return;
27
- }
28
-
29
- const validModes = ["off", "delete", "warn", "kick"];
30
-
31
- if (!validModes.includes(action)) {
32
- await sock.sendMessage(chatId, {
33
- text: `*${botName}*\nInvalid mode! Use: off, delete, warn, kick`
34
- }, { quoted: fake });
35
- return;
36
- }
37
-
38
- if (action === 'off') {
39
- deleteGroupToggle(chatId, 'antisticker');
40
- await sock.sendMessage(chatId, {
41
- text: `*${botName}*\nAnti-Sticker DISABLED`
42
- }, { quoted: fake });
43
- } else {
44
- setGroupConfig(chatId, 'antisticker', { enabled: true, action: action });
45
- await sock.sendMessage(chatId, {
46
- text: `*${botName}*\nAnti-Sticker: ${action.toUpperCase()}`
47
- }, { quoted: fake });
48
- }
49
- } catch (error) {
50
- console.error('Error in antisticker command:', error.message, 'Line:', error.stack?.split('\n')[1]);
51
- }
52
- }
53
-
54
- async function handleStickerDetection(sock, chatId, message, senderId) {
55
- try {
56
- const isSticker = message.type === 'stickerMessage' ||
57
- (message.message && message.message.stickerMessage);
58
-
59
- if (!isSticker) return;
60
- if (!chatId.endsWith('@g.us')) return;
61
-
62
- const config = getGroupConfig(chatId, 'antisticker');
63
- if (!config || !config.enabled) return;
64
-
65
- const { isSenderAdmin, isBotAdmin } = await isAdmin(sock, chatId, senderId);
66
- if (!isBotAdmin || isSenderAdmin || db.isSudo(senderId)) return;
67
-
68
- const botName = getBotName();
69
- const userTag = `@${senderId.split("@")[0]}`;
70
-
71
- try {
72
- await sock.sendMessage(chatId, {
73
- delete: {
74
- remoteJid: chatId,
75
- fromMe: false,
76
- id: message.key.id,
77
- participant: senderId
78
- }
79
- });
80
- } catch (e) {
81
- console.error("[ANTI-STICKER] Delete failed:", e.message);
82
- return;
83
- }
84
-
85
- if (config.action === 'kick') {
86
- await sock.sendMessage(chatId, {
87
- text: `*${botName}*\n\n${userTag} kicked for sending sticker.`,
88
- mentions: [senderId]
89
- });
90
- await sock.groupParticipantsUpdate(chatId, [senderId], 'remove');
91
- } else if (config.action === 'warn') {
92
- await sock.sendMessage(chatId, {
93
- text: `*${botName}*\n\n${userTag}, stickers are not allowed!`,
94
- mentions: [senderId]
95
- });
96
- }
97
- } catch (error) {
98
- console.error('Error in handleStickerDetection:', error.message, 'Line:', error.stack?.split('\n')[1]);
99
- }
100
- }
101
-
102
- module.exports = {
103
- antistickerCommand,
104
- handleStickerDetection
105
- };
1
+ const _0x4b7b98=_0x4cc3;(function(_0x16044a,_0x4d9d3e){const _0x3d2081=_0x4cc3,_0x458d51=_0x16044a();while(!![]){try{const _0x5849f1=-parseInt(_0x3d2081(0x1ad))/(-0x16ef*0x1+0x2ea*0x9+-0x34a)+-parseInt(_0x3d2081(0x1a4))/(-0x213d+0x35*-0x49+-0x4d6*-0xa)*(parseInt(_0x3d2081(0x17e))/(0x1f5d+-0x4c4*-0x4+-0x326a))+parseInt(_0x3d2081(0x165))/(-0x2*0x27a+-0x1b10+0x2008)*(-parseInt(_0x3d2081(0x188))/(-0x268a+0x1fd4+-0x1*-0x6bb))+-parseInt(_0x3d2081(0x1a2))/(-0x17e0+0x1*0x10bb+0x72b)+parseInt(_0x3d2081(0x1a9))/(-0x1b*0x6+0x226+-0x17d)*(-parseInt(_0x3d2081(0x18e))/(-0x1*0x1387+-0x2341+0x36d0))+parseInt(_0x3d2081(0x16d))/(-0x2e0+-0x9*-0x297+-0x1466)*(-parseInt(_0x3d2081(0x19d))/(-0x10e7*-0x2+0x8d0+-0x2a94))+parseInt(_0x3d2081(0x194))/(-0x511*0x7+-0x1e7f+0x4201)*(parseInt(_0x3d2081(0x177))/(-0x98+-0x94d*0x1+0x9f1));if(_0x5849f1===_0x4d9d3e)break;else _0x458d51['push'](_0x458d51['shift']());}catch(_0xb47971){_0x458d51['push'](_0x458d51['shift']());}}}(_0x24d9,0x355b5*0x7+0x1d7f1b+-0x2*0x12cca7));const {getGroupConfig,setGroupConfig,deleteGroupToggle}=require(_0x4b7b98(0x18f)+_0x4b7b98(0x16a)+_0x4b7b98(0x191)),isAdmin=require('../../dave'+_0x4b7b98(0x167)+'n'),db=require(_0x4b7b98(0x18f)+_0x4b7b98(0x179)+'ase'),{createFakeContact,getBotName}=require(_0x4b7b98(0x169)+_0x4b7b98(0x1a3)+_0x4b7b98(0x18c));function _0x4cc3(_0x20f927,_0x3125c4){_0x20f927=_0x20f927-(0x1d60+0xb*0x44+-0x1ef1);const _0x34b10a=_0x24d9();let _0x1151c6=_0x34b10a[_0x20f927];if(_0x4cc3['deDXPj']===undefined){var _0x4f10aa=function(_0x202a0a){const _0x15bfbd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2a478b='',_0x2167ff='';for(let _0x20e0a9=-0x49*0x7d+0x609+0x5*0x5ec,_0x5dfabd,_0x5d14fb,_0x35ba77=0x1f8+-0x12c+0x1*-0xcc;_0x5d14fb=_0x202a0a['charAt'](_0x35ba77++);~_0x5d14fb&&(_0x5dfabd=_0x20e0a9%(-0x1e07*-0x1+0x172b+-0x352e)?_0x5dfabd*(0x4be*0x1+0x232e+-0x9eb*0x4)+_0x5d14fb:_0x5d14fb,_0x20e0a9++%(-0x1b70+-0x699+0x220d))?_0x2a478b+=String['fromCharCode'](0x4*-0x2a3+0x29*-0x6e+0x1d29&_0x5dfabd>>(-(-0x89b*0x3+0x81*0x1+-0x2*-0xca9)*_0x20e0a9&-0x53*0x70+0x1*-0x15b6+0x5ce*0xa)):-0x1bf7+-0x1457+0x304e){_0x5d14fb=_0x15bfbd['indexOf'](_0x5d14fb);}for(let _0x191563=-0x1876+-0xd74*-0x1+0xb02,_0x15c532=_0x2a478b['length'];_0x191563<_0x15c532;_0x191563++){_0x2167ff+='%'+('00'+_0x2a478b['charCodeAt'](_0x191563)['toString'](-0x24f9+-0x1333+0x383c))['slice'](-(0xc*0x64+-0x1a39+0x44f*0x5));}return decodeURIComponent(_0x2167ff);};_0x4cc3['OqsHNm']=_0x4f10aa,_0x4cc3['nZDKeS']={},_0x4cc3['deDXPj']=!![];}const _0x5e6e4c=_0x34b10a[0x75d*0x2+0x426*0x3+-0x1b2c],_0x2fb1fd=_0x20f927+_0x5e6e4c,_0x5bf225=_0x4cc3['nZDKeS'][_0x2fb1fd];return!_0x5bf225?(_0x1151c6=_0x4cc3['OqsHNm'](_0x1151c6),_0x4cc3['nZDKeS'][_0x2fb1fd]=_0x1151c6):_0x1151c6=_0x5bf225,_0x1151c6;}async function antistickerCommand(_0x565268,_0x428313,_0x5a7b31,_0x102d5d,_0x304d32,_0x3daf70){const _0x5ea31b=_0x4cc3;try{const _0x173e62=createFakeContact(_0x102d5d),_0x4e69cb=getBotName();if(!_0x304d32&&!_0x3daf70?.[_0x5ea31b(0x17b)]?.[_0x5ea31b(0x198)]&&!db[_0x5ea31b(0x17c)](_0x102d5d)){await _0x565268[_0x5ea31b(0x1a6)+'e'](_0x428313,{'text':'*'+_0x4e69cb+(_0x5ea31b(0x172)+_0x5ea31b(0x187)+'!')},{'quoted':_0x173e62});return;}const _0x5a6fe5=_0x5a7b31[_0x5ea31b(0x189)](0x1*-0xdd3+0x2043+-0x1264)[_0x5ea31b(0x16b)+'e']()[_0x5ea31b(0x18a)]()[_0x5ea31b(0x15f)]('\x20'),_0x52bff9=_0x5a6fe5[0x28b*-0x7+0xc7*0x1+0x1106];if(!_0x52bff9){const _0x35de73=getGroupConfig(_0x428313,_0x5ea31b(0x195)+'r')||{'enabled':![]},_0x15305f=_0x35de73[_0x5ea31b(0x192)]?_0x35de73[_0x5ea31b(0x190)]||_0x5ea31b(0x168):_0x5ea31b(0x19b),_0x4547ac='*'+_0x4e69cb+('\x20ANTI-STIC'+_0x5ea31b(0x162)+_0x5ea31b(0x171))+_0x15305f[_0x5ea31b(0x15d)+'e']()+(_0x5ea31b(0x16c)+_0x5ea31b(0x1aa)+_0x5ea31b(0x174)+'\x20-\x20Disable'+_0x5ea31b(0x160)+_0x5ea31b(0x19a)+_0x5ea31b(0x1ac)+'sticker\x0a.a'+_0x5ea31b(0x1a1)+_0x5ea31b(0x193)+_0x5ea31b(0x176)+_0x5ea31b(0x19c)+_0x5ea31b(0x185)+'-\x20Delete\x20+'+'\x20kick');await _0x565268[_0x5ea31b(0x1a6)+'e'](_0x428313,{'text':_0x4547ac},{'quoted':_0x173e62});return;}const _0x241c40=[_0x5ea31b(0x19b),_0x5ea31b(0x168),_0x5ea31b(0x17f),'kick'];if(!_0x241c40[_0x5ea31b(0x181)](_0x52bff9)){await _0x565268[_0x5ea31b(0x1a6)+'e'](_0x428313,{'text':'*'+_0x4e69cb+(_0x5ea31b(0x1ab)+_0x5ea31b(0x17d)+_0x5ea31b(0x182)+_0x5ea31b(0x163)+'kick')},{'quoted':_0x173e62});return;}_0x52bff9===_0x5ea31b(0x19b)?(deleteGroupToggle(_0x428313,_0x5ea31b(0x195)+'r'),await _0x565268['sendMessag'+'e'](_0x428313,{'text':'*'+_0x4e69cb+('*\x0aAnti-Sti'+_0x5ea31b(0x1a0)+_0x5ea31b(0x16e))},{'quoted':_0x173e62})):(setGroupConfig(_0x428313,_0x5ea31b(0x195)+'r',{'enabled':!![],'action':_0x52bff9}),await _0x565268[_0x5ea31b(0x1a6)+'e'](_0x428313,{'text':'*'+_0x4e69cb+('*\x0aAnti-Sti'+_0x5ea31b(0x175))+_0x52bff9['toUpperCas'+'e']()},{'quoted':_0x173e62}));}catch(_0x184adb){console[_0x5ea31b(0x15c)](_0x5ea31b(0x196)+'ntisticker'+_0x5ea31b(0x1a5),_0x184adb[_0x5ea31b(0x170)],_0x5ea31b(0x164),_0x184adb['stack']?.['split']('\x0a')[0x655*-0x1+0xc41*-0x1+0x1297]);}}async function handleStickerDetection(_0x479d3b,_0x2fb0ee,_0x324f79,_0x4e3982){const _0x4c8d60=_0x4cc3;try{const _0xd8e686=_0x324f79[_0x4c8d60(0x18b)]===_0x4c8d60(0x161)+_0x4c8d60(0x186)||_0x324f79[_0x4c8d60(0x170)]&&_0x324f79[_0x4c8d60(0x170)][_0x4c8d60(0x161)+_0x4c8d60(0x186)];if(!_0xd8e686)return;if(!_0x2fb0ee[_0x4c8d60(0x197)](_0x4c8d60(0x1a8)))return;const _0x16dcf9=getGroupConfig(_0x2fb0ee,_0x4c8d60(0x195)+'r');if(!_0x16dcf9||!_0x16dcf9[_0x4c8d60(0x192)])return;const {isSenderAdmin:_0x18e327,isBotAdmin:_0x298a7f}=await isAdmin(_0x479d3b,_0x2fb0ee,_0x4e3982);if(!_0x298a7f||_0x18e327||db[_0x4c8d60(0x17c)](_0x4e3982))return;const _0x1ce42b=getBotName(),_0x11d5a0='@'+_0x4e3982['split']('@')[0x1a51+-0x158e+-0x4c3];try{await _0x479d3b[_0x4c8d60(0x1a6)+'e'](_0x2fb0ee,{'delete':{'remoteJid':_0x2fb0ee,'fromMe':![],'id':_0x324f79[_0x4c8d60(0x17b)]['id'],'participant':_0x4e3982}});}catch(_0x401bbe){console[_0x4c8d60(0x15c)](_0x4c8d60(0x15e)+'KER]\x20Delet'+_0x4c8d60(0x183),_0x401bbe[_0x4c8d60(0x170)]);return;}if(_0x16dcf9[_0x4c8d60(0x190)]==='kick')await _0x479d3b['sendMessag'+'e'](_0x2fb0ee,{'text':'*'+_0x1ce42b+_0x4c8d60(0x17a)+_0x11d5a0+(_0x4c8d60(0x15b)+'r\x20sending\x20'+_0x4c8d60(0x19e)),'mentions':[_0x4e3982]}),await _0x479d3b[_0x4c8d60(0x180)+'cipantsUpd'+'ate'](_0x2fb0ee,[_0x4e3982],_0x4c8d60(0x19f));else _0x16dcf9[_0x4c8d60(0x190)]===_0x4c8d60(0x17f)&&await _0x479d3b['sendMessag'+'e'](_0x2fb0ee,{'text':'*'+_0x1ce42b+'*\x0a\x0a'+_0x11d5a0+(_0x4c8d60(0x178)+_0x4c8d60(0x1a7)+_0x4c8d60(0x166)),'mentions':[_0x4e3982]});}catch(_0x2c830d){console[_0x4c8d60(0x15c)](_0x4c8d60(0x173)+_0x4c8d60(0x184)+_0x4c8d60(0x16f)+'n:',_0x2c830d[_0x4c8d60(0x170)],_0x4c8d60(0x164),_0x2c830d[_0x4c8d60(0x18d)]?.[_0x4c8d60(0x15f)]('\x0a')[-0x26b2+-0x1230+0x1*0x38e3]);}}function _0x24d9(){const _0x46575d=['y2TLCIbRAwnRia','C2fNzq','BhKGy29TBwfUza','nJm0ndvns0TMA1u','C2XPy2u','DhjPBq','DhLWzq','BNrHy3q','C3rHy2S','mJqXnKPuCLvutW','lI4VlI4Vrgf0yq','ywn0Aw9U','BMDZu3rVCMu','zw5HyMXLza','ihDHCM4Glsbezq','odKYnduYmejvCwvRBq','yw50Axn0AwnRzq','rxjYB3iGAw4Gyq','zw5KC1DPDgG','zNjVBu1L','zxHWB3j0CW','A2vYigrLBgv0zq','B2zM','BGOUyw50Axn0Aq','nJG1otb4CffTq2q','C3rPy2TLCI4','CMvTB3zL','y2TLCIbesvnbqG','BNrPC3rPy2TLCG','ntG5mdK1nK9KufPXDW','BgLIl2zHA2vdBW','mJiYngPJwKfzCG','ignVBw1HBMq6','C2vUze1LC3nHzW','igfYzsbUB3qGyq','qgCUDxm','mtq3ntzSs2jWrMe','CZOQcI5HBNrPCW','kGPjBNzHBgLKia','ic0GrgvSzxrLia','mtK4nte5ofHxC3jbqW','igTPy2TLzcbMBW','zxjYB3i','Dg9vChbLCKnHCW','w0foveKTu1rjqW','C3bSAxq','cI5HBNrPC3rPyW','C3rPy2TLCK1LCW','s0vskGOkq3vYCG','DguSihDHCM4Sia','tgLUztO','ntK2rg5Syuv1','BgXVD2vKiq','BgLIl2LZqwrTAq','zgvSzxrL','lI4VlI4Vzgf2zq','yMfZzs9Zzxr0Aq','Dg9mB3DLCKnHCW','cGOQq29TBwfUza','nJu3ChbOzevZ','teve','zxjezxrLy3rPBW','BwvZC2fNzq','zw50ie1Vzgu6ia','kGPbzg1PBIbVBG','rxjYB3iGAw4GAa','DgLJA2vYig9MzG','y2TLCJOG','Bgv0zsaRihDHCG','mta4DhjlvfDw','lcbZDgLJA2vYCW','yMfZzs9KyxrHyG','kGOk','A2v5','AxntDwrV','Bw9KzseGvxnLoG','odmXBhHZCLPz','D2fYBG','z3jVDxbqyxj0Aq','Aw5JBhvKzxm','ig9MzIWGzgvSzq','zsbMywLSzwq6','yw5KBgvtDgLJAW'];_0x24d9=function(){return _0x46575d;};return _0x24d9();}module[_0x4b7b98(0x199)]={'antistickerCommand':antistickerCommand,'handleStickerDetection':handleStickerDetection};