@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
|
@@ -1,202 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const types_1 = require("./types");
|
|
4
|
-
// ═══════════════════════════════════════════════════════════════
|
|
5
|
-
// NEXT-LEVEL OWNER COMMANDS (Owner Only)
|
|
6
|
-
// deleteall, disappearing-all, disappearing-chat, 😂 (view-once)
|
|
7
|
-
// ═══════════════════════════════════════════════════════════════
|
|
8
|
-
// Disappearing durations in seconds
|
|
9
|
-
const DISAPPEARING_DURATIONS = {
|
|
10
|
-
'day': 86400, // 24 hours
|
|
11
|
-
'24h': 86400,
|
|
12
|
-
'week': 604800, // 7 days
|
|
13
|
-
'7d': 604800,
|
|
14
|
-
'90': 7776000, // 90 days
|
|
15
|
-
'90d': 7776000,
|
|
16
|
-
'off': 0, // Disable
|
|
17
|
-
'0': 0,
|
|
18
|
-
};
|
|
19
|
-
// ═══════════════════════════════════════════════════════════════
|
|
20
|
-
// .deleteall — Delete all bot's messages in current chat for everyone
|
|
21
|
-
// ═══════════════════════════════════════════════════════════════
|
|
22
|
-
(0, types_1.registerCommand)({
|
|
23
|
-
name: "deleteall",
|
|
24
|
-
aliases: ["nukeall", "delall"],
|
|
25
|
-
description: "Delete all bot messages for everyone (Owner only)",
|
|
26
|
-
category: "next-level-owner",
|
|
27
|
-
usage: ".deleteall",
|
|
28
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
29
|
-
if (!isOwner)
|
|
30
|
-
return;
|
|
31
|
-
const jid = msg.key.remoteJid;
|
|
32
|
-
try {
|
|
33
|
-
// First delete the command message itself
|
|
34
|
-
try {
|
|
35
|
-
await sock.sendMessage(jid, { delete: msg.key });
|
|
36
|
-
}
|
|
37
|
-
catch { }
|
|
38
|
-
// Use the best available method to clear the chat
|
|
39
|
-
// Method 1: Try disappearing + clear combo
|
|
40
|
-
try {
|
|
41
|
-
// Send a protocol message to clear chat
|
|
42
|
-
await sock.sendMessage(jid, {
|
|
43
|
-
disappearingMessagesInChat: 86400 // Set to 24h first
|
|
44
|
-
});
|
|
45
|
-
// Then immediately set back
|
|
46
|
-
await sock.sendMessage(jid, {
|
|
47
|
-
disappearingMessagesInChat: false
|
|
48
|
-
});
|
|
49
|
-
}
|
|
50
|
-
catch { }
|
|
51
|
-
// Method 2: Try chatModify with simpler payload
|
|
52
|
-
try {
|
|
53
|
-
await sock.chatModify({ clear: true }, jid, []);
|
|
54
|
-
}
|
|
55
|
-
catch { }
|
|
56
|
-
console.log(`[DELETEALL] Chat nuke attempted for ${jid}`);
|
|
57
|
-
}
|
|
58
|
-
catch (e) {
|
|
59
|
-
console.log('[DELETEALL] Error:', e.message);
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
});
|
|
63
|
-
// ═══════════════════════════════════════════════════════════════
|
|
64
|
-
// .disappearing-all — Set disappearing messages for ALL chats
|
|
65
|
-
// ═══════════════════════════════════════════════════════════════
|
|
66
|
-
(0, types_1.registerCommand)({
|
|
67
|
-
name: "disappearing-all",
|
|
68
|
-
aliases: ["disall", "ephemeralall"],
|
|
69
|
-
description: "Set disappearing for all chats (Owner only)",
|
|
70
|
-
category: "next-level-owner",
|
|
71
|
-
usage: ".disappearing-all <day/week/90/off>",
|
|
72
|
-
execute: async ({ sock, msg, args, reply, isOwner }) => {
|
|
73
|
-
if (!isOwner)
|
|
74
|
-
return;
|
|
75
|
-
if (args.length === 0) {
|
|
76
|
-
return reply("⏱️ *Disappearing Messages — All Chats*\n\nUsage: .disappearing-all <duration>\n\n📌 Options:\n• `day` — 24 hours\n• `week` — 7 days\n• `90` — 90 days\n• `off` — disable");
|
|
77
|
-
}
|
|
78
|
-
const duration = args[0].toLowerCase();
|
|
79
|
-
const seconds = DISAPPEARING_DURATIONS[duration];
|
|
80
|
-
if (seconds === undefined) {
|
|
81
|
-
return reply("❌ Invalid duration. Use: `day`, `week`, `90`, or `off`");
|
|
82
|
-
}
|
|
83
|
-
await reply(`⏱️ Setting disappearing messages (${duration}) for all chats...`);
|
|
84
|
-
let success = 0;
|
|
85
|
-
let failed = 0;
|
|
86
|
-
try {
|
|
87
|
-
// Get all chats the bot is in
|
|
88
|
-
const chats = await sock.groupFetchAllParticipating();
|
|
89
|
-
const chatIds = Object.keys(chats);
|
|
90
|
-
for (const chatId of chatIds) {
|
|
91
|
-
try {
|
|
92
|
-
await sock.sendMessage(chatId, { disappearingMessagesInChat: seconds === 0 ? false : seconds });
|
|
93
|
-
success++;
|
|
94
|
-
}
|
|
95
|
-
catch {
|
|
96
|
-
failed++;
|
|
97
|
-
}
|
|
98
|
-
// Small delay to prevent rate limits
|
|
99
|
-
await new Promise(r => setTimeout(r, 200));
|
|
100
|
-
}
|
|
101
|
-
}
|
|
102
|
-
catch (e) {
|
|
103
|
-
console.error('[DISAPPEARING-ALL]', e.message);
|
|
104
|
-
}
|
|
105
|
-
await reply(`✅ *Disappearing Messages Updated*\n\n⏱️ Duration: *${duration === 'off' ? 'OFF' : duration}*\n✓ Success: ${success}\n✗ Failed: ${failed}`);
|
|
106
|
-
}
|
|
107
|
-
});
|
|
108
|
-
// ═══════════════════════════════════════════════════════════════
|
|
109
|
-
// .disappearing-chat — Set disappearing for current chat only
|
|
110
|
-
// ═══════════════════════════════════════════════════════════════
|
|
111
|
-
(0, types_1.registerCommand)({
|
|
112
|
-
name: "disappearing-chat",
|
|
113
|
-
aliases: ["dischat", "ephemeral"],
|
|
114
|
-
description: "Set disappearing for this chat (Owner only)",
|
|
115
|
-
category: "next-level-owner",
|
|
116
|
-
usage: ".disappearing-chat <day/week/90/off>",
|
|
117
|
-
execute: async ({ sock, msg, args, reply, isOwner }) => {
|
|
118
|
-
if (!isOwner)
|
|
119
|
-
return;
|
|
120
|
-
const jid = msg.key.remoteJid;
|
|
121
|
-
if (args.length === 0) {
|
|
122
|
-
return reply("⏱️ *Disappearing Messages — This Chat*\n\nUsage: .disappearing-chat <duration>\n\n📌 Options:\n• `day` — 24 hours\n• `week` — 7 days\n• `90` — 90 days\n• `off` — disable");
|
|
123
|
-
}
|
|
124
|
-
const duration = args[0].toLowerCase();
|
|
125
|
-
const seconds = DISAPPEARING_DURATIONS[duration];
|
|
126
|
-
if (seconds === undefined) {
|
|
127
|
-
return reply("❌ Invalid duration. Use: `day`, `week`, `90`, or `off`");
|
|
128
|
-
}
|
|
129
|
-
try {
|
|
130
|
-
await sock.sendMessage(jid, { disappearingMessagesInChat: seconds === 0 ? false : seconds });
|
|
131
|
-
await reply(`✅ Disappearing messages set to *${duration === 'off' ? 'OFF' : duration}* for this chat`);
|
|
132
|
-
}
|
|
133
|
-
catch (e) {
|
|
134
|
-
console.error('[DISAPPEARING-CHAT]', e);
|
|
135
|
-
await reply("❌ Failed: " + e.message);
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
// ═══════════════════════════════════════════════════════════════
|
|
140
|
-
// .😂 — View-once reveal (alias for vv2, reply to view-once)
|
|
141
|
-
// ═══════════════════════════════════════════════════════════════
|
|
142
|
-
(0, types_1.registerCommand)({
|
|
143
|
-
name: "😂",
|
|
144
|
-
aliases: ["vv-reveal"],
|
|
145
|
-
description: "Reveal view-once message to DM",
|
|
146
|
-
category: "next-level-owner",
|
|
147
|
-
usage: ".😂 <reply to viewonce>",
|
|
148
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
149
|
-
if (!isOwner)
|
|
150
|
-
return;
|
|
151
|
-
const jid = msg.key.remoteJid;
|
|
152
|
-
const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
153
|
-
if (!quotedMsg) {
|
|
154
|
-
return reply("❌ Reply to a view-once message with .😂");
|
|
155
|
-
}
|
|
156
|
-
// Extract the view-once content
|
|
157
|
-
const viewOnce = quotedMsg.viewOnceMessage?.message ||
|
|
158
|
-
quotedMsg.viewOnceMessageV2?.message ||
|
|
159
|
-
quotedMsg.viewOnceMessageV2Extension?.message ||
|
|
160
|
-
quotedMsg;
|
|
161
|
-
if (!viewOnce) {
|
|
162
|
-
return reply("❌ No view-once content found");
|
|
163
|
-
}
|
|
164
|
-
try {
|
|
165
|
-
// Get the sender's DM JID (private chat)
|
|
166
|
-
const senderId = msg.key.participant || msg.key.remoteJid;
|
|
167
|
-
const senderDM = senderId?.split('@')[0]?.split(':')[0] + '@s.whatsapp.net';
|
|
168
|
-
// Forward the media to DM
|
|
169
|
-
if (viewOnce.imageMessage) {
|
|
170
|
-
const media = await sock.downloadMediaMessage({ key: msg.message?.extendedTextMessage?.contextInfo?.stanzaId ? { remoteJid: jid, id: msg.message.extendedTextMessage.contextInfo.stanzaId, participant: msg.message.extendedTextMessage.contextInfo.participant } : msg.key, message: quotedMsg });
|
|
171
|
-
await sock.sendMessage(senderDM, {
|
|
172
|
-
image: media,
|
|
173
|
-
caption: "👁️ *View-Once Revealed* 😂"
|
|
174
|
-
});
|
|
175
|
-
await reply("✅ Sent to your DM 😂");
|
|
176
|
-
}
|
|
177
|
-
else if (viewOnce.videoMessage) {
|
|
178
|
-
const media = await sock.downloadMediaMessage({ key: msg.message?.extendedTextMessage?.contextInfo?.stanzaId ? { remoteJid: jid, id: msg.message.extendedTextMessage.contextInfo.stanzaId, participant: msg.message.extendedTextMessage.contextInfo.participant } : msg.key, message: quotedMsg });
|
|
179
|
-
await sock.sendMessage(senderDM, {
|
|
180
|
-
video: media,
|
|
181
|
-
caption: "👁️ *View-Once Revealed* 😂"
|
|
182
|
-
});
|
|
183
|
-
await reply("✅ Sent to your DM 😂");
|
|
184
|
-
}
|
|
185
|
-
else if (viewOnce.audioMessage) {
|
|
186
|
-
const media = await sock.downloadMediaMessage({ key: msg.message?.extendedTextMessage?.contextInfo?.stanzaId ? { remoteJid: jid, id: msg.message.extendedTextMessage.contextInfo.stanzaId, participant: msg.message.extendedTextMessage.contextInfo.participant } : msg.key, message: quotedMsg });
|
|
187
|
-
await sock.sendMessage(senderDM, {
|
|
188
|
-
audio: media,
|
|
189
|
-
mimetype: 'audio/mpeg'
|
|
190
|
-
});
|
|
191
|
-
await reply("✅ Sent to your DM 😂");
|
|
192
|
-
}
|
|
193
|
-
else {
|
|
194
|
-
await reply("❌ Unsupported view-once type");
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
catch (e) {
|
|
198
|
-
console.error('[VV-REVEAL]', e);
|
|
199
|
-
await reply("❌ Failed to reveal: " + e.message);
|
|
200
|
-
}
|
|
201
|
-
}
|
|
202
|
-
});
|
|
1
|
+
'use strict';const _0x3a7876=_0x4ec8;function _0x4ec8(_0x545416,_0x419c28){_0x545416=_0x545416-0x1e6;const _0x19cc72=_0x19cc();let _0x4ec83e=_0x19cc72[_0x545416];if(_0x4ec8['jrCNmu']===undefined){var _0x46af4c=function(_0x29b0e0){const _0x42ac5e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x4cdc13='',_0x1f300d='';for(let _0x42453f=0x0,_0x332354,_0x4add96,_0x4ad13=0x0;_0x4add96=_0x29b0e0['charAt'](_0x4ad13++);~_0x4add96&&(_0x332354=_0x42453f%0x4?_0x332354*0x40+_0x4add96:_0x4add96,_0x42453f++%0x4)?_0x4cdc13+=String['fromCharCode'](0xff&_0x332354>>(-0x2*_0x42453f&0x6)):0x0){_0x4add96=_0x42ac5e['indexOf'](_0x4add96);}for(let _0x51388a=0x0,_0x68342b=_0x4cdc13['length'];_0x51388a<_0x68342b;_0x51388a++){_0x1f300d+='%'+('00'+_0x4cdc13['charCodeAt'](_0x51388a)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1f300d);};_0x4ec8['dOwtos']=_0x46af4c,_0x4ec8['lgWGfz']={},_0x4ec8['jrCNmu']=!![];}const _0x4f306c=_0x19cc72[0x0],_0x24f231=_0x545416+_0x4f306c,_0x9e0e1c=_0x4ec8['lgWGfz'][_0x24f231];return!_0x9e0e1c?(_0x4ec83e=_0x4ec8['dOwtos'](_0x4ec83e),_0x4ec8['lgWGfz'][_0x24f231]=_0x4ec83e):_0x4ec83e=_0x9e0e1c,_0x4ec83e;}(function(_0x385052,_0x268c2c){const _0x3ae3cc=_0x4ec8,_0x16eb83=_0x385052();while(!![]){try{const _0x19aeda=-parseInt(_0x3ae3cc(0x22d))/0x1+-parseInt(_0x3ae3cc(0x205))/0x2*(-parseInt(_0x3ae3cc(0x1f3))/0x3)+parseInt(_0x3ae3cc(0x1f5))/0x4*(-parseInt(_0x3ae3cc(0x207))/0x5)+-parseInt(_0x3ae3cc(0x228))/0x6*(parseInt(_0x3ae3cc(0x1f9))/0x7)+-parseInt(_0x3ae3cc(0x213))/0x8+parseInt(_0x3ae3cc(0x20d))/0x9+parseInt(_0x3ae3cc(0x212))/0xa*(parseInt(_0x3ae3cc(0x202))/0xb);if(_0x19aeda===_0x268c2c)break;else _0x16eb83['push'](_0x16eb83['shift']());}catch(_0x5421d1){_0x16eb83['push'](_0x16eb83['shift']());}}}(_0x19cc,0xc8cdf));function _0x19cc(){const _0x18647c=['CMvNAxn0zxjdB21Tyw5K','y0nywgO','mta0mZe1mdbWsfjozMK','ntqZnJi0og1wAhrQyq','EMz3s3m','DMrwwg8','BNvRzwfSBa','zg93BMXVywrnzwrPyu1LC3nHz2u','Ew5Uz0q','D1LAzxy','CgfYDgLJAxbHBNq','4PYfifnLBNqGDg8GEw91CIbetsdWN5Ic','BgvUz3rO','w0rftevurufmtf0GrxjYB3i6','z2fItvm','zxbOzw1LCMfS','BMv4Dc1SzxzLBc1VD25LCG','A2v5','y2HHDe1VzgLMEq','zgLZyxbWzwfYAw5NlwfSBa','B2zM','z3jVDxbgzxrJAefSBfbHCNrPy2LWyxrPBMC','zgvMAw5LuhjVCgvYDhK','D05jsNK','nJC4nZi3ognvy2Dcwq','rxnMzxu','DMLLD09Uy2vnzxnZywDLvJi','Aw1Hz2vnzxnZywDL','4P2mie5VihzPzxCTB25JzsbJB250zw50igzVDw5K','mJq1nJC1q1Lhtxn5','4P2mieLUDMfSAwqGzhvYyxrPB24UifvZztOGygrHEwaSigb3zwvRycWGydKWycWGB3iGyg9MzMa','qhmUD2HHDhnHChaUBMv0','CMvTB3rLsMLK','lI90ExbLCW','C2vUze1LC3nHz2u','8j+rGE+4JYaQvMLLDY1pBMnLifjLDMvHBgvKkIdWN5Ic','DMLLD09Uy2vnzxnZywDL','rgvSzxrLigfSBcbIB3qGBwvZC2fNzxmGzM9Yigv2zxj5B25LicHpD25LCIbVBMX5kq','kIbMB3iGDgHPCYbJAgf0','sgzKr24','4O+X77IpicPeAxnHChbLyxjPBMCGtwvZC2fNzxmG4OcuifrOAxmGq2HHDcOkcLvZywDLoIaUzgLZyxbWzwfYAw5NlwnOyxqGpgr1CMf0Aw9UpGOk8j+tJcbpChrPB25ZoGRIGkiGygrHEwaG4Ocuidi0igHVDxjZcUkaOIbGD2vLA2aG4OcuidCGzgf5CWRIGkiGydKWycdIGjqGotaGzgf5CWRIGkiGyg9MzMaG4OcuigrPC2fIBgu','4PYficPeAxnHChbLyxjPBMCGtwvZC2fNzxmGvxbKyxrLzcOkcUkpSE+4JYbeDxjHDgLVBJOGkG','x19LC01VzhvSzq','zxbOzw1LCMfSywXS','t0zg','Dg9mB3DLCKnHC2u','nti1mtuZDxLLAw5r','4O+X77IpifnLDhrPBMCGzgLZyxbWzwfYAw5Nig1LC3nHz2vZicG','otq1mdi4s3jZB1DM','yxvKAw9nzxnZywDL','DMLLD09Uy2vnzxnZywDLvJjfEhrLBNnPB24','zgLZyxbWzwfYAw5NlwnOyxq','n3Hcu3HmvW','zgLZy2HHDa','DMLKzw9nzxnZywDL','lMrPC2fWCgvHCMLUzY1HBgWGpgrHEs93zwvRlZKWl29MzJ4','zxH0zw5KzwruzxH0twvZC2fNzq','BwvZC2fNzq','Bg9N','zxjYB3i','yxvKAw8VBxbLzW','mtfOBxrpwNi','4P2mifjLCgX5ihrVigeGDMLLDY1VBMnLig1LC3nHz2uGD2L0AcaU8j+yGG','y29UDgv4DeLUzM8','mtHKB2XcEMe','qw1Jtuq','mtb4AezqCeK','DNyTCMv2zwfS','u2v0igrPC2fWCgvHCMLUzYbMB3iGDgHPCYbJAgf0icHpD25LCIbVBMX5kq','4O+X77IpicPeAxnHChbLyxjPBMCGtwvZC2fNzxmG4OcuiefSBcbdAgf0CYOkcLvZywDLoIaUzgLZyxbWzwfYAw5NlwfSBca8zhvYyxrPB24+cGRWN5omie9WDgLVBNm6cUkaOIbGzgf5ycdIGjqGmJqGAg91CNmk4OcIigb3zwvRycdIGjqGnYbKyxLZcUkaOIbGotbGiokaLca5mcbKyxLZcUkaOIbGB2zMycdIGjqGzgLZywjSzq','C3rHBNPHswq','lMrLBgv0zwfSBa','nJu5ntm3mwnbr2v6Bq','uMv2zwfSihzPzxCTB25JzsbTzxnZywDLihrViern','4PYfierPC2fWCgvHCMLUzYbTzxnZywDLCYbZzxqGDg8GkG'];_0x19cc=function(){return _0x18647c;};return _0x19cc();}Object[_0x3a7876(0x226)](exports,_0x3a7876(0x1ef),{'value':!![]});const types_1=require(_0x3a7876(0x1e6)),DISAPPEARING_DURATIONS={'day':0x15180,'24h':0x15180,'week':0x93a80,'7d':0x93a80,'90':0x76a700,'90d':0x76a700,'off':0x0,'0':0x0};(0x0,types_1[_0x3a7876(0x210)])({'name':'deleteall','aliases':[_0x3a7876(0x216),'delall'],'description':_0x3a7876(0x1ea),'category':'next-level-owner','usage':_0x3a7876(0x20c),'execute':async({sock:_0x3edc52,msg:_0x4fe6e7,reply:_0x384d81,isOwner:_0x523548})=>{const _0xd6409a=_0x3a7876;if(!_0x523548)return;const _0x3fab0f=_0x4fe6e7[_0xd6409a(0x221)][_0xd6409a(0x230)];try{try{await _0x3edc52['sendMessage'](_0x3fab0f,{'delete':_0x4fe6e7['key']});}catch{}try{await _0x3edc52[_0xd6409a(0x1e7)](_0x3fab0f,{'disappearingMessagesInChat':0x15180}),await _0x3edc52[_0xd6409a(0x1e7)](_0x3fab0f,{'disappearingMessagesInChat':![]});}catch{}try{await _0x3edc52[_0xd6409a(0x222)]({'clear':!![]},_0x3fab0f,[]);}catch{}console[_0xd6409a(0x1ff)]('[DELETEALL]\x20Chat\x20nuke\x20attempted\x20for\x20'+_0x3fab0f);}catch(_0x4b18d9){console['log'](_0xd6409a(0x21d),_0x4b18d9[_0xd6409a(0x1fe)]);}}}),(0x0,types_1[_0x3a7876(0x210)])({'name':_0x3a7876(0x223),'aliases':['disall',_0x3a7876(0x1f0)],'description':'Set\x20disappearing\x20for\x20all\x20chats\x20(Owner\x20only)','category':'next-level-owner','usage':_0x3a7876(0x1fc),'execute':async({sock:_0x1f33d5,msg:_0x1ff226,args:_0x344a0c,reply:_0x4068e1,isOwner:_0x409f2c})=>{const _0x1fff2f=_0x3a7876,_0x139dae={'AmcMD':function(_0x130528,_0x470b0d){return _0x130528(_0x470b0d);},'NMHBy':function(_0x4e4143,_0x5d1559){return _0x4e4143(_0x5d1559);},'zfwKs':'[DISAPPEARING-ALL]','PFKFf':_0x1fff2f(0x224),'wNIJy':_0x1fff2f(0x1f1)};if(!_0x409f2c)return;if(_0x344a0c[_0x1fff2f(0x21c)]===0x0)return _0x4068e1(_0x1fff2f(0x20a));const _0x1e7a73=_0x344a0c[0x0][_0x1fff2f(0x1f2)](),_0x5d8c16=DISAPPEARING_DURATIONS[_0x1e7a73];if(_0x5d8c16===undefined)return _0x139dae[_0x1fff2f(0x206)](_0x4068e1,_0x1fff2f(0x22e));await _0x139dae['NMHBy'](_0x4068e1,_0x1fff2f(0x1f4)+_0x1e7a73+')\x20for\x20all\x20chats...');let _0x2f3a3b=0x0,_0x5075f8=0x0;try{const _0x56723f=await _0x1f33d5[_0x1fff2f(0x225)](),_0x413589=Object['keys'](_0x56723f);for(const _0x235b3e of _0x413589){try{await _0x1f33d5[_0x1fff2f(0x1e7)](_0x235b3e,{'disappearingMessagesInChat':_0x5d8c16===0x0?![]:_0x5d8c16}),_0x2f3a3b++;}catch{_0x5075f8++;}await new Promise(_0x5c959c=>setTimeout(_0x5c959c,0xc8));}}catch(_0x615970){console[_0x1fff2f(0x200)](_0x139dae[_0x1fff2f(0x214)],_0x615970[_0x1fff2f(0x1fe)]);}await _0x4068e1(_0x1fff2f(0x1ee)+(_0x1e7a73===_0x139dae['PFKFf']?_0x139dae[_0x1fff2f(0x227)]:_0x1e7a73)+'*\x0a✓\x20Success:\x20'+_0x2f3a3b+'\x0a✗\x20Failed:\x20'+_0x5075f8);}}),(0x0,types_1['registerCommand'])({'name':_0x3a7876(0x1f8),'aliases':[_0x3a7876(0x1fa),_0x3a7876(0x21f)],'description':_0x3a7876(0x209),'category':_0x3a7876(0x220),'usage':'.disappearing-chat\x20<day/week/90/off>','execute':async({sock:_0x2625d2,msg:_0x38cc8f,args:_0xdd793f,reply:_0x40330e,isOwner:_0x53254a})=>{const _0x433ed7=_0x3a7876,_0x541a54={'tLVdy':function(_0x474129,_0x237123){return _0x474129(_0x237123);},'nbuIt':_0x433ed7(0x22e),'euKrh':function(_0x47da28,_0x579460){return _0x47da28(_0x579460);},'zOxBk':function(_0x4a531f,_0x224e9f){return _0x4a531f===_0x224e9f;},'wYZev':'❌\x20Failed:\x20'};if(!_0x53254a)return;const _0x2440ff=_0x38cc8f['key'][_0x433ed7(0x230)];if(_0xdd793f[_0x433ed7(0x21c)]===0x0)return _0x541a54['tLVdy'](_0x40330e,_0x433ed7(0x1ed));const _0x22f1f9=_0xdd793f[0x0][_0x433ed7(0x1f2)](),_0x4fd5f6=DISAPPEARING_DURATIONS[_0x22f1f9];if(_0x4fd5f6===undefined)return _0x40330e(_0x541a54['nbuIt']);try{await _0x2625d2[_0x433ed7(0x1e7)](_0x2440ff,{'disappearingMessagesInChat':_0x4fd5f6===0x0?![]:_0x4fd5f6}),await _0x541a54['euKrh'](_0x40330e,_0x433ed7(0x20f)+(_0x541a54['zOxBk'](_0x22f1f9,_0x433ed7(0x224))?_0x433ed7(0x1f1):_0x22f1f9)+_0x433ed7(0x1eb));}catch(_0x4d2835){console[_0x433ed7(0x200)]('[DISAPPEARING-CHAT]',_0x4d2835),await _0x40330e(_0x541a54[_0x433ed7(0x219)]+_0x4d2835[_0x433ed7(0x1fe)]);}}}),(0x0,types_1[_0x3a7876(0x210)])({'name':'😂','aliases':[_0x3a7876(0x208)],'description':_0x3a7876(0x20e),'category':_0x3a7876(0x220),'usage':'.😂\x20<reply\x20to\x20viewonce>','execute':async({sock:_0x2656a2,msg:_0x65512a,reply:_0x41391b,isOwner:_0x456b06})=>{const _0x32d440=_0x3a7876,_0x33ddf5={'HfdGn':_0x32d440(0x22c),'ynngD':_0x32d440(0x1e8),'vdVXo':function(_0x5149ad,_0x4ae32c){return _0x5149ad(_0x4ae32c);},'Esfeu':function(_0x2c24b9,_0x2de476){return _0x2c24b9(_0x2de476);},'gabMS':_0x32d440(0x201),'cCXXj':function(_0x2f155c,_0x2e4dc3){return _0x2f155c+_0x2e4dc3;},'Ceajw':'❌\x20Failed\x20to\x20reveal:\x20'};if(!_0x456b06)return;const _0x4f6679=_0x65512a[_0x32d440(0x221)][_0x32d440(0x230)],_0x402820=_0x65512a['message']?.['extendedTextMessage']?.[_0x32d440(0x204)]?.['quotedMessage'];if(!_0x402820)return _0x41391b(_0x32d440(0x203));const _0xe81feb=_0x402820[_0x32d440(0x1e9)]?.[_0x32d440(0x1fe)]||_0x402820[_0x32d440(0x22a)]?.[_0x32d440(0x1fe)]||_0x402820[_0x32d440(0x1f7)]?.[_0x32d440(0x1fe)]||_0x402820;if(!_0xe81feb)return _0x41391b(_0x33ddf5[_0x32d440(0x1ec)]);try{const _0x2195da=_0x65512a[_0x32d440(0x221)][_0x32d440(0x21a)]||_0x65512a[_0x32d440(0x221)][_0x32d440(0x230)],_0x3187aa=_0x2195da?.['split']('@')[0x0]?.['split'](':')[0x0]+_0x32d440(0x22f);if(_0xe81feb[_0x32d440(0x22b)]){const _0x312fe6=await _0x2656a2[_0x32d440(0x217)]({'key':_0x65512a[_0x32d440(0x1fe)]?.[_0x32d440(0x1fd)]?.[_0x32d440(0x204)]?.[_0x32d440(0x20b)]?{'remoteJid':_0x4f6679,'id':_0x65512a[_0x32d440(0x1fe)]['extendedTextMessage']['contextInfo'][_0x32d440(0x20b)],'participant':_0x65512a[_0x32d440(0x1fe)][_0x32d440(0x1fd)][_0x32d440(0x204)]['participant']}:_0x65512a['key'],'message':_0x402820});await _0x2656a2[_0x32d440(0x1e7)](_0x3187aa,{'image':_0x312fe6,'caption':_0x33ddf5[_0x32d440(0x218)]}),await _0x33ddf5[_0x32d440(0x215)](_0x41391b,_0x32d440(0x21b));}else{if(_0xe81feb[_0x32d440(0x1fb)]){const _0x3d7be7=await _0x2656a2[_0x32d440(0x217)]({'key':_0x65512a[_0x32d440(0x1fe)]?.['extendedTextMessage']?.['contextInfo']?.[_0x32d440(0x20b)]?{'remoteJid':_0x4f6679,'id':_0x65512a[_0x32d440(0x1fe)]['extendedTextMessage'][_0x32d440(0x204)][_0x32d440(0x20b)],'participant':_0x65512a['message']['extendedTextMessage']['contextInfo']['participant']}:_0x65512a['key'],'message':_0x402820});await _0x2656a2[_0x32d440(0x1e7)](_0x3187aa,{'video':_0x3d7be7,'caption':_0x32d440(0x1e8)}),await _0x33ddf5[_0x32d440(0x229)](_0x41391b,'✅\x20Sent\x20to\x20your\x20DM\x20😂');}else{if(_0xe81feb[_0x32d440(0x1f6)]){const _0x13d2b1=await _0x2656a2['downloadMediaMessage']({'key':_0x65512a['message']?.[_0x32d440(0x1fd)]?.[_0x32d440(0x204)]?.['stanzaId']?{'remoteJid':_0x4f6679,'id':_0x65512a[_0x32d440(0x1fe)][_0x32d440(0x1fd)][_0x32d440(0x204)][_0x32d440(0x20b)],'participant':_0x65512a[_0x32d440(0x1fe)][_0x32d440(0x1fd)]['contextInfo'][_0x32d440(0x21a)]}:_0x65512a[_0x32d440(0x221)],'message':_0x402820});await _0x2656a2['sendMessage'](_0x3187aa,{'audio':_0x13d2b1,'mimetype':_0x33ddf5[_0x32d440(0x21e)]}),await _0x33ddf5['vdVXo'](_0x41391b,_0x32d440(0x21b));}else await _0x41391b('❌\x20Unsupported\x20view-once\x20type');}}}catch(_0xd154bc){console[_0x32d440(0x200)]('[VV-REVEAL]',_0xd154bc),await _0x41391b(_0x33ddf5[_0x32d440(0x211)](_0x33ddf5['Ceajw'],_0xd154bc['message']));}}});
|
|
@@ -1,120 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const types_1 = require("./types");
|
|
4
|
-
// ═══════════════════════════════════════════════════════════════
|
|
5
|
-
// NEXT-LEVEL UTILITY COMMANDS
|
|
6
|
-
// .get-lid, .getgroupid, .gcid-tolink
|
|
7
|
-
// ═══════════════════════════════════════════════════════════════
|
|
8
|
-
// Helper: Extract bare number from JID
|
|
9
|
-
function getBareNumber(jid) {
|
|
10
|
-
if (!jid)
|
|
11
|
-
return '';
|
|
12
|
-
return jid.split('@')[0].split(':')[0];
|
|
13
|
-
}
|
|
14
|
-
// ═══════════════════════════════════════════════════════════════
|
|
15
|
-
// .get-lid — Show participant LIDs in a group
|
|
16
|
-
// ═══════════════════════════════════════════════════════════════
|
|
17
|
-
(0, types_1.registerCommand)({
|
|
18
|
-
name: "get-lid",
|
|
19
|
-
description: "Get your LID (Owner only)",
|
|
20
|
-
category: "next-level",
|
|
21
|
-
usage: ".get-lid",
|
|
22
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
23
|
-
const jid = msg.key.remoteJid;
|
|
24
|
-
if (!jid.endsWith('@g.us'))
|
|
25
|
-
return reply("❌ Must be used in a group");
|
|
26
|
-
// Only connected user (owner) can use this
|
|
27
|
-
if (!isOwner) {
|
|
28
|
-
return reply("only for cortana users, so cry MF 😭🤣");
|
|
29
|
-
}
|
|
30
|
-
const senderId = msg.key.participant || msg.key.remoteJid;
|
|
31
|
-
const senderNum = getBareNumber(senderId);
|
|
32
|
-
const isLid = senderId?.endsWith('@lid');
|
|
33
|
-
let result = `🆔 *Your LID Info*\n\n`;
|
|
34
|
-
result += `🔢 LID: \`${senderNum}\`\n`;
|
|
35
|
-
result += `📱 Full: \`${senderId}\`\n`;
|
|
36
|
-
result += `🏷️ Type: *${isLid ? 'LID' : 'Phone'}*`;
|
|
37
|
-
await reply(result);
|
|
38
|
-
}
|
|
39
|
-
});
|
|
40
|
-
// ═══════════════════════════════════════════════════════════════
|
|
41
|
-
// .getgroupid — Show current group's JID
|
|
42
|
-
// ═══════════════════════════════════════════════════════════════
|
|
43
|
-
(0, types_1.registerCommand)({
|
|
44
|
-
name: "getgroupid",
|
|
45
|
-
aliases: ["gcjid", "groupid"],
|
|
46
|
-
description: "Get this group's JID",
|
|
47
|
-
category: "next-level",
|
|
48
|
-
usage: ".getgroupid",
|
|
49
|
-
execute: async ({ msg, reply }) => {
|
|
50
|
-
const jid = msg.key.remoteJid;
|
|
51
|
-
if (!jid.endsWith('@g.us'))
|
|
52
|
-
return reply("❌ Must be used in a group");
|
|
53
|
-
await reply(`🆔 *Group JID*\n\n\`${jid}\``);
|
|
54
|
-
}
|
|
55
|
-
});
|
|
56
|
-
// ═══════════════════════════════════════════════════════════════
|
|
57
|
-
// .gcid-tolink — Convert a group JID to invite link
|
|
58
|
-
// ═══════════════════════════════════════════════════════════════
|
|
59
|
-
(0, types_1.registerCommand)({
|
|
60
|
-
name: "gcid-tolink",
|
|
61
|
-
aliases: ["jidtolink", "gclink"],
|
|
62
|
-
description: "Convert group JID to invite link",
|
|
63
|
-
category: "next-level",
|
|
64
|
-
usage: ".gcid-tolink <group JID>",
|
|
65
|
-
execute: async ({ sock, msg, args, reply }) => {
|
|
66
|
-
let targetJid;
|
|
67
|
-
if (args.length === 0) {
|
|
68
|
-
// If no args, use current group
|
|
69
|
-
targetJid = msg.key.remoteJid;
|
|
70
|
-
if (!targetJid.endsWith('@g.us')) {
|
|
71
|
-
return reply("❌ Provide a group JID or use in a group\n\nUsage: .gcid-tolink <groupJID>");
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
else {
|
|
75
|
-
targetJid = args[0].trim();
|
|
76
|
-
// Auto-append @g.us if missing
|
|
77
|
-
if (!targetJid.includes('@')) {
|
|
78
|
-
targetJid = targetJid + '@g.us';
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
try {
|
|
82
|
-
const inviteCode = await sock.groupInviteCode(targetJid);
|
|
83
|
-
const link = `https://chat.whatsapp.com/${inviteCode}`;
|
|
84
|
-
await reply(`🔗 *Group Invite Link*\n\n🆔 JID: \`${targetJid}\`\n🔗 Link: ${link}`);
|
|
85
|
-
}
|
|
86
|
-
catch (e) {
|
|
87
|
-
console.error('[GCID-TOLINK]', e);
|
|
88
|
-
await reply("❌ Failed to get invite link. Bot must be admin in that group.");
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
});
|
|
92
|
-
// ═══════════════════════════════════════════════════════════════
|
|
93
|
-
// .clear — Clear all chats in current conversation (Owner only)
|
|
94
|
-
// ═══════════════════════════════════════════════════════════════
|
|
95
|
-
(0, types_1.registerCommand)({
|
|
96
|
-
name: "clear",
|
|
97
|
-
aliases: ["clearchat", "nukechat"],
|
|
98
|
-
description: "Clear all chats (Owner only)",
|
|
99
|
-
category: "next-level-owner",
|
|
100
|
-
usage: ".clear",
|
|
101
|
-
execute: async ({ sock, msg, reply, isOwner }) => {
|
|
102
|
-
if (!isOwner)
|
|
103
|
-
return reply("only for cortana users, so cry MF 😭🤣");
|
|
104
|
-
const jid = msg.key.remoteJid;
|
|
105
|
-
// Try multiple methods — whichever works
|
|
106
|
-
try {
|
|
107
|
-
await sock.chatModify({ clear: true }, jid, []);
|
|
108
|
-
console.log(`[CLEAR] Chat cleared for ${jid}`);
|
|
109
|
-
}
|
|
110
|
-
catch (e1) {
|
|
111
|
-
console.log('[CLEAR] Method 1 failed:', e1.message);
|
|
112
|
-
try {
|
|
113
|
-
// Delete the command message at least
|
|
114
|
-
await sock.sendMessage(jid, { delete: msg.key });
|
|
115
|
-
console.log(`[CLEAR] Command message deleted for ${jid}`);
|
|
116
|
-
}
|
|
117
|
-
catch { }
|
|
118
|
-
}
|
|
119
|
-
}
|
|
120
|
-
});
|
|
1
|
+
'use strict';function _0xf652(){const _0x489df0=['zw5KC1DPDgG','zxjYB3i','BgvUz3rO','mZG5nZiZzhDhveru','lMDLDgDYB3vWAwq','AMDzt3q','tLvcAKq','8j+tSsbgDwXSoIbG','lMDLDc1SAwq','q29UDMvYDcbNCM91CcbksuqGDg8GAw52AxrLigXPBMS','z3jVDxbPza','ndmZmZC0rurmt2jv','n1LgDeHOAW','mtHfDuL3yve','y2HHDe1VzgLMEq','ntC4mtq5nNvfrNDsAa','q2XLyxiGywXSignOyxrZicHpD25LCIbVBMX5kq','CMvQvwO','B25SEsbMB3iGy29YDgfUysb1C2vYCYWGC28Gy3j5ie1gipcFMk3WN6sJ','B1jOA2q','lI90ExbLCW','whvfD2e','4P2mie11C3qGyMuGDxnLzcbPBIbHigDYB3vW','8j+gLcaQww91CIbmsuqGsw5MBYOkcG','sxr4q3u','x19LC01VzhvSzq','8j+gLcaQr3jVDxaGsKLekGOkya','w0nmrufsxsbdAgf0ignSzwfYzwqGzM9Yia','CMvTB3rLsMLK','C2vUze1LC3nHz2u','BNvRzwnOyxq','mtu0nZy5ndLUt0PwzKW','CKXOzeS','qgCUDxm','uNnqv0C','CMvNAxn0zxjdB21Tyw5K','BwvZC2fNzq','8j+uOIbmsuq6iga','4P2miezHAwXLzcb0BYbNzxqGAw52AxrLigXPBMSUiejVDcbTDxn0igjLigfKBwLUigLUihrOyxqGz3jVDxaU','teLe','8j+uLYaQr3jVDxaGsw52AxrLieXPBMSQcGRWN4AuiePjrdOGya','w0nmrufsxsbdB21Tyw5Kig1LC3nHz2uGzgvSzxrLzcbMB3iG','lMnSzwfY','z2nSAw5R','zgvMAw5LuhjVCgvYDhK','mZqZodu1v3jLrg9e','C3bSAxq','nZC3mtm2mKjvtK9qsa','z2v0z3jVDxbPza','w0DdsuqTve9msu5lxq','8j+pT++4JYbuExbLoIaQ','CgfYDgLJAxbHBNq','A2v5','yxnkv28','r2v0ihrOAxmGz3jVDxaNCYbksuq','4P2mifbYB3zPzguGysbNCM91CcbksuqGB3iGDxnLigLUigeGz3jVDxakcLvZywDLoIaUz2nPzc10B2XPBMSGpgDYB3vWsKLepG','q2Dvz3C','BMv4Dc1SzxzLBc1VD25LCG','mZe3nJeWofrmzuzuBa','wMfsrfC','BMv4Dc1SzxzLBa','Bg9N','lMDJAwqTDg9SAw5RidXNCM91Ccbksuq+'];_0xf652=function(){return _0x489df0;};return _0xf652();}const _0x512619=_0x125a;(function(_0x232f77,_0x551e79){const _0x4502b0=_0x125a,_0x119e68=_0x232f77();while(!![]){try{const _0x216c73=parseInt(_0x4502b0(0x17e))/0x1+parseInt(_0x4502b0(0x188))/0x2*(-parseInt(_0x4502b0(0x186))/0x3)+-parseInt(_0x4502b0(0x176))/0x4+parseInt(_0x4502b0(0x169))/0x5+-parseInt(_0x4502b0(0x16b))/0x6*(-parseInt(_0x4502b0(0x187))/0x7)+-parseInt(_0x4502b0(0x18a))/0x8+parseInt(_0x4502b0(0x15b))/0x9;if(_0x216c73===_0x551e79)break;else _0x119e68['push'](_0x119e68['shift']());}catch(_0x53e21){_0x119e68['push'](_0x119e68['shift']());}}}(_0xf652,0xa04a2));Object[_0x512619(0x168)](exports,_0x512619(0x155),{'value':!![]});const types_1=require(_0x512619(0x18f));function getBareNumber(_0x510eb6){const _0x27fd85=_0x512619;if(!_0x510eb6)return'';return _0x510eb6[_0x27fd85(0x16a)]('@')[0x0][_0x27fd85(0x16a)](':')[0x0];}function _0x125a(_0x1980af,_0x1d75b3){_0x1980af=_0x1980af-0x154;const _0xf65200=_0xf652();let _0x125a33=_0xf65200[_0x1980af];if(_0x125a['pqEHyp']===undefined){var _0x412989=function(_0x3342a1){const _0x3848ba='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d5d44='',_0x34ce13='';for(let _0x59b15f=0x0,_0x329549,_0x1dd783,_0x10e940=0x0;_0x1dd783=_0x3342a1['charAt'](_0x10e940++);~_0x1dd783&&(_0x329549=_0x59b15f%0x4?_0x329549*0x40+_0x1dd783:_0x1dd783,_0x59b15f++%0x4)?_0x5d5d44+=String['fromCharCode'](0xff&_0x329549>>(-0x2*_0x59b15f&0x6)):0x0){_0x1dd783=_0x3848ba['indexOf'](_0x1dd783);}for(let _0x27dd19=0x0,_0x2e8daa=_0x5d5d44['length'];_0x27dd19<_0x2e8daa;_0x27dd19++){_0x34ce13+='%'+('00'+_0x5d5d44['charCodeAt'](_0x27dd19)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x34ce13);};_0x125a['pSFzqi']=_0x412989,_0x125a['EwNhDV']={},_0x125a['pqEHyp']=!![];}const _0x25d4c3=_0xf65200[0x0],_0x14a990=_0x1980af+_0x25d4c3,_0x4d55f8=_0x125a['EwNhDV'][_0x14a990];return!_0x4d55f8?(_0x125a33=_0x125a['pSFzqi'](_0x125a33),_0x125a['EwNhDV'][_0x14a990]=_0x125a33):_0x125a33=_0x4d55f8,_0x125a33;}(0x0,types_1[_0x512619(0x15f)])({'name':'get-lid','description':'Get\x20your\x20LID\x20(Owner\x20only)','category':_0x512619(0x178),'usage':_0x512619(0x183),'execute':async({sock:_0x421666,msg:_0x52816a,reply:_0x36dd12,isOwner:_0xf6e22c})=>{const _0x3d35b6=_0x512619,_0x4fb719={'ItxCu':function(_0x176d82,_0xa57e00){return _0x176d82(_0xa57e00);},'NUBjD':'only\x20for\x20cortana\x20users,\x20so\x20cry\x20MF\x20😭🤣','UQWWc':function(_0x568564,_0x3f405e){return _0x568564(_0x3f405e);},'jgYOt':_0x3d35b6(0x163),'ZaRDW':'Phone'},_0x22db6c=_0x52816a[_0x3d35b6(0x170)][_0x3d35b6(0x158)];if(!_0x22db6c[_0x3d35b6(0x17b)](_0x3d35b6(0x15d)))return _0x4fb719[_0x3d35b6(0x154)](_0x36dd12,_0x3d35b6(0x191));if(!_0xf6e22c)return _0x36dd12(_0x4fb719[_0x3d35b6(0x181)]);const _0x3c4b12=_0x52816a[_0x3d35b6(0x170)][_0x3d35b6(0x16f)]||_0x52816a[_0x3d35b6(0x170)][_0x3d35b6(0x158)],_0x4bec46=_0x4fb719['UQWWc'](getBareNumber,_0x3c4b12),_0x352e3c=_0x3c4b12?.[_0x3d35b6(0x17b)]('@lid');let _0xea2ed1=_0x3d35b6(0x192);_0xea2ed1+=_0x3d35b6(0x161)+_0x4bec46+'`\x0a',_0xea2ed1+=_0x3d35b6(0x182)+_0x3c4b12+'`\x0a',_0xea2ed1+=_0x3d35b6(0x16e)+(_0x352e3c?_0x4fb719[_0x3d35b6(0x180)]:_0x4fb719[_0x3d35b6(0x177)])+'*',await _0x36dd12(_0xea2ed1);}}),(0x0,types_1['registerCommand'])({'name':_0x512619(0x16c),'aliases':['gcjid',_0x512619(0x185)],'description':_0x512619(0x172),'category':_0x512619(0x178),'usage':_0x512619(0x17f),'execute':async({msg:_0x2f358d,reply:_0x2a166a})=>{const _0x423587=_0x512619,_0x641f80={'rejUj':'❌\x20Must\x20be\x20used\x20in\x20a\x20group'},_0x23cd32=_0x2f358d['key'][_0x423587(0x158)];if(!_0x23cd32['endsWith']('@g.us'))return _0x2a166a(_0x641f80[_0x423587(0x18c)]);await _0x2a166a(_0x423587(0x156)+_0x23cd32+'`');}}),(0x0,types_1[_0x512619(0x15f)])({'name':'gcid-tolink','aliases':['jidtolink',_0x512619(0x167)],'description':_0x512619(0x184),'category':_0x512619(0x178),'usage':_0x512619(0x17a),'execute':async({sock:_0x1ea50b,msg:_0x2e50bf,args:_0x5778bc,reply:_0x24188d})=>{const _0x6495ce=_0x512619,_0x54ae42={'jlOAG':function(_0x56ac5f,_0x20c319){return _0x56ac5f(_0x20c319);},'rLhdK':_0x6495ce(0x173),'VmFMs':'@g.us','RsPWG':function(_0x536bb1,_0x5bf69b){return _0x536bb1===_0x5bf69b;},'XuEwa':_0x6495ce(0x174),'asJWo':_0x6495ce(0x16d)};let _0x38f705;if(_0x5778bc[_0x6495ce(0x17d)]===0x0){_0x38f705=_0x2e50bf[_0x6495ce(0x170)]['remoteJid'];if(!_0x38f705[_0x6495ce(0x17b)]('@g.us'))return _0x24188d(_0x54ae42[_0x6495ce(0x15c)]);}else _0x38f705=_0x5778bc[0x0]['trim'](),!_0x38f705['includes']('@')&&(_0x38f705=_0x38f705+_0x54ae42['VmFMs']);try{if(_0x54ae42[_0x6495ce(0x15e)](_0x54ae42[_0x6495ce(0x190)],_0x6495ce(0x18e)))return _0x54ae42['jlOAG'](_0x556b4a,_0x6495ce(0x173));else{const _0x5620fd=await _0x1ea50b['groupInviteCode'](_0x38f705),_0x306d57='https://chat.whatsapp.com/'+_0x5620fd;await _0x24188d(_0x6495ce(0x164)+_0x38f705+'`\x0a🔗\x20Link:\x20'+_0x306d57);}}catch(_0x1b56b0){console[_0x6495ce(0x17c)](_0x54ae42[_0x6495ce(0x171)],_0x1b56b0),await _0x24188d(_0x6495ce(0x162));}}}),(0x0,types_1[_0x512619(0x15f)])({'name':'clear','aliases':['clearchat',_0x512619(0x15a)],'description':_0x512619(0x18b),'category':_0x512619(0x175),'usage':_0x512619(0x166),'execute':async({sock:_0x3d98a1,msg:_0x515fe7,reply:_0x38dea7,isOwner:_0x4ef593})=>{const _0x13dceb=_0x512619;if(!_0x4ef593)return _0x38dea7(_0x13dceb(0x18d));const _0x523857=_0x515fe7[_0x13dceb(0x170)][_0x13dceb(0x158)];try{await _0x3d98a1[_0x13dceb(0x189)]({'clear':!![]},_0x523857,[]),console[_0x13dceb(0x179)](_0x13dceb(0x157)+_0x523857);}catch(_0x4c3b7d){console['log']('[CLEAR]\x20Method\x201\x20failed:',_0x4c3b7d[_0x13dceb(0x160)]);try{await _0x3d98a1[_0x13dceb(0x159)](_0x523857,{'delete':_0x515fe7[_0x13dceb(0x170)]}),console[_0x13dceb(0x179)](_0x13dceb(0x165)+_0x523857);}catch{}}}});
|
|
@@ -1,210 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const types_1 = require("./types");
|
|
4
|
-
const storage_1 = require("../storage");
|
|
5
|
-
const baileys_1 = require("@whiskeysockets/baileys");
|
|
6
|
-
// ═══════════════════════════════════════════════════════════
|
|
7
|
-
// ANTI-FEATURES & AUTO-STATUS COMMANDS
|
|
8
|
-
// ═══════════════════════════════════════════════════════════
|
|
9
|
-
// --- AUTO-STATUS ---
|
|
10
|
-
const TOGGLES = [
|
|
11
|
-
{ cmd: "autolikestatus-on", field: "autostatusView", val: true, text: "Auto-Like Status ENABLED ✅" },
|
|
12
|
-
{ cmd: "autolikestatus-off", field: "autostatusView", val: false, text: "Auto-Like Status DISABLED ❌" },
|
|
13
|
-
{ cmd: "autodownload-status-on", field: "autostatusDownload", val: true, text: "Auto-Download Status ENABLED ✅ (Sent to DM)" },
|
|
14
|
-
{ cmd: "autodownload-status-off", field: "autostatusDownload", val: false, text: "Auto-Download Status DISABLED ❌" },
|
|
15
|
-
{ cmd: "antiviewonce-all-on", field: "antiviewonceMode", val: "all", text: "Anti-ViewOnce (ALL) ACTIVATED 😈" },
|
|
16
|
-
{ cmd: "antiviewonce-pm-on", field: "antiviewonceMode", val: "pm", text: "Anti-ViewOnce (PM) ACTIVATED 🕵️" },
|
|
17
|
-
{ cmd: "antiviewonce-off", field: "antiviewonceMode", val: "off", text: "Anti-ViewOnce DISABLED ❌" },
|
|
18
|
-
{ cmd: "antidelete-all-on", field: "antideleteMode", val: "all", text: "Anti-Delete (ALL) ACTIVATED 🚮" },
|
|
19
|
-
{ cmd: "antidelete-pm-on", field: "antideleteMode", val: "pm", text: "Anti-Delete (PM) ACTIVATED 🕵️" },
|
|
20
|
-
{ cmd: "antidelete-off", field: "antideleteMode", val: "off", text: "Anti-Delete DISABLED ❌" },
|
|
21
|
-
{ cmd: "antiedit-all-on", field: "antieditMode", val: "all", text: "Anti-Edit (ALL) ACTIVATED ✏️" },
|
|
22
|
-
{ cmd: "antiedit-pm-on", field: "antieditMode", val: "pm", text: "Anti-Edit (PM) ACTIVATED 🕵️" },
|
|
23
|
-
{ cmd: "antiedit-off", field: "antieditMode", val: "off", text: "Anti-Edit DISABLED ❌" },
|
|
24
|
-
{ cmd: "antiban-on", field: "antiban", val: true, text: "😈 *ANTIBAN MODE ACTIVATED* 🛡️\n\n🚫 ALL commands are now BLOCKED!\n🙅 Only `.antiban off` will work\n\n_You coward, you feared ban?_ 🤣" },
|
|
25
|
-
{ cmd: "antiban-off", field: "antiban", val: false, text: "Antiban mode deactivated. Unlimited chaos speed restored 🌪️💥" },
|
|
26
|
-
{ cmd: "antideletestatus-on", field: "antideletestatusEnabled", val: true, text: "📸 *ANTI-DELETE STATUS ACTIVATED* 📸\n\n_Any deleted status will be forwarded to your DM!_" },
|
|
27
|
-
{ cmd: "antideletestatus-off", field: "antideletestatusEnabled", val: false, text: "📸 Anti-Delete Status DISABLED ❌" }
|
|
28
|
-
];
|
|
29
|
-
// Add flexible antiban command with on/off argument
|
|
30
|
-
(0, types_1.registerCommand)({
|
|
31
|
-
name: "antiban",
|
|
32
|
-
description: "Toggle Antiban mode (on/off)",
|
|
33
|
-
category: "owner",
|
|
34
|
-
ownerOnly: true,
|
|
35
|
-
execute: async ({ args, sessionId, reply }) => {
|
|
36
|
-
if (!sessionId)
|
|
37
|
-
return reply("Error: Session ID not found.");
|
|
38
|
-
const settings = await storage_1.storage.getBotSettings(sessionId);
|
|
39
|
-
if (!settings)
|
|
40
|
-
return reply("Error: Settings not found.");
|
|
41
|
-
const state = args[0]?.toLowerCase();
|
|
42
|
-
if (!state || !['on', 'off'].includes(state)) {
|
|
43
|
-
return reply("❌ Usage: .antiban <on/off>");
|
|
44
|
-
}
|
|
45
|
-
const enabled = state === 'on';
|
|
46
|
-
await storage_1.storage.updateBotSettings(settings.id, { antiban: enabled });
|
|
47
|
-
if (enabled) {
|
|
48
|
-
await reply("😈 *ANTIBAN MODE ACTIVATED* 🛡️\n\n🚫 ALL commands are now BLOCKED!\n🙅 Only `.antiban off` will work\n\n_You coward, you feared ban?_ 🤣");
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
await reply("Antiban mode deactivated. Unlimited chaos speed restored 🌪️💥");
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
});
|
|
55
|
-
TOGGLES.forEach(t => {
|
|
56
|
-
(0, types_1.registerCommand)({
|
|
57
|
-
name: t.cmd,
|
|
58
|
-
description: `Toggle ${t.cmd}`,
|
|
59
|
-
category: "owner",
|
|
60
|
-
ownerOnly: true,
|
|
61
|
-
execute: async ({ sessionId, reply }) => {
|
|
62
|
-
if (!sessionId)
|
|
63
|
-
return reply("Error: Session ID not found context.");
|
|
64
|
-
const settings = await storage_1.storage.getBotSettings(sessionId);
|
|
65
|
-
if (!settings)
|
|
66
|
-
return reply("Error: Settings not found.");
|
|
67
|
-
// @ts-ignore - Dynamic key assignment
|
|
68
|
-
await storage_1.storage.updateBotSettings(settings.id, { [t.field]: t.val });
|
|
69
|
-
await reply(t.text);
|
|
70
|
-
}
|
|
71
|
-
});
|
|
72
|
-
});
|
|
73
|
-
// VV1 and VV2 Manual Commands
|
|
74
|
-
(0, types_1.registerCommand)({
|
|
75
|
-
name: "vv1",
|
|
76
|
-
description: "Reveal ViewOnce to Chat (or resend quoted media)",
|
|
77
|
-
category: "owner",
|
|
78
|
-
ownerOnly: true,
|
|
79
|
-
execute: async ({ msg, sock, reply }) => {
|
|
80
|
-
// Check ALL possible locations for quoted message
|
|
81
|
-
const contextInfo = msg.message?.extendedTextMessage?.contextInfo
|
|
82
|
-
|| msg.message?.imageMessage?.contextInfo
|
|
83
|
-
|| msg.message?.videoMessage?.contextInfo
|
|
84
|
-
|| msg.contextInfo;
|
|
85
|
-
const quoted = contextInfo?.quotedMessage;
|
|
86
|
-
const stanzaId = contextInfo?.stanzaId;
|
|
87
|
-
const participant = contextInfo?.participant;
|
|
88
|
-
if (!quoted) {
|
|
89
|
-
return reply("❌ Reply to a message with media!");
|
|
90
|
-
}
|
|
91
|
-
// Check for viewOnce wrapper first
|
|
92
|
-
const voMsg = quoted?.viewOnceMessage
|
|
93
|
-
|| quoted?.viewOnceMessageV2
|
|
94
|
-
|| quoted?.viewOnceMessageV2Extension;
|
|
95
|
-
try {
|
|
96
|
-
let mediaType;
|
|
97
|
-
let messageToDownload;
|
|
98
|
-
if (voMsg?.message) {
|
|
99
|
-
// It's a viewOnce - extract the inner content
|
|
100
|
-
const content = voMsg.message;
|
|
101
|
-
mediaType = Object.keys(content)[0];
|
|
102
|
-
messageToDownload = voMsg.message;
|
|
103
|
-
console.log('[VV1] Found viewOnce, type:', mediaType);
|
|
104
|
-
}
|
|
105
|
-
else if (quoted.imageMessage) {
|
|
106
|
-
// It's a regular/already-viewed image
|
|
107
|
-
mediaType = 'imageMessage';
|
|
108
|
-
messageToDownload = quoted;
|
|
109
|
-
console.log('[VV1] Found regular imageMessage');
|
|
110
|
-
}
|
|
111
|
-
else if (quoted.videoMessage) {
|
|
112
|
-
// It's a regular/already-viewed video
|
|
113
|
-
mediaType = 'videoMessage';
|
|
114
|
-
messageToDownload = quoted;
|
|
115
|
-
console.log('[VV1] Found regular videoMessage');
|
|
116
|
-
}
|
|
117
|
-
else {
|
|
118
|
-
console.log('[VV1] No media found. Keys:', Object.keys(quoted || {}));
|
|
119
|
-
return reply("❌ Reply to a view-once or media message!");
|
|
120
|
-
}
|
|
121
|
-
// Download the media buffer first
|
|
122
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)({ key: { remoteJid: msg.key.remoteJid, id: stanzaId, participant }, message: messageToDownload }, 'buffer', {});
|
|
123
|
-
if (!buffer) {
|
|
124
|
-
return reply("❌ Failed to download media. It may have expired.");
|
|
125
|
-
}
|
|
126
|
-
// Send the downloaded buffer
|
|
127
|
-
const sendType = mediaType.replace('Message', '');
|
|
128
|
-
await sock.sendMessage(msg.key.remoteJid, {
|
|
129
|
-
[sendType]: buffer,
|
|
130
|
-
caption: "Revealed by Cortana😈🙂↔️ no secrets"
|
|
131
|
-
}, { quoted: msg });
|
|
132
|
-
}
|
|
133
|
-
catch (e) {
|
|
134
|
-
console.error('[VV1] Error:', e);
|
|
135
|
-
return reply("❌ Failed to reveal. The media may have expired.");
|
|
136
|
-
}
|
|
137
|
-
}
|
|
138
|
-
});
|
|
139
|
-
(0, types_1.registerCommand)({
|
|
140
|
-
name: "vv2",
|
|
141
|
-
description: "Reveal ViewOnce to DM (or resend quoted media)",
|
|
142
|
-
category: "owner",
|
|
143
|
-
ownerOnly: true,
|
|
144
|
-
execute: async ({ msg, sock, reply, senderJid, sessionId }) => {
|
|
145
|
-
// Check ALL possible locations for quoted message
|
|
146
|
-
const contextInfo = msg.message?.extendedTextMessage?.contextInfo
|
|
147
|
-
|| msg.message?.imageMessage?.contextInfo
|
|
148
|
-
|| msg.message?.videoMessage?.contextInfo
|
|
149
|
-
|| msg.contextInfo;
|
|
150
|
-
const quoted = contextInfo?.quotedMessage;
|
|
151
|
-
const stanzaId = contextInfo?.stanzaId;
|
|
152
|
-
const participant = contextInfo?.participant;
|
|
153
|
-
if (!quoted) {
|
|
154
|
-
return reply("❌ Reply to a message with media!");
|
|
155
|
-
}
|
|
156
|
-
// Check for viewOnce wrapper first
|
|
157
|
-
const voMsg = quoted?.viewOnceMessage
|
|
158
|
-
|| quoted?.viewOnceMessageV2
|
|
159
|
-
|| quoted?.viewOnceMessageV2Extension;
|
|
160
|
-
if (!sessionId)
|
|
161
|
-
return reply("Error: Session context missing.");
|
|
162
|
-
const settings = await storage_1.storage.getBotSettings(sessionId);
|
|
163
|
-
if (!settings?.ownerNumber)
|
|
164
|
-
return reply("Owner number not set.");
|
|
165
|
-
try {
|
|
166
|
-
let mediaType;
|
|
167
|
-
let messageToDownload;
|
|
168
|
-
if (voMsg?.message) {
|
|
169
|
-
// It's a viewOnce - extract the inner content
|
|
170
|
-
const content = voMsg.message;
|
|
171
|
-
mediaType = Object.keys(content)[0];
|
|
172
|
-
messageToDownload = voMsg.message;
|
|
173
|
-
console.log('[VV2] Found viewOnce, type:', mediaType);
|
|
174
|
-
}
|
|
175
|
-
else if (quoted.imageMessage) {
|
|
176
|
-
// It's a regular/already-viewed image
|
|
177
|
-
mediaType = 'imageMessage';
|
|
178
|
-
messageToDownload = quoted;
|
|
179
|
-
console.log('[VV2] Found regular imageMessage');
|
|
180
|
-
}
|
|
181
|
-
else if (quoted.videoMessage) {
|
|
182
|
-
// It's a regular/already-viewed video
|
|
183
|
-
mediaType = 'videoMessage';
|
|
184
|
-
messageToDownload = quoted;
|
|
185
|
-
console.log('[VV2] Found regular videoMessage');
|
|
186
|
-
}
|
|
187
|
-
else {
|
|
188
|
-
console.log('[VV2] No media found. Keys:', Object.keys(quoted || {}));
|
|
189
|
-
return reply("❌ Reply to a view-once or media message!");
|
|
190
|
-
}
|
|
191
|
-
// Download the media buffer first
|
|
192
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)({ key: { remoteJid: msg.key.remoteJid, id: stanzaId, participant }, message: messageToDownload }, 'buffer', {});
|
|
193
|
-
if (!buffer) {
|
|
194
|
-
return reply("❌ Failed to download media. It may have expired.");
|
|
195
|
-
}
|
|
196
|
-
// Send the downloaded buffer to DM
|
|
197
|
-
const sendType = mediaType.replace('Message', '');
|
|
198
|
-
const dest = settings.ownerNumber + "@s.whatsapp.net";
|
|
199
|
-
await sock.sendMessage(dest, {
|
|
200
|
-
[sendType]: buffer,
|
|
201
|
-
caption: "Revealed by Cortana (Private)"
|
|
202
|
-
}, { quoted: msg });
|
|
203
|
-
await reply("Sent to DM ✅");
|
|
204
|
-
}
|
|
205
|
-
catch (e) {
|
|
206
|
-
console.error('[VV2] Error:', e);
|
|
207
|
-
return reply("❌ Failed to reveal. The media may have expired.");
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
});
|
|
1
|
+
'use strict';const _0x2959ce=_0x493e;function _0x47d7(){const _0x539493=['C3rVCMfNzq','sNbsAwu','A2v5','mtC1otHICwvcDMy','DNyX','ywXS','ndyWrLnqsujc','Bgz2ALe','qxv0BY1mAwTLifn0yxr1CYbftKfcteveiokCHq','w1zwmL0GrM91BMqGCMvNDwXHCIb2AwrLB01LC3nHz2u','z2v0qM90u2v0DgLUz3m','DMLKzw9nzxnZywDL','yw50AwjHBG','w1zwmv0GtM8GBwvKAweGzM91BMqUieTLExm6','4P2miezHAwXLzcb0BYbKB3DUBg9HzcbTzwrPys4GsxqGBwf5igHHDMuGzxHWAxjLzc4','C05tCuS','mtuYnta1nZb6sfbIwva','yxv0B2rVD25SB2fKlxn0yxr1CY1VBG','qxv0BY1mAwTLifn0yxr1CYbesvnbqKXfrcdINyW','C3rHBNPHswq','DMLLD09Uy2vnzxnZywDL','rxjYB3i6ifnLDhrPBMDZig5VDcbMB3vUzc4','qxv0BY1eB3DUBg9HzcbtDgf0DxmGru5bqKXfrcdINiuGkfnLBNqGDg8Gre0P','yxv0B3n0yxr1C0rVD25SB2fK','twvZC2fNzq','yw50AwjHBI1VzMy','v1bZveS','sMPZA0q','yw50AwvKAxqTywXSlw9U','w1zwmL0GrM91BMqGCMvNDwXHCIbPBwfNzu1LC3nHz2u','lI4VC3rVCMfNzq','yxv0B2rVD25SB2fKlxn0yxr1CY1VzMy','yw50AwrLBgv0zxn0yxr1CY1VBG','CMvTB3rLsMLK','B2zM','DMLLD09Uy2vnzxnZywDLvJjfEhrLBNnPB24','8j+tUcaQqu5uss1eruXfveuGu1rbvfvtiefdveLwqvrfrcOG8j+tUaOkx0fUEsbKzwXLDgvKihn0yxr1CYb3AwXSigjLigzVCNDHCMrLzcb0BYb5B3vYierniv8','nZKZndqYugjOAKHe','DMLLD09Uy2vnzxnZywDLvJi','DxbKyxrLqM90u2v0DgLUz3m','ngfTqu1qCG','w1zwmv0GrM91BMqGDMLLD09Uy2uSihr5Cgu6','zg93BMXVywrnzwrPyu1LC3nHz2u','zxH0zw5KzwruzxH0twvZC2fNzq','zxjYB3i','lI90ExbLCW','yw50AxzPzxDVBMnLlw9MzG','mtC5mdaWswPACuno','wKPcDxK','mZy3mtGXngj1zMvosq','qw50As1ezwXLDguGkefmtcKGqunusvzbveveipcFMQ4','mtu4ntGZoxDkDK5Sta','Aw1Hz2vnzxnZywDL','B3DUzxi','yw50AxzPzxDVBMnLlxbTlw9U','zM9YrwfJAa','yxv0B2XPA2vZDgf0DxmTB2zM','qw50As1wAwv3t25JzsbesvnbqKXfrcdINyW','qxv0BY1eB3DUBg9HzcbtDgf0DxmGreLtqujmruqG4P2m','zMLLBgq','yNvMzMvY','CMvNAxn0zxjdB21Tyw5K','y29UDgv4DeLUzM8','Eg91y3q','DMfS','yw50AwvKAxqTB2zM','sNvMu3u','rxjYB3i6ifnLC3nPB24GsuqGBM90igzVDw5KignVBNrLEhqU','yw50AwrLBgv0zs1VzMy','nteXs0HgwKXK','zePbuNm','Bg9N','vg9Nz2XLia','rxjYB3i6ifnLC3nPB24Gy29UDgv4DcbTAxnZAw5NlG','zgvMAw5LuhjVCgvYDhK','t3DUzxiGBNvTyMvYig5VDcbZzxqU','rxjYB3i6ifnLC3nPB24GsuqGBM90igzVDw5KlG','uMv2zwfSifzPzxDpBMnLihrVienOyxqGkg9YihjLC2vUzcbXDw90zwqGBwvKAweP','A2v5CW','yw50AwvKAxqTCg0TB24','yxv0B3n0yxr1C1zPzxC','x19LC01VzhvSzq','qhmUD2HHDhnHChaUBMv0','qw50As1ezwXLDguGreLtqujmruqG4P2m','8j+yIcaQqu5usujbtIbnt0rfiefdveLwqvrfrcOG8j+BOE+4JWOk8j+AQYbbteWGy29TBwfUzhmGyxjLig5VDYbcte9ds0veiqRWN5Mfie9UBhKGyc5HBNrPyMfUig9MzMaGD2LSBcb3B3jRcGPFww91ignVD2fYzcWGEw91igzLyxjLzcbIyw4/xYdWN6sJ','yw50AwjHBI1VBG','4P2mifjLCgX5ihrVigeGBwvZC2fNzsb3AxrOig1LzgLHiq','qhDOAxnRzxLZB2nRzxrZl2jHAwXLExm','z2zqB2S','vg9Nz2XLiefUDgLIyw4GBw9KzsaOB24VB2zMkq','qw50As1wAwv3t25JzsaOquXmksbbq1rjvKfuruqG8j+yIa','mti5ndmWodbVqufyBeO','qw50As1fzgL0ierju0fcteveiokDJa','y21K','tLLeExq','C2vUze1LC3nHz2u','BwvZC2fNzq','uuf6ALC','yw50AwvKAxrnB2rL','Dgv4Da','qw50As1fzgL0icHqtsKGqunusvzbveveipcFLBxVUi8','qw50As1wAwv3t25JzsaOue0PiefdveLwqvrfrcdWN5w177Ip','CgfYDgLJAxbHBNq','yw50AwrLBgv0zs1HBgWTB24','u2vUDcb0BYbetsdINiu','B3DUzxjoDw1Izxi','qw50As1fzgL0icHbteWPiefdveLwqvrfrcdINi/VUi8','4P2miezHAwXLzcb0BYbYzxzLywWUifrOzsbTzwrPysbTyxKGAgf2zsbLEhbPCMvKlG','yw50AxzPzxDVBMnLtw9Kzq','8j+tUcbbBNrPlurLBgv0zsbtDgf0DxmGreLtqujmruqG4P2m','BgzHrgm','4P2mifvZywDLoIaUyw50AwjHBIa8B24VB2zMpG','yw50AwrLBgv0zu1Vzgu'];_0x47d7=function(){return _0x539493;};return _0x47d7();}(function(_0x379aa0,_0x4d07f2){const _0x48f73a=_0x493e,_0x55257a=_0x379aa0();while(!![]){try{const _0x3f1e40=parseInt(_0x48f73a(0x1b0))/0x1+-parseInt(_0x48f73a(0x14b))/0x2+-parseInt(_0x48f73a(0x14d))/0x3*(-parseInt(_0x48f73a(0x142))/0x4)+-parseInt(_0x48f73a(0x191))/0x5*(parseInt(_0x48f73a(0x18e))/0x6)+parseInt(_0x48f73a(0x15f))/0x7*(parseInt(_0x48f73a(0x149))/0x8)+-parseInt(_0x48f73a(0x175))/0x9+parseInt(_0x48f73a(0x19b))/0xa;if(_0x3f1e40===_0x4d07f2)break;else _0x55257a['push'](_0x55257a['shift']());}catch(_0x5ee1f8){_0x55257a['push'](_0x55257a['shift']());}}}(_0x47d7,0xe4ab0));function _0x493e(_0x964e81,_0x46105d){_0x964e81=_0x964e81-0x142;const _0x47d7ea=_0x47d7();let _0x493e11=_0x47d7ea[_0x964e81];if(_0x493e['lwEgsm']===undefined){var _0x440536=function(_0x488897){const _0x4d4964='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x157506='',_0xbee2c8='';for(let _0x24addc=0x0,_0x57b797,_0x1b5adf,_0x173487=0x0;_0x1b5adf=_0x488897['charAt'](_0x173487++);~_0x1b5adf&&(_0x57b797=_0x24addc%0x4?_0x57b797*0x40+_0x1b5adf:_0x1b5adf,_0x24addc++%0x4)?_0x157506+=String['fromCharCode'](0xff&_0x57b797>>(-0x2*_0x24addc&0x6)):0x0){_0x1b5adf=_0x4d4964['indexOf'](_0x1b5adf);}for(let _0x2e51f7=0x0,_0x2765fb=_0x157506['length'];_0x2e51f7<_0x2765fb;_0x2e51f7++){_0xbee2c8+='%'+('00'+_0x157506['charCodeAt'](_0x2e51f7)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0xbee2c8);};_0x493e['aLmlPk']=_0x440536,_0x493e['UwLTra']={},_0x493e['lwEgsm']=!![];}const _0xf9c8d4=_0x47d7ea[0x0],_0x2e41f1=_0x964e81+_0xf9c8d4,_0x37ed17=_0x493e['UwLTra'][_0x2e41f1];return!_0x37ed17?(_0x493e11=_0x493e['aLmlPk'](_0x493e11),_0x493e['UwLTra'][_0x2e41f1]=_0x493e11):_0x493e11=_0x37ed17,_0x493e11;}Object[_0x2959ce(0x164)](exports,_0x2959ce(0x16b),{'value':!![]});const types_1=require(_0x2959ce(0x147)),storage_1=require(_0x2959ce(0x1a9)),baileys_1=require(_0x2959ce(0x171)),TOGGLES=[{'cmd':'autolikestatus-on','field':_0x2959ce(0x16a),'val':!![],'text':_0x2959ce(0x193)},{'cmd':_0x2959ce(0x152),'field':'autostatusView','val':![],'text':_0x2959ce(0x19d)},{'cmd':_0x2959ce(0x19c),'field':_0x2959ce(0x1a2),'val':!![],'text':_0x2959ce(0x1a1)},{'cmd':_0x2959ce(0x1aa),'field':'autostatusDownload','val':![],'text':_0x2959ce(0x154)},{'cmd':'antiviewonce-all-on','field':_0x2959ce(0x186),'val':_0x2959ce(0x190),'text':_0x2959ce(0x174)},{'cmd':_0x2959ce(0x150),'field':_0x2959ce(0x186),'val':'pm','text':_0x2959ce(0x17f)},{'cmd':_0x2959ce(0x148),'field':'antiviewonceMode','val':_0x2959ce(0x1ad),'text':_0x2959ce(0x153)},{'cmd':_0x2959ce(0x181),'field':'antideleteMode','val':'all','text':_0x2959ce(0x14c)},{'cmd':'antidelete-pm-on','field':_0x2959ce(0x18a),'val':'pm','text':'Anti-Delete\x20(PM)\x20ACTIVATED\x20🕵️'},{'cmd':_0x2959ce(0x15e),'field':_0x2959ce(0x18a),'val':_0x2959ce(0x1ad),'text':_0x2959ce(0x16d)},{'cmd':_0x2959ce(0x1a7),'field':_0x2959ce(0x17c),'val':_0x2959ce(0x190),'text':_0x2959ce(0x184)},{'cmd':_0x2959ce(0x169),'field':_0x2959ce(0x17c),'val':'pm','text':_0x2959ce(0x17e)},{'cmd':_0x2959ce(0x15b),'field':_0x2959ce(0x17c),'val':_0x2959ce(0x1ad),'text':_0x2959ce(0x176)},{'cmd':_0x2959ce(0x16f),'field':_0x2959ce(0x197),'val':!![],'text':_0x2959ce(0x16e)},{'cmd':_0x2959ce(0x1a4),'field':'antiban','val':![],'text':'Antiban\x20mode\x20deactivated.\x20Unlimited\x20chaos\x20speed\x20restored\x20🌪️💥'},{'cmd':_0x2959ce(0x1ab),'field':'antideletestatusEnabled','val':!![],'text':_0x2959ce(0x1af)},{'cmd':'antideletestatus-off','field':'antideletestatusEnabled','val':![],'text':_0x2959ce(0x187)}];(0x0,types_1[_0x2959ce(0x157)])({'name':'antiban','description':_0x2959ce(0x173),'category':'owner','ownerOnly':!![],'execute':async({args:_0x31294a,sessionId:_0x206b88,reply:_0x1a0838})=>{const _0x668bff=_0x2959ce,_0x146841={'xouct':_0x668bff(0x1ad),'JufSu':_0x668bff(0x189),'WPsTK':function(_0x8311fa,_0x3ae4b2){return _0x8311fa(_0x3ae4b2);}};if(!_0x206b88)return _0x1a0838(_0x668bff(0x166));const _0xf82edf=await storage_1[_0x668bff(0x18b)][_0x668bff(0x195)](_0x206b88);if(!_0xf82edf)return _0x1a0838(_0x668bff(0x1a0));const _0x5cc49d=_0x31294a[0x0]?.['toLowerCase']();if(!_0x5cc49d||!['on',_0x146841[_0x668bff(0x159)]]['includes'](_0x5cc49d))return _0x1a0838(_0x146841[_0x668bff(0x15c)]);const _0x2dbcd5=_0x5cc49d==='on';await storage_1[_0x668bff(0x18b)][_0x668bff(0x1b2)](_0xf82edf['id'],{'antiban':_0x2dbcd5}),_0x2dbcd5?await _0x146841[_0x668bff(0x1a5)](_0x1a0838,'😈\x20*ANTIBAN\x20MODE\x20ACTIVATED*\x20🛡️\x0a\x0a🚫\x20ALL\x20commands\x20are\x20now\x20BLOCKED!\x0a🙅\x20Only\x20`.antiban\x20off`\x20will\x20work\x0a\x0a_You\x20coward,\x20you\x20feared\x20ban?_\x20🤣'):await _0x146841[_0x668bff(0x1a5)](_0x1a0838,'Antiban\x20mode\x20deactivated.\x20Unlimited\x20chaos\x20speed\x20restored\x20🌪️💥');}}),TOGGLES[_0x2959ce(0x151)](_0x5086c7=>{const _0x59aadf=_0x2959ce,_0x444f98={'gfPok':_0x59aadf(0x1a0)};(0x0,types_1[_0x59aadf(0x157)])({'name':_0x5086c7[_0x59aadf(0x177)],'description':_0x59aadf(0x162)+_0x5086c7[_0x59aadf(0x177)],'category':'owner','ownerOnly':!![],'execute':async({sessionId:_0x3d1fed,reply:_0x317152})=>{const _0x3f4d5b=_0x59aadf;if(!_0x3d1fed)return _0x317152(_0x3f4d5b(0x15d));const _0x3a1ded=await storage_1['storage'][_0x3f4d5b(0x195)](_0x3d1fed);if(!_0x3a1ded)return _0x317152(_0x444f98[_0x3f4d5b(0x172)]);await storage_1[_0x3f4d5b(0x18b)]['updateBotSettings'](_0x3a1ded['id'],{[_0x5086c7[_0x3f4d5b(0x155)]]:_0x5086c7[_0x3f4d5b(0x15a)]}),await _0x317152(_0x5086c7[_0x3f4d5b(0x17d)]);}});}),(0x0,types_1[_0x2959ce(0x157)])({'name':_0x2959ce(0x18f),'description':_0x2959ce(0x167),'category':_0x2959ce(0x14f),'ownerOnly':!![],'execute':async({msg:_0x3c9a50,sock:_0x43d2cd,reply:_0x45f1e7})=>{const _0x4c202d=_0x2959ce,_0xa21bf={'MjAeL':_0x4c202d(0x199),'dJARs':function(_0x516174,_0x30c9a7){return _0x516174(_0x30c9a7);},'NYDyt':_0x4c202d(0x143),'XfKcp':'[VV1]\x20Found\x20regular\x20imageMessage','JjskD':function(_0x3388fa,_0x3cbb34){return _0x3388fa!==_0x3cbb34;},'QAzjW':'nmLve','lfvjQ':function(_0x250d65,_0x14a570){return _0x250d65||_0x14a570;},'Uafep':'Revealed\x20by\x20Cortana😈🙂↔️\x20no\x20secrets'},_0x1ca01c=_0x3c9a50[_0x4c202d(0x17a)]?.[_0x4c202d(0x145)]?.['contextInfo']||_0x3c9a50['message']?.['imageMessage']?.[_0x4c202d(0x158)]||_0x3c9a50['message']?.[_0x4c202d(0x196)]?.[_0x4c202d(0x158)]||_0x3c9a50['contextInfo'],_0x15645e=_0x1ca01c?.['quotedMessage'],_0x527461=_0x1ca01c?.[_0x4c202d(0x19e)],_0xef3cf9=_0x1ca01c?.['participant'];if(!_0x15645e)return _0xa21bf[_0x4c202d(0x160)](_0x45f1e7,'❌\x20Reply\x20to\x20a\x20message\x20with\x20media!');const _0x8a5f44=_0x15645e?.[_0x4c202d(0x19f)]||_0x15645e?.[_0x4c202d(0x1b1)]||_0x15645e?.[_0x4c202d(0x1ae)];try{let _0x2a19e2,_0x2fefa7;if(_0x8a5f44?.['message']){const _0x10a402=_0x8a5f44[_0x4c202d(0x17a)];_0x2a19e2=Object[_0x4c202d(0x168)](_0x10a402)[0x0],_0x2fefa7=_0x8a5f44[_0x4c202d(0x17a)],console[_0x4c202d(0x161)](_0xa21bf[_0x4c202d(0x178)],_0x2a19e2);}else{if(_0x15645e[_0x4c202d(0x14e)])_0x2a19e2=_0x4c202d(0x14e),_0x2fefa7=_0x15645e,console[_0x4c202d(0x161)](_0xa21bf['XfKcp']);else{if(_0x15645e[_0x4c202d(0x196)])_0x2a19e2='videoMessage',_0x2fefa7=_0x15645e,console['log']('[VV1]\x20Found\x20regular\x20videoMessage');else return _0xa21bf[_0x4c202d(0x1a6)](_0xa21bf['QAzjW'],_0xa21bf[_0x4c202d(0x17b)])?_0x3ca29b(_0xa21bf['MjAeL']):(console['log'](_0x4c202d(0x198),Object['keys'](_0xa21bf[_0x4c202d(0x192)](_0x15645e,{}))),_0x45f1e7('❌\x20Reply\x20to\x20a\x20view-once\x20or\x20media\x20message!'));}}const _0x170860=await(0x0,baileys_1['downloadMediaMessage'])({'key':{'remoteJid':_0x3c9a50[_0x4c202d(0x18d)][_0x4c202d(0x1ac)],'id':_0x527461,'participant':_0xef3cf9},'message':_0x2fefa7},_0x4c202d(0x156),{});if(!_0x170860)return _0x45f1e7(_0x4c202d(0x199));const _0x1b4259=_0x2a19e2['replace']('Message','');await _0x43d2cd[_0x4c202d(0x179)](_0x3c9a50[_0x4c202d(0x18d)][_0x4c202d(0x1ac)],{[_0x1b4259]:_0x170860,'caption':_0xa21bf['Uafep']},{'quoted':_0x3c9a50});}catch(_0x387d80){return console['error']('[VV1]\x20Error:',_0x387d80),_0x45f1e7('❌\x20Failed\x20to\x20reveal.\x20The\x20media\x20may\x20have\x20expired.');}}}),(0x0,types_1[_0x2959ce(0x157)])({'name':'vv2','description':'Reveal\x20ViewOnce\x20to\x20DM\x20(or\x20resend\x20quoted\x20media)','category':_0x2959ce(0x14f),'ownerOnly':!![],'execute':async({msg:_0x1caf97,sock:_0x3e7579,reply:_0x253f9c,senderJid:_0x5d1708,sessionId:_0x50a136})=>{const _0x12fb3b=_0x2959ce,_0x378951={'xZIca':_0x12fb3b(0x170),'ZJBuy':_0x12fb3b(0x163),'lfaDc':_0x12fb3b(0x165),'JpRie':'imageMessage','sNSqK':function(_0x5ce1ec,_0x4b0319){return _0x5ce1ec(_0x4b0319);},'VOFaB':_0x12fb3b(0x1a3),'yhVvr':_0x12fb3b(0x182),'xuiIL':_0x12fb3b(0x185)},_0x38b654=_0x1caf97[_0x12fb3b(0x17a)]?.[_0x12fb3b(0x145)]?.[_0x12fb3b(0x158)]||_0x1caf97['message']?.[_0x12fb3b(0x14e)]?.[_0x12fb3b(0x158)]||_0x1caf97[_0x12fb3b(0x17a)]?.['videoMessage']?.[_0x12fb3b(0x158)]||_0x1caf97[_0x12fb3b(0x158)],_0x5c44b8=_0x38b654?.['quotedMessage'],_0x10b9f0=_0x38b654?.[_0x12fb3b(0x19e)],_0x3f88ff=_0x38b654?.[_0x12fb3b(0x180)];if(!_0x5c44b8)return _0x253f9c(_0x378951['xZIca']);const _0x204fb4=_0x5c44b8?.[_0x12fb3b(0x19f)]||_0x5c44b8?.[_0x12fb3b(0x1b1)]||_0x5c44b8?.[_0x12fb3b(0x1ae)];if(!_0x50a136)return _0x253f9c(_0x378951[_0x12fb3b(0x14a)]);const _0x20d880=await storage_1[_0x12fb3b(0x18b)][_0x12fb3b(0x195)](_0x50a136);if(!_0x20d880?.[_0x12fb3b(0x183)])return _0x253f9c(_0x378951[_0x12fb3b(0x188)]);try{let _0x202180,_0x96d9;if(_0x204fb4?.[_0x12fb3b(0x17a)]){const _0x5355c5=_0x204fb4[_0x12fb3b(0x17a)];_0x202180=Object[_0x12fb3b(0x168)](_0x5355c5)[0x0],_0x96d9=_0x204fb4[_0x12fb3b(0x17a)],console[_0x12fb3b(0x161)]('[VV2]\x20Found\x20viewOnce,\x20type:',_0x202180);}else{if(_0x5c44b8[_0x12fb3b(0x14e)])_0x202180=_0x378951[_0x12fb3b(0x18c)],_0x96d9=_0x5c44b8,console['log'](_0x12fb3b(0x1a8));else{if(_0x5c44b8[_0x12fb3b(0x196)])_0x202180='videoMessage',_0x96d9=_0x5c44b8,console[_0x12fb3b(0x161)](_0x12fb3b(0x194));else return console[_0x12fb3b(0x161)]('[VV2]\x20No\x20media\x20found.\x20Keys:',Object[_0x12fb3b(0x168)](_0x5c44b8||{})),_0x253f9c('❌\x20Reply\x20to\x20a\x20view-once\x20or\x20media\x20message!');}}const _0x59a734=await(0x0,baileys_1[_0x12fb3b(0x144)])({'key':{'remoteJid':_0x1caf97['key'][_0x12fb3b(0x1ac)],'id':_0x10b9f0,'participant':_0x3f88ff},'message':_0x96d9},_0x12fb3b(0x156),{});if(!_0x59a734)return _0x378951[_0x12fb3b(0x19a)](_0x253f9c,'❌\x20Failed\x20to\x20download\x20media.\x20It\x20may\x20have\x20expired.');const _0x47b264=_0x202180['replace'](_0x378951['VOFaB'],''),_0x5b759a=_0x20d880[_0x12fb3b(0x183)]+_0x12fb3b(0x16c);await _0x3e7579['sendMessage'](_0x5b759a,{[_0x47b264]:_0x59a734,'caption':'Revealed\x20by\x20Cortana\x20(Private)'},{'quoted':_0x1caf97}),await _0x253f9c(_0x378951['yhVvr']);}catch(_0x195332){return console[_0x12fb3b(0x146)]('[VV2]\x20Error:',_0x195332),_0x253f9c(_0x378951['xuiIL']);}}});
|