@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
package/src/plugins/text.js
CHANGED
|
@@ -1,57 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const types_1 = require("./types");
|
|
4
|
-
(0, types_1.registerCommand)({
|
|
5
|
-
name: "fancy",
|
|
6
|
-
description: "Make text fancy",
|
|
7
|
-
category: "text",
|
|
8
|
-
execute: async ({ args, reply }) => {
|
|
9
|
-
const text = args.join(" ");
|
|
10
|
-
if (!text)
|
|
11
|
-
return reply("Please provide text");
|
|
12
|
-
const map = {
|
|
13
|
-
'a': 'α', 'b': 'в', 'c': '¢', 'd': '∂', 'e': 'є', 'f': 'ƒ', 'g': 'g', 'h': 'н', 'i': 'ι',
|
|
14
|
-
'j': 'נ', 'k': 'к', 'l': 'ℓ', 'm': 'м', 'n': 'η', 'o': 'σ', 'p': 'ρ', 'q': 'q', 'r': 'я',
|
|
15
|
-
's': 'ѕ', 't': 'т', 'u': 'υ', 'v': 'ν', 'w': 'ω', 'x': 'χ', 'y': 'у', 'z': 'z'
|
|
16
|
-
};
|
|
17
|
-
const fancy = text.toLowerCase().split('').map(c => map[c] || c).join('');
|
|
18
|
-
await reply(`✨ *Fancy Text*\n\n${fancy}`);
|
|
19
|
-
}
|
|
20
|
-
});
|
|
21
|
-
(0, types_1.registerCommand)({
|
|
22
|
-
name: "reverse",
|
|
23
|
-
description: "Reverse text",
|
|
24
|
-
category: "text",
|
|
25
|
-
execute: async ({ args, reply }) => {
|
|
26
|
-
const text = args.join(" ");
|
|
27
|
-
if (!text)
|
|
28
|
-
return reply("Please provide text");
|
|
29
|
-
await reply(text.split('').reverse().join(''));
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
(0, types_1.registerCommand)({
|
|
33
|
-
name: "spoiler",
|
|
34
|
-
description: "Make spoiler text",
|
|
35
|
-
category: "text",
|
|
36
|
-
execute: async ({ args, reply }) => {
|
|
37
|
-
const text = args.join(" ");
|
|
38
|
-
if (!text)
|
|
39
|
-
return reply("Please provide text");
|
|
40
|
-
// WhatsApp spoiler hack
|
|
41
|
-
const spoiler = "Warning! Spoiler below:\n" + "\u200B".repeat(4000) + text;
|
|
42
|
-
await reply(spoiler);
|
|
43
|
-
}
|
|
44
|
-
});
|
|
45
|
-
(0, types_1.registerCommand)({
|
|
46
|
-
name: "logo",
|
|
47
|
-
description: "Create Logo",
|
|
48
|
-
category: "text",
|
|
49
|
-
execute: async ({ args, sock, msg }) => {
|
|
50
|
-
const text = args.join(" ");
|
|
51
|
-
if (!text)
|
|
52
|
-
return sock.sendMessage(msg.key.remoteJid, { text: "Please provide text for logo" });
|
|
53
|
-
// Using a public API for logo generation
|
|
54
|
-
const url = `https://dummyimage.com/600x400/000/fff&text=${encodeURIComponent(text)}`;
|
|
55
|
-
await sock.sendMessage(msg.key.remoteJid, { image: { url }, caption: "🎨 Your Logo" });
|
|
56
|
-
}
|
|
57
|
-
});
|
|
1
|
+
'use strict';const _0x5e4be6=_0x4721;function _0x4721(_0x32828d,_0x267edd){_0x32828d=_0x32828d-0x64;const _0x27e427=_0x27e4();let _0x4721ee=_0x27e427[_0x32828d];if(_0x4721['PXGfWb']===undefined){var _0x1648d4=function(_0x304ffc){const _0x1fcc8d='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x35fb10='',_0x297c8f='';for(let _0x953b3b=0x0,_0x48297a,_0x2ee311,_0x2872=0x0;_0x2ee311=_0x304ffc['charAt'](_0x2872++);~_0x2ee311&&(_0x48297a=_0x953b3b%0x4?_0x48297a*0x40+_0x2ee311:_0x2ee311,_0x953b3b++%0x4)?_0x35fb10+=String['fromCharCode'](0xff&_0x48297a>>(-0x2*_0x953b3b&0x6)):0x0){_0x2ee311=_0x1fcc8d['indexOf'](_0x2ee311);}for(let _0xaacd41=0x0,_0x5250ff=_0x35fb10['length'];_0xaacd41<_0x5250ff;_0xaacd41++){_0x297c8f+='%'+('00'+_0x35fb10['charCodeAt'](_0xaacd41)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x297c8f);};_0x4721['ntPnNM']=_0x1648d4,_0x4721['alpscL']={},_0x4721['PXGfWb']=!![];}const _0x169a70=_0x27e427[0x0],_0x557276=_0x32828d+_0x169a70,_0x4bf230=_0x4721['alpscL'][_0x557276];return!_0x4bf230?(_0x4721ee=_0x4721['ntPnNM'](_0x4721ee),_0x4721['alpscL'][_0x557276]=_0x4721ee):_0x4721ee=_0x4bf230,_0x4721ee;}(function(_0x1ca374,_0x474e13){const _0x2f427e=_0x4721,_0x4ef017=_0x1ca374();while(!![]){try{const _0xd423f6=-parseInt(_0x2f427e(0x86))/0x1+parseInt(_0x2f427e(0x73))/0x2+parseInt(_0x2f427e(0x7d))/0x3+parseInt(_0x2f427e(0x6c))/0x4+parseInt(_0x2f427e(0x67))/0x5*(-parseInt(_0x2f427e(0x65))/0x6)+parseInt(_0x2f427e(0x71))/0x7*(parseInt(_0x2f427e(0x87))/0x8)+parseInt(_0x2f427e(0x7e))/0x9;if(_0xd423f6===_0x474e13)break;else _0x4ef017['push'](_0x4ef017['shift']());}catch(_0x5d1e48){_0x4ef017['push'](_0x4ef017['shift']());}}}(_0x27e4,0x24884));function _0x27e4(){const _0x3b0be9=['CMvNAxn0zxjdB21Tyw5K','otaZody0ExbPqwTi','BwfW','twfRzsbZCg9PBgvYihrLEhq','CMvTB3rLsMLK','ugXLyxnLihbYB3zPzguGDgv4Da','nda0nJyZsfbKCLbA','C3bSAxq','ntC0nJHvqMjiwLu','uMv2zxjZzsb0zxH0','Dgv4Da','8j+oQcbzB3vYieXVz28','CMv2zxjZzq','t1rxrfq','ugXLyxnLihbYB3zPzguGDgv4DcbMB3iGBg9NBW','AM9PBG','C3bVAwXLCG','C0nbBeO','ndq3mZmWtxj2C3bh','nZmWndK0r0LRCMrf','BefxyLy','AvfyBgq','Ahr0Chm6lY9KDw1TEwLTywDLlMnVBs82mdb4ndaWlZaWmc9MzMyMDgv4Dd0','A2v5','CMvWzwf0','zMfUy3K','x19LC01VzhvSzq','mJC1odC0CgfXqNPR','ohfdwgzuwG','C2vUze1LC3nHz2u','AxzqBgq','lI90ExbLCW','4PYOicPgyw5JEsbuzxH0kGOk','mtuWBuTZCvDS','zNvxBem','mJm0ntvTrwX2v0q','Dg9mB3DLCKnHC2u','Bg9NBW','twfRzsb0zxH0igzHBMn5'];_0x27e4=function(){return _0x3b0be9;};return _0x27e4();}Object['defineProperty'](exports,_0x5e4be6(0x85),{'value':!![]});const types_1=require(_0x5e4be6(0x8a));(0x0,types_1['registerCommand'])({'name':_0x5e4be6(0x84),'description':_0x5e4be6(0x6a),'category':_0x5e4be6(0x75),'execute':async({args:_0x587ed9,reply:_0x2a9491})=>{const _0x5cc40d=_0x5e4be6,_0x2a68b6={'OTWDT':function(_0x2f8cc2,_0x265c0b){return _0x2f8cc2(_0x265c0b);},'lAWbV':_0x5cc40d(0x70),'iQXld':function(_0xfb909b,_0xa622a4){return _0xfb909b(_0xa622a4);}},_0x5774ad=_0x587ed9[_0x5cc40d(0x7a)]('\x20');if(!_0x5774ad)return _0x2a68b6[_0x5cc40d(0x78)](_0x2a9491,_0x2a68b6[_0x5cc40d(0x7f)]);const _0x3b0223={'a':'α','b':'в','c':'¢','d':'∂','e':'є','f':'ƒ','g':'g','h':'н','i':'ι','j':'נ','k':'к','l':'ℓ','m':'м','n':'η','o':'σ','p':'ρ','q':'q','r':'я','s':'ѕ','t':'т','u':'υ','v':'ν','w':'ω','x':'χ','y':'у','z':'z'},_0x402cf0=_0x5774ad[_0x5cc40d(0x68)]()[_0x5cc40d(0x72)]('')[_0x5cc40d(0x6d)](_0xc4320f=>_0x3b0223[_0xc4320f]||_0xc4320f)[_0x5cc40d(0x7a)]('');await _0x2a68b6[_0x5cc40d(0x80)](_0x2a9491,_0x5cc40d(0x64)+_0x402cf0);}}),(0x0,types_1['registerCommand'])({'name':_0x5e4be6(0x77),'description':_0x5e4be6(0x74),'category':_0x5e4be6(0x75),'execute':async({args:_0xc3b46e,reply:_0x328726})=>{const _0x126562=_0x5e4be6,_0x2b2577=_0xc3b46e[_0x126562(0x7a)]('\x20');if(!_0x2b2577)return _0x328726('Please\x20provide\x20text');await _0x328726(_0x2b2577[_0x126562(0x72)]('')[_0x126562(0x77)]()[_0x126562(0x7a)](''));}}),(0x0,types_1[_0x5e4be6(0x6b)])({'name':_0x5e4be6(0x7b),'description':_0x5e4be6(0x6e),'category':_0x5e4be6(0x75),'execute':async({args:_0x370653,reply:_0x3085de})=>{const _0x8a513a=_0x5e4be6,_0x364b33={'sCAlJ':_0x8a513a(0x70),'ivPld':function(_0x3cb533,_0x23a224){return _0x3cb533+_0x23a224;}},_0x3fe68d=_0x370653['join']('\x20');if(!_0x3fe68d)return _0x3085de(_0x364b33[_0x8a513a(0x7c)]);const _0x5758d3=_0x364b33[_0x8a513a(0x89)]('Warning!\x20Spoiler\x20below:\x0a',''[_0x8a513a(0x83)](0xfa0))+_0x3fe68d;await _0x3085de(_0x5758d3);}}),(0x0,types_1[_0x5e4be6(0x6b)])({'name':_0x5e4be6(0x69),'description':'Create\x20Logo','category':_0x5e4be6(0x75),'execute':async({args:_0x387301,sock:_0x33379f,msg:_0xda1996})=>{const _0x22824d=_0x5e4be6,_0x328c96={'fuWlC':_0x22824d(0x79),'LKFXi':function(_0x120682,_0x5bbb14){return _0x120682(_0x5bbb14);}},_0x1294ce=_0x387301['join']('\x20');if(!_0x1294ce)return _0x33379f[_0x22824d(0x88)](_0xda1996[_0x22824d(0x82)][_0x22824d(0x6f)],{'text':_0x328c96[_0x22824d(0x66)]});const _0x3560cf=_0x22824d(0x81)+_0x328c96['LKFXi'](encodeURIComponent,_0x1294ce);await _0x33379f[_0x22824d(0x88)](_0xda1996[_0x22824d(0x82)][_0x22824d(0x6f)],{'image':{'url':_0x3560cf},'caption':_0x22824d(0x76)});}});
|
|
@@ -1,226 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
-
const types_1 = require("./types");
|
|
7
|
-
const axios_1 = __importDefault(require("axios"));
|
|
8
|
-
const form_data_1 = __importDefault(require("form-data"));
|
|
9
|
-
const baileys_1 = require("@whiskeysockets/baileys");
|
|
10
|
-
// ═══════════════════════════════════════════════════════════════
|
|
11
|
-
// OCR - Text extraction (no "extract" - conflicts with ai.ts)
|
|
12
|
-
// ═══════════════════════════════════════════════════════════════
|
|
13
|
-
(0, types_1.registerCommand)({
|
|
14
|
-
name: "ocr",
|
|
15
|
-
aliases: ["totext", "readimg"],
|
|
16
|
-
description: "Extract text from images",
|
|
17
|
-
category: "tools",
|
|
18
|
-
usage: ".ocr (reply to image)",
|
|
19
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
20
|
-
const jid = msg.key.remoteJid;
|
|
21
|
-
const quoted = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
22
|
-
const isImage = msg.message?.imageMessage || quoted?.imageMessage;
|
|
23
|
-
if (!isImage)
|
|
24
|
-
return reply("❌ Reply to an image");
|
|
25
|
-
try {
|
|
26
|
-
await sock.sendMessage(jid, { react: { text: "📖", key: msg.key } }).catch(() => { });
|
|
27
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)(quoted?.imageMessage ? { message: quoted } : msg, "buffer", {});
|
|
28
|
-
const form = new form_data_1.default();
|
|
29
|
-
form.append("file", buffer, { filename: "image.jpg", contentType: "image/jpeg" });
|
|
30
|
-
const uploadRes = await axios_1.default.post("https://tmpfiles.org/api/v1/upload", form, {
|
|
31
|
-
headers: form.getHeaders(), timeout: 30000
|
|
32
|
-
});
|
|
33
|
-
if (!uploadRes.data?.data?.url)
|
|
34
|
-
return reply("❌ Upload failed");
|
|
35
|
-
const imageUrl = uploadRes.data.data.url.replace("tmpfiles.org/", "tmpfiles.org/dl/");
|
|
36
|
-
const ocrRes = await axios_1.default.post(`https://api.ocr.space/parse/image?url=${encodeURIComponent(imageUrl)}&language=eng&OCREngine=2`, null, { headers: { apikey: "K87648783188957" }, timeout: 60000 });
|
|
37
|
-
const text = ocrRes.data?.ParsedResults?.[0]?.ParsedText?.trim();
|
|
38
|
-
if (!text)
|
|
39
|
-
return reply("❌ No text found");
|
|
40
|
-
await reply(`📖 *OCR*\n\n${text.slice(0, 3500)}`);
|
|
41
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
42
|
-
}
|
|
43
|
-
catch (e) {
|
|
44
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
});
|
|
48
|
-
// ═══════════════════════════════════════════════════════════════
|
|
49
|
-
// REMOVE BACKGROUND (no "rmbg", "nobg" - conflicts with ai.ts)
|
|
50
|
-
// ═══════════════════════════════════════════════════════════════
|
|
51
|
-
(0, types_1.registerCommand)({
|
|
52
|
-
name: "bgremove",
|
|
53
|
-
aliases: ["bgremover", "cutout"],
|
|
54
|
-
description: "Remove image background",
|
|
55
|
-
category: "tools",
|
|
56
|
-
usage: ".bgremove (reply to image)",
|
|
57
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
58
|
-
const jid = msg.key.remoteJid;
|
|
59
|
-
const quoted = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
60
|
-
const isImage = msg.message?.imageMessage || quoted?.imageMessage;
|
|
61
|
-
if (!isImage)
|
|
62
|
-
return reply("❌ Reply to an image");
|
|
63
|
-
try {
|
|
64
|
-
await sock.sendMessage(jid, { react: { text: "🖼️", key: msg.key } }).catch(() => { });
|
|
65
|
-
await reply("🖼️ Removing background...");
|
|
66
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)(quoted?.imageMessage ? { message: quoted } : msg, "buffer", {});
|
|
67
|
-
// Get iLoveIMG token
|
|
68
|
-
const htmlRes = await axios_1.default.get("https://www.iloveimg.com/remove-background", { timeout: 30000 });
|
|
69
|
-
const token = htmlRes.data.match(/"token":"([^"]+)"/)?.[1];
|
|
70
|
-
const task = htmlRes.data.match(/taskId\s*=\s*'([^']+)'/)?.[1];
|
|
71
|
-
if (!token || !task)
|
|
72
|
-
return reply("❌ Service unavailable");
|
|
73
|
-
// Upload
|
|
74
|
-
const uploadForm = new form_data_1.default();
|
|
75
|
-
uploadForm.append("name", "image.jpg");
|
|
76
|
-
uploadForm.append("chunk", "0");
|
|
77
|
-
uploadForm.append("chunks", "1");
|
|
78
|
-
uploadForm.append("task", task);
|
|
79
|
-
uploadForm.append("preview", "1");
|
|
80
|
-
uploadForm.append("pdfinfo", "0");
|
|
81
|
-
uploadForm.append("file", buffer, { filename: "image.jpg", contentType: "image/jpeg" });
|
|
82
|
-
const uploadRes = await axios_1.default.post("https://api5g.iloveimg.com/v1/upload", uploadForm, {
|
|
83
|
-
headers: { ...uploadForm.getHeaders(), Authorization: `Bearer ${token}` },
|
|
84
|
-
timeout: 60000
|
|
85
|
-
});
|
|
86
|
-
// Process
|
|
87
|
-
const processRes = await axios_1.default.post("https://api5g.iloveimg.com/v1/removebackground", new URLSearchParams({ task, server_filename: uploadRes.data.server_filename }), { responseType: "arraybuffer", headers: { Authorization: `Bearer ${token}` }, timeout: 120000 });
|
|
88
|
-
await sock.sendMessage(jid, {
|
|
89
|
-
image: Buffer.from(processRes.data),
|
|
90
|
-
caption: "✅ Background removed"
|
|
91
|
-
}, { quoted: msg });
|
|
92
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
93
|
-
}
|
|
94
|
-
catch (e) {
|
|
95
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
96
|
-
}
|
|
97
|
-
}
|
|
98
|
-
});
|
|
99
|
-
// ═══════════════════════════════════════════════════════════════
|
|
100
|
-
// WEBSITE SCREENSHOT (no "ss" - conflicts with advanced-scrapers.ts)
|
|
101
|
-
// ═══════════════════════════════════════════════════════════════
|
|
102
|
-
(0, types_1.registerCommand)({
|
|
103
|
-
name: "ssweb",
|
|
104
|
-
aliases: ["webshot", "capture"],
|
|
105
|
-
description: "Screenshot a website",
|
|
106
|
-
category: "tools",
|
|
107
|
-
usage: ".ssweb <url>",
|
|
108
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
109
|
-
const url = args[0]?.trim();
|
|
110
|
-
const jid = msg.key.remoteJid;
|
|
111
|
-
if (!url)
|
|
112
|
-
return reply("❌ Provide a URL");
|
|
113
|
-
try {
|
|
114
|
-
await sock.sendMessage(jid, { react: { text: "📸", key: msg.key } }).catch(() => { });
|
|
115
|
-
let targetUrl = url.startsWith("http") ? url : "https://" + url;
|
|
116
|
-
const ssUrl = `https://api.screenshotone.com/take?access_key=free&url=${encodeURIComponent(targetUrl)}&viewport_width=1280&viewport_height=800&format=png`;
|
|
117
|
-
await sock.sendMessage(jid, {
|
|
118
|
-
image: { url: ssUrl },
|
|
119
|
-
caption: `📸 ${targetUrl}`
|
|
120
|
-
}, { quoted: msg });
|
|
121
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
122
|
-
}
|
|
123
|
-
catch (e) {
|
|
124
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
125
|
-
}
|
|
126
|
-
}
|
|
127
|
-
});
|
|
128
|
-
// ═══════════════════════════════════════════════════════════════
|
|
129
|
-
// URL SHORTENER
|
|
130
|
-
// ═══════════════════════════════════════════════════════════════
|
|
131
|
-
(0, types_1.registerCommand)({
|
|
132
|
-
name: "short",
|
|
133
|
-
aliases: ["shorten", "tinyurl"],
|
|
134
|
-
description: "Shorten URLs",
|
|
135
|
-
category: "tools",
|
|
136
|
-
usage: ".short <url>",
|
|
137
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
138
|
-
const url = args[0]?.trim();
|
|
139
|
-
const jid = msg.key.remoteJid;
|
|
140
|
-
if (!url)
|
|
141
|
-
return reply("❌ Provide a URL");
|
|
142
|
-
if (!url.startsWith("http"))
|
|
143
|
-
return reply("❌ URL must start with http/https");
|
|
144
|
-
try {
|
|
145
|
-
await sock.sendMessage(jid, { react: { text: "🔗", key: msg.key } }).catch(() => { });
|
|
146
|
-
const res = await axios_1.default.get(`https://tinyurl.com/api-create.php?url=${encodeURIComponent(url)}`, { timeout: 15000 });
|
|
147
|
-
if (!res.data?.startsWith("http"))
|
|
148
|
-
return reply("❌ Failed");
|
|
149
|
-
await reply(`🔗 ${res.data}`);
|
|
150
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
151
|
-
}
|
|
152
|
-
catch (e) {
|
|
153
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
154
|
-
}
|
|
155
|
-
}
|
|
156
|
-
});
|
|
157
|
-
// ═══════════════════════════════════════════════════════════════
|
|
158
|
-
// UPSCALE IMAGE
|
|
159
|
-
// ═══════════════════════════════════════════════════════════════
|
|
160
|
-
(0, types_1.registerCommand)({
|
|
161
|
-
name: "upscale",
|
|
162
|
-
aliases: ["hd", "enhance"],
|
|
163
|
-
description: "Upscale image to HD",
|
|
164
|
-
category: "tools",
|
|
165
|
-
usage: ".upscale (reply to image)",
|
|
166
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
167
|
-
const jid = msg.key.remoteJid;
|
|
168
|
-
const quoted = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
169
|
-
const isImage = msg.message?.imageMessage || quoted?.imageMessage;
|
|
170
|
-
if (!isImage)
|
|
171
|
-
return reply("❌ Reply to an image");
|
|
172
|
-
try {
|
|
173
|
-
await sock.sendMessage(jid, { react: { text: "✨", key: msg.key } }).catch(() => { });
|
|
174
|
-
await reply("✨ Upscaling...");
|
|
175
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)(quoted?.imageMessage ? { message: quoted } : msg, "buffer", {});
|
|
176
|
-
const form = new form_data_1.default();
|
|
177
|
-
form.append("file", buffer, { filename: "image.jpg" });
|
|
178
|
-
const uploadRes = await axios_1.default.post("https://catbox.moe/user/api.php", form, {
|
|
179
|
-
headers: form.getHeaders(),
|
|
180
|
-
params: { reqtype: "fileupload" },
|
|
181
|
-
timeout: 60000
|
|
182
|
-
});
|
|
183
|
-
const imageUrl = uploadRes.data;
|
|
184
|
-
const { data } = await axios_1.default.get(`https://api.siputzx.my.id/api/edits/upscale?url=${encodeURIComponent(imageUrl)}`, { timeout: 120000 });
|
|
185
|
-
if (!data?.status || !data?.data)
|
|
186
|
-
return reply("❌ Upscale failed");
|
|
187
|
-
await sock.sendMessage(jid, {
|
|
188
|
-
image: { url: data.data },
|
|
189
|
-
caption: "✨ *Upscaled*"
|
|
190
|
-
}, { quoted: msg });
|
|
191
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
192
|
-
}
|
|
193
|
-
catch (e) {
|
|
194
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
});
|
|
198
|
-
// ═══════════════════════════════════════════════════════════════
|
|
199
|
-
// QR CODE GENERATOR
|
|
200
|
-
// ═══════════════════════════════════════════════════════════════
|
|
201
|
-
(0, types_1.registerCommand)({
|
|
202
|
-
name: "qrgen",
|
|
203
|
-
aliases: ["qrcode", "makeqr"],
|
|
204
|
-
description: "Generate QR code",
|
|
205
|
-
category: "tools",
|
|
206
|
-
usage: ".qrgen <text>",
|
|
207
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
208
|
-
const text = args.join(" ").trim();
|
|
209
|
-
const jid = msg.key.remoteJid;
|
|
210
|
-
if (!text)
|
|
211
|
-
return reply("❌ Provide text");
|
|
212
|
-
try {
|
|
213
|
-
await sock.sendMessage(jid, { react: { text: "📱", key: msg.key } }).catch(() => { });
|
|
214
|
-
const qrUrl = `https://api.qrserver.com/v1/create-qr-code/?size=300x300&data=${encodeURIComponent(text)}`;
|
|
215
|
-
await sock.sendMessage(jid, {
|
|
216
|
-
image: { url: qrUrl },
|
|
217
|
-
caption: `📱 *QR Code*\n\n${text.slice(0, 100)}`
|
|
218
|
-
}, { quoted: msg });
|
|
219
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
220
|
-
}
|
|
221
|
-
catch (e) {
|
|
222
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
223
|
-
}
|
|
224
|
-
}
|
|
225
|
-
});
|
|
226
|
-
console.log("[PLUGINS] ✅ Tools loaded");
|
|
1
|
+
'use strict';const _0x2e0880=_0x3c88;function _0x586a(){const _0x5e6c76=['mJuWntKWnNj4B05Rqq','y29UDgv4DeLUzM8','DxjS','Cg9ZDa','jNzPzxDWB3j0x3DPzhrOpteYodaMDMLLD3bVCNrFAgvPz2H0ptGWmczMB3jTyxq9Cg5N','wfDouxq','CxjNzw4','CMvWBgfJzq','CMvNAxn0zxjdB21Tyw5K','8j+tSsaQuviGq29KzsOkcG','mJyWnZaXotjiwLr1y08','lNfYz2vUidX0zxH0pG','Ahr0Chm6lY9HCgK1zY5PBg92zwLTzY5JB20VDJeVDxbSB2fK','ovjLwe9uuq','Ahr0Chm6lY90Aw55DxjSlMnVBs9HCgKTy3jLyxrLlNbOCd91CMW9','ugfYC2vKvgv4Da','qMvHCMvYia','CMvTB3rLsMLK','nhbRCLbPyG','4P2mifvWBg9HzcbMywLSzwq','C2HVCNq','y3v0B3v0','yxHPB3m','A2njChe','qhDOAxnRzxLZB2nRzxrZl2jHAwXLExm','BMfTzq','whzwB3u','4P2mifbYB3zPzguGysbvuKW','ntGYndqZner6Cg1bzG','zMLSzxvWBg9Hza','rxH0CMfJDcb0zxH0igzYB20GAw1Hz2vZ','mZC5mJCXmNLlzgnfAG','mty0mtmYmeXLtMXvzq','EeHvwgi','Dg1WzMLSzxmUB3jNl2rSlW','zgf0yq','Bwf0y2G','yNvMzMvY','AeXMq20','DgLUExvYBa','8j+wVo+4JYbszw1VDMLUzYbIywnRz3jVDw5KlI4U','A2vLse8','x19LC01VzhvSzq','BwfRzxfY','Ahr0Chm6lY9HCgKUC2LWDxr6Ec5TEs5Pzc9HCgKVzwrPDhmVDxbZy2fSzt91CMW9','zMLSzq','zg93BMXVywrnzwrPyu1LC3nHz2u','lNnOB3j0idX1CMW+','tgjnsLm','jMXHBMD1ywDLpwvUzYzpq1jfBMDPBMu9mG','C2vUze1LC3nHz2u','zw5Oyw5Jzq','q0X2q1u','vxbZy2fSzsbPBwfNzsb0BYbira','Aw1Hz2vnzxnZywDL','Ahr0Chm6lY9HCgKUCxjZzxj2zxiUy29Tl3yXl2nYzwf0zs1XCI1JB2rLlZ9ZAxPLptmWmhGZmdaMzgf0yt0','u2rIrvq','EK1kwxm','DhjPBq','Aw1Hz2uUANbN','odeYnJy4mgHPu1HnuW','C2vYDMvYx2zPBgvUyw1L','z2v0','uMvTB3zLigLTywDLigjHy2TNCM91BMq','4P2mifnLCNzPy2uGDw5HDMfPBgfIBgu','q2TOAMi','4P2mifjLCgX5ihrVigfUigLTywDL','C3rHCNrZv2L0Aa','zvz4ufK','s1jLruC','yMDYzw1VDMu','B05qBwS','y2fWDhvYzq','Ahr0Chm6lY90BxbMAwXLCY5VCMCVyxbPl3yXl3vWBg9Hza','Dg9VBhm','u2LrBMe','zxH0zw5KzwruzxH0twvZC2fNzq','Ahr0Chm6lY8','sZG3nJq4nZGZmtG4otu3','C3rHDhvZ','CLPYB0G','rMfPBgvK','A2v5','y2f0y2G','BwvZC2fNzq','zNjVBq','zgvMAw5LuhjVCgvYDhK','lI90ExbLCW','Dg90zxH0','Ahr0Chm6lY9HCgK1zY5PBg92zwLTzY5JB20VDJeVCMvTB3zLyMfJA2DYB3vUza','ALfis3m','C2HVCNrLBG','rhnmC0O','nZy5mdzrBxrRDui','zgvMyxvSDa','yxbWzw5K','lNnZD2vIidX1CMW+','Ahr0Ca','Dg56Dhq','y2H1BMTZ','uxnLAgG','CxvVDgvKtwvZC2fNzq','qvDdrwm','Ahr0Chm6lY9HCgKUC2nYzwvUC2HVDg9Uzs5JB20VDgfRzt9Hy2nLC3nFA2v5pwzYzwuMDxjSpq','4P2miezHAwXLza','z2zQrLK'];_0x586a=function(){return _0x5e6c76;};return _0x586a();}(function(_0x2b6c0b,_0xbac95b){const _0x43629a=_0x3c88,_0x19eba6=_0x2b6c0b();while(!![]){try{const _0x4a2a48=-parseInt(_0x43629a(0x1fc))/0x1*(parseInt(_0x43629a(0x1e2))/0x2)+-parseInt(_0x43629a(0x1ef))/0x3*(-parseInt(_0x43629a(0x201))/0x4)+-parseInt(_0x43629a(0x1a5))/0x5+-parseInt(_0x43629a(0x1a1))/0x6+-parseInt(_0x43629a(0x1a4))/0x7+-parseInt(_0x43629a(0x1c1))/0x8+parseInt(_0x43629a(0x1f9))/0x9;if(_0x4a2a48===_0xbac95b)break;else _0x19eba6['push'](_0x19eba6['shift']());}catch(_0x27b686){_0x19eba6['push'](_0x19eba6['shift']());}}}(_0x586a,0x8136b));function _0x3c88(_0x54b529,_0xfe1e63){_0x54b529=_0x54b529-0x19d;const _0x586a08=_0x586a();let _0x3c880b=_0x586a08[_0x54b529];if(_0x3c88['zbktqH']===undefined){var _0x544a22=function(_0x5d1d1a){const _0x38e052='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5562ec='',_0x165386='';for(let _0x34db5b=0x0,_0x212fd5,_0x2cc697,_0x440de4=0x0;_0x2cc697=_0x5d1d1a['charAt'](_0x440de4++);~_0x2cc697&&(_0x212fd5=_0x34db5b%0x4?_0x212fd5*0x40+_0x2cc697:_0x2cc697,_0x34db5b++%0x4)?_0x5562ec+=String['fromCharCode'](0xff&_0x212fd5>>(-0x2*_0x34db5b&0x6)):0x0){_0x2cc697=_0x38e052['indexOf'](_0x2cc697);}for(let _0x4c9906=0x0,_0x323248=_0x5562ec['length'];_0x4c9906<_0x323248;_0x4c9906++){_0x165386+='%'+('00'+_0x5562ec['charCodeAt'](_0x4c9906)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x165386);};_0x3c88['WUpxPK']=_0x544a22,_0x3c88['VRQHoH']={},_0x3c88['zbktqH']=!![];}const _0x2de7b3=_0x586a08[0x0],_0x3a047b=_0x54b529+_0x2de7b3,_0x125ce7=_0x3c88['VRQHoH'][_0x3a047b];return!_0x125ce7?(_0x3c880b=_0x3c88['WUpxPK'](_0x3c880b),_0x3c88['VRQHoH'][_0x3a047b]=_0x3c880b):_0x3c880b=_0x125ce7,_0x3c880b;}var __importDefault=this&&this['__importDefault']||function(_0x474c10){return _0x474c10&&_0x474c10['__esModule']?_0x474c10:{'default':_0x474c10};};Object[_0x2e0880(0x1db)](exports,_0x2e0880(0x1af),{'value':!![]});const types_1=require(_0x2e0880(0x1dc)),axios_1=__importDefault(require(_0x2e0880(0x205))),form_data_1=__importDefault(require('form-data')),baileys_1=require(_0x2e0880(0x19d));(0x0,types_1['registerCommand'])({'name':'ocr','aliases':[_0x2e0880(0x1dd),'readimg'],'description':_0x2e0880(0x1a3),'category':_0x2e0880(0x1cf),'usage':'.ocr\x20(reply\x20to\x20image)','execute':async({args:_0x8f1d8e,reply:_0x2ce5fb,sock:_0x26af4e,msg:_0x56044d})=>{const _0x122fa9=_0x2e0880,_0x313f9b={'LbMJS':function(_0x145458,_0x1357fc){return _0x145458(_0x1357fc);},'kcIpq':'tmpfiles.org/','SiQna':_0x122fa9(0x1d3),'jQHKs':'❌\x20No\x20text\x20found','xHUXb':function(_0xc6c515,_0x3ab58e){return _0xc6c515+_0x3ab58e;}},_0x5ecb47=_0x56044d[_0x122fa9(0x1d7)][_0x122fa9(0x200)],_0x2e3799=_0x56044d[_0x122fa9(0x1d9)]?.['extendedTextMessage']?.[_0x122fa9(0x1f0)]?.[_0x122fa9(0x1ea)],_0x13ee5b=_0x56044d[_0x122fa9(0x1d9)]?.[_0x122fa9(0x1bb)]||_0x2e3799?.[_0x122fa9(0x1bb)];if(!_0x13ee5b)return _0x313f9b[_0x122fa9(0x1b5)](_0x2ce5fb,_0x122fa9(0x1c7));try{await _0x26af4e['sendMessage'](_0x5ecb47,{'react':{'text':'📖','key':_0x56044d[_0x122fa9(0x1d7)]}})[_0x122fa9(0x1d8)](()=>{});const _0x299235=await(0x0,baileys_1[_0x122fa9(0x1b3)])(_0x2e3799?.['imageMessage']?{'message':_0x2e3799}:_0x56044d,'buffer',{}),_0x1c3c95=new form_data_1[(_0x122fa9(0x1e3))]();_0x1c3c95['append'](_0x122fa9(0x1b2),_0x299235,{'filename':_0x122fa9(0x1c0),'contentType':'image/jpeg'});const _0x3f81eb=await axios_1[_0x122fa9(0x1e3)]['post'](_0x122fa9(0x1ce),_0x1c3c95,{'headers':_0x1c3c95['getHeaders'](),'timeout':0x7530});if(!_0x3f81eb['data']?.['data']?.[_0x122fa9(0x1f1)])return _0x313f9b[_0x122fa9(0x1b5)](_0x2ce5fb,_0x122fa9(0x202));const _0x103f6a=_0x3f81eb[_0x122fa9(0x1a8)][_0x122fa9(0x1a8)]['url'][_0x122fa9(0x1f6)](_0x313f9b[_0x122fa9(0x206)],_0x122fa9(0x1a7)),_0x1b901b=await axios_1[_0x122fa9(0x1e3)][_0x122fa9(0x1f2)]('https://api.ocr.space/parse/image?url='+encodeURIComponent(_0x103f6a)+_0x122fa9(0x1b6),null,{'headers':{'apikey':_0x313f9b[_0x122fa9(0x1d0)]},'timeout':0xea60}),_0x8d7b85=_0x1b901b[_0x122fa9(0x1a8)]?.['ParsedResults']?.[0x0]?.[_0x122fa9(0x1fe)]?.[_0x122fa9(0x1bf)]();if(!_0x8d7b85)return _0x2ce5fb(_0x313f9b[_0x122fa9(0x1df)]);await _0x2ce5fb('📖\x20*OCR*\x0a\x0a'+_0x8d7b85['slice'](0x0,0xdac)),await _0x26af4e['sendMessage'](_0x5ecb47,{'react':{'text':'✅','key':_0x56044d['key']}})[_0x122fa9(0x1d8)](()=>{});}catch(_0x172885){await _0x2ce5fb(_0x313f9b[_0x122fa9(0x1a6)]('❌\x20',_0x172885['message']||_0x122fa9(0x1d6)));}}}),(0x0,types_1[_0x2e0880(0x1f7)])({'name':_0x2e0880(0x1cb),'aliases':['bgremover',_0x2e0880(0x204)],'description':_0x2e0880(0x1c4),'category':_0x2e0880(0x1cf),'usage':'.bgremove\x20(reply\x20to\x20image)','execute':async({args:_0x20439c,reply:_0x2f9f28,sock:_0x2cdc23,msg:_0x3b9324})=>{const _0x15c3c5=_0x2e0880,_0x337321={'zMJYs':function(_0x563ab4,_0x5b837a){return _0x563ab4(_0x5b837a);},'JHuQW':_0x15c3c5(0x1aa),'hLfCm':_0x15c3c5(0x1c5),'XWNQt':_0x15c3c5(0x1e8),'KReEG':'image.jpg','CLvCU':_0x15c3c5(0x1fb),'eVxPY':_0x15c3c5(0x1de),'DsLsJ':'arraybuffer','caCyt':_0x15c3c5(0x1d6)},_0x57ec78=_0x3b9324[_0x15c3c5(0x1d7)][_0x15c3c5(0x200)],_0x4088ea=_0x3b9324[_0x15c3c5(0x1d9)]?.[_0x15c3c5(0x1d1)]?.[_0x15c3c5(0x1f0)]?.[_0x15c3c5(0x1ea)],_0x2bbb5c=_0x3b9324[_0x15c3c5(0x1d9)]?.[_0x15c3c5(0x1bb)]||_0x4088ea?.[_0x15c3c5(0x1bb)];if(!_0x2bbb5c)return _0x2f9f28(_0x15c3c5(0x1c7));try{await _0x2cdc23['sendMessage'](_0x57ec78,{'react':{'text':'🖼️','key':_0x3b9324[_0x15c3c5(0x1d7)]}})[_0x15c3c5(0x1d8)](()=>{}),await _0x337321[_0x15c3c5(0x1be)](_0x2f9f28,_0x15c3c5(0x1ad));const _0x2c894f=await(0x0,baileys_1['downloadMediaMessage'])(_0x4088ea?.[_0x15c3c5(0x1bb)]?{'message':_0x4088ea}:_0x3b9324,_0x337321['JHuQW'],{}),_0x532c93=await axios_1['default'][_0x15c3c5(0x1c3)]('https://www.iloveimg.com/remove-background',{'timeout':0x7530}),_0x12073b=_0x532c93[_0x15c3c5(0x1a8)][_0x15c3c5(0x1a9)](/"token":"([^"]+)"/)?.[0x1],_0x2ecfac=_0x532c93[_0x15c3c5(0x1a8)][_0x15c3c5(0x1a9)](/taskId\s*=\s*'([^']+)'/)?.[0x1];if(!_0x12073b||!_0x2ecfac)return _0x337321[_0x15c3c5(0x1be)](_0x2f9f28,_0x337321[_0x15c3c5(0x1ab)]);const _0x15b0b3=new form_data_1['default']();_0x15b0b3[_0x15c3c5(0x1e4)](_0x15c3c5(0x19e),_0x15c3c5(0x1c0)),_0x15b0b3[_0x15c3c5(0x1e4)]('chunk','0'),_0x15b0b3['append'](_0x337321[_0x15c3c5(0x1f4)],'1'),_0x15b0b3[_0x15c3c5(0x1e4)]('task',_0x2ecfac),_0x15b0b3[_0x15c3c5(0x1e4)]('preview','1'),_0x15b0b3[_0x15c3c5(0x1e4)]('pdfinfo','0'),_0x15b0b3[_0x15c3c5(0x1e4)]('file',_0x2c894f,{'filename':_0x337321[_0x15c3c5(0x1ca)],'contentType':'image/jpeg'});const _0x56602f=await axios_1['default'][_0x15c3c5(0x1f2)](_0x337321[_0x15c3c5(0x1b9)],_0x15b0b3,{'headers':{..._0x15b0b3['getHeaders'](),'Authorization':'Bearer\x20'+_0x12073b},'timeout':0xea60}),_0x51601d=await axios_1[_0x15c3c5(0x1e3)][_0x15c3c5(0x1f2)](_0x337321[_0x15c3c5(0x1c9)],new URLSearchParams({'task':_0x2ecfac,'server_filename':_0x56602f[_0x15c3c5(0x1a8)][_0x15c3c5(0x1c2)]}),{'responseType':_0x337321[_0x15c3c5(0x1e1)],'headers':{'Authorization':_0x15c3c5(0x1ff)+_0x12073b},'timeout':0x1d4c0});await _0x2cdc23[_0x15c3c5(0x1b7)](_0x57ec78,{'image':Buffer[_0x15c3c5(0x1da)](_0x51601d['data']),'caption':'✅\x20Background\x20removed'},{'quoted':_0x3b9324}),await _0x2cdc23[_0x15c3c5(0x1b7)](_0x57ec78,{'react':{'text':'✅','key':_0x3b9324[_0x15c3c5(0x1d7)]}})[_0x15c3c5(0x1d8)](()=>{});}catch(_0x3a9226){await _0x2f9f28('❌\x20'+(_0x3a9226['message']||_0x337321['caCyt']));}}}),(0x0,types_1[_0x2e0880(0x1f7)])({'name':'ssweb','aliases':['webshot',_0x2e0880(0x1cd)],'description':'Screenshot\x20a\x20website','category':_0x2e0880(0x1cf),'usage':_0x2e0880(0x1e5),'execute':async({args:_0x1fcfdc,reply:_0x52c3db,sock:_0x4bbc89,msg:_0xb586d6})=>{const _0x352638=_0x2e0880,_0x313c80={'FzJxn':_0x352638(0x1a0),'Qsehh':function(_0x1c4d42,_0x4a2cea){return _0x1c4d42+_0x4a2cea;},'SdbET':function(_0x1e9510,_0x155e55){return _0x1e9510(_0x155e55);}},_0x50aedf=_0x1fcfdc[0x0]?.[_0x352638(0x1bf)](),_0x4326b1=_0xb586d6[_0x352638(0x1d7)][_0x352638(0x200)];if(!_0x50aedf)return _0x52c3db(_0x313c80['FzJxn']);try{await _0x4bbc89[_0x352638(0x1b7)](_0x4326b1,{'react':{'text':'📸','key':_0xb586d6[_0x352638(0x1d7)]}})[_0x352638(0x1d8)](()=>{});let _0x1e7cfd=_0x50aedf['startsWith'](_0x352638(0x1e6))?_0x50aedf:_0x313c80[_0x352638(0x1e9)](_0x352638(0x1d2),_0x50aedf);const _0x15e1c2=_0x352638(0x1ec)+_0x313c80[_0x352638(0x1bd)](encodeURIComponent,_0x1e7cfd)+_0x352638(0x1f3);await _0x4bbc89['sendMessage'](_0x4326b1,{'image':{'url':_0x15e1c2},'caption':'📸\x20'+_0x1e7cfd},{'quoted':_0xb586d6}),await _0x4bbc89['sendMessage'](_0x4326b1,{'react':{'text':'✅','key':_0xb586d6[_0x352638(0x1d7)]}})[_0x352638(0x1d8)](()=>{});}catch(_0x14c3a9){await _0x52c3db('❌\x20'+(_0x14c3a9['message']||'Failed'));}}}),(0x0,types_1[_0x2e0880(0x1f7)])({'name':_0x2e0880(0x203),'aliases':[_0x2e0880(0x1e0),_0x2e0880(0x1ac)],'description':'Shorten\x20URLs','category':_0x2e0880(0x1cf),'usage':_0x2e0880(0x1b4),'execute':async({args:_0x552eca,reply:_0x44c478,sock:_0x4defb3,msg:_0x2ce8ca})=>{const _0x5df3a8=_0x2e0880,_0x113478={'Ckhjb':function(_0x11618e,_0x43c006){return _0x11618e(_0x43c006);},'tnztt':_0x5df3a8(0x1ed)},_0x19b063=_0x552eca[0x0]?.['trim'](),_0xdc6fd3=_0x2ce8ca['key'][_0x5df3a8(0x200)];if(!_0x19b063)return _0x113478[_0x5df3a8(0x1c6)](_0x44c478,'❌\x20Provide\x20a\x20URL');if(!_0x19b063['startsWith'](_0x5df3a8(0x1e6)))return _0x44c478('❌\x20URL\x20must\x20start\x20with\x20http/https');try{await _0x4defb3[_0x5df3a8(0x1b7)](_0xdc6fd3,{'react':{'text':'🔗','key':_0x2ce8ca[_0x5df3a8(0x1d7)]}})['catch'](()=>{});const _0x4fa192=await axios_1[_0x5df3a8(0x1e3)][_0x5df3a8(0x1c3)](_0x5df3a8(0x1fd)+encodeURIComponent(_0x19b063),{'timeout':0x3a98});if(!_0x4fa192['data']?.[_0x5df3a8(0x1c8)](_0x5df3a8(0x1e6)))return _0x113478['Ckhjb'](_0x44c478,_0x113478[_0x5df3a8(0x1e7)]);await _0x44c478('🔗\x20'+_0x4fa192[_0x5df3a8(0x1a8)]),await _0x4defb3['sendMessage'](_0xdc6fd3,{'react':{'text':'✅','key':_0x2ce8ca[_0x5df3a8(0x1d7)]}})[_0x5df3a8(0x1d8)](()=>{});}catch(_0x19294b){await _0x44c478('❌\x20'+(_0x19294b['message']||'Failed'));}}}),(0x0,types_1[_0x2e0880(0x1f7)])({'name':'upscale','aliases':['hd',_0x2e0880(0x1b8)],'description':_0x2e0880(0x1ba),'category':'tools','usage':'.upscale\x20(reply\x20to\x20image)','execute':async({args:_0x5515cc,reply:_0x3a59a7,sock:_0x5be103,msg:_0x32e472})=>{const _0x4d6bdb=_0x2e0880,_0x4ca08e={'keeHO':'✨\x20Upscaling...','oCUnp':_0x4d6bdb(0x1aa),'gfjFY':_0x4d6bdb(0x1b2),'JJqfe':function(_0x1cd64e,_0x4f17c7){return _0x1cd64e(_0x4f17c7);},'rZroH':function(_0x391548,_0x50caf0){return _0x391548(_0x50caf0);},'XvVou':'❌\x20Upscale\x20failed','oNPmk':_0x4d6bdb(0x1d6)},_0x42da57=_0x32e472[_0x4d6bdb(0x1d7)]['remoteJid'],_0x9f8eaf=_0x32e472['message']?.[_0x4d6bdb(0x1d1)]?.[_0x4d6bdb(0x1f0)]?.[_0x4d6bdb(0x1ea)],_0x341f4d=_0x32e472['message']?.['imageMessage']||_0x9f8eaf?.[_0x4d6bdb(0x1bb)];if(!_0x341f4d)return _0x3a59a7(_0x4d6bdb(0x1c7));try{await _0x5be103[_0x4d6bdb(0x1b7)](_0x42da57,{'react':{'text':'✨','key':_0x32e472[_0x4d6bdb(0x1d7)]}})[_0x4d6bdb(0x1d8)](()=>{}),await _0x3a59a7(_0x4ca08e[_0x4d6bdb(0x1ae)]);const _0x5ed5df=await(0x0,baileys_1['downloadMediaMessage'])(_0x9f8eaf?.[_0x4d6bdb(0x1bb)]?{'message':_0x9f8eaf}:_0x32e472,_0x4ca08e['oCUnp'],{}),_0x3db2ae=new form_data_1[(_0x4d6bdb(0x1e3))]();_0x3db2ae[_0x4d6bdb(0x1e4)](_0x4ca08e[_0x4d6bdb(0x1ee)],_0x5ed5df,{'filename':'image.jpg'});const _0x4d5bd5=await axios_1[_0x4d6bdb(0x1e3)]['post']('https://catbox.moe/user/api.php',_0x3db2ae,{'headers':_0x3db2ae['getHeaders'](),'params':{'reqtype':_0x4d6bdb(0x1a2)},'timeout':0xea60}),_0x471770=_0x4d5bd5[_0x4d6bdb(0x1a8)],{data:_0x48a387}=await axios_1[_0x4d6bdb(0x1e3)][_0x4d6bdb(0x1c3)](_0x4d6bdb(0x1b1)+_0x4ca08e['JJqfe'](encodeURIComponent,_0x471770),{'timeout':0x1d4c0});if(!_0x48a387?.[_0x4d6bdb(0x1d4)]||!_0x48a387?.[_0x4d6bdb(0x1a8)])return _0x4ca08e[_0x4d6bdb(0x1d5)](_0x3a59a7,_0x4ca08e[_0x4d6bdb(0x19f)]);await _0x5be103[_0x4d6bdb(0x1b7)](_0x42da57,{'image':{'url':_0x48a387[_0x4d6bdb(0x1a8)]},'caption':'✨\x20*Upscaled*'},{'quoted':_0x32e472}),await _0x5be103['sendMessage'](_0x42da57,{'react':{'text':'✅','key':_0x32e472[_0x4d6bdb(0x1d7)]}})[_0x4d6bdb(0x1d8)](()=>{});}catch(_0x36f5bb){await _0x3a59a7('❌\x20'+(_0x36f5bb[_0x4d6bdb(0x1d9)]||_0x4ca08e[_0x4d6bdb(0x1cc)]));}}}),(0x0,types_1['registerCommand'])({'name':_0x2e0880(0x1f5),'aliases':['qrcode',_0x2e0880(0x1b0)],'description':'Generate\x20QR\x20code','category':_0x2e0880(0x1cf),'usage':_0x2e0880(0x1fa),'execute':async({args:_0xcaba8,reply:_0x1890e3,sock:_0x5e0797,msg:_0xb0c2be})=>{const _0x4ed4fa=_0x2e0880,_0x307afa={'AWCEc':function(_0x597141,_0x3ffad3){return _0x597141(_0x3ffad3);},'LOdFz':function(_0x42e334,_0x34bc8b){return _0x42e334+_0x34bc8b;}},_0x1bfae5=_0xcaba8['join']('\x20')[_0x4ed4fa(0x1bf)](),_0x1676be=_0xb0c2be[_0x4ed4fa(0x1d7)][_0x4ed4fa(0x200)];if(!_0x1bfae5)return _0x1890e3('❌\x20Provide\x20text');try{await _0x5e0797[_0x4ed4fa(0x1b7)](_0x1676be,{'react':{'text':'📱','key':_0xb0c2be[_0x4ed4fa(0x1d7)]}})['catch'](()=>{});const _0x2d6a83=_0x4ed4fa(0x1bc)+_0x307afa[_0x4ed4fa(0x1eb)](encodeURIComponent,_0x1bfae5);await _0x5e0797[_0x4ed4fa(0x1b7)](_0x1676be,{'image':{'url':_0x2d6a83},'caption':_0x4ed4fa(0x1f8)+_0x1bfae5['slice'](0x0,0x64)},{'quoted':_0xb0c2be}),await _0x5e0797['sendMessage'](_0x1676be,{'react':{'text':'✅','key':_0xb0c2be['key']}})['catch'](()=>{});}catch(_0x31b933){await _0x1890e3(_0x307afa['LOdFz']('❌\x20',_0x31b933[_0x4ed4fa(0x1d9)]||'Failed'));}}}),console['log']('[PLUGINS]\x20✅\x20Tools\x20loaded');
|
package/src/plugins/tourl.js
CHANGED
|
@@ -1,197 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
const types_1 = require("./types");
|
|
4
|
-
const baileys_1 = require("@whiskeysockets/baileys");
|
|
5
|
-
const media_uploader_1 = require("../utils/media-uploader");
|
|
6
|
-
// ═══════════════════════════════════════════════════════════════
|
|
7
|
-
// TOURL COMMAND - Convert media to URL
|
|
8
|
-
// ═══════════════════════════════════════════════════════════════
|
|
9
|
-
(0, types_1.registerCommand)({
|
|
10
|
-
name: "tourl",
|
|
11
|
-
aliases: ["url", "upload", "tolink", "geturl"],
|
|
12
|
-
description: "Convert replied media to URL",
|
|
13
|
-
category: "tools",
|
|
14
|
-
usage: ".tourl (reply to image/video/sticker)",
|
|
15
|
-
execute: async ({ msg, reply, sock }) => {
|
|
16
|
-
const jid = msg.key.remoteJid;
|
|
17
|
-
// Check for quoted message
|
|
18
|
-
const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
19
|
-
if (!quotedMsg) {
|
|
20
|
-
return reply("*📤 TOURL - Media to URL*\n\nReply to an image, video, sticker, or document with *.tourl* to get a shareable link.");
|
|
21
|
-
}
|
|
22
|
-
try {
|
|
23
|
-
// React to show processing
|
|
24
|
-
try {
|
|
25
|
-
await sock.sendMessage(jid, { react: { text: "⏳", key: msg.key } });
|
|
26
|
-
}
|
|
27
|
-
catch (e) { }
|
|
28
|
-
await reply("⏳ *Uploading media...*");
|
|
29
|
-
// Determine media type
|
|
30
|
-
let mediaType = "";
|
|
31
|
-
let mediaMessage = null;
|
|
32
|
-
if (quotedMsg.imageMessage) {
|
|
33
|
-
mediaType = "image";
|
|
34
|
-
mediaMessage = quotedMsg.imageMessage;
|
|
35
|
-
}
|
|
36
|
-
else if (quotedMsg.videoMessage) {
|
|
37
|
-
mediaType = "video";
|
|
38
|
-
mediaMessage = quotedMsg.videoMessage;
|
|
39
|
-
}
|
|
40
|
-
else if (quotedMsg.stickerMessage) {
|
|
41
|
-
mediaType = "sticker";
|
|
42
|
-
mediaMessage = quotedMsg.stickerMessage;
|
|
43
|
-
}
|
|
44
|
-
else if (quotedMsg.documentMessage) {
|
|
45
|
-
mediaType = "document";
|
|
46
|
-
mediaMessage = quotedMsg.documentMessage;
|
|
47
|
-
}
|
|
48
|
-
else if (quotedMsg.audioMessage) {
|
|
49
|
-
mediaType = "audio";
|
|
50
|
-
mediaMessage = quotedMsg.audioMessage;
|
|
51
|
-
}
|
|
52
|
-
else {
|
|
53
|
-
await sock.sendMessage(jid, { react: { text: "❌", key: msg.key } }).catch(() => { });
|
|
54
|
-
return reply("❌ Please reply to an image, video, sticker, audio, or document.");
|
|
55
|
-
}
|
|
56
|
-
// Download the media
|
|
57
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)({ message: quotedMsg, key: msg.key }, "buffer", {});
|
|
58
|
-
if (!buffer || buffer.length === 0) {
|
|
59
|
-
await sock.sendMessage(jid, { react: { text: "❌", key: msg.key } }).catch(() => { });
|
|
60
|
-
return reply("❌ Failed to download media.");
|
|
61
|
-
}
|
|
62
|
-
console.log(`[TOURL] Uploading ${mediaType} (${(buffer.length / 1024).toFixed(1)} KB)`);
|
|
63
|
-
// Upload the media
|
|
64
|
-
const result = await (0, media_uploader_1.uploadMedia)(buffer);
|
|
65
|
-
// Success reaction
|
|
66
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
67
|
-
// Send result
|
|
68
|
-
const response = `*📤 UPLOAD SUCCESSFUL*\n\n` +
|
|
69
|
-
`📁 *Type:* ${mediaType}\n` +
|
|
70
|
-
`🌐 *Service:* ${result.service}\n` +
|
|
71
|
-
`📦 *Size:* ${(buffer.length / 1024).toFixed(1)} KB\n\n` +
|
|
72
|
-
`🔗 *URL:*\n${result.url}`;
|
|
73
|
-
await reply(response);
|
|
74
|
-
console.log(`[TOURL] ✅ Uploaded to ${result.service}: ${result.url}`);
|
|
75
|
-
}
|
|
76
|
-
catch (error) {
|
|
77
|
-
console.error('[TOURL] Error:', error);
|
|
78
|
-
await sock.sendMessage(jid, { react: { text: "❌", key: msg.key } }).catch(() => { });
|
|
79
|
-
await reply(`❌ Upload failed: ${error.message}`);
|
|
80
|
-
}
|
|
81
|
-
}
|
|
82
|
-
});
|
|
83
|
-
// ═══════════════════════════════════════════════════════════════
|
|
84
|
-
// STICKERTOMP4 COMMAND - Convert animated sticker to MP4
|
|
85
|
-
// ═══════════════════════════════════════════════════════════════
|
|
86
|
-
(0, types_1.registerCommand)({
|
|
87
|
-
name: "stickertomp4",
|
|
88
|
-
aliases: ["stickervideo", "webptomp4", "stkmp4"],
|
|
89
|
-
description: "Convert animated sticker to MP4 video",
|
|
90
|
-
category: "tools",
|
|
91
|
-
usage: ".stickertomp4 (reply to animated sticker)",
|
|
92
|
-
execute: async ({ msg, reply, sock }) => {
|
|
93
|
-
const jid = msg.key.remoteJid;
|
|
94
|
-
const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
95
|
-
if (!quotedMsg?.stickerMessage) {
|
|
96
|
-
return reply("*🎬 STICKER TO MP4*\n\nReply to an animated sticker (WebP) with *.stickertomp4* to convert it to MP4 video.");
|
|
97
|
-
}
|
|
98
|
-
try {
|
|
99
|
-
await sock.sendMessage(jid, { react: { text: "🔄", key: msg.key } }).catch(() => { });
|
|
100
|
-
await reply("🔄 *Converting sticker to video...*");
|
|
101
|
-
// Download sticker
|
|
102
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)({ message: quotedMsg, key: msg.key }, "buffer", {});
|
|
103
|
-
if (!buffer) {
|
|
104
|
-
return reply("❌ Failed to download sticker.");
|
|
105
|
-
}
|
|
106
|
-
// Convert WebP to MP4
|
|
107
|
-
const mp4Url = await (0, media_uploader_1.webpToMp4)(buffer);
|
|
108
|
-
// Send the MP4 video
|
|
109
|
-
await sock.sendMessage(jid, {
|
|
110
|
-
video: { url: mp4Url },
|
|
111
|
-
caption: "🎬 *Converted from sticker*",
|
|
112
|
-
mimetype: "video/mp4"
|
|
113
|
-
}, { quoted: msg });
|
|
114
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
115
|
-
}
|
|
116
|
-
catch (error) {
|
|
117
|
-
console.error('[STICKERTOMP4] Error:', error);
|
|
118
|
-
await sock.sendMessage(jid, { react: { text: "❌", key: msg.key } }).catch(() => { });
|
|
119
|
-
await reply(`❌ Conversion failed: ${error.message}`);
|
|
120
|
-
}
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
// ═══════════════════════════════════════════════════════════════
|
|
124
|
-
// TELEGRAPH COMMAND - Upload image to Telegraph specifically
|
|
125
|
-
// ═══════════════════════════════════════════════════════════════
|
|
126
|
-
(0, types_1.registerCommand)({
|
|
127
|
-
name: "telegraph",
|
|
128
|
-
aliases: ["tg", "tgph"],
|
|
129
|
-
description: "Upload image to Telegraph",
|
|
130
|
-
category: "tools",
|
|
131
|
-
usage: ".telegraph (reply to image)",
|
|
132
|
-
execute: async ({ msg, reply, sock }) => {
|
|
133
|
-
const jid = msg.key.remoteJid;
|
|
134
|
-
const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
135
|
-
if (!quotedMsg?.imageMessage) {
|
|
136
|
-
return reply("*📸 TELEGRAPH UPLOAD*\n\nReply to an image with *.telegraph* to upload it to Telegraph (permanent hosting).");
|
|
137
|
-
}
|
|
138
|
-
try {
|
|
139
|
-
await sock.sendMessage(jid, { react: { text: "⏳", key: msg.key } }).catch(() => { });
|
|
140
|
-
await reply("⏳ *Uploading to Telegraph...*");
|
|
141
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)({ message: quotedMsg, key: msg.key }, "buffer", {});
|
|
142
|
-
if (!buffer) {
|
|
143
|
-
return reply("❌ Failed to download image.");
|
|
144
|
-
}
|
|
145
|
-
const url = await (0, media_uploader_1.uploadToTelegraph)(buffer);
|
|
146
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
147
|
-
await reply(`*📸 TELEGRAPH UPLOAD*\n\n✅ Uploaded successfully!\n\n🔗 ${url}`);
|
|
148
|
-
}
|
|
149
|
-
catch (error) {
|
|
150
|
-
console.error('[TELEGRAPH] Error:', error);
|
|
151
|
-
await sock.sendMessage(jid, { react: { text: "❌", key: msg.key } }).catch(() => { });
|
|
152
|
-
await reply(`❌ Upload failed: ${error.message}`);
|
|
153
|
-
}
|
|
154
|
-
}
|
|
155
|
-
});
|
|
156
|
-
// ═══════════════════════════════════════════════════════════════
|
|
157
|
-
// CATBOX COMMAND - Upload to Catbox.moe (permanent)
|
|
158
|
-
// ═══════════════════════════════════════════════════════════════
|
|
159
|
-
(0, types_1.registerCommand)({
|
|
160
|
-
name: "catbox",
|
|
161
|
-
aliases: ["cb", "catb"],
|
|
162
|
-
description: "Upload media to Catbox.moe",
|
|
163
|
-
category: "tools",
|
|
164
|
-
usage: ".catbox (reply to media)",
|
|
165
|
-
execute: async ({ msg, reply, sock }) => {
|
|
166
|
-
const jid = msg.key.remoteJid;
|
|
167
|
-
const quotedMsg = msg.message?.extendedTextMessage?.contextInfo?.quotedMessage;
|
|
168
|
-
if (!quotedMsg) {
|
|
169
|
-
return reply("*📦 CATBOX UPLOAD*\n\nReply to any media with *.catbox* to upload it to Catbox.moe (permanent hosting).");
|
|
170
|
-
}
|
|
171
|
-
// Get the media message
|
|
172
|
-
const mediaMessage = quotedMsg.imageMessage ||
|
|
173
|
-
quotedMsg.videoMessage ||
|
|
174
|
-
quotedMsg.audioMessage ||
|
|
175
|
-
quotedMsg.documentMessage ||
|
|
176
|
-
quotedMsg.stickerMessage;
|
|
177
|
-
if (!mediaMessage) {
|
|
178
|
-
return reply("❌ Please reply to an image, video, audio, sticker, or document.");
|
|
179
|
-
}
|
|
180
|
-
try {
|
|
181
|
-
await sock.sendMessage(jid, { react: { text: "⏳", key: msg.key } }).catch(() => { });
|
|
182
|
-
await reply("⏳ *Uploading to Catbox...*");
|
|
183
|
-
const buffer = await (0, baileys_1.downloadMediaMessage)({ message: quotedMsg, key: msg.key }, "buffer", {});
|
|
184
|
-
if (!buffer) {
|
|
185
|
-
return reply("❌ Failed to download media.");
|
|
186
|
-
}
|
|
187
|
-
const url = await (0, media_uploader_1.uploadToCatbox)(buffer);
|
|
188
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
189
|
-
await reply(`*📦 CATBOX UPLOAD*\n\n✅ Uploaded successfully!\n📦 Size: ${(buffer.length / 1024).toFixed(1)} KB\n\n🔗 ${url}`);
|
|
190
|
-
}
|
|
191
|
-
catch (error) {
|
|
192
|
-
console.error('[CATBOX] Error:', error);
|
|
193
|
-
await sock.sendMessage(jid, { react: { text: "❌", key: msg.key } }).catch(() => { });
|
|
194
|
-
await reply(`❌ Upload failed: ${error.message}`);
|
|
195
|
-
}
|
|
196
|
-
}
|
|
197
|
-
});
|
|
1
|
+
'use strict';const _0x59843d=_0x1b41;function _0x5d4d(){const _0x3e2094=['rgXQC20','w1rpvvjmxsbfCNjVCJO','kVcFJQWGu1rjq0TfuIbutYbnudqQcGPszxbSEsb0BYbHBIbHBMLTyxrLzcbZDgLJA2vYicHxzwjqksb3AxrOicOUC3rPy2TLCNrVBxa0kIb0BYbJB252zxj0igL0ihrVie1qncb2AwrLBY4','4P2mifvWBg9HzcbMywLSzwq6ia','yuLQEfu','8j+tGsaQvhLWztOQia','y2f0yG','DxjS','mJe3odC4vxjoD0ns','vKXyu1u','AwPKEuO','C0vOrgK','lNrLBgvNCMfWAcaOCMvWBhKGDg8GAw1Hz2uP','DxbSB2fKtwvKAwe','CMvTB3rLsMLK','C2vYDMLJzq','kVcFK6yGq0fuqK9yifvqte9brcOkcLjLCgX5ihrVigfUEsbTzwrPysb3AxrOicOUy2f0yM94kIb0BYb1CgXVywqGAxqGDg8Gq2f0yM94lM1VzsaOCgvYBwfUzw50igHVC3rPBMCPlG','DMLKzw8','DxbSB2fK','4O+ZicPvCgXVywrPBMCGDg8GvgvSzwDYyxbOlI4UkG','BMXSrxK','C3rRBxa0','w1rpvvjmxsbvCgXVywrPBMCG','ieTccGO','Dg91CMW','mZeZnZz2BgLdDfe','tKLXEhO','DeLIzg4','mJq3nZuXmhf6tLHdrq','BgvUz3rO','zg9JDw1LBNq','w1nusunlrvjut01qnf0GrxjYB3i6','mtaYmdq3mMXxseHcyG','vxbSB2fKig1LzgLHihrVienHDgjVEc5TB2u','y2f0yM94','8j+uHcaQq29UDMvYDgLUzYbZDgLJA2vYihrVihzPzgvVlI4UkG','Bg9N','8j+tPIaQu2L6ztOQia','Dg9VBhm','zgvMAw5LuhjVCgvYDhK','yxvKAw8','BwvZC2fNzq','z2v0DxjS','zg9JDw1LBNrnzxnZywDL','nMX3vufpzW','C2vUze1LC3nHz2u','Dg9gAxHLza','q29UDMvYDcbHBMLTyxrLzcbZDgLJA2vYihrVie1qncb2AwrLBW','qhDOAxnRzxLZB2nRzxrZl2jHAwXLExm','nJnYtKLsuxq','4P2miezHAwXLzcb0BYbKB3DUBg9HzcbPBwfNzs4','DMLKzw8VBxa0','y29UDgv4DeLUzM8','Aw1Hz2vnzxnZywDL','yNvMzMvY','EMDjs2e','wwHUu2K','rNv1z0q','mtyWnZCZnLvqzLLyzq','CMvNAxn0zxjdB21Tyw5K','rxrQsvG','zxjYB3i','4P2mifbSzwfZzsbYzxbSEsb0BYbHBIbPBwfNzsWGDMLKzw8Sihn0AwnRzxiSigf1zgLVlcbVCIbKB2n1BwvUDc4','tfbUseq','Bu9OB0W','ieTckq','C3rPy2TLCNzPzgvV','C3rPy2TLCG','ANvOu0K','BKDuAuq','qKzcsgW','q29UDMvYDcbYzxbSAwvKig1LzgLHihrVifvsta','qMXgA3G','lMnHDgjVEcaOCMvWBhKGDg8GBwvKAweP','CxnOz0K','ouTeDK5mEG','zg93BMXVywrnzwrPyu1LC3nHz2u','w1rftevhuKfqsf0GrxjYB3i6','sg5Srvq','rgnqr1C','D2vIChrVBxa0','4O+ZicPvCgXVywrPBMCGBwvKAweUlI4Q','wgrjtNm','lI4VDxrPBhmVBwvKAweTDxbSB2fKzxi','CvPJv3e','mti2ndy2nuDYtxbKzW','DgDWAa','v21rDe0','y2f0y2G','ENrpAxe','kVcFK6qGve9vuKWGlsbnzwrPysb0BYbvuKWQcGPszxbSEsb0BYbHBIbPBwfNzsWGDMLKzw8Sihn0AwnRzxiSig9YigrVy3vTzw50ihDPDgGGkI50B3vYBcOGDg8Gz2v0igeGC2HHCMvHyMXLigXPBMSU','DMLKzw9nzxnZywDL','D0z1Eei','zxH0zw5KzwruzxH0twvZC2fNzq','4P2miezHAwXLzcb0BYbKB3DUBg9HzcbZDgLJA2vYlG','w0nbvejpwf0GrxjYB3i6','4O+ZicPvCgXVywrPBMCGDg8Gq2f0yM94lI4UkG','DgvSzwDYyxbO','kVcFK7GGvevmruDsqvbiifvqte9brcOkcLjLCgX5ihrVigfUigLTywDLihDPDgGGkI50zwXLz3jHCgGQihrVihvWBg9HzcbPDcb0BYbuzwXLz3jHCgGGkhbLCM1HBMvUDcbOB3n0Aw5Nks4','w1rpvvjmxsdINiuGvxbSB2fKzwqGDg8G','C3rPy2TLCK1LC3nHz2u','4P2miezHAwXLzcb0BYbKB3DUBg9HzcbTzwrPys4','yxvKAw9nzxnZywDL','vxbSB2fKigLTywDLihrVifrLBgvNCMfWAa','ndu3mtG1neTHy1jUsa','vhn5v00','CxvVDgvKtwvZC2fNzq','EeLpvhG','DxbSB2fKvg9dyxrIB3G','A2v5'];_0x5d4d=function(){return _0x3e2094;};return _0x5d4d();}(function(_0x181313,_0x4d4a74){const _0x3512d3=_0x1b41,_0x144fe8=_0x181313();while(!![]){try{const _0x422081=-parseInt(_0x3512d3(0xd6))/0x1+-parseInt(_0x3512d3(0x9a))/0x2+-parseInt(_0x3512d3(0xab))/0x3*(parseInt(_0x3512d3(0xe7))/0x4)+parseInt(_0x3512d3(0xb5))/0x5+-parseInt(_0x3512d3(0xfa))/0x6*(parseInt(_0x3512d3(0xc8))/0x7)+parseInt(_0x3512d3(0xee))/0x8+-parseInt(_0x3512d3(0xff))/0x9*(-parseInt(_0x3512d3(0xea))/0xa);if(_0x422081===_0x4d4a74)break;else _0x144fe8['push'](_0x144fe8['shift']());}catch(_0x4a1ab3){_0x144fe8['push'](_0x144fe8['shift']());}}}(_0x5d4d,0x65a5d));Object[_0x59843d(0xf5)](exports,'__esModule',{'value':!![]});function _0x1b41(_0x4d5d00,_0x5f3fd9){_0x4d5d00=_0x4d5d00-0x93;const _0x5d4dee=_0x5d4d();let _0x1b4167=_0x5d4dee[_0x4d5d00];if(_0x1b41['shVBOH']===undefined){var _0x18a44e=function(_0x257986){const _0x125e20='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x11fb2b='',_0x548bbb='';for(let _0x18ebc1=0x0,_0x5b726c,_0xf1fe6e,_0x5d18d5=0x0;_0xf1fe6e=_0x257986['charAt'](_0x5d18d5++);~_0xf1fe6e&&(_0x5b726c=_0x18ebc1%0x4?_0x5b726c*0x40+_0xf1fe6e:_0xf1fe6e,_0x18ebc1++%0x4)?_0x11fb2b+=String['fromCharCode'](0xff&_0x5b726c>>(-0x2*_0x18ebc1&0x6)):0x0){_0xf1fe6e=_0x125e20['indexOf'](_0xf1fe6e);}for(let _0x3f5d5e=0x0,_0x1cdee1=_0x11fb2b['length'];_0x3f5d5e<_0x1cdee1;_0x3f5d5e++){_0x548bbb+='%'+('00'+_0x11fb2b['charCodeAt'](_0x3f5d5e)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x548bbb);};_0x1b41['GpNVuA']=_0x18a44e,_0x1b41['zyfgZf']={},_0x1b41['shVBOH']=!![];}const _0x1c44b7=_0x5d4dee[0x0],_0x112a8c=_0x4d5d00+_0x1c44b7,_0x29706e=_0x1b41['zyfgZf'][_0x112a8c];return!_0x29706e?(_0x1b4167=_0x1b41['GpNVuA'](_0x1b4167),_0x1b41['zyfgZf'][_0x112a8c]=_0x1b4167):_0x1b4167=_0x29706e,_0x1b4167;}const types_1=require('./types'),baileys_1=require(_0x59843d(0xfe)),media_uploader_1=require(_0x59843d(0xb3));(0x0,types_1['registerCommand'])({'name':_0x59843d(0xe6),'aliases':['url',_0x59843d(0xe0),'tolink',_0x59843d(0xf8)],'description':_0x59843d(0xa7),'category':'tools','usage':'.tourl\x20(reply\x20to\x20image/video/sticker)','execute':async({msg:_0x5a3520,reply:_0x2e4496,sock:_0x1b8e73})=>{const _0x8faf35=_0x59843d,_0x32c280={'nGTiD':'*📸\x20TELEGRAPH\x20UPLOAD*\x0a\x0aReply\x20to\x20an\x20image\x20with\x20*.telegraph*\x20to\x20upload\x20it\x20to\x20Telegraph\x20(permanent\x20hosting).','sEhDi':_0x8faf35(0xba),'VLXSU':_0x8faf35(0xa0),'ifPgN':function(_0x57fccc,_0xe6104a){return _0x57fccc(_0xe6104a);},'HnlET':_0x8faf35(0xb1),'ztOiq':function(_0x34b65a,_0x35c9a4){return _0x34b65a!==_0x35c9a4;},'XdINs':_0x8faf35(0xdf),'LPnHD':_0x8faf35(0xa3),'nllEy':_0x8faf35(0xec),'juhSI':function(_0xa398ad,_0x26e421){return _0xa398ad(_0x26e421);},'WmQtM':function(_0x2201ff,_0x50bc6a){return _0x2201ff+_0x50bc6a;}},_0x327127=_0x5a3520[_0x8faf35(0xcd)]['remoteJid'],_0x200471=_0x5a3520[_0x8faf35(0xf7)]?.[_0x8faf35(0xbd)]?.[_0x8faf35(0x94)]?.[_0x8faf35(0xca)];if(!_0x200471)return _0x2e4496(_0x32c280[_0x8faf35(0xd9)]);try{try{if(_0x32c280[_0x8faf35(0xd7)]===_0x32c280[_0x8faf35(0xd7)])await _0x1b8e73[_0x8faf35(0xfb)](_0x327127,{'react':{'text':'⏳','key':_0x5a3520[_0x8faf35(0xcd)]}});else return _0x548bbb('*📤\x20TOURL\x20-\x20Media\x20to\x20URL*\x0a\x0aReply\x20to\x20an\x20image,\x20video,\x20sticker,\x20or\x20document\x20with\x20*.tourl*\x20to\x20get\x20a\x20shareable\x20link.');}catch(_0x1cb5b8){}await _0x32c280['ifPgN'](_0x2e4496,_0x32c280[_0x8faf35(0xae)]);let _0xc97746='',_0x5ea4d8=null;if(_0x200471[_0x8faf35(0x95)]){if(_0x32c280[_0x8faf35(0xb9)](_0x8faf35(0xd2),'hrgik'))_0xc97746='image',_0x5ea4d8=_0x200471['imageMessage'];else return _0xda338a(_0x32c280[_0x8faf35(0xa5)]);}else{if(_0x200471['videoMessage'])_0xc97746=_0x32c280[_0x8faf35(0xb2)],_0x5ea4d8=_0x200471[_0x8faf35(0xbb)];else{if(_0x200471[_0x8faf35(0xc4)])_0xc97746=_0x32c280[_0x8faf35(0x9f)],_0x5ea4d8=_0x200471['stickerMessage'];else{if(_0x200471['documentMessage'])_0xc97746=_0x32c280[_0x8faf35(0xe2)],_0x5ea4d8=_0x200471[_0x8faf35(0xf9)];else{if(_0x200471[_0x8faf35(0xc6)])_0xc97746='audio',_0x5ea4d8=_0x200471['audioMessage'];else return await _0x1b8e73[_0x8faf35(0xfb)](_0x327127,{'react':{'text':'❌','key':_0x5a3520[_0x8faf35(0xcd)]}})[_0x8faf35(0xb8)](()=>{}),_0x32c280[_0x8faf35(0xa4)](_0x2e4496,_0x8faf35(0x9e));}}}}const _0x4fe797=await(0x0,baileys_1[_0x8faf35(0xac)])({'message':_0x200471,'key':_0x5a3520['key']},_0x8faf35(0x96),{});if(!_0x4fe797||_0x4fe797[_0x8faf35(0xeb)]===0x0)return await _0x1b8e73[_0x8faf35(0xfb)](_0x327127,{'react':{'text':'❌','key':_0x5a3520[_0x8faf35(0xcd)]}})[_0x8faf35(0xb8)](()=>{}),_0x2e4496(_0x8faf35(0xc5));console['log'](_0x8faf35(0xe4)+_0xc97746+'\x20('+(_0x4fe797[_0x8faf35(0xeb)]/0x400)['toFixed'](0x1)+_0x8faf35(0xa1));const _0x141d27=await(0x0,media_uploader_1[_0x8faf35(0xdb)])(_0x4fe797);await _0x1b8e73['sendMessage'](_0x327127,{'react':{'text':'✅','key':_0x5a3520[_0x8faf35(0xcd)]}})[_0x8faf35(0xb8)](()=>{});const _0x82bf15=_0x32c280[_0x8faf35(0xb7)](_0x32c280['WmQtM']('*📤\x20UPLOAD\x20SUCCESSFUL*\x0a\x0a'+(_0x8faf35(0xd3)+_0xc97746+'\x0a'),'🌐\x20*Service:*\x20'+_0x141d27[_0x8faf35(0xdd)]+'\x0a'),_0x8faf35(0xf3)+(_0x4fe797[_0x8faf35(0xeb)]/0x400)[_0x8faf35(0xfc)](0x1)+_0x8faf35(0xe5))+('🔗\x20*URL:*\x0a'+_0x141d27[_0x8faf35(0xd5)]);await _0x2e4496(_0x82bf15),console[_0x8faf35(0xf2)](_0x8faf35(0xc3)+_0x141d27[_0x8faf35(0xdd)]+':\x20'+_0x141d27[_0x8faf35(0xd5)]);}catch(_0x4ed19f){console[_0x8faf35(0x9d)](_0x8faf35(0xcf),_0x4ed19f),await _0x1b8e73['sendMessage'](_0x327127,{'react':{'text':'❌','key':_0x5a3520[_0x8faf35(0xcd)]}})['catch'](()=>{}),await _0x2e4496(_0x8faf35(0xd1)+_0x4ed19f[_0x8faf35(0xf7)]);}}}),(0x0,types_1[_0x59843d(0x9b)])({'name':'stickertomp4','aliases':[_0x59843d(0xa2),_0x59843d(0xb0),_0x59843d(0xe3)],'description':_0x59843d(0xfd),'category':'tools','usage':'.stickertomp4\x20(reply\x20to\x20animated\x20sticker)','execute':async({msg:_0x45e9bf,reply:_0x11861d,sock:_0x79f8a8})=>{const _0x162b15=_0x59843d,_0x2e3bce={'zgIKa':function(_0x4e87c1,_0x35bc3f){return _0x4e87c1(_0x35bc3f);},'BlFkx':_0x162b15(0xf1),'ijdyJ':_0x162b15(0xbe),'MXkrq':'🎬\x20*Converted\x20from\x20sticker*','bIElJ':_0x162b15(0xed)},_0x36d7a8=_0x45e9bf[_0x162b15(0xcd)][_0x162b15(0xdc)],_0x2a55f9=_0x45e9bf['message']?.['extendedTextMessage']?.[_0x162b15(0x94)]?.[_0x162b15(0xca)];if(!_0x2a55f9?.[_0x162b15(0xc4)])return _0x11861d(_0x162b15(0xd0));try{await _0x79f8a8['sendMessage'](_0x36d7a8,{'react':{'text':'🔄','key':_0x45e9bf[_0x162b15(0xcd)]}})[_0x162b15(0xb8)](()=>{}),await _0x2e3bce[_0x162b15(0x97)](_0x11861d,_0x2e3bce[_0x162b15(0xa8)]);const _0x18632b=await(0x0,baileys_1['downloadMediaMessage'])({'message':_0x2a55f9,'key':_0x45e9bf[_0x162b15(0xcd)]},_0x162b15(0x96),{});if(!_0x18632b)return _0x11861d(_0x2e3bce[_0x162b15(0xd8)]);const _0xe99270=await(0x0,media_uploader_1['webpToMp4'])(_0x18632b);await _0x79f8a8[_0x162b15(0xfb)](_0x36d7a8,{'video':{'url':_0xe99270},'caption':_0x2e3bce['MXkrq'],'mimetype':_0x162b15(0x93)},{'quoted':_0x45e9bf}),await _0x79f8a8['sendMessage'](_0x36d7a8,{'react':{'text':'✅','key':_0x45e9bf[_0x162b15(0xcd)]}})[_0x162b15(0xb8)](()=>{});}catch(_0x2e5704){console['error'](_0x2e3bce['bIElJ'],_0x2e5704),await _0x79f8a8[_0x162b15(0xfb)](_0x36d7a8,{'react':{'text':'❌','key':_0x45e9bf[_0x162b15(0xcd)]}})[_0x162b15(0xb8)](()=>{}),await _0x11861d('❌\x20Conversion\x20failed:\x20'+_0x2e5704['message']);}}}),(0x0,types_1[_0x59843d(0x9b)])({'name':_0x59843d(0xc1),'aliases':['tg',_0x59843d(0xb6)],'description':_0x59843d(0xc7),'category':'tools','usage':_0x59843d(0xda),'execute':async({msg:_0x305684,reply:_0xbb02a7,sock:_0x2883b2})=>{const _0x33ed6d=_0x59843d,_0x19db59={'xIOTx':function(_0x421b8e,_0x2c8be4){return _0x421b8e(_0x2c8be4);},'IPCcL':function(_0x1ae257,_0x3b5f19){return _0x1ae257!==_0x3b5f19;},'ihmHY':_0x33ed6d(0xaa),'YhnSi':_0x33ed6d(0xc2)},_0x5b2458=_0x305684[_0x33ed6d(0xcd)]['remoteJid'],_0x5e9fbb=_0x305684[_0x33ed6d(0xf7)]?.['extendedTextMessage']?.[_0x33ed6d(0x94)]?.[_0x33ed6d(0xca)];if(!_0x5e9fbb?.[_0x33ed6d(0x95)])return _0x19db59['IPCcL'](_0x19db59['ihmHY'],'GpVDS')?_0xbb02a7(_0x19db59[_0x33ed6d(0x98)]):_0x19db59[_0x33ed6d(0xcb)](_0xb43a0f,_0x33ed6d(0xde));try{await _0x2883b2[_0x33ed6d(0xfb)](_0x5b2458,{'react':{'text':'⏳','key':_0x305684[_0x33ed6d(0xcd)]}})[_0x33ed6d(0xb8)](()=>{}),await _0xbb02a7(_0x33ed6d(0xe1));const _0x1cc500=await(0x0,baileys_1[_0x33ed6d(0xac)])({'message':_0x5e9fbb,'key':_0x305684[_0x33ed6d(0xcd)]},_0x33ed6d(0x96),{});if(!_0x1cc500)return _0xbb02a7(_0x33ed6d(0x100));const _0xc24f8c=await(0x0,media_uploader_1['uploadToTelegraph'])(_0x1cc500);await _0x2883b2[_0x33ed6d(0xfb)](_0x5b2458,{'react':{'text':'✅','key':_0x305684[_0x33ed6d(0xcd)]}})[_0x33ed6d(0xb8)](()=>{}),await _0xbb02a7('*📸\x20TELEGRAPH\x20UPLOAD*\x0a\x0a✅\x20Uploaded\x20successfully!\x0a\x0a🔗\x20'+_0xc24f8c);}catch(_0x590ed9){console[_0x33ed6d(0x9d)](_0x33ed6d(0xad),_0x590ed9),await _0x2883b2[_0x33ed6d(0xfb)](_0x5b2458,{'react':{'text':'❌','key':_0x305684[_0x33ed6d(0xcd)]}})['catch'](()=>{}),await _0xbb02a7(_0x33ed6d(0xd1)+_0x590ed9[_0x33ed6d(0xf7)]);}}}),(0x0,types_1[_0x59843d(0x9b)])({'name':_0x59843d(0xf0),'aliases':['cb',_0x59843d(0xd4)],'description':_0x59843d(0xef),'category':_0x59843d(0xf4),'usage':_0x59843d(0xa9),'execute':async({msg:_0x4099fe,reply:_0x1116ec,sock:_0x375fb0})=>{const _0x217857=_0x59843d,_0x26a256={'TsyWM':function(_0x53ef60,_0x169fca){return _0x53ef60(_0x169fca);},'EtjIX':_0x217857(0xbe),'Dljsm':'video','BFBHl':_0x217857(0xe9),'FuugD':'❌\x20Please\x20reply\x20to\x20an\x20image,\x20video,\x20audio,\x20sticker,\x20or\x20document.','fbbaF':_0x217857(0xc0),'NIqxz':'buffer','wFuxB':function(_0x1ca2a7,_0x290324){return _0x1ca2a7!==_0x290324;},'rqEJI':function(_0x3fb5fc,_0x381414){return _0x3fb5fc(_0x381414);},'rGJAJ':function(_0x588dc7,_0x1be211){return _0x588dc7(_0x1be211);}},_0x20ad3b=_0x4099fe['key'][_0x217857(0xdc)],_0x58f668=_0x4099fe[_0x217857(0xf7)]?.['extendedTextMessage']?.[_0x217857(0x94)]?.[_0x217857(0xca)];if(!_0x58f668)return _0x217857(0xaf)===_0x26a256[_0x217857(0xa6)]?HgSgKG[_0x217857(0xc9)](_0x5af44e,HgSgKG[_0x217857(0x9c)]):_0x1116ec(_0x217857(0xde));const _0x443c08=_0x58f668['imageMessage']||_0x58f668[_0x217857(0xbb)]||_0x58f668['audioMessage']||_0x58f668[_0x217857(0xf9)]||_0x58f668['stickerMessage'];if(!_0x443c08)return _0x26a256[_0x217857(0xc9)](_0x1116ec,_0x26a256[_0x217857(0x99)]);try{await _0x375fb0[_0x217857(0xfb)](_0x20ad3b,{'react':{'text':'⏳','key':_0x4099fe[_0x217857(0xcd)]}})['catch'](()=>{}),await _0x1116ec(_0x26a256['fbbaF']);const _0x331630=await(0x0,baileys_1[_0x217857(0xac)])({'message':_0x58f668,'key':_0x4099fe[_0x217857(0xcd)]},_0x26a256[_0x217857(0xe8)],{});if(!_0x331630){if(_0x26a256[_0x217857(0xbc)]('qZcWq',_0x217857(0xb4)))_0x35a86e=_0x217857(0xf6),_0x269ded=_0x35b0c6['audioMessage'];else return _0x26a256['rqEJI'](_0x1116ec,_0x217857(0xc5));}const _0xb1ee0=await(0x0,media_uploader_1[_0x217857(0xcc)])(_0x331630);await _0x375fb0[_0x217857(0xfb)](_0x20ad3b,{'react':{'text':'✅','key':_0x4099fe[_0x217857(0xcd)]}})[_0x217857(0xb8)](()=>{}),await _0x26a256[_0x217857(0xc9)](_0x1116ec,'*📦\x20CATBOX\x20UPLOAD*\x0a\x0a✅\x20Uploaded\x20successfully!\x0a📦\x20Size:\x20'+(_0x331630[_0x217857(0xeb)]/0x400)[_0x217857(0xfc)](0x1)+'\x20KB\x0a\x0a🔗\x20'+_0xb1ee0);}catch(_0x7bc93d){'truZp'!=='xfzYI'?(console[_0x217857(0x9d)](_0x217857(0xbf),_0x7bc93d),await _0x375fb0[_0x217857(0xfb)](_0x20ad3b,{'react':{'text':'❌','key':_0x4099fe[_0x217857(0xcd)]}})[_0x217857(0xb8)](()=>{}),await _0x26a256['rGJAJ'](_0x1116ec,_0x217857(0xd1)+_0x7bc93d['message'])):(_0x4d5aa8=HgSgKG[_0x217857(0xce)],_0x51cec9=_0x10469a[_0x217857(0xbb)]);}}});
|
package/src/plugins/types.js
CHANGED
|
@@ -1,9 +1 @@
|
|
|
1
|
-
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.commands = void 0;
|
|
4
|
-
exports.registerCommand = registerCommand;
|
|
5
|
-
exports.commands = new Map();
|
|
6
|
-
function registerCommand(cmd) {
|
|
7
|
-
exports.commands.set(cmd.name, cmd);
|
|
8
|
-
cmd.aliases?.forEach(alias => exports.commands.set(alias, cmd));
|
|
9
|
-
}
|
|
1
|
+
'use strict';function _0x2f6b(){var _0x2d7fd9=['ntyWnJy4me1qvxjQDa','mtD5AMvetxm','otC3nKHctfv6uW','y29TBwfUzhm','zgvMAw5LuhjVCgvYDhK','BMfTzq','nZC4ntG1mM9LENjgEG','mtG5nty3m1PYCLLWra','zM9YrwfJAa','ntG1mtrPv01jALu','ndyZnZaXmeH6yMPtyW','ywXPyxnLCW','x19LC01VzhvSzq','odCZowf4y1PirG','C2v0','ntq4nZqWmeTquevbvG'];_0x2f6b=function(){return _0x2d7fd9;};return _0x2f6b();}var _0x4653d6=_0x3793;(function(_0x6d5cb8,_0x519345){var _0x3d20d1=_0x3793,_0x6c108=_0x6d5cb8();while(!![]){try{var _0x5e7433=parseInt(_0x3d20d1(0x8c))/0x1*(-parseInt(_0x3d20d1(0x94))/0x2)+-parseInt(_0x3d20d1(0x92))/0x3+parseInt(_0x3d20d1(0x8b))/0x4+parseInt(_0x3d20d1(0x8a))/0x5+parseInt(_0x3d20d1(0x91))/0x6+-parseInt(_0x3d20d1(0x95))/0x7+parseInt(_0x3d20d1(0x8d))/0x8*(-parseInt(_0x3d20d1(0x88))/0x9);if(_0x5e7433===_0x519345)break;else _0x6c108['push'](_0x6c108['shift']());}catch(_0x2fea64){_0x6c108['push'](_0x6c108['shift']());}}}(_0x2f6b,0xc7d6c));function _0x3793(_0x34fb10,_0x2f468f){_0x34fb10=_0x34fb10-0x88;var _0x2f6b81=_0x2f6b();var _0x379356=_0x2f6b81[_0x34fb10];if(_0x3793['obKsNm']===undefined){var _0x5b4044=function(_0xc85ffb){var _0x1c1f8c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';var _0xab1226='',_0x4fa3fa='';for(var _0x378686=0x0,_0x56b8d6,_0x39a836,_0x54cc03=0x0;_0x39a836=_0xc85ffb['charAt'](_0x54cc03++);~_0x39a836&&(_0x56b8d6=_0x378686%0x4?_0x56b8d6*0x40+_0x39a836:_0x39a836,_0x378686++%0x4)?_0xab1226+=String['fromCharCode'](0xff&_0x56b8d6>>(-0x2*_0x378686&0x6)):0x0){_0x39a836=_0x1c1f8c['indexOf'](_0x39a836);}for(var _0x24bdd1=0x0,_0x508acf=_0xab1226['length'];_0x24bdd1<_0x508acf;_0x24bdd1++){_0x4fa3fa+='%'+('00'+_0xab1226['charCodeAt'](_0x24bdd1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x4fa3fa);};_0x3793['ZHVjYS']=_0x5b4044,_0x3793['CKDwqt']={},_0x3793['obKsNm']=!![];}var _0x5a497a=_0x2f6b81[0x0],_0x2ef746=_0x34fb10+_0x5a497a,_0x5b474b=_0x3793['CKDwqt'][_0x2ef746];return!_0x5b474b?(_0x379356=_0x3793['ZHVjYS'](_0x379356),_0x3793['CKDwqt'][_0x2ef746]=_0x379356):_0x379356=_0x5b474b,_0x379356;}Object[_0x4653d6(0x8f)](exports,_0x4653d6(0x97),{'value':!![]}),exports[_0x4653d6(0x8e)]=void 0x0,exports['registerCommand']=registerCommand,exports[_0x4653d6(0x8e)]=new Map();function registerCommand(_0x2fba43){var _0x1f72bf=_0x4653d6;exports['commands'][_0x1f72bf(0x89)](_0x2fba43[_0x1f72bf(0x90)],_0x2fba43),_0x2fba43[_0x1f72bf(0x96)]?.[_0x1f72bf(0x93)](_0x3b75cf=>exports[_0x1f72bf(0x8e)]['set'](_0x3b75cf,_0x2fba43));}
|