@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/mpesa.js
CHANGED
|
@@ -1,70 +1 @@
|
|
|
1
|
-
|
|
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
|
-
// Placeholder for MPESA credentials - usually these should be in ENV
|
|
9
|
-
const CONSUMER_KEY = process.env.MPESA_CONSUMER_KEY || "YOUR_CONSUMER_KEY";
|
|
10
|
-
const CONSUMER_SECRET = process.env.MPESA_CONSUMER_SECRET || "YOUR_CONSUMER_SECRET";
|
|
11
|
-
const PASSKEY = process.env.MPESA_PASSKEY || "YOUR_PASSKEY";
|
|
12
|
-
const SHORTCODE = process.env.MPESA_SHORTCODE || "625625"; // Your Paybill
|
|
13
|
-
const ACCOUNT_NUMBER = "20177486"; // Your Account Number
|
|
14
|
-
async function getAccessToken() {
|
|
15
|
-
const auth = Buffer.from(`${CONSUMER_KEY}:${CONSUMER_SECRET}`).toString("base64");
|
|
16
|
-
try {
|
|
17
|
-
const response = await axios_1.default.get("https://api.safaricom.co.ke/oauth/v1/generate?grant_type=client_credentials", {
|
|
18
|
-
headers: { Authorization: `Basic ${auth}` },
|
|
19
|
-
});
|
|
20
|
-
return response.data.access_token;
|
|
21
|
-
}
|
|
22
|
-
catch (error) {
|
|
23
|
-
console.error("MPESA Token Error:", error);
|
|
24
|
-
return null;
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
(0, types_1.registerCommand)({
|
|
28
|
-
name: "mpesa",
|
|
29
|
-
description: "Trigger an MPESA STK Push (Test)",
|
|
30
|
-
category: "utility",
|
|
31
|
-
execute: async ({ reply, args, senderJid }) => {
|
|
32
|
-
// Check if MPESA credentials are configured
|
|
33
|
-
if (CONSUMER_KEY === "YOUR_CONSUMER_KEY" || CONSUMER_SECRET === "YOUR_CONSUMER_SECRET" || PASSKEY === "YOUR_PASSKEY") {
|
|
34
|
-
return reply("⚠️ *Ohh! Hold on...*\n\nThis feature is currently disabled for improvements by owner *Edu*.\n\nIf you want to pay/purchase anything, send your query to:\n📞 *+254113374182*");
|
|
35
|
-
}
|
|
36
|
-
if (args.length < 2) {
|
|
37
|
-
return reply("❌ Usage: .mpesa <phone> <amount>\nExample: .mpesa 254712345678 1");
|
|
38
|
-
}
|
|
39
|
-
const phone = args[0];
|
|
40
|
-
const amount = args[1];
|
|
41
|
-
await reply(`💸 Initiating STK Push of KES ${amount} to ${phone}...`);
|
|
42
|
-
const token = await getAccessToken();
|
|
43
|
-
if (!token)
|
|
44
|
-
return reply("❌ Failed to authenticate with MPESA.");
|
|
45
|
-
const timestamp = new Date().toISOString().replace(/[^0-9]/g, "").slice(0, -3);
|
|
46
|
-
const password = Buffer.from(`${SHORTCODE}${PASSKEY}${timestamp}`).toString("base64");
|
|
47
|
-
try {
|
|
48
|
-
const res = await axios_1.default.post("https://api.safaricom.co.ke/mpesa/stkpush/v1/processrequest", {
|
|
49
|
-
BusinessShortCode: SHORTCODE,
|
|
50
|
-
Password: password,
|
|
51
|
-
Timestamp: timestamp,
|
|
52
|
-
TransactionType: "CustomerPayBillOnline",
|
|
53
|
-
Amount: amount,
|
|
54
|
-
PartyA: phone,
|
|
55
|
-
PartyB: SHORTCODE,
|
|
56
|
-
PhoneNumber: phone,
|
|
57
|
-
CallBackURL: "https://cortana-web.onrender.com/api/mpesa/callback",
|
|
58
|
-
AccountReference: ACCOUNT_NUMBER,
|
|
59
|
-
TransactionDesc: "BrianTech Payment",
|
|
60
|
-
}, {
|
|
61
|
-
headers: { Authorization: `Bearer ${token}` },
|
|
62
|
-
});
|
|
63
|
-
await reply(`✅ STK Push sent! Response: ${res.data.ResponseDescription}`);
|
|
64
|
-
}
|
|
65
|
-
catch (err) {
|
|
66
|
-
console.error(err);
|
|
67
|
-
await reply("❌ STK Push failed. Check server logs.");
|
|
68
|
-
}
|
|
69
|
-
}
|
|
70
|
-
});
|
|
1
|
+
'use strict';const _0x42d647=_0x3299;(function(_0x373523,_0x5ac784){const _0x49dff3=_0x3299,_0x231683=_0x373523();while(!![]){try{const _0x18ffa9=parseInt(_0x49dff3(0xb0))/0x1*(-parseInt(_0x49dff3(0xbe))/0x2)+parseInt(_0x49dff3(0xac))/0x3*(parseInt(_0x49dff3(0xab))/0x4)+parseInt(_0x49dff3(0xb3))/0x5*(parseInt(_0x49dff3(0xa4))/0x6)+parseInt(_0x49dff3(0xc2))/0x7+-parseInt(_0x49dff3(0xb7))/0x8*(-parseInt(_0x49dff3(0xa5))/0x9)+-parseInt(_0x49dff3(0xc7))/0xa*(-parseInt(_0x49dff3(0xc9))/0xb)+-parseInt(_0x49dff3(0xa9))/0xc;if(_0x18ffa9===_0x5ac784)break;else _0x231683['push'](_0x231683['shift']());}catch(_0x46e786){_0x231683['push'](_0x231683['shift']());}}}(_0x4649,0x9cdaa));function _0x4649(){const _0x391d55=['Dg9tDhjPBMC','qMfZAwmG','zxjYB3i','nZuWvfr0wwH1','Ahr0Chm6lY9JB3j0yw5HlxDLyI5VBNjLBMrLCI5JB20VyxbPl21WzxnHl2nHBgXIywnR','otCZmZL1z0XZs3a','Cg9ZDa','q3vZDg9TzxjqyxLcAwXSt25SAw5L','4PYfifnusYbqDxnOihnLBNqHifjLC3bVBNnLoIa','4P2miezHAwXLzcb0BYbHDxrOzw50AwnHDguGD2L0Acbnuevtqs4','BhHtBLe','AgP5wgi','v3vqr0e','zgf0yq','wu9vuL9dt05tvu1fuL9trunsrvq','mJrZs1nLvxu','mJy1nZqZmfPnBMfbzG','qNjPyw5uzwnOifbHEw1LBNq','Dg9ju09tDhjPBMC','z2v0','mty5nZuZodbmu1HbDgO','vwzsEfO','mZu5mNfdBvvSza','mJuZmNLouefkrG','4P2mifvZywDLoIaUBxbLC2eGphbOB25LpIa8yw1VDw50pGPfEgfTCgXLoIaUBxbLC2eGmJu0nZeYmZq1nJC4ide','zgvMAw5LuhjVCgvYDhK','DxrPBgL0Eq','mtvQzLPpsgW','zNjVBq','ihrVia','mZq2nZyWqLDQsKXz','4PQG77IpicPpAgGHieHVBgqGB24UlI4QcGPuAgLZigzLyxr1CMuGAxmGy3vYCMvUDgX5igrPC2fIBgvKigzVCIbPBxbYB3zLBwvUDhmGyNKGB3DUzxiGkKvKDsOUcGPjzIb5B3uGD2fUDcb0BYbWyxKVChvYy2HHC2uGyw55DgHPBMCSihnLBMqGEw91CIbXDwvYEsb0BZOk8j+tNIaQkZi1ndeXmZm3nde4mIO','vhjPz2DLCIbHBIbnuevtqsbtveSGuhvZAcaOvgvZDcK','uw5QtLK','mtzyt1nNALe','yMfZzty0','4P2mifnusYbqDxnOigzHAwXLzc4Gq2HLy2SGC2vYDMvYigXVz3mU','qMvHCMvYia','wu9vuL9dt05tvu1fuL9lrvK','wu9vuL9qqvnts0vz','lI90ExbLCW','ntmZmZHYvLfhrem','nJi1nJi1','uMvZCg9UC2vezxnJCMLWDgLVBG','Ahr0Chm6lY9HCgKUC2fMyxjPy29TlMnVlMTLl29HDxrOl3yXl2DLBMvYyxrLp2DYyw50x3r5Cgu9y2XPzw50x2nYzwrLBNrPywXZ','mte3mZeYm1nSD2jUEq','x19LC01VzhvSzq'];_0x4649=function(){return _0x391d55;};return _0x4649();}var __importDefault=this&&this['__importDefault']||function(_0x347a56){return _0x347a56&&_0x347a56['__esModule']?_0x347a56:{'default':_0x347a56};};Object[_0x42d647(0xae)](exports,_0x42d647(0xc3),{'value':!![]});function _0x3299(_0x27b6ca,_0x45114d){_0x27b6ca=_0x27b6ca-0xa0;const _0x464920=_0x4649();let _0x329944=_0x464920[_0x27b6ca];if(_0x3299['nejolS']===undefined){var _0x395f87=function(_0x388e6e){const _0x390b64='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x57adb='',_0x30bd25='';for(let _0x23d12c=0x0,_0x12936f,_0x144a3d,_0x27ad68=0x0;_0x144a3d=_0x388e6e['charAt'](_0x27ad68++);~_0x144a3d&&(_0x12936f=_0x23d12c%0x4?_0x12936f*0x40+_0x144a3d:_0x144a3d,_0x23d12c++%0x4)?_0x57adb+=String['fromCharCode'](0xff&_0x12936f>>(-0x2*_0x23d12c&0x6)):0x0){_0x144a3d=_0x390b64['indexOf'](_0x144a3d);}for(let _0x47a57d=0x0,_0x440249=_0x57adb['length'];_0x47a57d<_0x440249;_0x47a57d++){_0x30bd25+='%'+('00'+_0x57adb['charCodeAt'](_0x47a57d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x30bd25);};_0x3299['DsOksk']=_0x395f87,_0x3299['IzmXOQ']={},_0x3299['nejolS']=!![];}const _0x1a9a80=_0x464920[0x0],_0x17f74d=_0x27b6ca+_0x1a9a80,_0x45121f=_0x3299['IzmXOQ'][_0x17f74d];return!_0x45121f?(_0x329944=_0x3299['DsOksk'](_0x329944),_0x3299['IzmXOQ'][_0x17f74d]=_0x329944):_0x329944=_0x45121f,_0x329944;}const types_1=require(_0x42d647(0xbd)),axios_1=__importDefault(require('axios')),CONSUMER_KEY=process.env.MPESA_CONSUMER_KEY||_0x42d647(0xbb),CONSUMER_SECRET=process.env.MPESA_CONSUMER_SECRET||'YOUR_CONSUMER_SECRET',PASSKEY=process.env.MPESA_PASSKEY||_0x42d647(0xbc),SHORTCODE=process.env.MPESA_SHORTCODE||_0x42d647(0xbf),ACCOUNT_NUMBER='20177486';async function getAccessToken(){const _0x3ea15f=_0x42d647,_0x2512fb={'QnjNY':_0x3ea15f(0xc1),'IrsTm':'MPESA\x20Token\x20Error:'},_0x3c05d5=Buffer[_0x3ea15f(0xb1)](CONSUMER_KEY+':'+CONSUMER_SECRET)[_0x3ea15f(0xc4)](_0x3ea15f(0xb8));try{const _0x2dac9b=await axios_1['default'][_0x3ea15f(0xa8)](_0x2512fb[_0x3ea15f(0xb6)],{'headers':{'Authorization':_0x3ea15f(0xc5)+_0x3c05d5}});return _0x2dac9b['data']['access_token'];}catch(_0x323a33){return console['error'](_0x2512fb['IrsTm'],_0x323a33),null;}}(0x0,types_1['registerCommand'])({'name':'mpesa','description':_0x42d647(0xb5),'category':_0x42d647(0xaf),'execute':async({reply:_0x1d12f4,args:_0xaa5156,senderJid:_0x16b1d5})=>{const _0x2a6ad7=_0x42d647,_0x57b4fc={'bwArL':_0x2a6ad7(0xad),'hjyXb':function(_0x4f2bf4){return _0x4f2bf4();},'WuPGA':function(_0xd9deeb,_0x4c0bb1){return _0xd9deeb(_0x4c0bb1);},'UfRxZ':'https://api.safaricom.co.ke/mpesa/stkpush/v1/processrequest','CFVeh':_0x2a6ad7(0xcb),'lxSnQ':_0x2a6ad7(0xc8),'bZcXH':_0x2a6ad7(0xa6),'gpNNK':_0x2a6ad7(0xb9)};if(CONSUMER_KEY===_0x2a6ad7(0xbb)||CONSUMER_SECRET===_0x2a6ad7(0xa3)||PASSKEY==='YOUR_PASSKEY')return _0x1d12f4(_0x2a6ad7(0xb4));if(_0xaa5156['length']<0x2)return _0x1d12f4(_0x57b4fc['bwArL']);const _0x1218ca=_0xaa5156[0x0],_0x3e665c=_0xaa5156[0x1];await _0x1d12f4('💸\x20Initiating\x20STK\x20Push\x20of\x20KES\x20'+_0x3e665c+_0x2a6ad7(0xb2)+_0x1218ca+'...');const _0x8f4acd=await _0x57b4fc[_0x2a6ad7(0xa0)](getAccessToken);if(!_0x8f4acd)return _0x57b4fc[_0x2a6ad7(0xa1)](_0x1d12f4,_0x2a6ad7(0xcd));const _0x338e8d=new Date()[_0x2a6ad7(0xa7)]()['replace'](/[^0-9]/g,'')['slice'](0x0,-0x3),_0x14efe1=Buffer[_0x2a6ad7(0xb1)](''+SHORTCODE+PASSKEY+_0x338e8d)['toString']('base64');try{const _0xc0a2f3=await axios_1['default'][_0x2a6ad7(0xca)](_0x57b4fc[_0x2a6ad7(0xaa)],{'BusinessShortCode':SHORTCODE,'Password':_0x14efe1,'Timestamp':_0x338e8d,'TransactionType':_0x57b4fc['CFVeh'],'Amount':_0x3e665c,'PartyA':_0x1218ca,'PartyB':SHORTCODE,'PhoneNumber':_0x1218ca,'CallBackURL':_0x57b4fc[_0x2a6ad7(0xce)],'AccountReference':ACCOUNT_NUMBER,'TransactionDesc':_0x57b4fc['bZcXH']},{'headers':{'Authorization':_0x2a6ad7(0xba)+_0x8f4acd}});await _0x1d12f4(_0x2a6ad7(0xcc)+_0xc0a2f3[_0x2a6ad7(0xa2)][_0x2a6ad7(0xc0)]);}catch(_0x32c166){console[_0x2a6ad7(0xc6)](_0x32c166),await _0x57b4fc[_0x2a6ad7(0xa1)](_0x1d12f4,_0x57b4fc['gpNNK']);}}});
|
|
@@ -1,299 +1 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
-
if (k2 === undefined) k2 = k;
|
|
4
|
-
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
-
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
-
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
-
}
|
|
8
|
-
Object.defineProperty(o, k2, desc);
|
|
9
|
-
}) : (function(o, m, k, k2) {
|
|
10
|
-
if (k2 === undefined) k2 = k;
|
|
11
|
-
o[k2] = m[k];
|
|
12
|
-
}));
|
|
13
|
-
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
-
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
-
}) : function(o, v) {
|
|
16
|
-
o["default"] = v;
|
|
17
|
-
});
|
|
18
|
-
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
-
if (mod && mod.__esModule) return mod;
|
|
20
|
-
var result = {};
|
|
21
|
-
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
-
__setModuleDefault(result, mod);
|
|
23
|
-
return result;
|
|
24
|
-
};
|
|
25
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
-
};
|
|
28
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
const types_1 = require("./types");
|
|
30
|
-
const axios_1 = __importDefault(require("axios"));
|
|
31
|
-
const cheerio = __importStar(require("cheerio"));
|
|
32
|
-
const crypto = __importStar(require("crypto"));
|
|
33
|
-
// AES encryption helper for AIO API
|
|
34
|
-
function aesEncrypt(text, keyHex, ivHex) {
|
|
35
|
-
const key = Buffer.from(keyHex, "hex");
|
|
36
|
-
const iv = Buffer.from(ivHex, "hex");
|
|
37
|
-
const padLength = 16 - (Buffer.from(text).length % 16);
|
|
38
|
-
const padded = Buffer.concat([Buffer.from(text), Buffer.alloc(padLength, 0)]);
|
|
39
|
-
const cipher = crypto.createCipheriv("aes-128-cbc", key, iv);
|
|
40
|
-
cipher.setAutoPadding(false);
|
|
41
|
-
return Buffer.concat([cipher.update(padded), cipher.final()]).toString("base64");
|
|
42
|
-
}
|
|
43
|
-
async function scrapeAIO(targetUrl) {
|
|
44
|
-
const baseUrl = "https://allinonedownloader.com";
|
|
45
|
-
try {
|
|
46
|
-
const initRes = await axios_1.default.get(baseUrl, { timeout: 30000 });
|
|
47
|
-
const $ = cheerio.load(initRes.data);
|
|
48
|
-
const token = $("#token").val();
|
|
49
|
-
const apiPath = $("#scc").val();
|
|
50
|
-
const cookies = initRes.headers["set-cookie"]?.map(c => c.split(";")[0]).join("; ");
|
|
51
|
-
if (!token || !apiPath)
|
|
52
|
-
throw new Error("Token error");
|
|
53
|
-
const ivHex = "afc4e290725a3bf0ac4d3ff826c43c10";
|
|
54
|
-
const urlhash = aesEncrypt(targetUrl, token, ivHex);
|
|
55
|
-
const apiUrl = apiPath.startsWith("http") ? apiPath : baseUrl + apiPath;
|
|
56
|
-
const { data } = await axios_1.default.post(apiUrl, new URLSearchParams({ url: targetUrl, token, urlhash }).toString(), { headers: { "Content-Type": "application/x-www-form-urlencoded", Cookie: cookies || "" }, timeout: 60000 });
|
|
57
|
-
return data;
|
|
58
|
-
}
|
|
59
|
-
catch (e) {
|
|
60
|
-
return { error: e.message };
|
|
61
|
-
}
|
|
62
|
-
}
|
|
63
|
-
// ═══════════════════════════════════════════════════════════════
|
|
64
|
-
// ALL-IN-ONE DOWNLOADER (no overlaps now)
|
|
65
|
-
// ═══════════════════════════════════════════════════════════════
|
|
66
|
-
(0, types_1.registerCommand)({
|
|
67
|
-
name: "aio",
|
|
68
|
-
aliases: ["allinone", "dlall"],
|
|
69
|
-
description: "All-in-one media downloader",
|
|
70
|
-
category: "downloader",
|
|
71
|
-
usage: ".aio <url>",
|
|
72
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
73
|
-
const url = args[0]?.trim();
|
|
74
|
-
const jid = msg.key.remoteJid;
|
|
75
|
-
if (!url)
|
|
76
|
-
return reply("❌ Provide a URL (IG/TikTok/FB/Twitter/etc)");
|
|
77
|
-
if (!url.startsWith("http"))
|
|
78
|
-
return reply("❌ Invalid URL");
|
|
79
|
-
try {
|
|
80
|
-
await sock.sendMessage(jid, { react: { text: "📥", key: msg.key } }).catch(() => { });
|
|
81
|
-
const result = await scrapeAIO(url);
|
|
82
|
-
if (result.error || !result.links?.length)
|
|
83
|
-
return reply("❌ No media found");
|
|
84
|
-
for (const link of result.links.slice(0, 5)) {
|
|
85
|
-
const type = (link.type || "").toLowerCase();
|
|
86
|
-
const isVideo = ["mp4", "mov", "video"].some(t => type.includes(t));
|
|
87
|
-
try {
|
|
88
|
-
if (isVideo) {
|
|
89
|
-
await sock.sendMessage(jid, { video: { url: link.url } }, { quoted: msg });
|
|
90
|
-
}
|
|
91
|
-
else {
|
|
92
|
-
await sock.sendMessage(jid, { image: { url: link.url } }, { quoted: msg });
|
|
93
|
-
}
|
|
94
|
-
await new Promise(r => setTimeout(r, 1500));
|
|
95
|
-
}
|
|
96
|
-
catch {
|
|
97
|
-
continue;
|
|
98
|
-
}
|
|
99
|
-
}
|
|
100
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
101
|
-
}
|
|
102
|
-
catch (e) {
|
|
103
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
104
|
-
}
|
|
105
|
-
}
|
|
106
|
-
});
|
|
107
|
-
// ═══════════════════════════════════════════════════════════════
|
|
108
|
-
// INSTAGRAM (no "ig" - conflicts with downloaders.ts)
|
|
109
|
-
// ═══════════════════════════════════════════════════════════════
|
|
110
|
-
(0, types_1.registerCommand)({
|
|
111
|
-
name: "instadl",
|
|
112
|
-
aliases: ["igdownload", "reeldl"],
|
|
113
|
-
description: "Download Instagram reels/posts",
|
|
114
|
-
category: "downloader",
|
|
115
|
-
usage: ".instadl <url>",
|
|
116
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
117
|
-
const url = args[0]?.trim();
|
|
118
|
-
const jid = msg.key.remoteJid;
|
|
119
|
-
if (!url)
|
|
120
|
-
return reply("❌ Provide Instagram URL");
|
|
121
|
-
if (!url.match(/instagram\.com/i))
|
|
122
|
-
return reply("❌ Invalid Instagram URL");
|
|
123
|
-
try {
|
|
124
|
-
await sock.sendMessage(jid, { react: { text: "📸", key: msg.key } }).catch(() => { });
|
|
125
|
-
// Try API first
|
|
126
|
-
let media = [];
|
|
127
|
-
try {
|
|
128
|
-
const res = await axios_1.default.get(`https://api.siputzx.my.id/api/d/igdl?url=${encodeURIComponent(url)}`, { timeout: 30000 });
|
|
129
|
-
if (res.data?.status && res.data?.data?.length) {
|
|
130
|
-
media = res.data.data;
|
|
131
|
-
}
|
|
132
|
-
}
|
|
133
|
-
catch {
|
|
134
|
-
// Fallback to AIO
|
|
135
|
-
const result = await scrapeAIO(url);
|
|
136
|
-
if (result.links?.length) {
|
|
137
|
-
media = result.links.map((l) => ({ url: l.url }));
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
if (!media.length)
|
|
141
|
-
return reply("❌ No media found");
|
|
142
|
-
for (const item of media.slice(0, 10)) {
|
|
143
|
-
try {
|
|
144
|
-
await sock.sendMessage(jid, { video: { url: item.url } }, { quoted: msg });
|
|
145
|
-
}
|
|
146
|
-
catch {
|
|
147
|
-
try {
|
|
148
|
-
await sock.sendMessage(jid, { image: { url: item.url } }, { quoted: msg });
|
|
149
|
-
}
|
|
150
|
-
catch {
|
|
151
|
-
continue;
|
|
152
|
-
}
|
|
153
|
-
}
|
|
154
|
-
await new Promise(r => setTimeout(r, 1000));
|
|
155
|
-
}
|
|
156
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
157
|
-
}
|
|
158
|
-
catch (e) {
|
|
159
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
160
|
-
}
|
|
161
|
-
}
|
|
162
|
-
});
|
|
163
|
-
// ═══════════════════════════════════════════════════════════════
|
|
164
|
-
// FACEBOOK (no "fb" - conflicts with downloaders.ts)
|
|
165
|
-
// ═══════════════════════════════════════════════════════════════
|
|
166
|
-
(0, types_1.registerCommand)({
|
|
167
|
-
name: "fbdl",
|
|
168
|
-
aliases: ["facebookdl", "fbvideo"],
|
|
169
|
-
description: "Download Facebook videos",
|
|
170
|
-
category: "downloader",
|
|
171
|
-
usage: ".fbdl <url>",
|
|
172
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
173
|
-
const url = args[0]?.trim();
|
|
174
|
-
const jid = msg.key.remoteJid;
|
|
175
|
-
if (!url)
|
|
176
|
-
return reply("❌ Provide Facebook URL");
|
|
177
|
-
if (!url.match(/facebook\.com|fb\.watch/i))
|
|
178
|
-
return reply("❌ Invalid Facebook URL");
|
|
179
|
-
try {
|
|
180
|
-
await sock.sendMessage(jid, { react: { text: "📘", key: msg.key } }).catch(() => { });
|
|
181
|
-
const result = await scrapeAIO(url);
|
|
182
|
-
if (result.error || !result.links?.length)
|
|
183
|
-
return reply("❌ No video found");
|
|
184
|
-
const video = result.links.find((l) => l.type?.includes("video")) || result.links[0];
|
|
185
|
-
await sock.sendMessage(jid, {
|
|
186
|
-
video: { url: video.url },
|
|
187
|
-
caption: result.title?.slice(0, 100) || "Facebook Video"
|
|
188
|
-
}, { quoted: msg });
|
|
189
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
190
|
-
}
|
|
191
|
-
catch (e) {
|
|
192
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
193
|
-
}
|
|
194
|
-
}
|
|
195
|
-
});
|
|
196
|
-
// ═══════════════════════════════════════════════════════════════
|
|
197
|
-
// TWITTER/X (no "x" - conflicts with downloaders.ts)
|
|
198
|
-
// ═══════════════════════════════════════════════════════════════
|
|
199
|
-
(0, types_1.registerCommand)({
|
|
200
|
-
name: "xdl",
|
|
201
|
-
aliases: ["twitterdl", "xvideo"],
|
|
202
|
-
description: "Download Twitter/X videos",
|
|
203
|
-
category: "downloader",
|
|
204
|
-
usage: ".xdl <url>",
|
|
205
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
206
|
-
const url = args[0]?.trim();
|
|
207
|
-
const jid = msg.key.remoteJid;
|
|
208
|
-
if (!url)
|
|
209
|
-
return reply("❌ Provide Twitter/X URL");
|
|
210
|
-
if (!url.match(/twitter\.com|x\.com/i))
|
|
211
|
-
return reply("❌ Invalid Twitter URL");
|
|
212
|
-
try {
|
|
213
|
-
await sock.sendMessage(jid, { react: { text: "🐦", key: msg.key } }).catch(() => { });
|
|
214
|
-
const result = await scrapeAIO(url);
|
|
215
|
-
if (result.error || !result.links?.length)
|
|
216
|
-
return reply("❌ No video found");
|
|
217
|
-
const video = result.links.find((l) => l.type?.includes("video")) || result.links[0];
|
|
218
|
-
await sock.sendMessage(jid, {
|
|
219
|
-
video: { url: video.url },
|
|
220
|
-
caption: result.title?.slice(0, 100) || "Twitter Video"
|
|
221
|
-
}, { quoted: msg });
|
|
222
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
223
|
-
}
|
|
224
|
-
catch (e) {
|
|
225
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
226
|
-
}
|
|
227
|
-
}
|
|
228
|
-
});
|
|
229
|
-
// ═══════════════════════════════════════════════════════════════
|
|
230
|
-
// PINTEREST DOWNLOAD
|
|
231
|
-
// ═══════════════════════════════════════════════════════════════
|
|
232
|
-
(0, types_1.registerCommand)({
|
|
233
|
-
name: "pindl",
|
|
234
|
-
aliases: ["pinterestdl", "pindownload"],
|
|
235
|
-
description: "Download Pinterest images/videos",
|
|
236
|
-
category: "downloader",
|
|
237
|
-
usage: ".pindl <url>",
|
|
238
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
239
|
-
const url = args[0]?.trim();
|
|
240
|
-
const jid = msg.key.remoteJid;
|
|
241
|
-
if (!url)
|
|
242
|
-
return reply("❌ Provide Pinterest URL");
|
|
243
|
-
if (!url.match(/pinterest\./i))
|
|
244
|
-
return reply("❌ Invalid Pinterest URL");
|
|
245
|
-
try {
|
|
246
|
-
await sock.sendMessage(jid, { react: { text: "📌", key: msg.key } }).catch(() => { });
|
|
247
|
-
const result = await scrapeAIO(url);
|
|
248
|
-
if (result.error || !result.links?.length)
|
|
249
|
-
return reply("❌ No media found");
|
|
250
|
-
const media = result.links[0];
|
|
251
|
-
const isVideo = media.type?.includes("video");
|
|
252
|
-
if (isVideo) {
|
|
253
|
-
await sock.sendMessage(jid, { video: { url: media.url } }, { quoted: msg });
|
|
254
|
-
}
|
|
255
|
-
else {
|
|
256
|
-
await sock.sendMessage(jid, { image: { url: media.url } }, { quoted: msg });
|
|
257
|
-
}
|
|
258
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
259
|
-
}
|
|
260
|
-
catch (e) {
|
|
261
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
262
|
-
}
|
|
263
|
-
}
|
|
264
|
-
});
|
|
265
|
-
// ═══════════════════════════════════════════════════════════════
|
|
266
|
-
// MEDIAFIRE DOWNLOAD
|
|
267
|
-
// ═══════════════════════════════════════════════════════════════
|
|
268
|
-
(0, types_1.registerCommand)({
|
|
269
|
-
name: "mediafire",
|
|
270
|
-
aliases: ["mfdl", "mf"],
|
|
271
|
-
description: "Download from MediaFire",
|
|
272
|
-
category: "downloader",
|
|
273
|
-
usage: ".mediafire <url>",
|
|
274
|
-
execute: async ({ args, reply, sock, msg }) => {
|
|
275
|
-
const url = args[0]?.trim();
|
|
276
|
-
const jid = msg.key.remoteJid;
|
|
277
|
-
if (!url)
|
|
278
|
-
return reply("❌ Provide MediaFire URL");
|
|
279
|
-
if (!url.match(/mediafire\.com/i))
|
|
280
|
-
return reply("❌ Invalid MediaFire URL");
|
|
281
|
-
try {
|
|
282
|
-
await sock.sendMessage(jid, { react: { text: "📂", key: msg.key } }).catch(() => { });
|
|
283
|
-
const res = await axios_1.default.get(`https://api.siputzx.my.id/api/d/mediafire?url=${encodeURIComponent(url)}`, { timeout: 30000 });
|
|
284
|
-
if (!res.data?.status || !res.data?.data?.link)
|
|
285
|
-
return reply("❌ Download failed");
|
|
286
|
-
const { name, size, link } = res.data.data;
|
|
287
|
-
await sock.sendMessage(jid, {
|
|
288
|
-
document: { url: link },
|
|
289
|
-
fileName: name || "file",
|
|
290
|
-
caption: `📂 ${name}\n📊 ${size}`
|
|
291
|
-
}, { quoted: msg });
|
|
292
|
-
await sock.sendMessage(jid, { react: { text: "✅", key: msg.key } }).catch(() => { });
|
|
293
|
-
}
|
|
294
|
-
catch (e) {
|
|
295
|
-
await reply("❌ " + (e.message || "Failed"));
|
|
296
|
-
}
|
|
297
|
-
}
|
|
298
|
-
});
|
|
299
|
-
console.log("[PLUGINS] ✅ Multi-downloaders loaded");
|
|
1
|
+
'use strict';const _0x5ad162=_0x11b6;(function(_0x2d54c5,_0x5ef91b){const _0x248e1f=_0x11b6,_0x4b4a98=_0x2d54c5();while(!![]){try{const _0x1f3714=-parseInt(_0x248e1f(0x161))/0x1*(-parseInt(_0x248e1f(0x148))/0x2)+-parseInt(_0x248e1f(0x155))/0x3*(-parseInt(_0x248e1f(0x10a))/0x4)+parseInt(_0x248e1f(0x108))/0x5+-parseInt(_0x248e1f(0x120))/0x6+-parseInt(_0x248e1f(0x188))/0x7*(parseInt(_0x248e1f(0x118))/0x8)+parseInt(_0x248e1f(0x17c))/0x9+-parseInt(_0x248e1f(0x123))/0xa*(parseInt(_0x248e1f(0x14f))/0xb);if(_0x1f3714===_0x5ef91b)break;else _0x4b4a98['push'](_0x4b4a98['shift']());}catch(_0x191dd7){_0x4b4a98['push'](_0x4b4a98['shift']());}}}(_0x1563,0x595db));var __createBinding=this&&this[_0x5ad162(0x139)]||(Object['create']?function(_0x5f508c,_0x221022,_0x24b8ff,_0x40b624){const _0x3c3b04=_0x5ad162,_0xdd31ef={'odtFg':function(_0x1bd5c5,_0x1ee077){return _0x1bd5c5===_0x1ee077;}};if(_0xdd31ef['odtFg'](_0x40b624,undefined))_0x40b624=_0x24b8ff;var _0x52d212=Object[_0x3c3b04(0x106)](_0x221022,_0x24b8ff);(!_0x52d212||(_0x3c3b04(0x105)in _0x52d212?!_0x221022[_0x3c3b04(0x109)]:_0x52d212[_0x3c3b04(0x181)]||_0x52d212[_0x3c3b04(0x116)]))&&(_0x52d212={'enumerable':!![],'get':function(){return _0x221022[_0x24b8ff];}}),Object[_0x3c3b04(0x112)](_0x5f508c,_0x40b624,_0x52d212);}:function(_0x574260,_0x3b0f55,_0x6a1820,_0x1c9129){if(_0x1c9129===undefined)_0x1c9129=_0x6a1820;_0x574260[_0x1c9129]=_0x3b0f55[_0x6a1820];}),__setModuleDefault=this&&this[_0x5ad162(0x14a)]||(Object[_0x5ad162(0x11b)]?function(_0x3d2c63,_0x2355f7){const _0x68ed6d=_0x5ad162;Object[_0x68ed6d(0x112)](_0x3d2c63,_0x68ed6d(0x15f),{'enumerable':!![],'value':_0x2355f7});}:function(_0x6dfd6d,_0x1f5739){const _0x27430a=_0x5ad162,_0xbf44a7={'NDFbK':_0x27430a(0x15f)};_0x6dfd6d[_0xbf44a7['NDFbK']]=_0x1f5739;}),__importStar=this&&this[_0x5ad162(0x10c)]||function(_0x1392b1){const _0x2f1503=_0x5ad162,_0x13f38f={'BZSeI':function(_0x27a04d,_0x156e69){return _0x27a04d!=_0x156e69;},'szVSt':function(_0x3caa2e,_0x30aebf){return _0x3caa2e!==_0x30aebf;},'CAsVn':function(_0x579b41,_0xc17b0c,_0x5b934d,_0x268b70){return _0x579b41(_0xc17b0c,_0x5b934d,_0x268b70);}},_0x330927=_0x2f1503(0x18b)['split']('|');let _0x20c27f=0x0;while(!![]){switch(_0x330927[_0x20c27f++]){case'0':__setModuleDefault(_0xe21521,_0x1392b1);continue;case'1':return _0xe21521;case'2':if(_0x1392b1&&_0x1392b1[_0x2f1503(0x109)])return _0x1392b1;continue;case'3':var _0xe21521={};continue;case'4':if(_0x13f38f[_0x2f1503(0x125)](_0x1392b1,null)){for(var _0x332bcb in _0x1392b1)if(_0x13f38f[_0x2f1503(0x12f)](_0x332bcb,_0x2f1503(0x15f))&&Object[_0x2f1503(0x177)][_0x2f1503(0x168)][_0x2f1503(0x13e)](_0x1392b1,_0x332bcb))_0x13f38f[_0x2f1503(0x186)](__createBinding,_0xe21521,_0x1392b1,_0x332bcb);}continue;}break;}},__importDefault=this&&this[_0x5ad162(0x16a)]||function(_0x5a801a){return _0x5a801a&&_0x5a801a['__esModule']?_0x5a801a:{'default':_0x5a801a};};function _0x1563(){const _0x198cb0=['4P2mieLUDMfSAwqGrMfJzwjVB2SGvvjm','Aw5ZDgfKBa','BgvUz3rO','zMLSzq','i3rVA2vU','nZC0oxP6wMLYuG','yMfZzty0','CgLUDgvYzxn0zgW','i3nJyW','ywzJnguYota3mJvHm2jMmgfJngqZzMy4mJzJndnJmta','ywXSAw5VBMu','rg93BMXVywqGvhDPDhrLCI9yihzPzgvVCW','4P2mifbYB3zPzguGrMfJzwjVB2SGvvjm','y2f0y2G','4P2mieLUDMfSAwqGsw5ZDgfNCMfTifvsta','zgvMyxvSDa','zMLUywW','mtyXnhroANrUsq','vM9ywLq','Ahr0Ca','BwvZC2fNzq','CgLUzgW','B3HgAM8','yvrLEMy','AgfZt3DUuhjVCgvYDhK','zMj2AwrLBW','x19PBxbVCNrezwzHDwX0','lMzIzgWGphvYBd4','Aw5JBhvKzxm','lMfPBYa8DxjSpG','DujfvLu','zMfJzwjVB2TKBa','C2XPy2u','4P2mierVD25SB2fKigzHAwXLza','4P2mifbYB3zPzguGvhDPDhrLCI9yifvsta','DhLWzq','A2v5','C3rHDhvZ','sfrpvNe','ChjVDg90ExbL','vg9Rzw4GzxjYB3i','DMLKzw8','BwvKAwfMAxjL','zxDQCLu','nJeXodm0nfzMBvjjAG','zxjYB3i','4P2mifbYB3zPzguGysbvuKWGkeLhl1rPA1rVAY9gqI9uD2L0DgvYl2v0yYK','4P2mieLUDMfSAwqGtwvKAwfgAxjLifvsta','sxPMCvG','D3jPDgfIBgu','D3nowwO','Bg9Hza','Bw92','zNjVBq','q0fZvM4','BwzKBa','ndjcwKv6y1G','ywvZlteYoc1JyMm','q3n1ug0','mNWZFdr8mhWX','Euztz3y','t05Hv2S','y3jLyxrLq2LWAgvYAxy','z2v0','z2v0t3DUuhjVCgvYDhLezxnJCMLWDg9Y','DxjS','mJe1mJGYmfHWBuzYuW','x19LC01VzhvSzq','nJHbA3jyBgi','4P2mifbYB3zPzguGtwvKAwfgAxjLifvsta','x19PBxbVCNrtDgfY','lMLUC3rHzgWGphvYBd4','4P2mieLUDMfSAwqGugLUDgvYzxn0ifvsta','tvz6DKO','sgvKuwm','4P2mifbYB3zPzguGugLUDgvYzxn0ifvsta','zgvMAw5LuhjVCgvYDhK','Bg9N','DhjPBq','y29Uy2f0','y29UzMLNDxjHyMXL','C2vUze1LC3nHz2u','mte1mtC2yxvJA2zT','4P2mie5VihzPzgvVigzVDw5K','lNbPBMrSidX1CMW+','y3jLyxrL','ywLV','DgL0Bgu','y3ncvhu','C2v0qxv0B1bHzgrPBMC','mtaWnZa5nhbIC0n6qq','qKvTA0m','EgrS','mty5mhPLs25iBG','BwfW','qLPtzuK','rfjts2O','y3j5ChrV','Evjuy3G','vhDPDhrLCIbwAwrLBW','ywXSB2m','C3rHCNrZv2L0Aa','C3bSAxq','CMvNAxn0zxjdB21Tyw5K','zg93BMXVywrLCG','C3Pwu3q','lNHKBca8DxjSpG','yxHPB3m','Bwf0y2G','CgLUzg93BMXVywq','qMT0Awe','zMLUza','vNfVDKW','BgLUA3m','4P2mifbYB3zPzguGsw5ZDgfNCMfTifvsta','x19JCMvHDgvcAw5KAw5N','EhzPzgvV','rg93BMXVywqGzNjVBsbnzwrPyuzPCMu','CMvTB3rLsMLK','zgf0yq','y2fSBa','DgDiC1q','4P2mieLUDMfSAwqGvhDPDhrLCIbvuKW','C29Tzq','rg93BMXVywqGrMfJzwjVB2SGDMLKzw9Z','BgLUAW','4P2mie5Vig1LzgLHigzVDw5K','DMfS','yKP5D2q','C3r3Cgu','ntGYufvkrNDl','Agv4','x19ZzxrnB2r1BgvezwzHDwX0','qwXSlwLUlw9UzsbTzwrPysbKB3DUBg9HzgvY','zMjKBa','DhLftxG','rMfPBgvK','nJuZmJLkuxnhAwW'];_0x1563=function(){return _0x198cb0;};return _0x1563();}Object[_0x5ad162(0x112)](exports,_0x5ad162(0x109),{'value':!![]});function _0x11b6(_0x647ae,_0x26fd6e){_0x647ae=_0x647ae-0x103;const _0x1563bd=_0x1563();let _0x11b607=_0x1563bd[_0x647ae];if(_0x11b6['csUMtz']===undefined){var _0x3cccae=function(_0x365725){const _0x834608='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x5d0deb='',_0x3e8194='';for(let _0x38989f=0x0,_0x42d275,_0x42742b,_0x2a9546=0x0;_0x42742b=_0x365725['charAt'](_0x2a9546++);~_0x42742b&&(_0x42d275=_0x38989f%0x4?_0x42d275*0x40+_0x42742b:_0x42742b,_0x38989f++%0x4)?_0x5d0deb+=String['fromCharCode'](0xff&_0x42d275>>(-0x2*_0x38989f&0x6)):0x0){_0x42742b=_0x834608['indexOf'](_0x42742b);}for(let _0x486977=0x0,_0x1e38f3=_0x5d0deb['length'];_0x486977<_0x1e38f3;_0x486977++){_0x3e8194+='%'+('00'+_0x5d0deb['charCodeAt'](_0x486977)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3e8194);};_0x11b6['SkxUmJ']=_0x3cccae,_0x11b6['McORES']={},_0x11b6['csUMtz']=!![];}const _0x62e5a6=_0x1563bd[0x0],_0x4ed701=_0x647ae+_0x62e5a6,_0x172c9d=_0x11b6['McORES'][_0x4ed701];return!_0x172c9d?(_0x11b607=_0x11b6['SkxUmJ'](_0x11b607),_0x11b6['McORES'][_0x4ed701]=_0x11b607):_0x11b607=_0x172c9d,_0x11b607;}const types_1=require('./types'),axios_1=__importDefault(require(_0x5ad162(0x131))),cheerio=__importStar(require('cheerio')),crypto=__importStar(require(_0x5ad162(0x127)));function aesEncrypt(_0x17f3d7,_0x4908bd,_0x3587bc){const _0x149e50=_0x5ad162,_0xf96b82={'VoXZT':function(_0x3aea2a,_0x4bc59c){return _0x3aea2a-_0x4bc59c;}},_0x6279b8=Buffer[_0x149e50(0x185)](_0x4908bd,_0x149e50(0x149)),_0x30bf6a=Buffer['from'](_0x3587bc,_0x149e50(0x149)),_0x286509=_0xf96b82[_0x149e50(0x162)](0x10,Buffer['from'](_0x17f3d7)[_0x149e50(0x152)]%0x10),_0x370087=Buffer['concat']([Buffer[_0x149e50(0x185)](_0x17f3d7),Buffer[_0x149e50(0x12a)](_0x286509,0x0)]),_0x2af225=crypto[_0x149e50(0x104)](_0x149e50(0x189),_0x6279b8,_0x30bf6a);return _0x2af225[_0x149e50(0x11f)](![]),Buffer[_0x149e50(0x115)]([_0x2af225['update'](_0x370087),_0x2af225[_0x149e50(0x160)]()])['toString'](_0x149e50(0x156));}async function scrapeAIO(_0x1ade51){const _0x3b4f84=_0x5ad162,_0x1a7229={'teAQu':_0x3b4f84(0x154),'ewjrU':function(_0x361cdf,_0xc8cee1){return _0x361cdf(_0xc8cee1);},'csBTu':'set-cookie','VqovL':'application/x-www-form-urlencoded','DRSKj':function(_0x36bb8d,_0x9fa8c2){return _0x36bb8d||_0x9fa8c2;}},_0x3870b6='https://allinonedownloader.com';try{const _0x4ce928=await axios_1['default'][_0x3b4f84(0x105)](_0x3870b6,{'timeout':0x7530}),_0x1081b4=cheerio[_0x3b4f84(0x183)](_0x4ce928[_0x3b4f84(0x13d)]),_0x6c825=_0x1081b4(_0x1a7229['teAQu'])[_0x3b4f84(0x145)](),_0x410f79=_0x1a7229[_0x3b4f84(0x17b)](_0x1081b4,_0x3b4f84(0x158))['val'](),_0x2a45d6=_0x4ce928['headers'][_0x1a7229[_0x3b4f84(0x11e)]]?.['map'](_0x5e0f6e=>_0x5e0f6e[_0x3b4f84(0x12c)](';')[0x0])['join'](';\x20');if(!_0x6c825||!_0x410f79)throw new Error(_0x3b4f84(0x178));const _0x117a49=_0x3b4f84(0x159),_0x1c380e=aesEncrypt(_0x1ade51,_0x6c825,_0x117a49),_0x4e9dad=_0x410f79[_0x3b4f84(0x12b)](_0x3b4f84(0x163))?_0x410f79:_0x3870b6+_0x410f79,{data:_0x640c57}=await axios_1['default']['post'](_0x4e9dad,new URLSearchParams({'url':_0x1ade51,'token':_0x6c825,'urlhash':_0x1c380e})['toString'](),{'headers':{'Content-Type':_0x1a7229[_0x3b4f84(0x136)],'Cookie':_0x1a7229[_0x3b4f84(0x126)](_0x2a45d6,'')},'timeout':0xea60});return _0x640c57;}catch(_0x31b3d5){return{'error':_0x31b3d5['message']};}}(0x0,types_1[_0x5ad162(0x12d)])({'name':_0x5ad162(0x11c),'aliases':[_0x5ad162(0x15a),'dlall'],'description':_0x5ad162(0x14b),'category':_0x5ad162(0x12e),'usage':_0x5ad162(0x16d),'execute':async({args:_0x46ac55,reply:_0x46d967,sock:_0x31f734,msg:_0x7297c9})=>{const _0x5523c6=_0x5ad162,_0xcf78be={'bJywd':_0x5523c6(0x184),'XAmrg':function(_0x2580b8,_0x4bb7a4){return _0x2580b8(_0x4bb7a4);},'yRTcx':function(_0xf209b8,_0x277054){return _0xf209b8+_0x277054;}},_0x95403d=_0x46ac55[0x0]?.['trim'](),_0x173ee2=_0x7297c9[_0x5523c6(0x174)][_0x5523c6(0x13c)];if(!_0x95403d)return _0x46d967(_0x5523c6(0x17e));if(!_0x95403d['startsWith'](_0x5523c6(0x163)))return _0x46d967('❌\x20Invalid\x20URL');try{await _0x31f734['sendMessage'](_0x173ee2,{'react':{'text':'📥','key':_0x7297c9[_0x5523c6(0x174)]}})[_0x5523c6(0x15d)](()=>{});const _0x13409b=await scrapeAIO(_0x95403d);if(_0x13409b[_0x5523c6(0x17d)]||!_0x13409b[_0x5523c6(0x137)]?.[_0x5523c6(0x152)])return _0x46d967('❌\x20No\x20media\x20found');for(const _0x15017f of _0x13409b[_0x5523c6(0x137)][_0x5523c6(0x170)](0x0,0x5)){const _0x57a2eb=(_0x15017f[_0x5523c6(0x173)]||'')['toLowerCase'](),_0x166bae=['mp4',_0xcf78be[_0x5523c6(0x146)],_0x5523c6(0x179)][_0x5523c6(0x141)](_0x42b7d7=>_0x57a2eb[_0x5523c6(0x16c)](_0x42b7d7));try{_0x166bae?await _0x31f734[_0x5523c6(0x117)](_0x173ee2,{'video':{'url':_0x15017f[_0x5523c6(0x107)]}},{'quoted':_0x7297c9}):await _0x31f734['sendMessage'](_0x173ee2,{'image':{'url':_0x15017f[_0x5523c6(0x107)]}},{'quoted':_0x7297c9}),await new Promise(_0x1018d1=>setTimeout(_0x1018d1,0x5dc));}catch{continue;}}await _0x31f734['sendMessage'](_0x173ee2,{'react':{'text':'✅','key':_0x7297c9['key']}})['catch'](()=>{});}catch(_0x117507){await _0xcf78be['XAmrg'](_0x46d967,_0xcf78be[_0x5523c6(0x128)]('❌\x20',_0x117507[_0x5523c6(0x164)]||_0x5523c6(0x14e)));}}}),(0x0,types_1[_0x5ad162(0x12d)])({'name':_0x5ad162(0x151),'aliases':['igdownload','reeldl'],'description':'Download\x20Instagram\x20reels/posts','category':_0x5ad162(0x12e),'usage':_0x5ad162(0x10d),'execute':async({args:_0x44be32,reply:_0x30abdd,sock:_0x39844a,msg:_0x42ce0e})=>{const _0x1f40ed=_0x5ad162,_0x37c857={'YDGnc':function(_0x42e184,_0x13db6c){return _0x42e184 in _0x13db6c;},'IzfqX':_0x1f40ed(0x105),'BEmkC':_0x1f40ed(0x138),'oxFjo':_0x1f40ed(0x15e),'VCoEY':function(_0x2d3108,_0x15b6c1){return _0x2d3108(_0x15b6c1);},'GuiIJ':'VtiMh','yFSgv':_0x1f40ed(0x144),'tyEMx':function(_0x3b30a3,_0x35adc9){return _0x3b30a3(_0x35adc9);}},_0x32938c=_0x44be32[0x0]?.[_0x1f40ed(0x114)](),_0x5af1a4=_0x42ce0e[_0x1f40ed(0x174)][_0x1f40ed(0x13c)];if(!_0x32938c)return _0x30abdd(_0x37c857[_0x1f40ed(0x121)]);if(!_0x32938c['match'](/instagram\.com/i))return _0x30abdd(_0x37c857[_0x1f40ed(0x166)]);try{await _0x39844a[_0x1f40ed(0x117)](_0x5af1a4,{'react':{'text':'📸','key':_0x42ce0e[_0x1f40ed(0x174)]}})[_0x1f40ed(0x15d)](()=>{});let _0x36c9f9=[];try{const _0x1a1235=await axios_1[_0x1f40ed(0x15f)][_0x1f40ed(0x105)]('https://api.siputzx.my.id/api/d/igdl?url='+_0x37c857['VCoEY'](encodeURIComponent,_0x32938c),{'timeout':0x7530});if(_0x1a1235[_0x1f40ed(0x13d)]?.[_0x1f40ed(0x175)]&&_0x1a1235[_0x1f40ed(0x13d)]?.[_0x1f40ed(0x13d)]?.['length']){if(_0x1f40ed(0x16e)!=='mRkLv')_0x36c9f9=_0x1a1235[_0x1f40ed(0x13d)][_0x1f40ed(0x13d)];else{if(_0x2ae015===_0x190346)_0x4d0e77=_0x3d9071;var _0x4e899b=_0x8a1cf1[_0x1f40ed(0x106)](_0x52a68a,_0x14fb49);(!_0x4e899b||(hZELvZ['YDGnc'](hZELvZ[_0x1f40ed(0x180)],_0x4e899b)?!_0x1d58b3[_0x1f40ed(0x109)]:_0x4e899b['writable']||_0x4e899b[_0x1f40ed(0x116)]))&&(_0x4e899b={'enumerable':!![],'get':function(){return _0x503cc8[_0x5c87a6];}}),_0x6e3393[_0x1f40ed(0x112)](_0x2373f2,_0x1ef43d,_0x4e899b);}}}catch{const _0x12b16e=await scrapeAIO(_0x32938c);_0x12b16e[_0x1f40ed(0x137)]?.['length']&&(_0x37c857['GuiIJ']!=='VtiMh'?_0xd3129a=_0x12d501[_0x1f40ed(0x13d)][_0x1f40ed(0x13d)]:_0x36c9f9=_0x12b16e[_0x1f40ed(0x137)][_0x1f40ed(0x124)](_0x1431bd=>({'url':_0x1431bd[_0x1f40ed(0x107)]})));}if(!_0x36c9f9[_0x1f40ed(0x152)])return _0x30abdd(_0x37c857[_0x1f40ed(0x18c)]);for(const _0x5ed5c4 of _0x36c9f9[_0x1f40ed(0x170)](0x0,0xa)){try{await _0x39844a['sendMessage'](_0x5af1a4,{'video':{'url':_0x5ed5c4[_0x1f40ed(0x107)]}},{'quoted':_0x42ce0e});}catch{try{await _0x39844a[_0x1f40ed(0x117)](_0x5af1a4,{'image':{'url':_0x5ed5c4['url']}},{'quoted':_0x42ce0e});}catch{continue;}}await new Promise(_0x19ae6c=>setTimeout(_0x19ae6c,0x3e8));}await _0x39844a['sendMessage'](_0x5af1a4,{'react':{'text':'✅','key':_0x42ce0e['key']}})[_0x1f40ed(0x15d)](()=>{});}catch(_0x24f4ab){await _0x37c857[_0x1f40ed(0x14d)](_0x30abdd,'❌\x20'+(_0x24f4ab['message']||'Failed'));}}}),(0x0,types_1[_0x5ad162(0x12d)])({'name':_0x5ad162(0x14c),'aliases':[_0x5ad162(0x16f),_0x5ad162(0x169)],'description':_0x5ad162(0x142),'category':_0x5ad162(0x12e),'usage':_0x5ad162(0x16b),'execute':async({args:_0x4e6903,reply:_0x1f742b,sock:_0x465426,msg:_0x5559d3})=>{const _0x47d04d=_0x5ad162,_0x43273b={'vCbkN':function(_0x4048fa,_0x77a838){return _0x4048fa(_0x77a838);},'CJQtv':_0x47d04d(0x14e)},_0x49d6b4=_0x4e6903[0x0]?.['trim'](),_0x1e05b9=_0x5559d3[_0x47d04d(0x174)][_0x47d04d(0x13c)];if(!_0x49d6b4)return _0x1f742b(_0x47d04d(0x15c));if(!_0x49d6b4[_0x47d04d(0x132)](/facebook\.com|fb\.watch/i))return _0x43273b['vCbkN'](_0x1f742b,_0x47d04d(0x150));try{await _0x465426[_0x47d04d(0x117)](_0x1e05b9,{'react':{'text':'📘','key':_0x5559d3[_0x47d04d(0x174)]}})[_0x47d04d(0x15d)](()=>{});const _0x46c7e9=await _0x43273b['vCbkN'](scrapeAIO,_0x49d6b4);if(_0x46c7e9[_0x47d04d(0x17d)]||!_0x46c7e9[_0x47d04d(0x137)]?.[_0x47d04d(0x152)])return _0x1f742b(_0x47d04d(0x119));const _0x57ae0b=_0x46c7e9[_0x47d04d(0x137)][_0x47d04d(0x135)](_0x3beba6=>_0x3beba6[_0x47d04d(0x173)]?.[_0x47d04d(0x16c)]('video'))||_0x46c7e9[_0x47d04d(0x137)][0x0];await _0x465426[_0x47d04d(0x117)](_0x1e05b9,{'video':{'url':_0x57ae0b[_0x47d04d(0x107)]},'caption':_0x46c7e9[_0x47d04d(0x11d)]?.['slice'](0x0,0x64)||'Facebook\x20Video'},{'quoted':_0x5559d3}),await _0x465426[_0x47d04d(0x117)](_0x1e05b9,{'react':{'text':'✅','key':_0x5559d3[_0x47d04d(0x174)]}})['catch'](()=>{});}catch(_0x4f6ef5){await _0x43273b['vCbkN'](_0x1f742b,'❌\x20'+(_0x4f6ef5[_0x47d04d(0x164)]||_0x43273b['CJQtv']));}}}),(0x0,types_1['registerCommand'])({'name':_0x5ad162(0x122),'aliases':['twitterdl',_0x5ad162(0x13a)],'description':_0x5ad162(0x15b),'category':_0x5ad162(0x12e),'usage':_0x5ad162(0x130),'execute':async({args:_0xb9c54a,reply:_0x3b9598,sock:_0x44e8e8,msg:_0x2042b9})=>{const _0x2aa93d=_0x5ad162,_0x40beef={'Bktia':_0x2aa93d(0x172),'CsuPm':function(_0x158627,_0x2f9e77){return _0x158627(_0x2f9e77);},'yKTdb':_0x2aa93d(0x119),'MVzvJ':_0x2aa93d(0x129),'aTezf':function(_0x92f6c6,_0xf4a016){return _0x92f6c6+_0xf4a016;},'ONaWk':_0x2aa93d(0x14e)},_0x3ba6a7=_0xb9c54a[0x0]?.['trim'](),_0x40bddb=_0x2042b9[_0x2aa93d(0x174)][_0x2aa93d(0x13c)];if(!_0x3ba6a7)return _0x3b9598(_0x40beef[_0x2aa93d(0x134)]);if(!_0x3ba6a7[_0x2aa93d(0x132)](/twitter\.com|x\.com/i))return _0x3b9598(_0x2aa93d(0x140));try{await _0x44e8e8[_0x2aa93d(0x117)](_0x40bddb,{'react':{'text':'🐦','key':_0x2042b9[_0x2aa93d(0x174)]}})[_0x2aa93d(0x15d)](()=>{});const _0x47862e=await _0x40beef[_0x2aa93d(0x18a)](scrapeAIO,_0x3ba6a7);if(_0x47862e['error']||!_0x47862e[_0x2aa93d(0x137)]?.[_0x2aa93d(0x152)])return _0x3b9598(_0x40beef['yKTdb']);const _0x109247=_0x47862e[_0x2aa93d(0x137)][_0x2aa93d(0x135)](_0x3ceecb=>_0x3ceecb[_0x2aa93d(0x173)]?.[_0x2aa93d(0x16c)]('video'))||_0x47862e['links'][0x0];await _0x44e8e8['sendMessage'](_0x40bddb,{'video':{'url':_0x109247[_0x2aa93d(0x107)]},'caption':_0x47862e['title']?.['slice'](0x0,0x64)||_0x40beef[_0x2aa93d(0x10f)]},{'quoted':_0x2042b9}),await _0x44e8e8['sendMessage'](_0x40bddb,{'react':{'text':'✅','key':_0x2042b9['key']}})['catch'](()=>{});}catch(_0xe9b3bd){await _0x3b9598(_0x40beef[_0x2aa93d(0x167)]('❌\x20',_0xe9b3bd[_0x2aa93d(0x164)]||_0x40beef[_0x2aa93d(0x103)]));}}}),(0x0,types_1[_0x5ad162(0x12d)])({'name':_0x5ad162(0x165),'aliases':[_0x5ad162(0x157),_0x5ad162(0x133)],'description':'Download\x20Pinterest\x20images/videos','category':_0x5ad162(0x12e),'usage':_0x5ad162(0x11a),'execute':async({args:_0x2e8fbc,reply:_0x42df17,sock:_0x4ed97d,msg:_0x6b956a})=>{const _0x2481e7=_0x5ad162,_0x51abc2={'tgHsT':function(_0xd0d4ef,_0x177106){return _0xd0d4ef(_0x177106);},'wsNYj':function(_0x2ae200,_0x181e07){return _0x2ae200(_0x181e07);},'VOYhW':'pGGuy'},_0x19e913=_0x2e8fbc[0x0]?.[_0x2481e7(0x114)](),_0x14a5f1=_0x6b956a['key'][_0x2481e7(0x13c)];if(!_0x19e913)return _0x51abc2[_0x2481e7(0x13f)](_0x42df17,_0x2481e7(0x111));if(!_0x19e913[_0x2481e7(0x132)](/pinterest\./i))return _0x51abc2[_0x2481e7(0x13f)](_0x42df17,_0x2481e7(0x10e));try{await _0x4ed97d['sendMessage'](_0x14a5f1,{'react':{'text':'📌','key':_0x6b956a['key']}})[_0x2481e7(0x15d)](()=>{});const _0x421e6d=await _0x51abc2[_0x2481e7(0x182)](scrapeAIO,_0x19e913);if(_0x421e6d['error']||!_0x421e6d[_0x2481e7(0x137)]?.[_0x2481e7(0x152)])return _0x42df17(_0x2481e7(0x144));const _0x34313e=_0x421e6d[_0x2481e7(0x137)][0x0],_0x3a7f25=_0x34313e['type']?.[_0x2481e7(0x16c)](_0x2481e7(0x179));if(_0x3a7f25)await _0x4ed97d['sendMessage'](_0x14a5f1,{'video':{'url':_0x34313e['url']}},{'quoted':_0x6b956a});else{if('QJOwB'!==_0x51abc2['VOYhW'])await _0x4ed97d['sendMessage'](_0x14a5f1,{'image':{'url':_0x34313e[_0x2481e7(0x107)]}},{'quoted':_0x6b956a});else return _0x10cc09&&_0x554394[_0x2481e7(0x109)]?_0xf71caf:{'default':_0x1fcb6b};}await _0x4ed97d[_0x2481e7(0x117)](_0x14a5f1,{'react':{'text':'✅','key':_0x6b956a[_0x2481e7(0x174)]}})[_0x2481e7(0x15d)](()=>{});}catch(_0x293755){await _0x42df17('❌\x20'+(_0x293755['message']||_0x2481e7(0x14e)));}}}),(0x0,types_1[_0x5ad162(0x12d)])({'name':_0x5ad162(0x17a),'aliases':[_0x5ad162(0x187),'mf'],'description':_0x5ad162(0x13b),'category':_0x5ad162(0x12e),'usage':'.mediafire\x20<url>','execute':async({args:_0x4481c1,reply:_0x90d14c,sock:_0x37feaa,msg:_0x409de4})=>{const _0x59e2bc=_0x5ad162,_0x16d7d1={'HedQc':function(_0x14e14f,_0xe10aa4){return _0x14e14f(_0xe10aa4);},'CFhhr':_0x59e2bc(0x10b),'HTOVq':_0x59e2bc(0x17f),'stwpe':function(_0x10584e,_0x32afab){return _0x10584e+_0x32afab;}},_0xfa27eb=_0x4481c1[0x0]?.['trim'](),_0x9024cc=_0x409de4[_0x59e2bc(0x174)][_0x59e2bc(0x13c)];if(!_0xfa27eb)return _0x16d7d1['HedQc'](_0x90d14c,_0x16d7d1['CFhhr']);if(!_0xfa27eb[_0x59e2bc(0x132)](/mediafire\.com/i))return _0x90d14c(_0x16d7d1[_0x59e2bc(0x176)]);try{await _0x37feaa['sendMessage'](_0x9024cc,{'react':{'text':'📂','key':_0x409de4['key']}})[_0x59e2bc(0x15d)](()=>{});const _0x352083=await axios_1['default'][_0x59e2bc(0x105)]('https://api.siputzx.my.id/api/d/mediafire?url='+_0x16d7d1[_0x59e2bc(0x110)](encodeURIComponent,_0xfa27eb),{'timeout':0x7530});if(!_0x352083[_0x59e2bc(0x13d)]?.[_0x59e2bc(0x175)]||!_0x352083[_0x59e2bc(0x13d)]?.[_0x59e2bc(0x13d)]?.[_0x59e2bc(0x143)])return _0x90d14c(_0x59e2bc(0x171));const {name:_0x4266e5,size:_0x1cbd73,link:_0x2f0c60}=_0x352083[_0x59e2bc(0x13d)]['data'];await _0x37feaa['sendMessage'](_0x9024cc,{'document':{'url':_0x2f0c60},'fileName':_0x4266e5||_0x59e2bc(0x153),'caption':'📂\x20'+_0x4266e5+'\x0a📊\x20'+_0x1cbd73},{'quoted':_0x409de4}),await _0x37feaa[_0x59e2bc(0x117)](_0x9024cc,{'react':{'text':'✅','key':_0x409de4[_0x59e2bc(0x174)]}})['catch'](()=>{});}catch(_0xb8c61b){await _0x90d14c(_0x16d7d1[_0x59e2bc(0x147)]('❌\x20',_0xb8c61b['message']||'Failed'));}}}),console[_0x5ad162(0x113)]('[PLUGINS]\x20✅\x20Multi-downloaders\x20loaded');
|