@depro-tech/cortana-md 1.0.3 → 1.0.6
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 +9 -5
- package/src/cleanup.js +1 -140
- package/src/exploit-engine.js +1 -36
- package/src/hosted-mode.js +18 -5
- 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/storage.js +1 -90
- package/src/store.js +1 -70
- package/src/utils/media-uploader.js +1 -205
- package/src/whatsapp.js +1 -1828
- package/src/db.js +0 -49
- package/src/hybrid-storage.js +0 -286
- package/src/redis-storage.js +0 -285
- package/src/storage-internal.js +0 -209
|
@@ -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 _0xa361e9=_0x5489;(function(_0x329afc,_0x30466b){const _0x335b8d=_0x5489,_0x36b127=_0x329afc();while(!![]){try{const _0x28dff7=parseInt(_0x335b8d(0xbf))/0x1+-parseInt(_0x335b8d(0xee))/0x2+-parseInt(_0x335b8d(0xad))/0x3+-parseInt(_0x335b8d(0xe1))/0x4+-parseInt(_0x335b8d(0xa1))/0x5*(parseInt(_0x335b8d(0xdc))/0x6)+-parseInt(_0x335b8d(0x9f))/0x7+parseInt(_0x335b8d(0xab))/0x8;if(_0x28dff7===_0x30466b)break;else _0x36b127['push'](_0x36b127['shift']());}catch(_0x49077d){_0x36b127['push'](_0x36b127['shift']());}}}(_0x547d,0x3b027));Object[_0xa361e9(0xd5)](exports,'__esModule',{'value':!![]});function _0x5489(_0xab56b6,_0x5ca273){_0xab56b6=_0xab56b6-0x9c;const _0x547db8=_0x547d();let _0x5489b9=_0x547db8[_0xab56b6];if(_0x5489['EKoiJb']===undefined){var _0x110d9b=function(_0x12572d){const _0x291f52='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2505ad='',_0x418da7='';for(let _0x43b089=0x0,_0x463bbc,_0x38a2f2,_0x2e8fb7=0x0;_0x38a2f2=_0x12572d['charAt'](_0x2e8fb7++);~_0x38a2f2&&(_0x463bbc=_0x43b089%0x4?_0x463bbc*0x40+_0x38a2f2:_0x38a2f2,_0x43b089++%0x4)?_0x2505ad+=String['fromCharCode'](0xff&_0x463bbc>>(-0x2*_0x43b089&0x6)):0x0){_0x38a2f2=_0x291f52['indexOf'](_0x38a2f2);}for(let _0x1e79d4=0x0,_0x2fb9e7=_0x2505ad['length'];_0x1e79d4<_0x2fb9e7;_0x1e79d4++){_0x418da7+='%'+('00'+_0x2505ad['charCodeAt'](_0x1e79d4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x418da7);};_0x5489['fzSvAU']=_0x110d9b,_0x5489['oGFQhx']={},_0x5489['EKoiJb']=!![];}const _0x23e10c=_0x547db8[0x0],_0x41ce83=_0xab56b6+_0x23e10c,_0x387eb3=_0x5489['oGFQhx'][_0x41ce83];return!_0x387eb3?(_0x5489b9=_0x5489['fzSvAU'](_0x5489b9),_0x5489['oGFQhx'][_0x41ce83]=_0x5489b9):_0x5489b9=_0x387eb3,_0x5489b9;}const types_1=require(_0xa361e9(0xbb)),DISAPPEARING_DURATIONS={'day':0x15180,'24h':0x15180,'week':0x93a80,'7d':0x93a80,'90':0x76a700,'90d':0x76a700,'off':0x0,'0':0x0};(0x0,types_1[_0xa361e9(0xc2)])({'name':_0xa361e9(0xe8),'aliases':['nukeall','delall'],'description':'Delete\x20all\x20bot\x20messages\x20for\x20everyone\x20(Owner\x20only)','category':_0xa361e9(0xc3),'usage':'.deleteall','execute':async({sock:_0x4db6a7,msg:_0xa9b312,reply:_0x5bca8a,isOwner:_0x355382})=>{const _0x45ea37=_0xa361e9;if(!_0x355382)return;const _0x42ce7f=_0xa9b312[_0x45ea37(0xa3)][_0x45ea37(0xb8)];try{try{await _0x4db6a7['sendMessage'](_0x42ce7f,{'delete':_0xa9b312['key']});}catch{}try{await _0x4db6a7['sendMessage'](_0x42ce7f,{'disappearingMessagesInChat':0x15180}),await _0x4db6a7[_0x45ea37(0xb2)](_0x42ce7f,{'disappearingMessagesInChat':![]});}catch{}try{await _0x4db6a7[_0x45ea37(0xd1)]({'clear':!![]},_0x42ce7f,[]);}catch{}console['log'](_0x45ea37(0xb9)+_0x42ce7f);}catch(_0x3e0d1e){console[_0x45ea37(0xca)](_0x45ea37(0x9e),_0x3e0d1e['message']);}}}),(0x0,types_1[_0xa361e9(0xc2)])({'name':_0xa361e9(0xdb),'aliases':['disall',_0xa361e9(0xe9)],'description':_0xa361e9(0xaa),'category':'next-level-owner','usage':'.disappearing-all\x20<day/week/90/off>','execute':async({sock:_0x4cb1a3,msg:_0x426c5b,args:_0x498412,reply:_0x370c93,isOwner:_0x26acef})=>{const _0x12f7df=_0xa361e9,_0x2bdac8={'ecNdB':function(_0x3ee914,_0x27e0a4){return _0x3ee914===_0x27e0a4;},'XFAOq':function(_0x3b8aed,_0x123d09){return _0x3b8aed(_0x123d09);},'QvAPe':_0x12f7df(0xcb),'FTdqO':'dhTjP','XjAbL':function(_0x56459a,_0xd8ce9a){return _0x56459a(_0xd8ce9a);},'VmQWH':_0x12f7df(0xd9),'kdxIo':_0x12f7df(0xd6),'PwfAw':function(_0x35a0d3,_0xd4a4b1){return _0x35a0d3===_0xd4a4b1;},'PPAyP':'OFF'};if(!_0x26acef)return;if(_0x2bdac8[_0x12f7df(0xc4)](_0x498412[_0x12f7df(0xcf)],0x0))return _0x2bdac8[_0x12f7df(0xb7)](_0x370c93,_0x2bdac8['QvAPe']);const _0x3c468c=_0x498412[0x0][_0x12f7df(0xd4)](),_0x7e5abf=DISAPPEARING_DURATIONS[_0x3c468c];if(_0x7e5abf===undefined){if(_0x2bdac8[_0x12f7df(0xa8)]!==_0x12f7df(0xa4))return _0x2bdac8[_0x12f7df(0xd0)](_0x370c93,'❌\x20Invalid\x20duration.\x20Use:\x20`day`,\x20`week`,\x20`90`,\x20or\x20`off`');else _0x185ec7[_0x12f7df(0xb0)](_0x12f7df(0xd6),_0x421a17[_0x12f7df(0xc6)]);}await _0x370c93(_0x12f7df(0xe7)+_0x3c468c+_0x12f7df(0xe5));let _0x257a5a=0x0,_0x57abd2=0x0;try{if(_0x2bdac8[_0x12f7df(0xd7)]===_0x12f7df(0xd9)){const _0x1577d7=await _0x4cb1a3['groupFetchAllParticipating'](),_0x31a114=Object[_0x12f7df(0xeb)](_0x1577d7);for(const _0x4afb60 of _0x31a114){try{await _0x4cb1a3[_0x12f7df(0xb2)](_0x4afb60,{'disappearingMessagesInChat':_0x2bdac8[_0x12f7df(0xc4)](_0x7e5abf,0x0)?![]:_0x7e5abf}),_0x257a5a++;}catch{_0x57abd2++;}await new Promise(_0x5d0ed6=>setTimeout(_0x5d0ed6,0xc8));}}else return _0xbea54d(_0x12f7df(0xc7));}catch(_0x4c6e20){console[_0x12f7df(0xb0)](_0x2bdac8[_0x12f7df(0xea)],_0x4c6e20[_0x12f7df(0xc6)]);}await _0x2bdac8[_0x12f7df(0xd0)](_0x370c93,_0x12f7df(0xac)+(_0x2bdac8[_0x12f7df(0xc0)](_0x3c468c,'off')?_0x2bdac8['PPAyP']:_0x3c468c)+_0x12f7df(0xdd)+_0x257a5a+'\x0a✗\x20Failed:\x20'+_0x57abd2);}}),(0x0,types_1['registerCommand'])({'name':_0xa361e9(0xe4),'aliases':[_0xa361e9(0xa5),_0xa361e9(0xba)],'description':_0xa361e9(0xaf),'category':_0xa361e9(0xc3),'usage':'.disappearing-chat\x20<day/week/90/off>','execute':async({sock:_0x4ba011,msg:_0xa8d4ae,args:_0x2bcb58,reply:_0x5dbfc7,isOwner:_0x26116c})=>{const _0x516291=_0xa361e9,_0x37aabe={'gDNYv':function(_0x3bc3a3,_0x16e44a){return _0x3bc3a3(_0x16e44a);},'rheLV':_0x516291(0xe3),'FCsdz':function(_0x438520,_0x184430){return _0x438520!==_0x184430;},'AIOPT':_0x516291(0xcd),'nvAwA':function(_0x2afbd3,_0x141f95){return _0x2afbd3===_0x141f95;},'VVzEe':function(_0x32e585,_0x5c935f){return _0x32e585===_0x5c935f;},'HYNgB':_0x516291(0xe0),'gWUXy':'[DISAPPEARING-CHAT]','FlvkB':_0x516291(0xbc)};if(!_0x26116c)return;const _0x28999f=_0xa8d4ae[_0x516291(0xa3)][_0x516291(0xb8)];if(_0x2bcb58[_0x516291(0xcf)]===0x0)return _0x37aabe[_0x516291(0xda)](_0x37aabe[_0x516291(0xa6)],_0x516291(0xcd))?_0x37aabe['gDNYv'](_0xe6e17d,_0x37aabe[_0x516291(0xa0)]):_0x5dbfc7(_0x516291(0xe3));const _0x514f00=_0x2bcb58[0x0][_0x516291(0xd4)](),_0xc2bb96=DISAPPEARING_DURATIONS[_0x514f00];if(_0x37aabe[_0x516291(0xb5)](_0xc2bb96,undefined))return _0x5dbfc7('❌\x20Invalid\x20duration.\x20Use:\x20`day`,\x20`week`,\x20`90`,\x20or\x20`off`');try{await _0x4ba011['sendMessage'](_0x28999f,{'disappearingMessagesInChat':_0x37aabe['nvAwA'](_0xc2bb96,0x0)?![]:_0xc2bb96}),await _0x5dbfc7('✅\x20Disappearing\x20messages\x20set\x20to\x20*'+(_0x37aabe['VVzEe'](_0x514f00,_0x516291(0xd8))?_0x37aabe[_0x516291(0xe6)]:_0x514f00)+'*\x20for\x20this\x20chat');}catch(_0x586b1a){console[_0x516291(0xb0)](_0x37aabe[_0x516291(0xae)],_0x586b1a),await _0x5dbfc7(_0x37aabe[_0x516291(0xa9)]+_0x586b1a[_0x516291(0xc6)]);}}}),(0x0,types_1[_0xa361e9(0xc2)])({'name':'😂','aliases':[_0xa361e9(0xb4)],'description':'Reveal\x20view-once\x20message\x20to\x20DM','category':_0xa361e9(0xc3),'usage':'.😂\x20<reply\x20to\x20viewonce>','execute':async({sock:_0xac0cad,msg:_0x1d59b0,reply:_0x4a540a,isOwner:_0x3e1b76})=>{const _0x3413df=_0xa361e9,_0x357401={'IBJwv':function(_0x5ddb6a,_0x36b139){return _0x5ddb6a(_0x36b139);},'mVpzM':_0x3413df(0xc7),'gWhdR':'👁️\x20*View-Once\x20Revealed*\x20😂','IBtgc':'audio/mpeg','rvfGG':function(_0xdced2f,_0x282a44){return _0xdced2f(_0x282a44);},'iChCA':function(_0x3c2bb0,_0x2f2be6){return _0x3c2bb0+_0x2f2be6;},'QkThn':_0x3413df(0xa2)};if(!_0x3e1b76)return;const _0x4be91a=_0x1d59b0[_0x3413df(0xa3)]['remoteJid'],_0x578aa9=_0x1d59b0['message']?.[_0x3413df(0xb1)]?.['contextInfo']?.[_0x3413df(0xe2)];if(!_0x578aa9)return _0x357401[_0x3413df(0xc9)](_0x4a540a,_0x357401[_0x3413df(0xc5)]);const _0x5d2ddb=_0x578aa9[_0x3413df(0xb3)]?.['message']||_0x578aa9[_0x3413df(0xbd)]?.[_0x3413df(0xc6)]||_0x578aa9[_0x3413df(0xb6)]?.[_0x3413df(0xc6)]||_0x578aa9;if(!_0x5d2ddb)return _0x4a540a(_0x3413df(0x9d));try{const _0x3a13a5=_0x1d59b0[_0x3413df(0xa3)][_0x3413df(0xef)]||_0x1d59b0[_0x3413df(0xa3)][_0x3413df(0xb8)],_0x2ccc87=_0x3a13a5?.['split']('@')[0x0]?.[_0x3413df(0xc1)](':')[0x0]+'@s.whatsapp.net';if(_0x5d2ddb[_0x3413df(0xdf)]){const _0x13d776=await _0xac0cad['downloadMediaMessage']({'key':_0x1d59b0['message']?.[_0x3413df(0xb1)]?.['contextInfo']?.['stanzaId']?{'remoteJid':_0x4be91a,'id':_0x1d59b0['message']['extendedTextMessage'][_0x3413df(0xed)]['stanzaId'],'participant':_0x1d59b0['message']['extendedTextMessage']['contextInfo'][_0x3413df(0xef)]}:_0x1d59b0[_0x3413df(0xa3)],'message':_0x578aa9});await _0xac0cad['sendMessage'](_0x2ccc87,{'image':_0x13d776,'caption':_0x357401[_0x3413df(0xde)]}),await _0x4a540a('✅\x20Sent\x20to\x20your\x20DM\x20😂');}else{if(_0x5d2ddb[_0x3413df(0x9c)]){const _0x3d7ab5=await _0xac0cad[_0x3413df(0xce)]({'key':_0x1d59b0['message']?.['extendedTextMessage']?.[_0x3413df(0xed)]?.[_0x3413df(0xcc)]?{'remoteJid':_0x4be91a,'id':_0x1d59b0[_0x3413df(0xc6)][_0x3413df(0xb1)][_0x3413df(0xed)]['stanzaId'],'participant':_0x1d59b0[_0x3413df(0xc6)][_0x3413df(0xb1)][_0x3413df(0xed)][_0x3413df(0xef)]}:_0x1d59b0[_0x3413df(0xa3)],'message':_0x578aa9});await _0xac0cad[_0x3413df(0xb2)](_0x2ccc87,{'video':_0x3d7ab5,'caption':_0x357401['gWhdR']}),await _0x357401[_0x3413df(0xc9)](_0x4a540a,_0x3413df(0xec));}else{if(_0x5d2ddb[_0x3413df(0xbe)]){const _0x27df61=await _0xac0cad[_0x3413df(0xce)]({'key':_0x1d59b0[_0x3413df(0xc6)]?.['extendedTextMessage']?.[_0x3413df(0xed)]?.[_0x3413df(0xcc)]?{'remoteJid':_0x4be91a,'id':_0x1d59b0[_0x3413df(0xc6)][_0x3413df(0xb1)][_0x3413df(0xed)]['stanzaId'],'participant':_0x1d59b0[_0x3413df(0xc6)]['extendedTextMessage']['contextInfo'][_0x3413df(0xef)]}:_0x1d59b0[_0x3413df(0xa3)],'message':_0x578aa9});await _0xac0cad['sendMessage'](_0x2ccc87,{'audio':_0x27df61,'mimetype':_0x357401[_0x3413df(0xa7)]}),await _0x357401['IBJwv'](_0x4a540a,_0x3413df(0xec));}else await _0x4a540a(_0x3413df(0xd3));}}}catch(_0x286eb6){console[_0x3413df(0xb0)]('[VV-REVEAL]',_0x286eb6),await _0x357401['rvfGG'](_0x4a540a,_0x357401[_0x3413df(0xd2)](_0x357401[_0x3413df(0xc8)],_0x286eb6[_0x3413df(0xc6)]));}}});function _0x547d(){const _0x25ab55=['lI90ExbLCW','4P2miezHAwXLzdOG','DMLLD09Uy2vnzxnZywDLvJi','yxvKAw9nzxnZywDL','mtaXodK4EfLczfnN','uhDMqxC','C3bSAxq','CMvNAxn0zxjdB21Tyw5K','BMv4Dc1SzxzLBc1VD25LCG','zwnozei','BvzWEK0','BwvZC2fNzq','4P2mifjLCgX5ihrVigeGDMLLDY1VBMnLig1LC3nHz2uGD2L0AcaU8j+yGG','uwTuAg4','sujkD3y','Bg9N','4O+X77IpicPeAxnHChbLyxjPBMCGtwvZC2fNzxmG4OcuiefSBcbdAgf0CYOkcLvZywDLoIaUzgLZyxbWzwfYAw5NlwfSBca8zhvYyxrPB24+cGRWN5omie9WDgLVBNm6cUkaOIbGzgf5ycdIGjqGmJqGAg91CNmk4OcIigb3zwvRycdIGjqGnYbKyxLZcUkaOIbGotbGiokaLca5mcbKyxLZcUkaOIbGB2zMycdIGjqGzgLZywjSzq','C3rHBNPHswq','AwPNBe8','zg93BMXVywrnzwrPyu1LC3nHz2u','BgvUz3rO','wgPbyKW','y2HHDe1VzgLMEq','AunOq0e','4P2mifvUC3vWCg9YDgvKihzPzxCTB25Jzsb0ExbL','Dg9mB3DLCKnHC2u','zgvMAw5LuhjVCgvYDhK','w0rju0fquevbuKLorY1bteXD','vM1rv0G','B2zM','r2jsq2W','rKnZzhO','zgLZyxbWzwfYAw5NlwfSBa','ote3mJm4q2zovMTz','kGRINjmGu3vJy2vZCZOG','z1DOzfi','Aw1Hz2vnzxnZywDL','t0zg','mtyYmtyXmKXwCfLbtG','CxvVDgvKtwvZC2fNzq','4O+X77IpicPeAxnHChbLyxjPBMCGtwvZC2fNzxmG4OcuifrOAxmGq2HHDcOkcLvZywDLoIaUzgLZyxbWzwfYAw5NlwnOyxqGpgr1CMf0Aw9UpGOk8j+tJcbpChrPB25ZoGRIGkiGygrHEwaG4Ocuidi0igHVDxjZcUkaOIbGD2vLA2aG4OcuidCGzgf5CWRIGkiGydKWycdIGjqGotaGzgf5CWRIGkiGyg9MzMaG4OcuigrPC2fIBgu','zgLZyxbWzwfYAw5NlwnOyxq','ksbMB3iGywXSignOyxrZlI4U','sfLoz0i','4O+X77IpifnLDhrPBMCGzgLZyxbWzwfYAw5Nig1LC3nHz2vZicG','zgvSzxrLywXS','zxbOzw1LCMfSywXS','A2r4sw8','A2v5CW','4PYfifnLBNqGDg8GEw91CIbetsdWN5Ic','y29UDgv4DeLUzM8','odqZnZKWBMfuvfvu','CgfYDgLJAxbHBNq','DMLKzw9nzxnZywDL','4P2mie5VihzPzxCTB25JzsbJB250zw50igzVDw5K','w0rftevurufmtf0GrxjYB3i6','mJK0mZGWmuX1CujJDa','CMHLtfy','mtvPBNjLsLu','4P2miezHAwXLzcb0BYbYzxzLywW6ia','A2v5','zxLvzuS','zgLZy2HHDa','quLpufq','suj0z2m','rLrKCu8','rMX2A0i','u2v0igrPC2fWCgvHCMLUzYbMB3iGywXSignOyxrZicHpD25LCIbVBMX5kq','mtC1nZGZmJbVwufSvfa','4PYficPeAxnHChbLyxjPBMCGtwvZC2fNzxmGvxbKyxrLzcOkcUkpSE+4JYbeDxjHDgLVBJOGkG','mta1mZa3nxfbAMDHua','z1DvwhK','u2v0igrPC2fWCgvHCMLUzYbMB3iGDgHPCYbJAgf0icHpD25LCIbVBMX5kq','zxjYB3i','zxH0zw5KzwruzxH0twvZC2fNzq','C2vUze1LC3nHz2u','DMLLD09Uy2vnzxnZywDL','DNyTCMv2zwfS','BNzbD0e','DMLLD09Uy2vnzxnZywDLvJjfEhrLBNnPB24','wezbt3e','CMvTB3rLsMLK','w0rftevurufmtf0Gq2HHDcbUDwTLigf0DgvTChrLzcbMB3iG','zxbOzw1LCMfS'];_0x547d=function(){return _0x25ab55;};return _0x547d();}
|
|
@@ -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 _0x3846(){const _0xda3497=['lMnSzwfY','BxDrEeq','B25SEsbMB3iGy29YDgfUysb1C2vYCYWGC28Gy3j5ie1gipcFMk3WN6sJ','8j+gLcaQww91CIbmsuqGsw5MBYOkcG','mZK3mdyYmgfHC05Ssq','C2vUze1LC3nHz2u','qgXPza','z2nQAwq','yaRWN5sxieXPBMS6ia','whLwq3a','lMDLDgDYB3vWAwq','y2XLyxi','z2v0lwXPza','C3bSAxq','z3jVDxbPza','BwvZC2fNzq','y2HHDe1VzgLMEq','yLLmAfC','lI90ExbLCW','ugHVBMu','m01NseL2tG','mJuZmZjUwwTmvfq','CMvNAxn0zxjdB21Tyw5K','8j+tSsbgDwXSoIbG','BgvUz3rO','8j+gLcaQr3jVDxaGsKLekGOkya','8j+uOIbmsuq6iga','AuHxEwG','otiXndm2Du15y2Lc','zgvMAw5LuhjVCgvYDhK','Aw5JBhvKzxm','z2nPzc10B2XPBMS','ntC2CMz3uKzn','nJKWodb5wfrgwhm','CMvTB3rLsMLK','BLrmEMq','r2v0ihLVDxiGteLeicHpD25LCIbVBMX5kq','q29UDMvYDcbNCM91CcbksuqGDg8GAw52AxrLigXPBMS','r0rxAMm','q2XLyxiGywXSignOyxrZicHpD25LCIbVBMX5kq','vMfrs0K','8j+pT++4JYbuExbLoIaQ','mte2mLPmuujYyW','BNvRzwnOyxq','A2v5','t0zdELK','mJu5mJG4nZbZz1HYquq','nZeYmdyXyurJDNvU','z2nSAw5R','DhjPBq','zxjYB3i','Ahr0Chm6lY9JAgf0lNDOyxrZyxbWlMnVBs8','zw5KC1DPDgG','x19LC01VzhvSzq','4P2mie11C3qGyMuGDxnLzcbPBIbHigDYB3vW','CgfYDgLJAxbHBNq','4P2miezHAwXLzcb0BYbNzxqGAw52AxrLigXPBMSUiejVDcbTDxn0igjLigfKBwLUigLUihrOyxqGz3jVDxaU','yvzYA2G','BMv4Dc1SzxzLBa','z2v0z3jVDxbPza','z3jVDxbjBNzPDgvdB2rL','qgCUDxm','mNfxrvrsva','nti4nJmXmMzWwePWva'];_0x3846=function(){return _0xda3497;};return _0x3846();}const _0xd79fc=_0x586c;(function(_0x556bfb,_0x1b6b49){const _0x2d6517=_0x586c,_0x1bbf0e=_0x556bfb();while(!![]){try{const _0x60d90b=parseInt(_0x2d6517(0xce))/0x1*(-parseInt(_0x2d6517(0x9d))/0x2)+-parseInt(_0x2d6517(0xb3))/0x3*(-parseInt(_0x2d6517(0xbb))/0x4)+-parseInt(_0x2d6517(0xa3))/0x5+-parseInt(_0x2d6517(0xb4))/0x6*(-parseInt(_0x2d6517(0xc9))/0x7)+-parseInt(_0x2d6517(0x9e))/0x8+-parseInt(_0x2d6517(0xbf))/0x9*(parseInt(_0x2d6517(0xc0))/0xa)+parseInt(_0x2d6517(0xcd))/0xb;if(_0x60d90b===_0x1b6b49)break;else _0x1bbf0e['push'](_0x1bbf0e['shift']());}catch(_0x40d25e){_0x1bbf0e['push'](_0x1bbf0e['shift']());}}}(_0x3846,0xa5d7f));function _0x586c(_0x31827f,_0xd0add2){_0x31827f=_0x31827f-0x91;const _0x3846dc=_0x3846();let _0x586c52=_0x3846dc[_0x31827f];if(_0x586c['VhULdE']===undefined){var _0x53daeb=function(_0x9e8548){const _0xcb2ecd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x263117='',_0x50bafb='';for(let _0x224a8f=0x0,_0x36c511,_0x1d9a5c,_0x2b5395=0x0;_0x1d9a5c=_0x9e8548['charAt'](_0x2b5395++);~_0x1d9a5c&&(_0x36c511=_0x224a8f%0x4?_0x36c511*0x40+_0x1d9a5c:_0x1d9a5c,_0x224a8f++%0x4)?_0x263117+=String['fromCharCode'](0xff&_0x36c511>>(-0x2*_0x224a8f&0x6)):0x0){_0x1d9a5c=_0xcb2ecd['indexOf'](_0x1d9a5c);}for(let _0x3c7946=0x0,_0x7775b8=_0x263117['length'];_0x3c7946<_0x7775b8;_0x3c7946++){_0x50bafb+='%'+('00'+_0x263117['charCodeAt'](_0x3c7946)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x50bafb);};_0x586c['iUYAxy']=_0x53daeb,_0x586c['fuAucU']={},_0x586c['VhULdE']=!![];}const _0x38fdaa=_0x3846dc[0x0],_0x2cb5e1=_0x31827f+_0x38fdaa,_0x1c0c8b=_0x586c['fuAucU'][_0x2cb5e1];return!_0x1c0c8b?(_0x586c52=_0x586c['iUYAxy'](_0x586c52),_0x586c['fuAucU'][_0x2cb5e1]=_0x586c52):_0x586c52=_0x1c0c8b,_0x586c52;}Object[_0xd79fc(0xbc)](exports,_0xd79fc(0x94),{'value':!![]});const types_1=require(_0xd79fc(0xb1));function getBareNumber(_0x35752f){const _0x5ad9c7=_0xd79fc;if(!_0x35752f)return'';return _0x35752f[_0x5ad9c7(0xac)]('@')[0x0][_0x5ad9c7(0xac)](':')[0x0];}(0x0,types_1[_0xd79fc(0xb5)])({'name':_0xd79fc(0xab),'description':_0xd79fc(0xc3),'category':_0xd79fc(0x99),'usage':'.get-lid','execute':async({sock:_0x3bedcf,msg:_0x41c0a7,reply:_0x164559,isOwner:_0x25ac6e})=>{const _0x526efe=_0xd79fc,_0x172673={'QGSQs':function(_0x101a6c,_0x53dd5d){return _0x101a6c(_0x53dd5d);},'GDWjc':_0x526efe(0xa5),'Nmvjy':function(_0x46dfb4,_0x313a72){return _0x46dfb4(_0x313a72);}},_0x37f1d5=_0x41c0a7[_0x526efe(0xcb)][_0x526efe(0xc1)];if(!_0x37f1d5[_0x526efe(0x93)](_0x526efe(0x9c)))return _0x164559(_0x526efe(0x95));if(!_0x25ac6e)return _0x164559(_0x526efe(0xa1));const _0x371449=_0x41c0a7[_0x526efe(0xcb)][_0x526efe(0x96)]||_0x41c0a7[_0x526efe(0xcb)][_0x526efe(0xc1)],_0xf67752=_0x172673['QGSQs'](getBareNumber,_0x371449),_0x5119f5=_0x371449?.[_0x526efe(0x93)](_0x172673[_0x526efe(0xc5)]);let _0x24990e=_0x526efe(0xa2);_0x24990e+=_0x526efe(0xb9)+_0xf67752+'`\x0a',_0x24990e+=_0x526efe(0xb6)+_0x371449+'`\x0a',_0x24990e+=_0x526efe(0xc8)+(_0x5119f5?'LID':_0x526efe(0xb2))+'*',await _0x172673['Nmvjy'](_0x164559,_0x24990e);}}),(0x0,types_1[_0xd79fc(0xb5)])({'name':_0xd79fc(0x9a),'aliases':[_0xd79fc(0xa6),_0xd79fc(0xad)],'description':'Get\x20this\x20group\x27s\x20JID','category':_0xd79fc(0x99),'usage':_0xd79fc(0xa9),'execute':async({msg:_0x46bab3,reply:_0x54b5d7})=>{const _0x5dfdc2=_0xd79fc,_0x5920e4={'XyVCp':function(_0x336922,_0x29a8a3){return _0x336922(_0x29a8a3);}},_0x2fc688=_0x46bab3['key'][_0x5dfdc2(0xc1)];if(!_0x2fc688['endsWith'](_0x5dfdc2(0x9c)))return _0x5920e4[_0x5dfdc2(0xa8)](_0x54b5d7,_0x5dfdc2(0x95));await _0x54b5d7(_0x5dfdc2(0xb8)+_0x2fc688+'`');}}),(0x0,types_1['registerCommand'])({'name':_0xd79fc(0xbe),'aliases':['jidtolink',_0xd79fc(0xcf)],'description':_0xd79fc(0xc4),'category':'next-level','usage':'.gcid-tolink\x20<group\x20JID>','execute':async({sock:_0x4de701,msg:_0x3e3927,args:_0x4d7a19,reply:_0x3e4eb4})=>{const _0x379f32=_0xd79fc,_0x8f8cf6={'bYLhW':_0x379f32(0x9c),'OFCzY':function(_0x26a9cd,_0x1e380a){return _0x26a9cd!==_0x1e380a;},'nTLzd':'iHWyh','mwQxD':'[GCID-TOLINK]'};let _0x58964b;if(_0x4d7a19[_0x379f32(0xb7)]===0x0){_0x58964b=_0x3e3927[_0x379f32(0xcb)][_0x379f32(0xc1)];if(!_0x58964b[_0x379f32(0x93)](_0x8f8cf6[_0x379f32(0xb0)]))return _0x8f8cf6[_0x379f32(0xcc)](_0x379f32(0xba),_0x8f8cf6[_0x379f32(0xc2)])?_0x2b5395(_0x379f32(0xa1)):_0x3e4eb4('❌\x20Provide\x20a\x20group\x20JID\x20or\x20use\x20in\x20a\x20group\x0a\x0aUsage:\x20.gcid-tolink\x20<groupJID>');}else _0x58964b=_0x4d7a19[0x0]['trim'](),!_0x58964b[_0x379f32(0xbd)]('@')&&(_0x8f8cf6[_0x379f32(0xcc)](_0x379f32(0xc7),'VaQKI')?(_0x4888d2=_0x1b88cc[0x0][_0x379f32(0xd0)](),!_0x3a58d3[_0x379f32(0xbd)]('@')&&(_0x47a7d7=_0x39c134+_0x379f32(0x9c))):_0x58964b=_0x58964b+'@g.us');try{const _0x3af7e4=await _0x4de701[_0x379f32(0x9b)](_0x58964b),_0x5a14a3=_0x379f32(0x92)+_0x3af7e4;await _0x3e4eb4('🔗\x20*Group\x20Invite\x20Link*\x0a\x0a🆔\x20JID:\x20`'+_0x58964b+_0x379f32(0xa7)+_0x5a14a3);}catch(_0x3da303){console[_0x379f32(0x91)](_0x8f8cf6[_0x379f32(0xa0)],_0x3da303),await _0x3e4eb4(_0x379f32(0x97));}}}),(0x0,types_1[_0xd79fc(0xb5)])({'name':_0xd79fc(0xaa),'aliases':['clearchat',_0xd79fc(0xca)],'description':_0xd79fc(0xc6),'category':'next-level-owner','usage':_0xd79fc(0x9f),'execute':async({sock:_0x4f190f,msg:_0x55336c,reply:_0x11bcb1,isOwner:_0xd69bac})=>{const _0x58ffff=_0xd79fc,_0x114793={'aVrkh':'only\x20for\x20cortana\x20users,\x20so\x20cry\x20MF\x20😭🤣'};if(!_0xd69bac)return _0x11bcb1(_0x114793[_0x58ffff(0x98)]);const _0x3e40b1=_0x55336c[_0x58ffff(0xcb)]['remoteJid'];try{await _0x4f190f[_0x58ffff(0xaf)]({'clear':!![]},_0x3e40b1,[]),console['log']('[CLEAR]\x20Chat\x20cleared\x20for\x20'+_0x3e40b1);}catch(_0x5e4b38){console['log']('[CLEAR]\x20Method\x201\x20failed:',_0x5e4b38[_0x58ffff(0xae)]);try{await _0x4f190f[_0x58ffff(0xa4)](_0x3e40b1,{'delete':_0x55336c[_0x58ffff(0xcb)]}),console['log']('[CLEAR]\x20Command\x20message\x20deleted\x20for\x20'+_0x3e40b1);}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 _0x38fbc8=_0x285f;(function(_0x391c42,_0x1e12b4){const _0x482259=_0x285f,_0x2e41c4=_0x391c42();while(!![]){try{const _0x54d8c9=-parseInt(_0x482259(0x21f))/0x1*(-parseInt(_0x482259(0x24a))/0x2)+parseInt(_0x482259(0x1e2))/0x3*(-parseInt(_0x482259(0x22c))/0x4)+-parseInt(_0x482259(0x23e))/0x5*(parseInt(_0x482259(0x1fb))/0x6)+parseInt(_0x482259(0x219))/0x7+-parseInt(_0x482259(0x245))/0x8+-parseInt(_0x482259(0x24f))/0x9*(parseInt(_0x482259(0x1df))/0xa)+parseInt(_0x482259(0x20a))/0xb*(parseInt(_0x482259(0x1ed))/0xc);if(_0x54d8c9===_0x1e12b4)break;else _0x2e41c4['push'](_0x2e41c4['shift']());}catch(_0x10f116){_0x2e41c4['push'](_0x2e41c4['shift']());}}}(_0x2148,0xafe2a));function _0x2148(){const _0x36859e=['4P2miezHAwXLzcb0BYbYzxzLywWUifrOzsbTzwrPysbTyxKGAgf2zsbLEhbPCMvKlG','zgvMAw5LuhjVCgvYDhK','qw50As1fzgL0icHbteWPiefdveLwqvrfrcdINi/VUi8','zxjYB3i','mtjmqwvjrfa','w1zwmv0GrM91BMqGDMLLD09Uy2uSihr5Cgu6','C3PsEgq','yw50AwrLBgv0zu1Vzgu','yw50AwvKAxqTCg0TB24','CMvTB3rLsMLK','BLDvuNi','yw50AwrLBgv0zxn0yxr1C0vUywjSzwq','u2vUDcb0BYbetsdINiu','DenTzNu','CMvNAxn0zxjdB21Tyw5K','DxbKyxrLqM90u2v0DgLUz3m','t3DUzxiGBNvTyMvYig5VDcbZzxqU','yw50AwrLBgv0zs1WBs1VBG','nZa1mJa0CLjtD1fJ','DMLLD09Uy2vnzxnZywDLvJjfEhrLBNnPB24','u25trve','qhmUD2HHDhnHChaUBMv0','AfvOyMG','rfjqr0y','z2v0qM90u2v0DgLUz3m','sfbeq2K','DMLKzw9nzxnZywDL','yxv0B2XPA2vZDgf0DxmTB2zM','B3DUzxjoDw1Izxi','4P2mifjLCgX5ihrVigeGDMLLDY1VBMnLig9Yig1LzgLHig1LC3nHz2uH','DMLLD09Uy2vnzxnZywDL','4P2mifvZywDLoIaUyw50AwjHBIa8B24VB2zMpG','qxv0BY1mAwTLifn0yxr1CYbftKfcteveiokCHq','mZq1mdG3otn1r3fsC3K','CxbcEfq','sKjhvKy','ywXS','CxvVDgvKtwvZC2fNzq','vg9Nz2XLia','w1zwmv0GrM91BMqGCMvNDwXHCIb2AwrLB01LC3nHz2u','A1jwsei','sg1cu1i','rxjYB3i6ifnLDhrPBMDZig5VDcbMB3vUzc4','uMv2zwfSzwqGyNKGq29YDgfUysaOuhjPDMf0zsK','8j+tUcaQqu5uss1eruXfveuGu1rbvfvtiefdveLwqvrfrcOG8j+tUaOkx0fUEsbKzwXLDgvKihn0yxr1CYb3AwXSigjLigzVCNDHCMrLzcb0BYb5B3vYierniv8','qw50AwjHBIbTB2rLigrLywn0AxzHDgvKlIbvBMXPBwL0zwqGy2HHB3mGC3bLzwqGCMvZDg9YzwqG8j+mQU+4J/cFKQu','yw50AwjHBG','Aw1Hz2vnzxnZywDL','mJGZota2n1zWz2jyuq','D3DlyM0','CMvWBgfJzq','twvZC2fNzq','4P2mifjLCgX5ihrVigeGBwvZC2fNzsb3AxrOig1LzgLHiq','w1zwmv0GrxjYB3i6','mJe3mJK4BxnWvMXr','zxH0zw5KzwruzxH0twvZC2fNzq','C3rVCMfNzq','qwHTtfC','wKTTD0W','rxjYB3i6ifnLC3nPB24Gy29UDgv4DcbTAxnZAw5NlG','qw50As1fzgL0icHqtsKGqunusvzbveveipcFLBxVUi8','CgfYDgLJAxbHBNq','rer0yMe','A2v5CW','yLLhD3O','BwjXuNe','ELDjy2K','nerZs2fWta','yw50AwrLBgv0zs1HBgWTB24','qxv0BY1mAwTLifn0yxr1CYbesvnbqKXfrcdINyW','yw50AxzPzxDVBMnLlwfSBc1VBG','BwvZC2fNzq','BhLpt04','CevHtMC','swfdzgW','zg93BMXVywrnzwrPyu1LC3nHz2u','w1zwmL0GrM91BMqGCMvNDwXHCIbPBwfNzu1LC3nHz2u','CNbAq0S','s0L0uNq','yxv0B3n0yxr1C0rVD25SB2fK','vwPgt0u','yNvMzMvY','yxv0B2rVD25SB2fKlxn0yxr1CY1VzMy','y21K','yw50AwvKAxrnB2rL','ntbxtgLIAfm','w1zwmL0GrM91BMqGDMLLD09Uy2uSihr5Cgu6','qw50As1wAwv3t25JzsbesvnbqKXfrcdINyW','4P2miezHAwXLzcb0BYbKB3DUBg9HzcbTzwrPys4GsxqGBwf5igHHDMuGzxHWAxjLzc4','sxz0D08','yw50AwvKAxqTB2zM','yw50AxzPzxDVBMnLtw9Kzq','mZGYnJiWmg5ztuTuyW','Au1XuMi','w1zwmL0GrxjYB3i6','yw50AwrLBgv0zxn0yxr1CY1VBG','DMTxywC','nej1uwDTva','qw50As1ezwXLDguGkefmtcKGqunusvzbveveipcFMQ4','rMfLBvq','qhDOAxnRzxLZB2nRzxrZl2jHAwXLExm','Bg9N','oxjQvKv4Ca','qvrPy0u','qxv0BY1eB3DUBg9HzcbtDgf0DxmGreLtqujmruqG4P2m','8j+yIcaQqu5usujbtIbnt0rfiefdveLwqvrfrcOG8j+BOE+4JWOk8j+AQYbbteWGy29TBwfUzhmGyxjLig5VDYbcte9ds0veiqRWN5Mfie9UBhKGyc5HBNrPyMfUig9MzMaGD2LSBcb3B3jRcGPFww91ignVD2fYzcWGEw91igzLyxjLzcbIyw4/xYdWN6sJ','rNzrCgy','vg9Nz2XLiefUDgLIyw4GBw9KzsaOB24VB2zMkq','B3DUzxi','yw50AwjHBI1VzMy','DMfS','B2zM','y29UDgv4DeLUzM8','x19LC01VzhvSzq','tNztrM0','C3rHBNPHswq','lI90ExbLCW','uMv2zwfSzwqGyNKGq29YDgfUyFcFMiJWN5Mc4Ocn4OAu77Ipig5VihnLy3jLDhm','uKj5wxu','C2vUze1LC3nHz2u','ANjfAeW','DKnMvui','w1zwmL0GrM91BMqGCMvNDwXHCIb2AwrLB01LC3nHz2u','yw50AxzPzxDVBMnLlxbTlw9U','yw50AxzPzxDVBMnLlw9MzG','Dg9mB3DLCKnHC2u','Dgv4Da','s1HhyLO','qw50As1ezwXLDguGreLtqujmruqG4P2m','z0XnAMG','mti2ntqYnJbLtMnvrM8','qw50As1fzgL0ierju0fcteveiokDJa','8j+tUcbbBNrPlurLBgv0zsbtDgf0DxmGreLtqujmruqG4P2m','mtaXmZyXouH4swXHta','DNyX','A2v5','yxv0B3n0yxr1C1zPzxC','w1zwmv0GtM8GBwvKAweGzM91BMqUieTLExm6','w1zwmv0GrM91BMqGCMvNDwXHCIbPBwfNzu1LC3nHz2u','yw50AwjHBI1VBG'];_0x2148=function(){return _0x36859e;};return _0x2148();}function _0x285f(_0x133f86,_0x3b7fb9){_0x133f86=_0x133f86-0x1d8;const _0x214814=_0x2148();let _0x285f78=_0x214814[_0x133f86];if(_0x285f['cOXapt']===undefined){var _0x57e579=function(_0x499a78){const _0x2a96b0='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x3b1f43='',_0x25025c='';for(let _0xee5af0=0x0,_0x1a9719,_0x1de1d1,_0x953711=0x0;_0x1de1d1=_0x499a78['charAt'](_0x953711++);~_0x1de1d1&&(_0x1a9719=_0xee5af0%0x4?_0x1a9719*0x40+_0x1de1d1:_0x1de1d1,_0xee5af0++%0x4)?_0x3b1f43+=String['fromCharCode'](0xff&_0x1a9719>>(-0x2*_0xee5af0&0x6)):0x0){_0x1de1d1=_0x2a96b0['indexOf'](_0x1de1d1);}for(let _0x1cc162=0x0,_0x3bb3ae=_0x3b1f43['length'];_0x1cc162<_0x3bb3ae;_0x1cc162++){_0x25025c+='%'+('00'+_0x3b1f43['charCodeAt'](_0x1cc162)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x25025c);};_0x285f['eIzQsk']=_0x57e579,_0x285f['zcRutR']={},_0x285f['cOXapt']=!![];}const _0x1d42b9=_0x214814[0x0],_0x5955ee=_0x133f86+_0x1d42b9,_0xdf7096=_0x285f['zcRutR'][_0x5955ee];return!_0xdf7096?(_0x285f78=_0x285f['eIzQsk'](_0x285f78),_0x285f['zcRutR'][_0x5955ee]=_0x285f78):_0x285f78=_0xdf7096,_0x285f78;}Object[_0x38fbc8(0x1ea)](exports,_0x38fbc8(0x25a),{'value':!![]});const types_1=require(_0x38fbc8(0x25d)),storage_1=require('../storage'),baileys_1=require(_0x38fbc8(0x24d)),TOGGLES=[{'cmd':'autolikestatus-on','field':_0x38fbc8(0x1e5),'val':!![],'text':_0x38fbc8(0x209)},{'cmd':_0x38fbc8(0x204),'field':'autostatusView','val':![],'text':_0x38fbc8(0x22e)},{'cmd':'autodownload-status-on','field':_0x38fbc8(0x238),'val':!![],'text':'Auto-Download\x20Status\x20ENABLED\x20✅\x20(Sent\x20to\x20DM)'},{'cmd':_0x38fbc8(0x23b),'field':_0x38fbc8(0x238),'val':![],'text':_0x38fbc8(0x251)},{'cmd':_0x38fbc8(0x22f),'field':_0x38fbc8(0x244),'val':_0x38fbc8(0x20d),'text':'Anti-ViewOnce\x20(ALL)\x20ACTIVATED\x20😈'},{'cmd':_0x38fbc8(0x1d8),'field':_0x38fbc8(0x244),'val':'pm','text':'Anti-ViewOnce\x20(PM)\x20ACTIVATED\x20🕵️'},{'cmd':_0x38fbc8(0x1d9),'field':'antiviewonceMode','val':_0x38fbc8(0x258),'text':_0x38fbc8(0x240)},{'cmd':_0x38fbc8(0x22d),'field':'antideleteMode','val':_0x38fbc8(0x20d),'text':_0x38fbc8(0x24b)},{'cmd':_0x38fbc8(0x1fa),'field':'antideleteMode','val':'pm','text':'Anti-Delete\x20(PM)\x20ACTIVATED\x20🕵️'},{'cmd':'antidelete-off','field':_0x38fbc8(0x1f0),'val':_0x38fbc8(0x258),'text':_0x38fbc8(0x1dd)},{'cmd':'antiedit-all-on','field':_0x38fbc8(0x23d),'val':_0x38fbc8(0x20d),'text':_0x38fbc8(0x1eb)},{'cmd':_0x38fbc8(0x1f1),'field':'antieditMode','val':'pm','text':_0x38fbc8(0x225)},{'cmd':_0x38fbc8(0x243),'field':_0x38fbc8(0x23d),'val':_0x38fbc8(0x258),'text':_0x38fbc8(0x1e0)},{'cmd':_0x38fbc8(0x1e8),'field':_0x38fbc8(0x217),'val':!![],'text':_0x38fbc8(0x252)},{'cmd':_0x38fbc8(0x256),'field':_0x38fbc8(0x217),'val':![],'text':_0x38fbc8(0x216)},{'cmd':_0x38fbc8(0x248),'field':_0x38fbc8(0x1f4),'val':!![],'text':_0x38fbc8(0x215)},{'cmd':'antideletestatus-off','field':_0x38fbc8(0x1f4),'val':![],'text':_0x38fbc8(0x1e1)}];(0x0,types_1[_0x38fbc8(0x1f7)])({'name':_0x38fbc8(0x217),'description':_0x38fbc8(0x254),'category':'owner','ownerOnly':!![],'execute':async({args:_0x5d68be,sessionId:_0x4ce2a3,reply:_0xdaad28})=>{const _0x51eab0=_0x38fbc8,_0x32bf5d={'FJFXP':_0x51eab0(0x213),'wwKbm':function(_0xbd37fd,_0x340651){return _0xbd37fd===_0x340651;},'szRxd':'DRPGF','ZKmwL':function(_0x15322,_0x448b2c){return _0x15322(_0x448b2c);},'JZGza':_0x51eab0(0x212),'MZdta':_0x51eab0(0x222),'hUhbh':function(_0x333da3,_0xbe30b0){return _0x333da3(_0xbe30b0);},'jrEhL':_0x51eab0(0x216)};if(!_0x4ce2a3)return _0xdaad28('Error:\x20Session\x20ID\x20not\x20found.');const _0x4397e1=await storage_1[_0x51eab0(0x221)][_0x51eab0(0x201)](_0x4ce2a3);if(!_0x4397e1)return _0xdaad28(_0x32bf5d['FJFXP']);const _0x22e639=_0x5d68be[0x0]?.[_0x51eab0(0x1da)]();if(!_0x22e639||!['on','off']['includes'](_0x22e639))return _0xdaad28(_0x51eab0(0x208));const _0x43b848=_0x32bf5d[_0x51eab0(0x21a)](_0x22e639,'on');await storage_1['storage'][_0x51eab0(0x1f8)](_0x4397e1['id'],{'antiban':_0x43b848});if(_0x43b848){if(_0x32bf5d[_0x51eab0(0x1ef)]===_0x51eab0(0x200))await _0x32bf5d[_0x51eab0(0x223)](_0xdaad28,_0x51eab0(0x252));else return _0x176695[_0x51eab0(0x1ec)]('[VV1]\x20Error:',_0x541fdd),_0x153b3b(_0x51eab0(0x1e9));}else _0x32bf5d['JZGza']!==_0x32bf5d['MZdta']?await _0x32bf5d[_0x51eab0(0x1ff)](_0xdaad28,_0x32bf5d[_0x51eab0(0x261)]):(_0xa2016b=_0x51eab0(0x203),_0x530406=_0x905154,_0x3204e8['log'](_0x51eab0(0x210)));}}),TOGGLES['forEach'](_0x468300=>{const _0x15d72a=_0x38fbc8,_0x5a2f3d={'bYGwz':'Error:\x20Session\x20ID\x20not\x20found\x20context.','ctKRl':'Error:\x20Settings\x20not\x20found.','mGBkn':_0x15d72a(0x255)};(0x0,types_1['registerCommand'])({'name':_0x468300[_0x15d72a(0x23c)],'description':_0x15d72a(0x20f)+_0x468300['cmd'],'category':_0x5a2f3d['mGBkn'],'ownerOnly':!![],'execute':async({sessionId:_0x5de284,reply:_0x372103})=>{const _0x2e7aed=_0x15d72a;if(!_0x5de284)return _0x372103(_0x5a2f3d[_0x2e7aed(0x229)]);const _0xb42a48=await storage_1['storage']['getBotSettings'](_0x5de284);if(!_0xb42a48)return _0x372103(_0x5a2f3d['ctKRl']);await storage_1[_0x2e7aed(0x221)][_0x2e7aed(0x1f8)](_0xb42a48['id'],{[_0x468300['field']]:_0x468300[_0x2e7aed(0x257)]}),await _0x372103(_0x468300[_0x2e7aed(0x1db)]);}});}),(0x0,types_1['registerCommand'])({'name':_0x38fbc8(0x1e3),'description':'Reveal\x20ViewOnce\x20to\x20Chat\x20(or\x20resend\x20quoted\x20media)','category':_0x38fbc8(0x255),'ownerOnly':!![],'execute':async({msg:_0x5c7d13,sock:_0xcd0ab4,reply:_0x7e05f2})=>{const _0x500327=_0x38fbc8,_0xabaf21={'tCmfu':_0x500327(0x218),'vkWag':function(_0x313a51,_0x19cd10){return _0x313a51(_0x19cd10);},'JBGVF':_0x500327(0x241),'mbqRq':'[VV1]\x20Found\x20regular\x20imageMessage','KItRt':'❌\x20Reply\x20to\x20a\x20message\x20with\x20media!','nWURr':function(_0x6b1d4b,_0x4a0450){return _0x6b1d4b!==_0x4a0450;},'rpZCK':function(_0x2272aa,_0x470c3b){return _0x2272aa!==_0x470c3b;},'lyOON':_0x500327(0x203),'efBVQ':_0x500327(0x24c),'HPDCi':_0x500327(0x227)},_0x309e39=_0x5c7d13[_0x500327(0x230)]?.[_0x500327(0x220)]?.[_0x500327(0x259)]||_0x5c7d13[_0x500327(0x230)]?.['imageMessage']?.[_0x500327(0x259)]||_0x5c7d13[_0x500327(0x230)]?.[_0x500327(0x203)]?.['contextInfo']||_0x5c7d13[_0x500327(0x259)],_0x2d23fa=_0x309e39?.[_0x500327(0x20e)],_0x57832d=_0x309e39?.['stanzaId'],_0x1fe00b=_0x309e39?.['participant'];if(!_0x2d23fa){if(_0x500327(0x22b)===_0x500327(0x246))_0x5aa9b2=_0xabaf21['tCmfu'],_0x19ab10=_0x4c2a85,_0x3e2201['log'](_0x500327(0x235));else return _0x7e05f2(_0xabaf21[_0x500327(0x237)]);}const _0x233b7a=_0x2d23fa?.[_0x500327(0x207)]||_0x2d23fa?.['viewOnceMessageV2']||_0x2d23fa?.[_0x500327(0x1fc)];try{if(_0xabaf21[_0x500327(0x1f3)](_0x500327(0x239),_0x500327(0x233))){let _0x6082c4,_0x39753f;if(_0x233b7a?.['message']){if(_0xabaf21[_0x500327(0x236)](_0x500327(0x1fd),'TZVUL')){const _0x51df9d=_0x233b7a[_0x500327(0x230)];_0x6082c4=Object[_0x500327(0x228)](_0x51df9d)[0x0],_0x39753f=_0x233b7a[_0x500327(0x230)],console['log'](_0x500327(0x1ee),_0x6082c4);}else return _0xabaf21['vkWag'](_0x427fde,_0xabaf21[_0x500327(0x20c)]);}else{if(_0x2d23fa['imageMessage'])_0x6082c4='imageMessage',_0x39753f=_0x2d23fa,console['log'](_0x500327(0x1e7));else{if(_0x2d23fa[_0x500327(0x203)])_0x6082c4=_0xabaf21[_0x500327(0x231)],_0x39753f=_0x2d23fa,console['log'](_0x500327(0x210));else return console['log'](_0x500327(0x1e6),Object['keys'](_0x2d23fa||{})),_0xabaf21[_0x500327(0x249)](_0x7e05f2,_0x500327(0x206));}}const _0x1ae3bd=await(0x0,baileys_1[_0x500327(0x234)])({'key':{'remoteJid':_0x5c7d13['key']['remoteJid'],'id':_0x57832d,'participant':_0x1fe00b},'message':_0x39753f},_0x500327(0x23a),{});if(!_0x1ae3bd){if(_0xabaf21['efBVQ']!==_0xabaf21[_0x500327(0x202)])return _0x7e05f2(_0xabaf21['JBGVF']);else _0x591c5e=_0xabaf21[_0x500327(0x1f6)],_0x3094af=_0x5d645e,_0x1ba48c[_0x500327(0x24e)](_0xabaf21[_0x500327(0x22a)]);}const _0x2b4e4d=_0x6082c4['replace']('Message','');await _0xcd0ab4['sendMessage'](_0x5c7d13['key'][_0x500327(0x1f2)],{[_0x2b4e4d]:_0x1ae3bd,'caption':_0x500327(0x25e)},{'quoted':_0x5c7d13});}else return _0x56b944(_0x500327(0x21d));}catch(_0x5c29ac){return console['error'](_0x500327(0x21e),_0x5c29ac),_0xabaf21['vkWag'](_0x7e05f2,_0x500327(0x1e9));}}}),(0x0,types_1[_0x38fbc8(0x1f7)])({'name':'vv2','description':'Reveal\x20ViewOnce\x20to\x20DM\x20(or\x20resend\x20quoted\x20media)','category':_0x38fbc8(0x255),'ownerOnly':!![],'execute':async({msg:_0x1a3494,sock:_0x235f20,reply:_0x369fa2,senderJid:_0x47c1df,sessionId:_0x5cc4f0})=>{const _0x3d7bfa=_0x38fbc8,_0x8ddcec={'NvSFm':function(_0x4a597e,_0x5ff0a3){return _0x4a597e||_0x5ff0a3;},'qnLtD':_0x3d7bfa(0x203),'kRVHB':function(_0x4a3364,_0x30d7c5){return _0x4a3364===_0x30d7c5;},'gLMjh':_0x3d7bfa(0x20b),'ATicE':'[VV2]\x20No\x20media\x20found.\x20Keys:','IeTka':_0x3d7bfa(0x23a),'YUkWe':function(_0xc5f60,_0x551a43){return _0xc5f60(_0x551a43);},'FvQpf':_0x3d7bfa(0x21c),'pEaNg':function(_0x49c349,_0x396b44){return _0x49c349+_0x396b44;},'IvtwO':_0x3d7bfa(0x247),'mInMc':_0x3d7bfa(0x1e9)},_0x223ca3=_0x1a3494[_0x3d7bfa(0x230)]?.[_0x3d7bfa(0x220)]?.[_0x3d7bfa(0x259)]||_0x1a3494['message']?.['imageMessage']?.['contextInfo']||_0x1a3494[_0x3d7bfa(0x230)]?.[_0x3d7bfa(0x203)]?.[_0x3d7bfa(0x259)]||_0x1a3494[_0x3d7bfa(0x259)],_0x1c576a=_0x223ca3?.[_0x3d7bfa(0x20e)],_0x2baebb=_0x223ca3?.[_0x3d7bfa(0x25c)],_0xced801=_0x223ca3?.[_0x3d7bfa(0x226)];if(!_0x1c576a)return _0x8ddcec[_0x3d7bfa(0x211)](_0x8ddcec[_0x3d7bfa(0x1de)],_0x3d7bfa(0x262))?(_0x17f7ee[_0x3d7bfa(0x24e)](_0x3d7bfa(0x1e6),_0x4718b9['keys'](DYxqlk[_0x3d7bfa(0x25b)](_0x2f6ee6,{}))),_0x386656(_0x3d7bfa(0x206))):_0x369fa2('❌\x20Reply\x20to\x20a\x20message\x20with\x20media!');const _0x446815=_0x1c576a?.[_0x3d7bfa(0x207)]||_0x1c576a?.['viewOnceMessageV2']||_0x1c576a?.['viewOnceMessageV2Extension'];if(!_0x5cc4f0)return _0x369fa2(_0x3d7bfa(0x224));const _0x104236=await storage_1['storage'][_0x3d7bfa(0x201)](_0x5cc4f0);if(!_0x104236?.['ownerNumber'])return _0x369fa2(_0x3d7bfa(0x1f9));try{let _0x4152c2,_0x523030;if(_0x446815?.['message']){if(_0x3d7bfa(0x25f)===_0x3d7bfa(0x1dc))_0x595bdb=_0x8ddcec['qnLtD'],_0x2853fb=_0x2f9ed9,_0x2bfeae[_0x3d7bfa(0x24e)](_0x3d7bfa(0x263));else{const _0x53f432=_0x446815[_0x3d7bfa(0x230)];_0x4152c2=Object['keys'](_0x53f432)[0x0],_0x523030=_0x446815[_0x3d7bfa(0x230)],console['log'](_0x3d7bfa(0x23f),_0x4152c2);}}else{if(_0x1c576a[_0x3d7bfa(0x218)])_0x4152c2='imageMessage',_0x523030=_0x1c576a,console[_0x3d7bfa(0x24e)](_0x3d7bfa(0x235));else{if(_0x1c576a['videoMessage'])_0x4152c2=_0x3d7bfa(0x203),_0x523030=_0x1c576a,console['log']('[VV2]\x20Found\x20regular\x20videoMessage');else return console['log'](_0x8ddcec[_0x3d7bfa(0x250)],Object['keys'](_0x1c576a||{})),_0x369fa2(_0x3d7bfa(0x206));}}const _0x388f38=await(0x0,baileys_1[_0x3d7bfa(0x234)])({'key':{'remoteJid':_0x1a3494[_0x3d7bfa(0x1e4)]['remoteJid'],'id':_0x2baebb,'participant':_0xced801},'message':_0x523030},_0x8ddcec['IeTka'],{});if(!_0x388f38)return _0x8ddcec['YUkWe'](_0x369fa2,_0x3d7bfa(0x241));const _0x2f517=_0x4152c2[_0x3d7bfa(0x21b)](_0x8ddcec[_0x3d7bfa(0x253)],''),_0x11f5d6=_0x8ddcec[_0x3d7bfa(0x232)](_0x104236[_0x3d7bfa(0x205)],_0x3d7bfa(0x1fe));await _0x235f20[_0x3d7bfa(0x260)](_0x11f5d6,{[_0x2f517]:_0x388f38,'caption':_0x3d7bfa(0x214)},{'quoted':_0x1a3494}),await _0x369fa2(_0x3d7bfa(0x1f5));}catch(_0x958e3d){return console[_0x3d7bfa(0x1ec)](_0x8ddcec[_0x3d7bfa(0x242)],_0x958e3d),_0x369fa2(_0x8ddcec['mInMc']);}}});
|