diff --git a/plugins/SUBZERO.js b/plugins/SUBZERO.js new file mode 100644 index 0000000000000000000000000000000000000000..a839fac65a267f4910ce1aded9367fd393e25600 --- /dev/null +++ b/plugins/SUBZERO.js @@ -0,0 +1,16 @@ +/* + +$$$$$$\ $$\ +$$ __$$\ $$ | +$$ / \__|$$\ $$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\ +\$$$$$$\ $$ | $$ |$$ __$$\ \____$$ |$$ __$$\ $$ __$$\ $$ __$$\ + \____$$\ $$ | $$ |$$ | $$ | $$$$ _/ $$$$$$$$ |$$ | \__|$$ / $$ | +$$\ $$ |$$ | $$ |$$ | $$ | $$ _/ $$ ____|$$ | $$ | $$ | +\$$$$$$ |\$$$$$$ |$$$$$$$ |$$$$$$$$\ \$$$$$$$\ $$ | \$$$$$$ | + \______/ \______/ \_______/ \________| \_______|\__| \______/ + +Project Name : SubZero MD +Creator : Darrell Mucheri ( Mr Frank OFC ) +Repo : https//github.com/mrfrank-ofc/SUBZERO-MD +Support : wa.me/18062212660 +*/ diff --git a/plugins/ai-chatgpt.js b/plugins/ai-chatgpt.js new file mode 100644 index 0000000000000000000000000000000000000000..da9e824240b67b2deb20dd36b3028599e8734090 --- /dev/null +++ b/plugins/ai-chatgpt.js @@ -0,0 +1,23 @@ + + +const config = require('../config') +const {cmd , commands} = require('../command') +const { fetchJson } = require('../lib/functions') + +cmd({ + pattern: "ai", + alias: ["gpt","subzero"], + react: "🧠", + desc: "ai chat.", + category: "main", + filename: __filename +}, +async(conn, mek, m,{from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { +try{ +let data = await fetchJson(`https://chatgptforprabath-md.vercel.app/api/gptv1?q=${q}`) +return reply(`${data.data}`) +}catch(e){ +console.log(e) +reply(`${e}`) +} +}) diff --git a/plugins/convert-logo.js b/plugins/convert-logo.js new file mode 100644 index 0000000000000000000000000000000000000000..c8eae4c9979ba7607bd98f1285d01864e1bec097 --- /dev/null +++ b/plugins/convert-logo.js @@ -0,0 +1,299 @@ + +const { + cmd, + commands +} = require("../command"); +const { + fetchJson +} = require("../lib/functions"); +cmd({ + 'pattern': "logo", + 'desc': "Create logos", + 'react': '🎁', + 'category': "other", + 'filename': __filename +}, async (_0x218f5d, _0x28282a, _0x208f73, { + from: _0x1aa1bb, + quoted: _0x15b4ef, + body: _0x5a3cdd, + isCmd: _0x5bae58, + command: _0x1ef69b, + args: _0x222de9, + q: _0x34a07c, + isGroup: _0x609391, + sender: _0x3113d3, + senderNumber: _0x142d20, + botNumber2: _0x2c8f00, + botNumber: _0x1c2333, + pushname: _0x86c189, + isMe: _0xb6eb8d, + isOwner: _0x1c4b84, + groupMetadata: _0x15d813, + groupName: _0xc3c8d4, + participants: _0xc36769, + groupAdmins: _0x16780c, + isBotAdmins: _0x50a1e5, + isAdmins: _0xa22e1c, + reply: _0x18078b +}) => { + try { + if (!_0x222de9[0x0]) { + return _0x18078b("*_Please give me a text. Eg *.logo Mr Frank*_*"); + } + let _0xffdb95 = "*🌟 SUBZERO-MD LOGO MAKER 🌟*\n\n╼╼╼╼╼╼╼╼╼╼╼╼╼╼╼╼╼➻\n*◈ᴛᴇxᴛ :* " + _0x34a07c + "\n╼╼╼╼╼╼╼╼╼╼╼╼╼╼╼╼╼➻\n\n*🔢 Rᴇᴘʟʏ Tʜᴇ Nᴜᴍʙᴇʀ Yᴏᴜ Wᴀɴᴛ ➠*\n\n 1 ➠ Bʟᴀᴄᴋ Pɪɴᴋ\n 2 ➠ Bʟᴀᴄᴋ Pɪɴᴋ 2\n 3 ➠ Sɪʟᴠᴇʀ 3ᴅ\n 4 ➠ Nᴀʀᴜᴛᴏ\n 5 ➠ Dɪɢɪᴛᴀʟ Gʟɪᴛᴄʜ\n 6 ➠ Pɪxᴇʟ Gʟɪᴛᴄʜ\n 7 ➠ Cᴏᴍɪᴄ Sᴛʏʟᴇ\n 8 ➠ Nᴇᴏɴ Lɪɢʜᴛ\n 9 ➠ Fʀᴇᴇ Bᴇᴀʀ\n10 ➠ Dᴇᴠɪʟ Wɪɴɢꜱ\n11 ➠ Sᴀᴅ Gɪʀʟ\n12 ➠ Lᴇᴀᴠᴇꜱ\n13 ➠ Dʀᴀɢᴏɴ Bᴀʟʟ\n14 ➠ Hᴀɴᴅ Wʀɪᴛᴛᴇɴ\n15 ➠ Nᴇᴏɴ Lɪɢʜᴛ \n16 ➠ 3ᴅ Cᴀꜱᴛʟᴇ Pᴏᴘ\n17 ➠ Fʀᴏᴢᴇɴ ᴄʀɪꜱᴛᴍᴀꜱꜱ\n18 ➠ 3ᴅ Fᴏɪʟ Bᴀʟʟᴏɴꜱ\n19 ➠ 3ᴅ Cᴏʟᴏᴜʀꜰᴜʟ Pᴀɪɴᴛ\n20 ➠ Aᴍᴇʀɪᴄᴀɴ Fʟᴀɢ 3ᴅ\n\n> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡"; + const _0x39a514 = { + 'newsletterJid': '120363304325601080@newsletter', + 'newsletterName': "❄️ 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 ❄️", + 'serverMessageId': 0x3e7 + }; + const _0x5a943d = { + 'mentionedJid': [_0x208f73.sender], + 'forwardingScore': 0x3e7, + 'isForwarded': true, + 'forwardedNewsletterMessageInfo': _0x39a514 + }; + const _0x4b6716 = { + 'text': _0xffdb95, + 'contextInfo': _0x5a943d + }; + let _0x581ab0 = await _0x218f5d.sendMessage(_0x1aa1bb, _0x4b6716, { + 'quoted': _0x28282a + }); + _0x218f5d.ev.on('messages.upsert', async _0x2e0858 => { + const _0x2a2572 = _0x2e0858.messages[0x0]; + if (!_0x2a2572.message || !_0x2a2572.message.extendedTextMessage) { + return; + } + const _0x45b81e = _0x2a2572.message.extendedTextMessage.text.trim(); + if (_0x2a2572.message.extendedTextMessage.contextInfo && _0x2a2572.message.extendedTextMessage.contextInfo.stanzaId === _0x581ab0.key.id) { + switch (_0x45b81e) { + case '1': + let _0x4ec74c = await fetchJson('https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-a-blackpink-style-logo-with-members-signatures-810.html&name=' + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x4ec74c.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '2': + let _0x46d2d2 = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/online-blackpink-style-logo-maker-effect-711.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x46d2d2.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '3': + let _0x3a041b = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-glossy-silver-3d-text-effect-online-802.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x3a041b.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '4': + let _0x33ee0f = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/naruto-shippuden-logo-style-text-effect-online-808.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x33ee0f.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '5': + let _0x34bc40 = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-digital-glitch-text-effects-online-767.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x34bc40.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '6': + let _0x2114a3 = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-pixel-glitch-text-effect-online-769.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x2114a3.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '7': + let _0x1bb969 = await fetchJson('https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-online-3d-comic-style-text-effects-817.html&name=' + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x1bb969.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '8': + let _0x338421 = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-colorful-neon-light-text-effects-online-797.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x338421.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '9': + let _0x893904 = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/free-bear-logo-maker-online-673.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x893904.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '10': + let _0x4ba5fb = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/neon-devil-wings-text-effect-online-683.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x4ba5fb.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '11': + let _0x598ffc = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/write-text-on-wet-glass-online-589.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x598ffc.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '12': + let _0x26ef9c = await fetchJson('https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-typography-status-online-with-impressive-leaves-357.html&name=' + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x26ef9c.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '13': + let _0x51ac7d = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-dragon-ball-style-text-effects-online-809.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x51ac7d.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '14': + let _0x5e6aec = await fetchJson('https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/handwritten-text-on-foggy-glass-online-680.html&name=' + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x5e6aec.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '15': + let _0xcdf22e = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-colorful-neon-light-text-effects-online-797.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0xcdf22e.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '16': + let _0x4feb5e = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-a-3d-castle-pop-out-mobile-photo-effect-786.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x4feb5e.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '17': + let _0xf4046a = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-a-frozen-christmas-text-effect-online-792.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0xf4046a.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '18': + let _0x144b2c = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/beautiful-3d-foil-balloon-effects-for-holidays-and-birthday-803.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x144b2c.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '19': + let _0x31d0fe = await fetchJson('https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/create-3d-colorful-paint-text-effect-online-801.html&name=' + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x31d0fe.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + case '20': + let _0x23294a = await fetchJson("https://api-pink-venom.vercel.app/api/logo?url=https://en.ephoto360.com/free-online-american-flag-3d-text-effect-generator-725.html&name=" + _0x34a07c); + await _0x218f5d.sendMessage(_0x1aa1bb, { + 'image': { + 'url': '' + _0x23294a.result.download_url + }, + 'caption': "> © Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ⚡" + }, { + 'quoted': _0x28282a + }); + break; + default: + _0x18078b("*_Invalid number.Please reply a valid number._*"); + } + } + }); + } catch (_0x22b33e) { + console.log(_0x22b33e); + _0x18078b('' + _0x22b33e); + } +}); \ No newline at end of file diff --git a/plugins/convert-sticker.js b/plugins/convert-sticker.js new file mode 100644 index 0000000000000000000000000000000000000000..7908b82e868609e432d39f9cbe3be490962aed8c --- /dev/null +++ b/plugins/convert-sticker.js @@ -0,0 +1,89 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + + + +const config = require('../config'); +const { Sticker, StickerTypes } = require('wa-sticker-formatter'); +const { cmd } = require('../command'); +const { getRandom } = require('../lib/functions'); + +var imgmsg = ''; +if (config.LANG === 'SI') imgmsg = 'ඡායාරූපයකට mention දෙන්න!'; +else imgmsg = 'ʀᴇᴘʟʏ ᴛᴏ ᴀ ᴘʜᴏᴛᴏ ғᴏʀ sᴛɪᴄᴋᴇʀ!'; + +var descg = ''; +if (config.LANG === 'SI') descg = 'එය ඔබගේ mention දුන් ඡායාරූපය ස්ටිකර් බවට පරිවර්තනය කරයි.'; +else descg = 'ɪᴛ ᴄᴏɴᴠᴇʀᴛs ʏᴏᴜʀ ʀᴇᴘʟɪᴇᴅ ᴘʜᴏᴛᴏ ᴛᴏ sᴛɪᴄᴋᴇʀ.'; + +cmd({ + pattern: 'sticker', + react: '🤹‍♀️', + alias: ['s', 'stic'], + desc: descg, + category: 'convert', + use: '.sticker ', + filename: __filename +}, async (conn, mek, m, { from, reply, isCmd, command, args, q, isGroup, pushname }) => { + try { + const isQuotedImage = m.quoted && (m.quoted.type === 'imageMessage' || (m.quoted.type === 'viewOnceMessage' && m.quoted.msg.type === 'imageMessage')); + const isQuotedSticker = m.quoted && m.quoted.type === 'stickerMessage'; + + if ((m.type === 'imageMessage') || isQuotedImage) { + const nameJpg = getRandom('.jpg'); + const imageBuffer = isQuotedImage ? await m.quoted.download() : await m.download(); + await require('fs').promises.writeFile(nameJpg, imageBuffer); + + let sticker = new Sticker(nameJpg, { + pack: pushname, // The pack name + author: '', // The author name + type: q.includes('--crop') || q.includes('-c') ? StickerTypes.CROPPED : StickerTypes.FULL, + categories: ['🤩', '🎉'], // The sticker category + id: '12345', // The sticker id + quality: 75, // The quality of the output file + background: 'transparent', // The sticker background color (only for full stickers) + }); + + const buffer = await sticker.toBuffer(); + return conn.sendMessage(from, { sticker: buffer }, { quoted: mek }); + } else if (isQuotedSticker) { + const nameWebp = getRandom('.webp'); + const stickerBuffer = await m.quoted.download(); + await require('fs').promises.writeFile(nameWebp, stickerBuffer); + + let sticker = new Sticker(nameWebp, { + pack: '❄️SUBZERO - MD❄️', // The pack name + author: '『 Mʀ Fʀᴀɴᴋ Oғᴄ』', // The author name + type: q.includes('--crop') || q.includes('-c') ? StickerTypes.CROPPED : StickerTypes.FULL, + categories: ['🤩', '🎉'], // The sticker category + id: '12345', // The sticker id + quality: 75, // The quality of the output file + background: 'transparent', // The sticker background color (only for full stickers) + }); + + const buffer = await sticker.toBuffer(); + return conn.sendMessage(from, { sticker: buffer }, { quoted: mek }); + } else { + return await reply(imgmsg); + } + } catch (e) { + reply('Error !!'); + console.error(e); + } +}); diff --git a/plugins/convert-tourl.js b/plugins/convert-tourl.js new file mode 100644 index 0000000000000000000000000000000000000000..a571fb304e65b593491d832c14b9afaf4051fd77 --- /dev/null +++ b/plugins/convert-tourl.js @@ -0,0 +1,90 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + + + +const axios = require("axios"); +const FormData = require('form-data'); +const fs = require('fs'); +const os = require('os'); +const path = require("path"); +const { + cmd, + commands +} = require("../command"); +cmd({ + 'pattern': "tourl", + 'alias': ["imgtourl", "img2url", "url"], + 'react': '🖇', + 'desc': "convert.", + 'category': 'anime', + 'use': ".maid", + 'filename': __filename +}, async (_0x5aa2a5, _0x3e4d2c, _0x4572c0, { + from: _0x3dbf21, + mnu: _0x5b9835, + quoted: _0x2aa830, + body: _0x102661, + isCmd: _0x458182, + command: _0x17afd2, + args: _0x584452, + q: _0x1e8526, + isGroup: _0x2ca4de, + sender: _0x59f221, + senderNumber: _0x4307ab, + botNumber2: _0x17667f, + botNumber: _0x359bfc, + pushname: _0x2b3b71, + isMe: _0xed0daf, + isOwner: _0x5d3e22, + groupMetadata: _0x169324, + groupName: _0x432187, + participants: _0x4c725d, + groupAdmins: _0x276007, + isBotAdmins: _0x13439b, + isAdmins: _0x1d0a9d, + reply: _0x2cab4a +}) => { + try { + let _0x4f43a6 = _0x4572c0.quoted ? _0x4572c0.quoted : _0x4572c0; + let _0x2b3347 = (_0x4f43a6.msg || _0x4f43a6).mimetype || ''; + if (!_0x2b3347) { + throw "_`🌻 Reply To image`_"; + } + let _0x4fb74b = await _0x4f43a6.download(); + let _0x45ad97 = path.join(os.tmpdir(), 'mrfrankofc');//ManulOfcX + fs.writeFileSync(_0x45ad97, _0x4fb74b); + let _0x807e20 = new FormData(); + _0x807e20.append("image", fs.createReadStream(_0x45ad97)); + let _0xf67b93 = await axios.post("https://api.imgbb.com/1/upload?key=06d00f0e4520243a32b58138765a2ecc", _0x807e20, { + 'headers': { + ..._0x807e20.getHeaders() + } + }); + if (!_0xf67b93.data || !_0xf67b93.data.data || !_0xf67b93.data.data.url) { + throw "❌ Error al subir el archivo"; + } + let _0x56f6ae = _0xf67b93.data.data.url; + fs.unlinkSync(_0x45ad97); + _0x4572c0.reply("*SUBZERO-MD IMG URL 📸*\n " + _0x4fb74b.length + " Byte(s)\n *URL-IMG* 🖇️ " + _0x56f6ae + "\n\n> *© ᴜᴘʟᴏᴀᴅᴇᴅ ʙʏ sᴜʙᴢᴇʀᴏ ᴍᴅ❄️*"); + } catch (_0x141b19) { + _0x2cab4a('' + _0x141b19); + console.log(_0x141b19); + } +}); \ No newline at end of file diff --git a/plugins/dl-gitclone.js b/plugins/dl-gitclone.js new file mode 100644 index 0000000000000000000000000000000000000000..bfd73d3324d4b96cf4bc4f98af42ac7b29ee9c7b --- /dev/null +++ b/plugins/dl-gitclone.js @@ -0,0 +1 @@ +const _0x23b038=_0x4f2a;function _0x18d8(){const _0x532efd=['sender','⚠️\x20Invalid\x20GitHub\x20link.','720541YgbHfW','HEAD','*📥\x20DOWNLOADING\x20REPOSITORY...*\x0a\x0a*REPOSITORY:*\x20','error','13LNtOyD','log','643820eECHLf','Download\x20GitHub\x20repository\x20as\x20a\x20zip\x20file.','application/zip','sendMessage','4644xtYwSf','Where\x20is\x20the\x20GitHub\x20link?\x0a\x0aExample:\x0a.gitclone\x20https://github.com/mrfrank-ofc/SUBZERO-MD','❌\x20Failed\x20to\x20download\x20the\x20repository.\x20Please\x20try\x20again\x20later.','569046mxkRSl','❄️\x20sᴜʙᴢᴇʀᴏ\x20ᴍᴅ\x20❄️','8gYEyik','Repository\x20not\x20found.','11ctcJvu','\x0a\x0a>\x20*©\x20Gᴇɴᴇʀᴀᴛᴇᴅ\x20Bʏ\x20SᴜʙZᴇʀᴏ*','4788iiVDQh','content-disposition','.zip','headers','match','gitclone','downloader','18183096IQCdlb','\x0a*FILENAME:*\x20','Invalid\x20GitHub\x20URL.','17804OMaTnn','../command','120363304325601080@newsletter','1577214KBhKMf','705ojdYrl','6ZCBbbd','git','test','get'];_0x18d8=function(){return _0x532efd;};return _0x18d8();}(function(_0x2dc202,_0x2189f0){const _0x261e95=_0x4f2a,_0x595a37=_0x2dc202();while(!![]){try{const _0x117e42=-parseInt(_0x261e95(0xc3))/0x1+-parseInt(_0x261e95(0xd0))/0x2*(parseInt(_0x261e95(0xbd))/0x3)+parseInt(_0x261e95(0xb8))/0x4*(-parseInt(_0x261e95(0xbc))/0x5)+-parseInt(_0x261e95(0xcd))/0x6*(-parseInt(_0x261e95(0xd6))/0x7)+-parseInt(_0x261e95(0xd2))/0x8*(-parseInt(_0x261e95(0xbb))/0x9)+parseInt(_0x261e95(0xc9))/0xa*(parseInt(_0x261e95(0xd4))/0xb)+parseInt(_0x261e95(0xdd))/0xc*(parseInt(_0x261e95(0xc7))/0xd);if(_0x117e42===_0x2189f0)break;else _0x595a37['push'](_0x595a37['shift']());}catch(_0x1c3951){_0x595a37['push'](_0x595a37['shift']());}}}(_0x18d8,0x59a14));function hi(){const _0x2e7058=_0x4f2a;console[_0x2e7058(0xc8)]('Hello\x20World!');}function _0x4f2a(_0x9bb215,_0x31d011){const _0x18d8c3=_0x18d8();return _0x4f2a=function(_0x4f2a29,_0x706d69){_0x4f2a29=_0x4f2a29-0xb6;let _0x59b050=_0x18d8c3[_0x4f2a29];return _0x59b050;},_0x4f2a(_0x9bb215,_0x31d011);}hi();const {cmd}=require(_0x23b038(0xb9)),fetch=require('node-fetch');cmd({'pattern':_0x23b038(0xdb),'alias':[_0x23b038(0xbe)],'desc':_0x23b038(0xca),'react':'📦','category':_0x23b038(0xdc),'filename':__filename},async(_0x49ffeb,_0x5cee91,_0x319d74,{from:_0x7d39c8,quoted:_0x2ffc7b,args:_0x30dbe6,reply:_0x39beb1})=>{const _0x540dd1=_0x23b038;if(!_0x30dbe6[0x0])return _0x39beb1(_0x540dd1(0xce));if(!/^(https:\/\/)?github\.com\/.+/[_0x540dd1(0xbf)](_0x30dbe6[0x0]))return _0x39beb1(_0x540dd1(0xc2));try{let _0x860bec=/github\.com\/([^\/]+)\/([^\/]+)(?:\.git)?/i,[_0x41dc06,_0x4d66a1,_0x782acb]=_0x30dbe6[0x0][_0x540dd1(0xda)](_0x860bec)||[];if(!_0x4d66a1||!_0x782acb)throw new Error(_0x540dd1(0xb7));let _0xbc5f52='https://api.github.com/repos/'+_0x4d66a1+'/'+_0x782acb+'/zipball',_0x1e0964=await fetch(_0xbc5f52,{'method':_0x540dd1(0xc4)});if(!_0x1e0964['ok'])throw new Error(_0x540dd1(0xd3));let _0x14b4bb=_0x1e0964[_0x540dd1(0xd9)][_0x540dd1(0xc0)](_0x540dd1(0xd7)),_0x17b642=_0x14b4bb?_0x14b4bb[_0x540dd1(0xda)](/filename=(.*)/)[0x1]:_0x782acb+_0x540dd1(0xd8);_0x39beb1(_0x540dd1(0xc5)+_0x4d66a1+'/'+_0x782acb+_0x540dd1(0xb6)+_0x17b642+_0x540dd1(0xd5)),await _0x49ffeb[_0x540dd1(0xcc)](_0x7d39c8,{'document':{'url':_0xbc5f52},'fileName':_0x17b642+'.zip','mimetype':_0x540dd1(0xcb),'contextInfo':{'mentionedJid':[_0x5cee91[_0x540dd1(0xc1)]],'forwardingScore':0x3e7,'isForwarded':!![],'forwardedNewsletterMessageInfo':{'newsletterJid':_0x540dd1(0xba),'newsletterName':_0x540dd1(0xd1),'serverMessageId':0x8f}}},{'quoted':_0x5cee91});}catch(_0x26158d){console[_0x540dd1(0xc6)](_0x26158d),_0x39beb1(_0x540dd1(0xcf));}}); \ No newline at end of file diff --git a/plugins/dl-movie.js b/plugins/dl-movie.js new file mode 100644 index 0000000000000000000000000000000000000000..f831cd70283b5532f75aed53cb7ca8609f282014 --- /dev/null +++ b/plugins/dl-movie.js @@ -0,0 +1,59 @@ +const axios = require('axios'); +const { cmd } = require('../command'); +const config = require('../config'); // Ensure your API key is in config + +cmd({ + pattern: "movie", + desc: "Fetch detailed information about a movie.", + category: "utility", + react: "🎬", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const movieName = args.join(' '); + if (!movieName) { + return reply("📽️ Please provide the name of the movie."); + } + + const apiUrl = `http://www.omdbapi.com/?t=${encodeURIComponent(movieName)}&apikey=${config.OMDB_API_KEY}`; + const response = await axios.get(apiUrl); + + const data = response.data; + if (data.Response === "False") { + return reply("🚫 Movie not found."); + } + + const movieInfo = ` +🎬 *Movie Information* 🎬 + +🎥 *Title:* ${data.Title} +📅 *Year:* ${data.Year} +🌟 *Rated:* ${data.Rated} +📆 *Released:* ${data.Released} +⏳ *Runtime:* ${data.Runtime} +🎭 *Genre:* ${data.Genre} +🎬 *Director:* ${data.Director} +✍️ *Writer:* ${data.Writer} +🎭 *Actors:* ${data.Actors} +📝 *Plot:* ${data.Plot} +🌍 *Language:* ${data.Language} +🇺🇸 *Country:* ${data.Country} +🏆 *Awards:* ${data.Awards} +⭐ *IMDB Rating:* ${data.imdbRating} +🗳️ *IMDB Votes:* ${data.imdbVotes} +`; + + // Define the image URL + const imageUrl = data.Poster && data.Poster !== 'N/A' ? data.Poster : config.ALIVE_IMG; + + // Send the movie information along with the poster image + await conn.sendMessage(from, { + image: { url: imageUrl }, + caption: `${movieInfo}\n> ©ᴘᴏᴡᴇʀᴇᴅ ʙʏ sᴜʙᴢᴇʀᴏ` + }, { quoted: mek }); + } catch (e) { + console.log(e); + reply(`❌ Error: ${e.message}`); + } +}); diff --git a/plugins/dl-play.js b/plugins/dl-play.js new file mode 100644 index 0000000000000000000000000000000000000000..4f0674d60df918dd5abf9358f2ea2f304d5a717c --- /dev/null +++ b/plugins/dl-play.js @@ -0,0 +1,109 @@ +/* SSSSS U U BBBBB ZZZZZ EEEEE RRRRR OOO M M DDDD + S U U B B Z E R R O O MM MM D D + SSS U U BBBBB Z EEEE RRRRR O O M M M D D + S U U B B Z E R R O O M M D D + SSSSS UUU BBBBB ZZZZZ EEEEE R R OOO M M DDDD +*/ + +// Wanna Use My Codes??? +// Give Credits Yah, Mr Frank + +const { + cmd, + commands +} = require('../command'); +const yts = require("yt-search"); +const axios = require("axios"); +cmd({ + 'pattern': "video2", + 'alias': ["ytvid2", "ytv2", 'ytvideo2'], + 'react': '⏳', + 'desc': "Download videos from YouTube by searching for keywords.", + 'category': "video", + 'use': ".vidx ", + 'filename': __filename +}, async (_0x443755, _0x543ba8, _0xb49b84, { + from: _0x33c56a, + args: _0x145006, + reply: _0x2710af +}) => { + try { + const _0x180808 = _0x145006.join(" "); + if (!_0x180808) { + return _0x2710af("*Please provide a video tital or url*"); + } + _0x2710af("```© SᴜʙZᴇʀᴏ Gᴇɴᴇʀᴀᴛɪɴɢ Vɪᴅᴇᴏ Pʟᴇᴀsᴇ Wᴀɪᴛ...```"); + const _0x1c3fd5 = await yts(_0x180808); + if (!_0x1c3fd5.videos || _0x1c3fd5.videos.length === 0x0) { + return _0x2710af("❌ No results found for \"" + _0x180808 + "\"."); + } + const _0x3e0ad8 = _0x1c3fd5.videos[0x0]; + const _0x898f76 = _0x3e0ad8.url; + const _0x4200bd = "https://api.gifted.my.id/api/download/dlmp4?apikey=gifted&url=" + _0x898f76; + const _0x487ed3 = await axios.get(_0x4200bd); + if (!_0x487ed3.data.success) { + return _0x2710af("❌ Failed to fetch video for \"" + _0x180808 + "\"."); + } + const { + download_url: _0xd424ba + } = _0x487ed3.data.result; + await _0x443755.sendMessage(_0x33c56a, { + 'video': { + 'url': _0xd424ba + }, + 'mimetype': "video/mp4" + }, { + 'quoted': _0x543ba8 + }); + } catch (_0x4921e0) { + console.error(_0x4921e0); + _0x2710af("❌ An error occurred while processing your request."); + } +}); +cmd({ + 'pattern': "play2", + 'alias': ["yta2", "ytplay2"], + 'react': '⏳', + 'desc': "Download audio from YouTube by searching for keywords.", + 'category': "music", + 'use': ".playx ", + 'filename': __filename +}, async (_0x222018, _0x5bc6a4, _0x2b481b, { + from: _0x35d246, + args: _0x3a1931, + reply: _0x31fd3f +}) => { + try { + const _0x2b4b83 = _0x3a1931.join(" "); + if (!_0x2b4b83) { + return _0x31fd3f("*Please provide a audio tital or url*"); + } + _0x31fd3f("```© SᴜʙZᴇʀᴏ Gᴇɴᴇʀᴀᴛɪɴɢ Sᴏɴɢ Pʟᴇᴀs Wᴀɪᴛ...```"); + const _0x116e0a = await yts(_0x2b4b83); + if (!_0x116e0a.videos || _0x116e0a.videos.length === 0x0) { + return _0x31fd3f("❌ No results found for \"" + _0x2b4b83 + "\"."); + } + const _0x50d4d8 = _0x116e0a.videos[0x0]; + const _0x228b87 = _0x50d4d8.url; + const _0xd4aee7 = "https://api.gifted.my.id/api/download/dlmp3?apikey=gifted&url=" + _0x228b87; + const _0x4c55a0 = await axios.get(_0xd4aee7); + if (!_0x4c55a0.data.success) { + return _0x31fd3f("❌ Failed to fetch audio for \"" + _0x2b4b83 + "\"."); + } + const { + download_url: _0x95f653 + } = _0x4c55a0.data.result; + await _0x222018.sendMessage(_0x35d246, { + 'audio': { + 'url': _0x95f653 + }, + 'mimetype': 'audio/mp4', + 'ptt': false + }, { + 'quoted': _0x5bc6a4 + }); + } catch (_0x40de03) { + console.error(_0x40de03); + _0x31fd3f("❌ An error occurred while processing your request."); + } +}); diff --git a/plugins/dl-play3.js b/plugins/dl-play3.js new file mode 100644 index 0000000000000000000000000000000000000000..c8b945bdb6b9a3428c1ea2bd780607354a0ac0d3 --- /dev/null +++ b/plugins/dl-play3.js @@ -0,0 +1,109 @@ +/* SSSSS U U BBBBB ZZZZZ EEEEE RRRRR OOO M M DDDD + S U U B B Z E R R O O MM MM D D + SSS U U BBBBB Z EEEE RRRRR O O M M M D D + S U U B B Z E R R O O M M D D + SSSSS UUU BBBBB ZZZZZ EEEEE R R OOO M M DDDD +*/ + +// Wanna Use My Codes??? +// Give Credits Yah, Mr Frank + +const { + cmd, + commands +} = require('../command'); +const yts = require("yt-search"); +const axios = require("axios"); +cmd({ + 'pattern': "video3", + 'alias': ["ytvid3", "ytv3", 'ytvideo3'], + 'react': '🔄', + 'desc': "Download videos from YouTube by searching for keywords.", + 'category': "video", + 'use': ".vidx ", + 'filename': __filename +}, async (_0x443755, _0x543ba8, _0xb49b84, { + from: _0x33c56a, + args: _0x145006, + reply: _0x2710af +}) => { + try { + const _0x180808 = _0x145006.join(" "); + if (!_0x180808) { + return _0x2710af("*Please provide a video tital or url*"); + } + _0x2710af("> © SᴜʙZᴇʀᴏ Sᴇɴᴅɪɴɢ Yᴏᴜʀ ᴠɪᴅᴇᴏ Wᴀɪᴛ... ❄️"); + const _0x1c3fd5 = await yts(_0x180808); + if (!_0x1c3fd5.videos || _0x1c3fd5.videos.length === 0x0) { + return _0x2710af("❌ No results found for \"" + _0x180808 + "\"."); + } + const _0x3e0ad8 = _0x1c3fd5.videos[0x0]; + const _0x898f76 = _0x3e0ad8.url; + const _0x4200bd = "https://api.davidcyriltech.my.id/youtube/mp3?url=" + _0x898f76; + const _0x487ed3 = await axios.get(_0x4200bd); + if (!_0x487ed3.data.success) { + return _0x2710af("❌ Failed to fetch video for \"" + _0x180808 + "\"."); + } + const { + download_url: _0xd424ba + } = _0x487ed3.data.result; + await _0x443755.sendMessage(_0x33c56a, { + 'video': { + 'url': _0xd424ba + }, + 'mimetype': "video/mp4" + }, { + 'quoted': _0x543ba8 + }); + } catch (_0x4921e0) { + console.error(_0x4921e0); + _0x2710af("❌ An error occurred while processing your request."); + } +}); +cmd({ + 'pattern': "play3", + 'alias': ["song3", "ytplay3"], + 'react': '🔄', + 'desc': "Download audio from YouTube by searching for keywords.", + 'category': "music", + 'use': ".playx ", + 'filename': __filename +}, async (_0x222018, _0x5bc6a4, _0x2b481b, { + from: _0x35d246, + args: _0x3a1931, + reply: _0x31fd3f +}) => { + try { + const _0x2b4b83 = _0x3a1931.join(" "); + if (!_0x2b4b83) { + return _0x31fd3f("*Please provide a audio tital or url*"); + } + _0x31fd3f("> © SᴜʙZᴇʀᴏ Sᴇɴᴅɪɴɢ Yᴏᴜʀ Sᴏɴɢ Wᴀɪᴛ...❄️"); + const _0x116e0a = await yts(_0x2b4b83); + if (!_0x116e0a.videos || _0x116e0a.videos.length === 0x0) { + return _0x31fd3f("❌ No results found for \"" + _0x2b4b83 + "\"."); + } + const _0x50d4d8 = _0x116e0a.videos[0x0]; + const _0x228b87 = _0x50d4d8.url; + const _0xd4aee7 = "https://api.davidcyriltech.my.id/download/ytmp3?url=" + _0x228b87; + const _0x4c55a0 = await axios.get(_0xd4aee7); + if (!_0x4c55a0.data.success) { + return _0x31fd3f("❌ Failed to fetch audio for \"" + _0x2b4b83 + "\"."); + } + const { + download_url: _0x95f653 + } = _0x4c55a0.data.result; + await _0x222018.sendMessage(_0x35d246, { + 'audio': { + 'url': _0x95f653 + }, + 'mimetype': 'audio/mp4', + 'ptt': false + }, { + 'quoted': _0x5bc6a4 + }); + } catch (_0x40de03) { + console.error(_0x40de03); + _0x31fd3f("❌ An error occurred while processing your request."); + } +}); diff --git a/plugins/dl-spotify.js b/plugins/dl-spotify.js new file mode 100644 index 0000000000000000000000000000000000000000..35c035f380639f9c9f1de61bc38224bf2dc6cba2 --- /dev/null +++ b/plugins/dl-spotify.js @@ -0,0 +1 @@ +const _0x38d117=_0x4078;function _0x4078(_0x531820,_0x2ca913){const _0x150716=_0x1507();return _0x4078=function(_0x40785d,_0xa8f5d8){_0x40785d=_0x40785d-0x17a;let _0x1ca1dd=_0x150716[_0x40785d];return _0x1ca1dd;},_0x4078(_0x531820,_0x2ca913);}(function(_0x39487e,_0x28155a){const _0x9177ab=_0x4078,_0x5cfd53=_0x39487e();while(!![]){try{const _0x2cca22=parseInt(_0x9177ab(0x192))/0x1+parseInt(_0x9177ab(0x188))/0x2+-parseInt(_0x9177ab(0x195))/0x3*(-parseInt(_0x9177ab(0x186))/0x4)+parseInt(_0x9177ab(0x191))/0x5+-parseInt(_0x9177ab(0x18b))/0x6*(parseInt(_0x9177ab(0x19f))/0x7)+parseInt(_0x9177ab(0x18f))/0x8+parseInt(_0x9177ab(0x17f))/0x9*(-parseInt(_0x9177ab(0x18d))/0xa);if(_0x2cca22===_0x28155a)break;else _0x5cfd53['push'](_0x5cfd53['shift']());}catch(_0x418f11){_0x5cfd53['push'](_0x5cfd53['shift']());}}}(_0x1507,0x8f1c6));function hi(){console['log']('Hello\x20World!');}function _0x1507(){const _0x1b3e9f=['```Gᴇɴᴇʀᴀᴛɪɴɢ\x20ʏᴏᴜʀ\x20sᴏɴɢ\x20🚀```','btch-downloader','Artist:\x20','stream','videos','error','message','data','7BRDjkn','Fetched\x20from\x20YouTube','No\x20suitable\x20YouTube\x20results\x20found.','https://spotifyapi.caliphdev.com/api/download/track?url=','ytmusic','music','headers','../command','153AqniWB','Fetch\x20audio\x20from\x20Spotify\x20or\x20YouTube','seconds','audio/mpeg','url','content-type','media','16MQXFQw','ERROR\x20:\x20Failed\x20to\x20fetch\x20audio\x20from\x20Spotify.','1116216REemcQ','title','spotify','3635238MTahxA','axios','1329850mVyDky','get','6045360aGncJD','sendMessage','5318815NdZENt','1014087DAFuHl','mp3','Please\x20provide\x20a\x20title\x20or\x20link\x20(Spotify/YouTube)!','45879iZzRbY','GET'];_0x1507=function(){return _0x1b3e9f;};return _0x1507();}hi();const axios=require(_0x38d117(0x18c)),yts=require('yt-search'),{youtube}=require(_0x38d117(0x198)),{cmd}=require(_0x38d117(0x17e));cmd({'pattern':_0x38d117(0x18a),'alias':[_0x38d117(0x17b),_0x38d117(0x17c)],'react':'🎵','desc':_0x38d117(0x180),'category':_0x38d117(0x185),'filename':__filename},async(_0x33522d,_0x4e7bf1,_0xe7be94,{from:_0x4f8bb1,quoted:_0x57d2f3,body:_0x1d3ba2,isCmd:_0x128ec4,command:_0x21ef67,args:_0x27202a,q:_0x3bbcc9,isGroup:_0x1c0166,sender:_0x53714e,senderNumber:_0x2f071c,botNumber:_0x491545,pushname:_0x3ab57c,reply:_0x3ce42b})=>{const _0x16a366=_0x38d117;if(!_0x3bbcc9)return _0x3ce42b(_0x16a366(0x194));_0x3ce42b(_0x16a366(0x197));try{const _0x123dbf=await axios[_0x16a366(0x18e)]('https://spotifyapi.caliphdev.com/api/search/tracks?q='+encodeURIComponent(_0x3bbcc9)),_0x5c8d48=_0x123dbf['data'][0x0];if(_0x5c8d48){const _0x6a333=await axios({'url':_0x16a366(0x17a)+encodeURIComponent(_0x5c8d48['url']),'method':_0x16a366(0x196),'responseType':_0x16a366(0x19a)});if(_0x6a333[_0x16a366(0x17d)][_0x16a366(0x184)]===_0x16a366(0x182)){await _0x33522d[_0x16a366(0x190)](_0x4f8bb1,{'audio':_0x6a333[_0x16a366(0x19e)],'mimetype':_0x16a366(0x182),'contextInfo':{'externalAdReply':{'title':_0x5c8d48[_0x16a366(0x189)],'body':_0x16a366(0x199)+_0x5c8d48['artist'],'mediaType':0x1,'sourceUrl':_0x5c8d48[_0x16a366(0x183)],'renderLargerThumbnail':!![]}}});return;}}}catch(_0x3dc897){console[_0x16a366(0x19c)]('Spotify\x20Error:',_0x3dc897[_0x16a366(0x19d)]);}try{const _0x43a66a=await yts(_0x3bbcc9),_0x89189c=_0x43a66a[_0x16a366(0x19b)][0x0];if(_0x89189c&&_0x89189c[_0x16a366(0x181)]<0xe10){const _0x5a06c1=await youtube(_0x89189c[_0x16a366(0x183)]);_0x5a06c1&&_0x5a06c1[_0x16a366(0x193)]?await _0x33522d[_0x16a366(0x190)](_0x4f8bb1,{'audio':{'url':_0x5a06c1[_0x16a366(0x193)]},'mimetype':_0x16a366(0x182),'contextInfo':{'externalAdReply':{'title':_0x89189c[_0x16a366(0x189)],'body':_0x16a366(0x1a0),'mediaType':0x1,'sourceUrl':_0x89189c[_0x16a366(0x183)],'renderLargerThumbnail':!![]}}}):_0x3ce42b(_0x16a366(0x187));}else _0x3ce42b(_0x16a366(0x1a1));}catch(_0x4ac2e2){console[_0x16a366(0x19c)]('Spotify\x20Error:',_0x4ac2e2[_0x16a366(0x19d)]);}}); \ No newline at end of file diff --git a/plugins/dl-tiktok.js b/plugins/dl-tiktok.js new file mode 100644 index 0000000000000000000000000000000000000000..5bebb5a7a2fcdd3c2d9c543173d4efe0da97406b --- /dev/null +++ b/plugins/dl-tiktok.js @@ -0,0 +1 @@ +const _0x2dbdf0=_0x7ad8;(function(_0x5b611e,_0x42f0e3){const _0x487ba5=_0x7ad8,_0x299a20=_0x5b611e();while(!![]){try{const _0x45a3ad=parseInt(_0x487ba5(0x8b))/0x1+-parseInt(_0x487ba5(0xa7))/0x2*(-parseInt(_0x487ba5(0xa6))/0x3)+parseInt(_0x487ba5(0xa5))/0x4*(-parseInt(_0x487ba5(0xa2))/0x5)+parseInt(_0x487ba5(0x7e))/0x6*(parseInt(_0x487ba5(0xa8))/0x7)+-parseInt(_0x487ba5(0xa1))/0x8*(parseInt(_0x487ba5(0x80))/0x9)+parseInt(_0x487ba5(0xa0))/0xa*(-parseInt(_0x487ba5(0xad))/0xb)+-parseInt(_0x487ba5(0x95))/0xc*(-parseInt(_0x487ba5(0x9d))/0xd);if(_0x45a3ad===_0x42f0e3)break;else _0x299a20['push'](_0x299a20['shift']());}catch(_0x2247fe){_0x299a20['push'](_0x299a20['shift']());}}}(_0x3c88,0x46e61));function hi(){const _0x122b73=_0x7ad8;console[_0x122b73(0xac)](_0x122b73(0x87));}function _0x3c88(){const _0x288706=['username','57492KMvngy','\x0a┇๏\x20*Shares:*\x20','\x0a┇๏\x20*Comments:*\x20','Sorry,\x20I\x20couldn\x27t\x20process\x20this\x20type\x20of\x20TikTok\x20content.','type','sendMessage','Error\x20in\x20TikTok\x20command:','../command','299oWJksi','http','ttdl','1813930igKpKs','88CyDSZb','5VAFXJE','comments','result','572092YWquDP','225603kreEhi','2YJgBle','3698737vngmQJ','Download\x20videos\x20or\x20images\x20from\x20TikTok.','tiktokdl2','shares','log','33gxbGEj','\x20\x20\x20\x20\x0a┇๏\x20*Description:*\x20','node-fetch','An\x20error\x20occurred\x20while\x20processing\x20your\x20request.\x20Please\x20try\x20again\x20later.','favorite','6SbreZj','N/A','97479yKYzAC','no-watermark','error','&apiKey=yanzdev','json','entries','tools','Hello\x20World!','image','tiktokvid2','description','382959JJbajz','\x20\x20\x20\x20\x0a╰━━━━━━━━━━━━──┈⊷\x0a>\x20©\x20ᴘᴏᴡᴇʀᴇᴅ\x20ʙʏ\x20sᴜʙᴢᴇʀᴏ','video','views','\x0a┇๏\x20*Likes:*\x20','startsWith','tt2','tiktok2','╭━━━〔\x20*SUBZERO-MD*\x20〕━━━┈⊷\x0a┃▸╭───────────\x0a┃▸┃๏\x20*TIKTOK\x20DOWNLOADER*\x0a┃▸└───────────···๏\x0a╰────────────────┈⊷\x0a╭━━〔\x20*Post\x20Details*\x20〕━━┈⊷\x0a┇๏\x20*Type:*\x20'];_0x3c88=function(){return _0x288706;};return _0x3c88();}function _0x7ad8(_0x2c637a,_0xf5e587){const _0x3c8816=_0x3c88();return _0x7ad8=function(_0x7ad890,_0xe384dd){_0x7ad890=_0x7ad890-0x7a;let _0x15ef76=_0x3c8816[_0x7ad890];return _0x15ef76;},_0x7ad8(_0x2c637a,_0xf5e587);}hi();const fetch=require(_0x2dbdf0(0x7b)),{cmd}=require(_0x2dbdf0(0x9c));cmd({'pattern':_0x2dbdf0(0x92),'alias':[_0x2dbdf0(0x91),_0x2dbdf0(0xaa),'ttdown2',_0x2dbdf0(0x89),_0x2dbdf0(0x9f)],'desc':_0x2dbdf0(0xa9),'react':'✅','category':_0x2dbdf0(0x86),'filename':__filename},async(_0x572eda,_0x5725ab,_0x46523f,{from:_0x45c4f6,args:_0x550065,reply:_0x38160c})=>{const _0x40a5ef=_0x2dbdf0;try{const _0x17f2c5=_0x550065[0x0];if(!_0x17f2c5||!_0x17f2c5[_0x40a5ef(0x90)](_0x40a5ef(0x9e)))return _0x38160c('Please\x20provide\x20a\x20valid\x20TikTok\x20link.\x0a\x0a*Usage\x20Example:*\x0a\x0a.tt2\x20');const _0x7dacc7=await fetch('https://api.yanzbotz.live/api/downloader/tiktok?url='+encodeURIComponent(_0x17f2c5)+_0x40a5ef(0x83)),_0x15a6cb=await _0x7dacc7[_0x40a5ef(0x84)]();if(!_0x15a6cb||!_0x15a6cb[_0x40a5ef(0xa4)])return _0x38160c('Sorry,\x20I\x20couldn\x27t\x20fetch\x20the\x20TikTok\x20content.\x20Please\x20check\x20the\x20link\x20and\x20try\x20again.');const _0x596701=_0x15a6cb['result'],_0x4e57a1=_0x40a5ef(0x93)+(_0x596701[_0x40a5ef(0x99)]||_0x40a5ef(0x7f))+'\x0a┇๏\x20*Name:*\x20'+(_0x596701['name']||_0x40a5ef(0x7f))+'\x0a┇๏\x20*Username:*\x20'+(_0x596701[_0x40a5ef(0x94)]||'N/A')+'\x0a┇๏\x20*Views:*\x20'+(_0x596701[_0x40a5ef(0x8e)]||0x0)+_0x40a5ef(0x8f)+(_0x596701['likes']||0x0)+_0x40a5ef(0x97)+(_0x596701[_0x40a5ef(0xa3)]||0x0)+'\x0a┇๏\x20*Favorites:*\x20'+(_0x596701[_0x40a5ef(0x7d)]||0x0)+_0x40a5ef(0x96)+(_0x596701[_0x40a5ef(0xab)]||0x0)+_0x40a5ef(0x7a)+(_0x596701[_0x40a5ef(0x8a)]||_0x40a5ef(0x7f))+_0x40a5ef(0x8c);if(_0x596701[_0x40a5ef(0x99)]===_0x40a5ef(0x8d))await _0x572eda[_0x40a5ef(0x9a)](_0x45c4f6,{'video':{'url':_0x596701[_0x40a5ef(0x8d)][_0x40a5ef(0x81)]},'caption':_0x4e57a1},{'quoted':_0x46523f});else{if(_0x596701['type']===_0x40a5ef(0x88))for(const [_0x1ac338,_0x5746de]of(_0x596701[_0x40a5ef(0x88)]||[])[_0x40a5ef(0x85)]()){await _0x572eda[_0x40a5ef(0x9a)](_0x45c4f6,{'image':{'url':_0x5746de},'caption':'*💜\x20Image:*\x20'+(_0x1ac338+0x1)+'\x0a\x0a'+_0x4e57a1},{'quoted':_0x46523f});}else return _0x38160c(_0x40a5ef(0x98));}}catch(_0x1aefb6){console[_0x40a5ef(0x82)](_0x40a5ef(0x9b),_0x1aefb6),_0x38160c(_0x40a5ef(0x7c));}}); \ No newline at end of file diff --git a/plugins/fun-anime.js b/plugins/fun-anime.js new file mode 100644 index 0000000000000000000000000000000000000000..792b71edeaca8806bf8f2de955ca9c78bce95657 --- /dev/null +++ b/plugins/fun-anime.js @@ -0,0 +1 @@ +(function(_0x1e698d,_0x315915){var _0x349fc3=_0x2ea7,_0xd3d812=_0x1e698d();while(!![]){try{var _0x56502f=parseInt(_0x349fc3(0x9c))/0x1+parseInt(_0x349fc3(0x9d))/0x2+-parseInt(_0x349fc3(0x99))/0x3*(parseInt(_0x349fc3(0x9a))/0x4)+-parseInt(_0x349fc3(0xa0))/0x5+parseInt(_0x349fc3(0x9f))/0x6+-parseInt(_0x349fc3(0xa1))/0x7*(parseInt(_0x349fc3(0xa3))/0x8)+parseInt(_0x349fc3(0xa2))/0x9;if(_0x56502f===_0x315915)break;else _0xd3d812['push'](_0xd3d812['shift']());}catch(_0x67fd17){_0xd3d812['push'](_0xd3d812['shift']());}}}(_0x3481,0x8db3c));function _0x3481(){var _0x4a9363=['Hello\x20World!','3579702rgpXbQ','4130630bWOkyR','3549EwxsPd','15454368kPyctA','15416NEpymU','825HINlxS','12708vckwzP','log','682686XRlrjQ','521494GmyoNs'];_0x3481=function(){return _0x4a9363;};return _0x3481();}function hi(){var _0x3619dd=_0x2ea7;console[_0x3619dd(0x9b)](_0x3619dd(0x9e));}function _0x2ea7(_0x468e69,_0x52cd44){var _0x3481ef=_0x3481();return _0x2ea7=function(_0x2ea7f3,_0x39db39){_0x2ea7f3=_0x2ea7f3-0x99;var _0x5989d0=_0x3481ef[_0x2ea7f3];return _0x5989d0;},_0x2ea7(_0x468e69,_0x52cd44);}hi(); \ No newline at end of file diff --git a/plugins/fun-couples.js b/plugins/fun-couples.js new file mode 100644 index 0000000000000000000000000000000000000000..63604487c0b2d0dff9a7acc7f2760957b61f944c --- /dev/null +++ b/plugins/fun-couples.js @@ -0,0 +1,51 @@ +const { + cmd, + commands +} = require('../command'); +const axios = require('axios'); +cmd({ + 'pattern': "couplepp", + 'alias': ["couple", "cpp"], + 'react': '💑', + 'desc': "Get a male and female couple profile picture.", + 'category': "image", + 'use': ".couplepp", + 'filename': __filename +}, async (_0x552520, _0x51cf3f, _0x29f4cb, { + from: _0x556c44, + args: _0x2e3a6d, + reply: _0x30d3fc +}) => { + try { + _0x30d3fc("*💑 Fetching couple profile pictures...*"); + const _0x173643 = await axios.get("https://api.davidcyriltech.my.id/couplepp"); + if (!_0x173643.data || !_0x173643.data.success) { + return _0x30d3fc("❌ Failed to fetch couple profile pictures. Please try again later."); + } + const _0x5d4b91 = _0x173643.data.male; + const _0x5a1e4a = _0x173643.data.female; + if (_0x5d4b91) { + await _0x552520.sendMessage(_0x556c44, { + 'image': { + 'url': _0x5d4b91 + }, + 'caption': "👨 Male Couple Profile Picture" + }, { + 'quoted': _0x51cf3f + }); + } + if (_0x5a1e4a) { + await _0x552520.sendMessage(_0x556c44, { + 'image': { + 'url': _0x5a1e4a + }, + 'caption': "👩 Female Couple Profile Picture" + }, { + 'quoted': _0x51cf3f + }); + } + } catch (_0x1dc6a7) { + console.error(_0x1dc6a7); + _0x30d3fc("❌ An error occurred while fetching the couple profile pictures."); + } +}); diff --git a/plugins/fun-dogs.js b/plugins/fun-dogs.js new file mode 100644 index 0000000000000000000000000000000000000000..42207f3347de51cc1dfca9eec0a4ec046c30b30c --- /dev/null +++ b/plugins/fun-dogs.js @@ -0,0 +1,22 @@ +const axios = require('axios'); +const { cmd, commands } = require('../command'); + +cmd({ + pattern: "dog", + desc: "Fetch a random dog image.", + category: "fun", + react: "🐶", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const apiUrl = `https://dog.ceo/api/breeds/image/random`; + const response = await axios.get(apiUrl); + const data = response.data; + + await conn.sendMessage(from, { image: { url: data.message }, caption: '> © Generated By SubZero' }, { quoted: mek }); + } catch (e) { + console.log(e); // ❯❯ Powered by KHAN-MD 👑 + reply(`єяяσя ƒєт¢нιηg ∂σg ιмαgє: ${e.message}`); + } +}); diff --git a/plugins/fun-loli.js b/plugins/fun-loli.js new file mode 100644 index 0000000000000000000000000000000000000000..f47492cc6d29501f60c244cd336b95b58396ad9d --- /dev/null +++ b/plugins/fun-loli.js @@ -0,0 +1,23 @@ +const axios = require('axios'); +const { cmd, commands } = require('../command'); + +cmd({ + pattern: "loli", + alias: ["lolii"], + desc: "Fetch a random anime girl image.", + category: "fun", + react: "🐱", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const apiUrl = `https://api.waifu.pics/sfw/waifu`; + const response = await axios.get(apiUrl); + const data = response.data; + + await conn.sendMessage(from, { image: { url: data.url }, caption: '👸 *SUBZERO MD RANDOM ANIME GIRL IMAGES* 👸\n\n\n *🧬 © SubZero MD BY Mr Frank OFC*' }, { quoted: mek }); + } catch (e) { + console.log(e); + reply(`*Error Fetching Anime Girl image*: ${e.message}`); + } +}); diff --git a/plugins/fun-quote.js b/plugins/fun-quote.js new file mode 100644 index 0000000000000000000000000000000000000000..ec45d625dcc5354652b4a3d499e246e5148fe26c --- /dev/null +++ b/plugins/fun-quote.js @@ -0,0 +1,46 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + + + +const axios = require('axios'); +const { cmd } = require('../command'); + +cmd({ + pattern: "quote", + desc: "Get a random inspiring quote.", + category: "fun", + react: "💬", + filename: __filename +}, +async (conn, mek, m, { from, reply }) => { + try { + const response = await axios.get('https://api.gifted.my.id/api/fun/quotes?apikey=gifted'); + const quote = response.data; + const message = ` +💬 "${quote.content}" +- ${quote.author} +*QUOTES BY MR FRANK OFC* + `; + return reply(message); + } catch (e) { + console.error("Error fetching quote:", e); + reply("¢συℓ∂ ησт ƒєт¢н α qυσтє. ρℓєαѕє тяу αgαιη ℓαтєя."); + } +}); diff --git a/plugins/fun-randomwallpaper.js b/plugins/fun-randomwallpaper.js new file mode 100644 index 0000000000000000000000000000000000000000..e2208c34b30b2b15d6a267fd6c40551f70216732 --- /dev/null +++ b/plugins/fun-randomwallpaper.js @@ -0,0 +1 @@ +const _0x492d39=_0x1333;(function(_0x2a0f88,_0x59f978){const _0x4840ab=_0x1333,_0x2c9739=_0x2a0f88();while(!![]){try{const _0x1e838d=-parseInt(_0x4840ab(0xc2))/0x1*(-parseInt(_0x4840ab(0xc4))/0x2)+-parseInt(_0x4840ab(0xcd))/0x3+-parseInt(_0x4840ab(0xb6))/0x4+-parseInt(_0x4840ab(0xcc))/0x5*(-parseInt(_0x4840ab(0xb9))/0x6)+parseInt(_0x4840ab(0xc3))/0x7+-parseInt(_0x4840ab(0xc8))/0x8*(-parseInt(_0x4840ab(0xc6))/0x9)+-parseInt(_0x4840ab(0xcb))/0xa;if(_0x1e838d===_0x59f978)break;else _0x2c9739['push'](_0x2c9739['shift']());}catch(_0x250cd6){_0x2c9739['push'](_0x2c9739['shift']());}}}(_0x3fe8,0xaf74f));function _0x3fe8(){const _0x21d3eb=['76ikibAC','status','6471cPFDvR','random','15752MMhMOD','&query=','../command','19610640icLbzy','6398435KdZFcn','1364955KanASI','../lib/functions','Download\x20random\x20wallpapers\x20based\x20on\x20keywords.','wallpaper','❌\x20Failed\x20to\x20fetch\x20wallpaper\x20for\x20\x22','5531816SUTIPB','https://pikabotzapi.vercel.app/random/randomwall/?apikey=','🌌\x20Random\x20Wallpaper:\x20*','6UjOTwZ','randomwall','sendMessage','data','get','anya-md','imgUrl','axios','.rw\x20','18701bILtZA','7781466GneaGu'];_0x3fe8=function(){return _0x21d3eb;};return _0x3fe8();}const {cmd,commands}=require(_0x492d39(0xca)),{getBuffer,getGroupAdmins,getRandom,h2k,isUrl,Json,runtime,sleep,fetchJson}=require(_0x492d39(0xce)),fs=require('fs'),axios=require(_0x492d39(0xc0));function _0x1333(_0x576543,_0x210d9b){const _0x3fe8f6=_0x3fe8();return _0x1333=function(_0x1333ab,_0x271d59){_0x1333ab=_0x1333ab-0xb3;let _0x141ce0=_0x3fe8f6[_0x1333ab];return _0x141ce0;},_0x1333(_0x576543,_0x210d9b);}cmd({'pattern':'rw','alias':[_0x492d39(0xba),_0x492d39(0xb4)],'react':'🌌','desc':_0x492d39(0xb3),'category':'wallpapers','use':_0x492d39(0xc1),'filename':__filename},async(_0x4e03bc,_0x345d21,_0x40a30e,{from:_0x12db73,args:_0x22efc8,reply:_0x2f266c})=>{const _0x426e5a=_0x492d39;try{const _0x23a1c5=_0x426e5a(0xbe),_0x2d400f=_0x22efc8['join']('\x20')||_0x426e5a(0xc7),_0x3ba124=_0x426e5a(0xb7)+_0x23a1c5+_0x426e5a(0xc9)+_0x2d400f,_0x235f6c=await axios[_0x426e5a(0xbd)](_0x3ba124);if(_0x235f6c[_0x426e5a(0xbc)][_0x426e5a(0xc5)]){const _0x3a965b=_0x235f6c['data'][_0x426e5a(0xbf)],_0x122bb7=_0x426e5a(0xb8)+_0x2d400f+'*\x0a\x0a>\x20*©\x20Powered\x20by\x20Jawad\x20TechX*';await _0x4e03bc[_0x426e5a(0xbb)](_0x12db73,{'image':{'url':_0x3a965b},'caption':_0x122bb7},{'quoted':_0x345d21});}else _0x2f266c(_0x426e5a(0xb5)+_0x2d400f+'\x22.');}catch(_0x56a8ca){console['error'](_0x56a8ca),_0x2f266c('❌\x20An\x20error\x20occurred\x20while\x20fetching\x20the\x20wallpaper.');}}); diff --git a/plugins/fun-tools.js b/plugins/fun-tools.js new file mode 100644 index 0000000000000000000000000000000000000000..eff60c32a324bf1aebc69825756637238bbb7caa --- /dev/null +++ b/plugins/fun-tools.js @@ -0,0 +1,364 @@ +const axios = require('axios') +const fetch = require('node-fetch'); +const {cmd , commands} = require('../command') +// ship command +const toM = (a) => '@' + a.split('@')[0]; +cmd({ + pattern: "ship", + alias: ["cup", "love"], + desc: "Randomly pairs the command user with another group member.", + react: "❤️", + category: "fun", + filename: __filename, +}, +async (conn, mek, m, { from, isGroup, groupMetadata, reply }) => { + try { + // Ensure command is used in a group + if (!isGroup) { + return reply("This command can only be used in groups."); + } + + // Get group participants + const participants = groupMetadata.participants.map(p => p.id); + + if (participants.length < 2) { + return reply("Not enough members to pair."); + } + + // Sender of the command + const sender = m.sender; + + // Randomly select another participant + let randomParticipant; + do { + randomParticipant = participants[Math.floor(Math.random() * participants.length)]; + } while (randomParticipant === sender); + + // Pairing message + const message = `${toM(sender)} ❤️ ${toM(randomParticipant)}\nCongratulations 💖🍻`; + + // Send the message with contextInfo + await conn.sendMessage(from, { + text: message, + contextInfo: { + mentionedJid: [sender, randomParticipant], // Mention both users + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: 'SubZero Bot', + serverMessageId: 143, + }, + }, + }); + } catch (e) { + console.error("Error in ship command:", e); + reply("An error occurred while processing the command. Please try again."); + } +}); +// Insult + +cmd({ + pattern: 'insult', + desc: 'Get a random insult', + category: "fun", + react: '🤥', +}, +async (Void, citel) => { + try { + let response = await axios.get('https://evilinsult.com/generate_insult.php?lang=en&type=json'); + let data = response.data; + + if (!data || !data.insult) { + return citel.reply('Unable to retrieve an insult. Please try again later.'); + } + + let insult = data.insult; + return citel.reply(`*Insult:* ${insult}`); + } catch (error) { + citel.reply(`Error: ${error.message || error}`); + } +}); + +// joke + +cmd({ + pattern: "joke", + desc: "😂 Get a random joke", + react: "🤣", + category: "fun", + filename: __filename +}, +async (conn, mek, m, { from, q, reply }) => { + try { + const url = 'https://official-joke-api.appspot.com/random_joke'; // API for random jokes + const response = await axios.get(url); + const joke = response.data; + + const jokeMessage = ` +😂 *Here's a random joke for you!* 😂 + +*${joke.setup}* + +${joke.punchline} 😄 + +> *© ᴘᴏᴡᴇʀᴇᴅ ʙʏ Jᴀᴡᴀᴅ TᴇᴄʜX*`; + + return reply(jokeMessage); + } catch (e) { + console.log(e); + return reply("⚠️ En Error Appears."); + } +}); + +// fact + +cmd({ + pattern: "fact", + desc: "🧠 Get a random fun fact", + react: "🧠", + category: "fun", + filename: __filename +}, +async (conn, mek, m, { from, q, reply }) => { + try { + const url = 'https://uselessfacts.jsph.pl/random.json?language=en'; // API for random facts + const response = await axios.get(url); + const fact = response.data.text; + + const funFact = ` +🧠 *SubZero Random Fun Fact* 🧠 + +${fact} + +Isn't that interesting? 😄 +`; + + return reply(funFact); + } catch (e) { + console.log(e); + return reply("⚠️ An error occurred while fetching a fun fact. Please try again later."); + } +}); + + +// fancy + +cmd({ + pattern: "fancy", + alias: ['font', "style"], + react: '✍️', + desc: "Convert text into various fonts.", + category: "tools", + filename: __filename +}, async (conn, mek, m, { from, quoted, body, args, q, reply }) => { + try { + if (!q) { + return reply("Please provide text to convert into fonts. Eg .fancy Mr Frank"); + } + + let response = await axios.get('https://www.dark-yasiya-api.site/other/font?text=' + encodeURIComponent(q)); + let data = response.data; + + if (!data.status) { + return reply("Error fetching fonts. Please try again later."); + } + + let fontResults = data.result.map(font => '*' + font.name + ":*\n" + font.result).join("\n\n"); + + // Message formatting + let message = `*SUBZERO FANCY FONTS*:\n\n${fontResults}\n\n> *© Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ*`; + + // Sending the message with context info + await conn.sendMessage( + from, + { + text: message, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: 'ᴍʀ ғʀᴀɴᴋ ᴏғᴄ', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (error) { + console.error(error); + reply("An error occurred while fetching fonts."); + } +}); + +// pick-up line + +cmd({ + pattern: "pickupline", + alias: ["pickup"], + desc: "Get a random pickup line from the API.", + react: "💬", + category: "fun", + filename: __filename, +}, +async (conn, mek, m, { from, reply }) => { + try { + // Fetch pickup line from the API + const res = await fetch('https://api.popcat.xyz/pickuplines'); + + if (!res.ok) { + throw new Error(`API request failed with status ${res.status}`); + } + + const json = await res.json(); + + // Log the API response (for debugging purposes) + console.log('JSON response:', json); + + // Format the pickup line message + const pickupLine = `*Here's a pickup line for you:*\n\n"${json.pickupline}"\n\n> *© Dropped By Mr Frank OFC*`; + + // Send the pickup line to the chat + await conn.sendMessage(from, { text: pickupLine }, { quoted: m }); + + } catch (error) { + console.error("Error in pickupline command:", error); + reply("Sorry, something went wrong while fetching the pickup line. Please try again later."); + } +}); + +// char + +cmd({ + pattern: "character", + alias: ["char"], + desc: "Check the character of a mentioned user.", + react: "🔥", + category: "fun", + filename: __filename, +}, +async (conn, mek, m, { from, isGroup, text, reply }) => { + try { + // Ensure the command is used in a group + if (!isGroup) { + return reply("This command can only be used in groups."); + } + + // Extract the mentioned user + const mentionedUser = m.message.extendedTextMessage?.contextInfo?.mentionedJid?.[0]; + if (!mentionedUser) { + return reply("Please mention a user whose character you want to check."); + } + + // Define character traits + const userChar = [ + "Sigma", + "Generous", + "Grumpy", + "Overconfident", + "Obedient", + "Good", + "Simp", + "Kind", + "Patient", + "Pervert", + "Cool", + "Helpful", + "Brilliant", + "Sexy", + "Hot", + "Gorgeous", + "Cute", + ]; + + // Randomly select a character trait + const userCharacterSelection = + userChar[Math.floor(Math.random() * userChar.length)]; + + // Message to send + const message = `Character of @${mentionedUser.split("@")[0]} is *${userCharacterSelection}* 🔥⚡`; + + // Send the message with mentions + await conn.sendMessage(from, { + text: message, + mentions: [mentionedUser], + }, { quoted: m }); + + } catch (e) { + console.error("Error in character command:", e); + reply("An error occurred while processing the command. Please try again."); + } +}); + +// Truth command +cmd({ + pattern: "truth", + alias: ["t", "truthquestion"], + react: '❔', + desc: "Get a random truth question.", + category: "fun", + use: '.truth', + filename: __filename +}, +async (conn, mek, m, { from, args, reply }) => { + try { + // Inform the user + reply("*🔍 Fetching a truth question...*"); + + // API URL for truth + const truthApiUrl = `https://api.davidcyriltech.my.id/truth`; + + // Fetch truth question from the API + const truthResponse = await axios.get(truthApiUrl); + if (!truthResponse.data || !truthResponse.data.success) { + return reply("❌ Failed to fetch a truth question. Please try again later."); + } + + // Extract truth question + const truthQuestion = truthResponse.data.question; + if (truthQuestion) { + reply(`*Truth Question:* ${truthQuestion}`); + } + } catch (e) { + console.error(e); + reply("❌ An error occurred while fetching the truth question."); + } +}); + +// Dare command +cmd({ + pattern: "dare", + alias: ["d", "darequestion"], + react: '🔥', + desc: "Get a random dare question.", + category: "fun", + use: '.dare', + filename: __filename +}, +async (conn, mek, m, { from, args, reply }) => { + try { + // Inform the user + reply("*🔥 Fetching a dare question...*"); + + // API URL for dare + const dareApiUrl = `https://api.davidcyriltech.my.id/dare`; + + // Fetch dare question from the API + const dareResponse = await axios.get(dareApiUrl); + if (!dareResponse.data || !dareResponse.data.success) { + return reply("❌ Failed to fetch a dare question. Please try again later."); + } + + // Extract dare question + const dareQuestion = dareResponse.data.question; + if (dareQuestion) { + reply(`*Dare:* ${dareQuestion}`); + } + } catch (e) { + console.error(e); + reply("❌ An error occurred while fetching the dare question."); + } +}); diff --git a/plugins/gc-antitools.js b/plugins/gc-antitools.js new file mode 100644 index 0000000000000000000000000000000000000000..7fbcae033d8b87ed06ad93efa73024bc6b2598bb --- /dev/null +++ b/plugins/gc-antitools.js @@ -0,0 +1,75 @@ +const { + cmd +} = require('../command'); +const config = require("../config"); +cmd({ + 'on': "body" +}, async (_0x4be391, _0x2bbd0c, _0x558f90, { + from: _0x529db2, + body: _0x572277, + isGroup: _0xffba41, + isAdmins: _0x5e74ad, + isBotAdmins: _0x26676b, + reply: _0x53a5ce, + sender: _0x3dfc05 +}) => { + try { + const _0x3b3c8f = ["wtf", "mia", "xxx", "fuck", 'sex', "ass", "pussy", 'ponnaya', "hutto"]; + if (!_0xffba41 || _0x5e74ad || !_0x26676b) { + return; + } + const _0x157c8a = _0x572277.toLowerCase(); + const _0x371867 = _0x3b3c8f.some(_0x2e3bd4 => _0x157c8a.includes(_0x2e3bd4)); + if (_0x371867 & config.ANTI_BAD_WORD === "true") { + await _0x4be391.sendMessage(_0x529db2, { + 'delete': _0x2bbd0c.key + }, { + 'quoted': _0x2bbd0c + }); + await _0x4be391.sendMessage(_0x529db2, { + 'text': "🚫 ⚠️BAD WORDS NOT ALLOWED⚠️ 🚫" + }, { + 'quoted': _0x2bbd0c + }); + } + } catch (_0x47eee8) { + console.error(_0x47eee8); + _0x53a5ce("An error occurred while processing the message."); + } +}); +const linkPatterns = [/https?:\/\/(?:chat\.whatsapp\.com|wa\.me)\/\S+/gi, /^https?:\/\/(www\.)?whatsapp\.com\/channel\/([a-zA-Z0-9_-]+)$/, /wa\.me\/\S+/gi, /https?:\/\/(?:t\.me|telegram\.me)\/\S+/gi, /https?:\/\/(?:www\.)?youtube\.com\/\S+/gi, /https?:\/\/youtu\.be\/\S+/gi, /https?:\/\/(?:www\.)?facebook\.com\/\S+/gi, /https?:\/\/fb\.me\/\S+/gi, /https?:\/\/(?:www\.)?instagram\.com\/\S+/gi, /https?:\/\/(?:www\.)?twitter\.com\/\S+/gi, /https?:\/\/(?:www\.)?tiktok\.com\/\S+/gi, /https?:\/\/(?:www\.)?linkedin\.com\/\S+/gi, /https?:\/\/(?:www\.)?snapchat\.com\/\S+/gi, /https?:\/\/(?:www\.)?pinterest\.com\/\S+/gi, /https?:\/\/(?:www\.)?reddit\.com\/\S+/gi, /https?:\/\/ngl\/\S+/gi, /https?:\/\/(?:www\.)?discord\.com\/\S+/gi, /https?:\/\/(?:www\.)?twitch\.tv\/\S+/gi, /https?:\/\/(?:www\.)?vimeo\.com\/\S+/gi, /https?:\/\/(?:www\.)?dailymotion\.com\/\S+/gi, /https?:\/\/(?:www\.)?medium\.com\/\S+/gi]; +cmd({ + 'on': "body" +}, async (_0x488fe3, _0x4807fa, _0x524921, { + from: _0x49635a, + body: _0x3c0765, + sender: _0x36e9e2, + isGroup: _0x5cc616, + isAdmins: _0x4f15b6, + isBotAdmins: _0x148963, + reply: _0x3855a2 +}) => { + try { + if (!_0x5cc616 || _0x4f15b6 || !_0x148963) { + return; + } + const _0x58c73c = linkPatterns.some(_0x332817 => _0x332817.test(_0x3c0765)); + if (_0x58c73c && config.ANTI_LINK === 'true') { + await _0x488fe3.sendMessage(_0x49635a, { + 'delete': _0x4807fa.key + }, { + 'quoted': _0x4807fa + }); + await _0x488fe3.sendMessage(_0x49635a, { + 'text': "⚠️ Links are not allowed in this group.\n@" + _0x36e9e2.split('@')[0x0] + " has been removed. 🚫", + 'mentions': [_0x36e9e2] + }, { + 'quoted': _0x4807fa + }); + await _0x488fe3.groupParticipantsUpdate(_0x49635a, [_0x36e9e2], "remove"); + } + } catch (_0x2e5577) { + console.error(_0x2e5577); + _0x3855a2("An error occurred while processing the message."); + } +}); diff --git a/plugins/gc-delete.js b/plugins/gc-delete.js new file mode 100644 index 0000000000000000000000000000000000000000..bbde27d6f8a5cb2fbcdd2a91e0c11020d0a94fec --- /dev/null +++ b/plugins/gc-delete.js @@ -0,0 +1,28 @@ +const config = require('../config') +const { cmd, commands } = require('../command') + +cmd({ +pattern: "delete", +react: "❌", +alias: ["del"], +desc: "delete message", +category: "group", +use: '.del', +filename: __filename +}, +async(conn, mek, m,{from, l, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, isItzcp, groupAdmins, isBotAdmins, isAdmins, reply}) => { +if (!isOwner || !isAdmins) return; +try{ +if (!m.quoted) return reply(mg.notextfordel); +const key = { + remoteJid: m.chat, + fromMe: false, + id: m.quoted.id, + participant: m.quoted.sender + } + await conn.sendMessage(m.chat, { delete: key }) +} catch(e) { +console.log(e); +reply('SubZero Delete Successful..👨‍💻✅') +} +}) diff --git a/plugins/gc-kickall.js b/plugins/gc-kickall.js new file mode 100644 index 0000000000000000000000000000000000000000..46198f7e1ec97faf2d22dbee32cfa93454631641 --- /dev/null +++ b/plugins/gc-kickall.js @@ -0,0 +1,147 @@ +const { + cmd +} = require('../command'); +const sleep = _0x28b89a => new Promise(_0x3ad2ff => setTimeout(_0x3ad2ff, _0x28b89a)); +cmd({ + 'pattern': 'removemembers', + 'alias': ["kickall", 'endgc', "endgroup"], + 'desc': "Remove all non-admin members from the group.", + 'react': '🎉', + 'category': "group", + 'filename': __filename +}, async (_0x541c7c, _0x28ecd0, _0x2ebb28, { + from: _0x3ec016, + groupMetadata: _0x561a47, + groupAdmins: _0x4abe0f, + isBotAdmins: _0x119769, + senderNumber: _0x112bfc, + reply: _0x1cd54a, + isGroup: _0x2d9dc6 +}) => { + try { + if (!_0x2d9dc6) { + return _0x1cd54a("This command can only be used in groups."); + } + const _0x5ad0e2 = _0x541c7c.user.id.split(':')[0x0]; + if (_0x112bfc !== _0x5ad0e2) { + return _0x1cd54a("Only the bot owner can use this command."); + } + if (!_0x119769) { + return _0x1cd54a("I need to be an admin to execute this command."); + } + const _0x27054b = _0x561a47.participants; + const _0x59ce1d = _0x27054b.filter(_0x31bd1b => !_0x4abe0f.includes(_0x31bd1b.id)); + if (_0x59ce1d.length === 0x0) { + return _0x1cd54a("There are no non-admin members to remove."); + } + _0x1cd54a("Starting to remove " + _0x59ce1d.length + " non-admin members..."); + for (let _0x58a736 of _0x59ce1d) { + try { + await _0x541c7c.groupParticipantsUpdate(_0x3ec016, [_0x58a736.id], 'remove'); + await sleep(0x7d0); + } catch (_0x448767) { + console.error("Failed to remove " + _0x58a736.id + ':', _0x448767); + } + } + _0x1cd54a("Successfully removed all non-admin members from the group."); + } catch (_0x2ffa0d) { + console.error("Error removing non-admin users:", _0x2ffa0d); + _0x1cd54a("An error occurred while trying to remove non-admin members. Please try again."); + } +}); +cmd({ + 'pattern': "removeadmins", + 'alias': ["kickadmins", "kickall3", "deladmins"], + 'desc': "Remove all admin members from the group, excluding the bot and bot owner.", + 'react': '🎉', + 'category': "group", + 'filename': __filename +}, async (_0x2c9a95, _0x3d19b1, _0x5d9806, { + from: _0x49bf85, + isGroup: _0x437d8e, + senderNumber: _0x39ac26, + groupMetadata: _0x45af2, + groupAdmins: _0x59d911, + isBotAdmins: _0x25f378, + reply: _0x454a95 +}) => { + try { + if (!_0x437d8e) { + return _0x454a95("This command can only be used in groups."); + } + const _0x86850b = _0x2c9a95.user.id.split(':')[0x0]; + if (_0x39ac26 !== _0x86850b) { + return _0x454a95("Only the bot owner can use this command."); + } + if (!_0x25f378) { + return _0x454a95("I need to be an admin to execute this command."); + } + const _0x5251dc = _0x45af2.participants; + const _0x3468fe = _0x5251dc.filter(_0x6832c1 => _0x59d911.includes(_0x6832c1.id) && _0x6832c1.id !== _0x2c9a95.user.id && _0x6832c1.id !== _0x86850b + "@s.whatsapp.net"); + if (_0x3468fe.length === 0x0) { + return _0x454a95("There are no admin members to remove."); + } + _0x454a95("Starting to remove " + _0x3468fe.length + " admin members, excluding the bot and bot owner..."); + for (let _0x164699 of _0x3468fe) { + try { + await _0x2c9a95.groupParticipantsUpdate(_0x49bf85, [_0x164699.id], 'remove'); + await sleep(0x7d0); + } catch (_0x1b4051) { + console.error("Failed to remove " + _0x164699.id + ':', _0x1b4051); + } + } + _0x454a95("Successfully removed all admin members from the group, excluding the bot and bot owner."); + } catch (_0x2a5e6b) { + console.error("Error removing admins:", _0x2a5e6b); + _0x454a95("An error occurred while trying to remove admins. Please try again."); + } +}); +cmd({ + 'pattern': "removeall2", + 'alias': ["kickall2", "endgc2", "endgroup2"], + 'desc': "Remove all members and admins from the group, excluding the bot and bot owner.", + 'react': '🎉', + 'category': "group", + 'filename': __filename +}, async (_0x58df9b, _0x205354, _0x4f7c7c, { + from: _0xc8fca7, + isGroup: _0x4daea3, + senderNumber: _0x270b3f, + groupMetadata: _0x5289f6, + isBotAdmins: _0x1db97d, + reply: _0x477905 +}) => { + try { + if (!_0x4daea3) { + return _0x477905("This command can only be used in groups."); + } + const _0x3fdab4 = _0x58df9b.user.id.split(':')[0x0]; + if (_0x270b3f !== _0x3fdab4) { + return _0x477905("Only the bot owner can use this command."); + } + if (!_0x1db97d) { + return _0x477905("I need to be an admin to execute this command."); + } + const _0x44e3d7 = _0x5289f6.participants; + if (_0x44e3d7.length === 0x0) { + return _0x477905("The group has no members to remove."); + } + const _0x94c1ea = _0x44e3d7.filter(_0x29a3c7 => _0x29a3c7.id !== _0x58df9b.user.id && _0x29a3c7.id !== _0x3fdab4 + "@s.whatsapp.net"); + if (_0x94c1ea.length === 0x0) { + return _0x477905("No members to remove after excluding the bot and bot owner."); + } + _0x477905("Starting to remove " + _0x94c1ea.length + " members, excluding the bot and bot owner..."); + for (let _0x447569 of _0x94c1ea) { + try { + await _0x58df9b.groupParticipantsUpdate(_0xc8fca7, [_0x447569.id], "remove"); + await sleep(0x7d0); + } catch (_0x2fc4ea) { + console.error("Failed to remove " + _0x447569.id + ':', _0x2fc4ea); + } + } + _0x477905("Successfully removed all members, excluding the bot and bot owner, from the group."); + } catch (_0x191e55) { + console.error("Error removing members:", _0x191e55); + _0x477905("An error occurred while trying to remove members. Please try again."); + } +}); diff --git a/plugins/gc-period.js b/plugins/gc-period.js new file mode 100644 index 0000000000000000000000000000000000000000..cc2961cbce8c535b07e0e091fb0b33c984d72a6f --- /dev/null +++ b/plugins/gc-period.js @@ -0,0 +1,489 @@ +const config = require("../config"); +const { + cmd, + commands +} = require("../command"); +cmd({ + 'pattern': "opentime", + 'react': '🔖', + 'desc': "To open group to a time", + 'category': "group", + 'use': ".opentime", + 'filename': __filename +}, async (_0x34b3eb, _0x420019, _0x39b627, { + from: _0x1979f2, + prefix: _0x7a8f6f, + l: _0x25c44a, + quoted: _0x379179, + body: _0x681d99, + isCmd: _0x4f96ba, + command: _0x3c87cf, + args: _0x3aae58, + q: _0x29755d, + isGroup: _0x18986c, + sender: _0x1eeef2, + senderNumber: _0x5e7c65, + botNumber2: _0x5dc97f, + botNumber: _0x7cbf18, + pushname: _0x10e0d4, + isMe: _0x40fd80, + isOwner: _0x34432b, + groupMetadata: _0x53257c, + groupName: _0x582d96, + participants: _0x5b6051, + groupAdmins: _0x507027, + isBotAdmins: _0x480a94, + isAdmins: _0x186a74, + reply: _0x515443 +}) => { + try { + if (!_0x18986c) { + return _0x515443(ONLGROUP); + } + if (!_0x186a74) { + return _0x515443(ADMIN); + } + if (_0x3aae58[0x1] == "second") { + var _0x57d309 = _0x3aae58[0x0] * "1000"; + } else { + if (_0x3aae58[0x1] == "minute") { + var _0x57d309 = _0x3aae58[0x0] * "60000"; + } else { + if (_0x3aae58[0x1] == 'hour') { + var _0x57d309 = _0x3aae58[0x0] * "3600000"; + } else { + if (_0x3aae58[0x1] == 'day') { + var _0x57d309 = _0x3aae58[0x0] * "86400000"; + } else { + return _0x515443("*select:*\nsecond\nminute\nhour\n\n*example*\n10 second"); + } + } + } + } + _0x515443("Open time " + _0x29755d + " starting from now"); + setTimeout(() => { + _0x34b3eb.groupSettingUpdate(_0x1979f2, "not_announcement"); + _0x515443("> *🔔 Group Chat Automatically Opened By SubZero Bot*"); + }, _0x57d309); + await _0x34b3eb.sendMessage(_0x1979f2, { + 'react': { + 'text': '✅', + 'key': _0x420019.key + } + }); + } catch (_0x36d0c6) { + _0x515443("*Error !!*"); + _0x25c44a(_0x36d0c6); + } +}); +cmd({ + 'pattern': "closetime", + 'react': '🔖', + 'desc': "To close group to a time", + 'category': "group", + 'use': ".closstime", + 'filename': __filename +}, async (_0x33bbc7, _0x1f2130, _0x578b2f, { + from: _0x152d4d, + prefix: _0xb42f24, + l: _0xbe8dbc, + quoted: _0x59c39b, + body: _0x40ea43, + isCmd: _0x2826d4, + command: _0x25218c, + args: _0x5b0123, + q: _0x490959, + isGroup: _0x369c33, + sender: _0x536754, + senderNumber: _0x226ae6, + botNumber2: _0x262160, + botNumber: _0x5de73e, + pushname: _0x25e051, + isMe: _0x5a41d6, + isOwner: _0x567b92, + groupMetadata: _0x3a3520, + groupName: _0xdac3e3, + participants: _0x29c2b6, + groupAdmins: _0x1d43ad, + isBotAdmins: _0x526454, + isAdmins: _0x526c9a, + reply: _0x5c514e +}) => { + try { + if (!_0x369c33) { + return _0x5c514e(ONLGROUP); + } + if (!_0x526c9a) { + return _0x5c514e(ADMIN); + } + if (_0x5b0123[0x1] == 'second') { + var _0x4b2fe4 = _0x5b0123[0x0] * "1000"; + } else { + if (_0x5b0123[0x1] == "minute") { + var _0x4b2fe4 = _0x5b0123[0x0] * "60000"; + } else { + if (_0x5b0123[0x1] == "hour") { + var _0x4b2fe4 = _0x5b0123[0x0] * "3600000"; + } else { + if (_0x5b0123[0x1] == "day") { + var _0x4b2fe4 = _0x5b0123[0x0] * "86400000"; + } else { + return _0x5c514e("*select:*\nsecond\nminute\nhour\n\n*Example*\n10 second"); + } + } + } + } + _0x5c514e("Close time " + _0x490959 + " starting from now"); + setTimeout(() => { + _0x33bbc7.groupSettingUpdate(_0x152d4d, "announcement"); + _0x5c514e("> *🔕 Group Chat automatically closed by SubZero*"); + }, _0x4b2fe4); + await _0x33bbc7.sendMessage(_0x152d4d, { + 'react': { + 'text': '✅', + 'key': _0x1f2130.key + } + }); + } catch (_0x4094cc) { + _0x5c514e("*Error !!*"); + _0xbe8dbc(_0x4094cc); + } +}); +cmd({ + 'pattern': 'tagadmin', + 'alais': ["tagadmins"], + 'react': '🙀', + 'desc': "Tags all the admins in the group.", + 'category': 'group', + 'filename': __filename +}, async (_0x2180ae, _0x41ac32, _0x2e9138, { + from: _0x2616a, + prefix: _0xa4be17, + l: _0x11b560, + quoted: _0x2613b8, + body: _0x467a99, + isCmd: _0x38af41, + command: _0x159cc0, + args: _0x206a87, + q: _0x5a7094, + isGroup: _0x3fcba9, + sender: _0x2d33ad, + senderNumber: _0x2272d0, + botNumber2: _0x27bc6f, + botNumber: _0x428f22, + pushname: _0x1aed08, + isMe: _0x336ec0, + isOwner: _0x331a4d, + groupMetadata: _0x57c62a, + groupName: _0x3231a9, + participants: _0xe699, + groupAdmins: _0x53ccdc, + isBotAdmins: _0x4aa8ee, + isAdmins: _0x575128, + reply: _0x35f506 +}) => { + try { + if (!_0x3fcba9) { + return _0x35f506("This command is only for groups."); + } + if (!_0x575128) { + return _0x35f506("Yah Command Srf Admins Ky Lya Hai !."); + } + if (_0x53ccdc.length === 0x0) { + return _0x35f506("There are no admins in this group."); + } + let _0x14ad67 = "*TAGGING ALL ADMINS IN THE GROUP 🔳:*\n\n"; + for (let _0x166714 of _0x53ccdc) { + _0x14ad67 += '@' + _0x166714.split('@')[0x0] + "\n"; + } + await _0x2180ae.sendMessage(_0x2616a, { + 'text': _0x14ad67, + 'mentions': _0x53ccdc + }, { + 'quoted': _0x41ac32 + }); + } catch (_0x2a7fa0) { + console.error("Error tagging admins:", _0x2a7fa0); + _0x35f506("you are not an admin."); + } +}); +cmd({ + 'pattern': "mute", + 'alias': ["lock"], + 'react': '🔒', + 'desc': "mute group.", + 'category': "group", + 'filename': __filename +}, async (_0x188ee4, _0x2926d7, _0x5a0744, { + from: _0x1446bd, + l: _0x15ae12, + quoted: _0x11cce4, + body: _0x3901bf, + isCmd: _0x37eecc, + command: _0x2ed5f9, + args: _0x3b6b0a, + q: _0x7468c5, + isGroup: _0x3aa6ce, + sender: _0x1e204d, + senderNumber: _0x683c2e, + botNumber2: _0x26b4e2, + botNumber: _0x2ddb86, + pushname: _0x5c4eea, + isMe: _0x33a6e7, + isOwner: _0x39f686, + groupMetadata: _0x5aedcf, + groupName: _0x1026a0, + participants: _0x5e633e, + isItzcp: _0x4d966c, + groupAdmins: _0xa75e9a, + isBotAdmins: _0x5cd7fb, + isAdmins: _0x32b120, + reply: _0x4efac7 +}) => { + try { + if (!_0x39f686 || !_0x32b120) { + return; + } + if (!_0x5a0744.isGroup) { + return _0x4efac7(mg.onlygroup); + } + if (!_0x5cd7fb) { + return _0x4efac7(mg.needbotadmins); + } + await _0x188ee4.groupSettingUpdate(_0x5a0744.chat, "announcement"); + const _0x23264b = await _0x188ee4.sendMessage(_0x5a0744.chat, { + 'text': "*GROUP CHAT MUTED BY SUBZERO-MD* 🔒" + }, { + 'quoted': _0x2926d7 + }); + return await _0x188ee4.sendMessage(_0x5a0744.chat, { + 'react': { + 'text': '🔒', + 'key': _0x23264b.key + } + }); + } catch (_0x3ea7c2) { + console.log(_0x3ea7c2); + _0x4efac7("*Muja Admin Kar Pher Use Kar Commands ❗👻*"); + } +}); +cmd({ + 'pattern': "unmute", + 'alias': ["unlock"], + 'react': '🔓', + 'desc': "unmute group.", + 'category': "group", + 'filename': __filename +}, async (_0x298fe1, _0x116d41, _0x2602ac, { + from: _0x15600e, + l: _0x5ba8bd, + quoted: _0x30a624, + body: _0x314dcd, + isCmd: _0x2536d0, + command: _0x3d9eb1, + args: _0x19ba22, + q: _0x3f0c3c, + isGroup: _0x4e57af, + sender: _0x597d49, + senderNumber: _0xda3f5a, + botNumber2: _0x2f023e, + botNumber: _0x1dd6f9, + pushname: _0x5320d4, + isMe: _0x48a143, + isOwner: _0x2cda60, + groupMetadata: _0x130d26, + groupName: _0x4593b5, + participants: _0x166fbf, + isItzcp: _0x310852, + groupAdmins: _0x2154a4, + isBotAdmins: _0x16ccf1, + isAdmins: _0x118e3c, + reply: _0x33fff7 +}) => { + try { + if (!_0x2cda60 || !_0x118e3c) { + return; + } + if (!_0x2602ac.isGroup) { + return _0x33fff7(mg.onlygroup); + } + if (!_0x16ccf1) { + return _0x33fff7(mg.needbotadmins); + } + await _0x298fe1.groupSettingUpdate(_0x2602ac.chat, "not_announcement"); + const _0x74b371 = await _0x298fe1.sendMessage(_0x2602ac.chat, { + 'text': "*GROUP CHAT UNMUTED BY SUBZERO-MD* 🔒" + }, { + 'quoted': _0x116d41 + }); + return await _0x298fe1.sendMessage(_0x2602ac.chat, { + 'react': { + 'text': '🔒', + 'key': _0x74b371.key + } + }); + } catch (_0x38466f) { + console.log(_0x38466f); + _0x33fff7("*Muja Admin Bana Phr Commands Kar❗👻*"); + } +}); +cmd({ + 'pattern': 'add', + 'alias': ["aja"], + 'react': '➕', + 'desc': "Adds a user to the group.", + 'category': 'group', + 'filename': __filename, + 'use': '' +}, async (_0x29bcee, _0x5d8ef6, _0x56566a, { + from: _0x2d1d85, + quoted: _0x3437b0, + body: _0x212da3, + isCmd: _0x113379, + command: _0x4b5bf0, + args: _0xc1281a, + q: _0x58d6f4, + isGroup: _0x4e0892, + sender: _0xf93582, + senderNumber: _0x95b29f, + botNumber2: _0x558f84, + botNumber: _0x3571cd, + pushname: _0x19af4b, + isMe: _0x3ea7c4, + isOwner: _0x5c85af, + groupMetadata: _0x48378c, + groupName: _0x3827d6, + participants: _0x57e605, + groupAdmins: _0x4ddcc9, + isBotAdmins: _0x33dfec, + isAdmins: _0x4424ae, + reply: _0x227b1d +}) => { + try { + if (!_0x56566a.isGroup) { + return _0x227b1d("This command is only for groups."); + } + if (!_0x33dfec) { + return _0x227b1d("I need admin privileges to add users."); + } + if (!_0x58d6f4 || isNaN(_0x58d6f4)) { + return _0x227b1d("Please provide a valid phone number to add."); + } + const _0x362df9 = _0x58d6f4 + "@s.whatsapp.net"; + await _0x29bcee.groupParticipantsUpdate(_0x56566a.chat, [_0x362df9], "add"); + _0x227b1d("User " + _0x58d6f4 + " has been added to the group."); + } catch (_0x3f7309) { + console.error("Error adding user:", _0x3f7309); + _0x227b1d("An error occurred while adding the user. Please make sure the number is correct and they are not already in the group."); + } +}); +cmd({ + 'pattern': "setgoodbye", + 'desc': "Set the goodbye message for the group.", + 'category': "group", + 'react': '👋', + 'filename': __filename +}, async (_0x51b23f, _0x21cb6a, _0x275d83, { + from: _0x3ffb4d, + quoted: _0x3f3f17, + body: _0x4550f2, + isCmd: _0x28286e, + command: _0x97137b, + args: _0x273812, + q: _0x5ebbc8, + isGroup: _0xb2710d, + sender: _0x421d81, + senderNumber: _0x16e90c, + botNumber2: _0x2369c2, + botNumber: _0x555438, + pushname: _0x4c8d4a, + isMe: _0x522db1, + isOwner: _0x1db872, + groupMetadata: _0x212b3d, + groupName: _0x3d71b8, + participants: _0x4da364, + groupAdmins: _0x1a2b40, + isBotAdmins: _0xf475c2, + isAdmins: _0x533cde, + reply: _0x4beca6 +}) => { + try { + if (!_0xb2710d) { + return _0x4beca6("This command can only be used in a group."); + } + if (!_0xf475c2) { + return _0x4beca6("Bot must be an admin to use this command."); + } + if (!_0x533cde) { + return _0x4beca6("You must be an admin to use this command."); + } + if (!_0x5ebbc8) { + return _0x4beca6("Please provide a goodbye message."); + } + await _0x51b23f.sendMessage(_0x3ffb4d, { + 'image': { + 'url': config.ALIVE_IMG + }, + 'caption': _0x5ebbc8 + }); + await _0x4beca6("Goodbye message has been set."); + } catch (_0xbbddb1) { + console.log(_0xbbddb1); + _0x4beca6('' + _0xbbddb1); + } +}); +cmd({ + 'pattern': "setwelcome", + 'desc': "Set the welcome message for the group.", + 'category': "group", + 'react': '👋', + 'filename': __filename +}, async (_0x38c266, _0x3173c4, _0x390a75, { + from: _0x3f6a31, + quoted: _0x28a99e, + body: _0x4ed0ca, + isCmd: _0x4d0fa4, + command: _0x400fb2, + args: _0x3a8f9f, + q: _0xd0a608, + isGroup: _0x519fe5, + sender: _0x19d08d, + senderNumber: _0x4b3863, + botNumber2: _0x1aaac2, + botNumber: _0x5e81eb, + pushname: _0x37028a, + isMe: _0x2af145, + isOwner: _0x5060d5, + groupMetadata: _0x1378de, + groupName: _0x463238, + participants: _0x31482b, + groupAdmins: _0x5cc3cc, + isBotAdmins: _0x12d593, + isAdmins: _0x35af97, + reply: _0x4c430b +}) => { + try { + if (!_0x519fe5) { + return _0x4c430b("This command can only be used in a group."); + } + if (!_0x12d593) { + return _0x4c430b("Bot must be an admin to use this command."); + } + if (!_0x35af97) { + return _0x4c430b("You must be an admin to use this command."); + } + if (!_0xd0a608) { + return _0x4c430b("Please provide a welcome message."); + } + await _0x38c266.sendMessage(_0x3f6a31, { + 'image': { + 'url': config.ALIVE_IMG + }, + 'caption': _0xd0a608 + }); + await _0x4c430b("Welcome message has been set."); + } catch (_0x416d4f) { + console.log(_0x416d4f); + _0x4c430b('' + _0x416d4f); + } +}); diff --git a/plugins/hack-prank.js b/plugins/hack-prank.js new file mode 100644 index 0000000000000000000000000000000000000000..3e8e1ca03f671e3cb65b1d260c5ba1318e01d387 --- /dev/null +++ b/plugins/hack-prank.js @@ -0,0 +1,50 @@ +const { cmd } = require('../command'); + +cmd({ + pattern: "hack", + desc: "Displays a dynamic and playful 'Hacking' message for fun.", + category: "fun", + react: "💻", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const steps = [ + '💻 *SUBZERO HACK STARTING...* 💻', + '', + '*Initializing hacking tools...* 🛠️', + '*Connecting to remote servers...* 🌐', + '', + '```[██████████] 10%``` ⏳' , + '```[███████████████████] 20%``` ⏳' , + '```[███████████████████████] 30%``` ⏳' , + '```[██████████████████████████] 40%``` ⏳' , + '```[███████████████████████████████] 50%``` ⏳' , + '```[█████████████████████████████████████] 60%``` ⏳' , + '```[██████████████████████████████████████████] 70%``` ⏳' , + '```[██████████████████████████████████████████████] 80%``` ⏳' , + '```[██████████████████████████████████████████████████] 90%``` ⏳' , + '```[████████████████████████████████████████████████████] 100%``` ✅', + '', + '🔒 *System Breach: Successful!* 🔓', + '🚀 *Command Execution: Complete!* 🎯', + '', + '*📡 Transmitting data...* 📤', + '_🕵️‍♂️ Ensuring stealth..._ 🤫', + '*🔧 Finalizing operations...* 🏁', + '', + '⚠️ *Note:* All actions are for demonstration purposes only.', + '⚠️ *Reminder:* Ethical hacking is the only way to ensure security.', + '', + '> *SUBZERO-HACKING-COMPLETE ☣*' + ]; + + for (const line of steps) { + await conn.sendMessage(from, { text: line }, { quoted: mek }); + await new Promise(resolve => setTimeout(resolve, 1000)); // Adjust the delay as needed + } + } catch (e) { + console.log(e); + reply(`❌ *Error:* ${e.message}`); + } +}); diff --git a/plugins/main-about.js b/plugins/main-about.js new file mode 100644 index 0000000000000000000000000000000000000000..2fa979f8672b66538f55c0be7d12c4f35a19ffd5 --- /dev/null +++ b/plugins/main-about.js @@ -0,0 +1,78 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + +const config = require('../config'); + + +const {cmd , commands} = require('../command') +cmd({ + pattern: "about", + alias: ["mrfrank"], + react: "👨‍💻", + desc: "get owner dec", + category: "main", + filename: __filename +}, +async(conn, mek, m,{from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { +try{ +let madeMenu = `━━━━━━━━━━━━━━━━━━━━━━━━ + +*👋 HELLO ${pushname}*\n\n *INTRODUCING SUBZERO MD*\n +A WhatsApp Based Multi Device Bot Created By Darrell Mucheri T from Zimbabwe.\nIt sole purpose is to remove the burden or cost of purchasing data bundles to download Songs, Apps, Videos & Movies by using WhatsApp bundles.\n\n *For More Visit*: https://mrfrankinc.vercel.app/ + +━━━━━━━━━━━━━━━━━━━━━━━━ + +⛓️ *SOURCE CODE* +> https://github.com/mrfrank-ofc/SUBZERO-MD + +🛠️ *FOLLOW OWNER* +> https://github.com/mrfrank-ofc/ + +👨‍💻 *OWNER'S WHATSAPP* +> https://wa.me/18062212660/?text=SubZero+Fan+Here + +👩‍🍼 *2ND DEVELOPER* +> https://wa.me/265993702468/?text=SubZero+Fan+Here + +📌 *SUPPORT CHANNEL* +> https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D + +🔗 *FOLLOW INSTAGRAM* +> https://instagram.com/mrfrankofc/ + +👨‍💻 *FOLLOW OWNER* +> https://youtube.com/mrfr4nk/ + +┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈┈ + *[*RELEASE DATE* - *15 December 2024*]* + +> *MR FRANK OFC* + +━━━━━━━━━━━━━━━━━━━━━━━━ +` + + + +await conn.sendMessage(from,{image:{url:config.ALIVE_IMG},caption:madeMenu},{quoted:mek}) + +}catch(e){ +console.log(e) +reply(`${e}`) +} +}) diff --git a/plugins/main-alive.js b/plugins/main-alive.js new file mode 100644 index 0000000000000000000000000000000000000000..f533d4178482d5615908bb19191619bde4dbc050 --- /dev/null +++ b/plugins/main-alive.js @@ -0,0 +1,47 @@ +const { cmd, commands } = require('../command'); +const os = require("os"); +const { runtime } = require('../lib/functions'); + +cmd({ + pattern: "alive", + alias: ["status", "runtime", "uptime"], + desc: "Check uptime and system status", + category: "main", + react: "📟", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + // Generate system status message + const status = `╭━━〔 *SUBZERO MD* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• *⏳Uptime*: ${runtime(process.uptime())} +┃◈┃• *📟 Ram usage*: ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}MB / ${(os.totalmem() / 1024 / 1024).toFixed(2)}MB +┃◈┃• *⚙️ HostName*: ${os.hostname()} +┃◈┃• *👨‍💻 Owner*: Mr Frank +┃◈┃• *📂 Version*: 1.0.3 +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> © ᴘᴏᴡᴇʀᴇᴅ ʙʏ sᴜʙᴢᴇʀᴏ ᴍᴅ`; + + // Send the status message with an image + await conn.sendMessage(from, { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, // Image URL + caption: status, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』', + serverMessageId: 143 + } + } + }, { quoted: mek }); + + } catch (e) { + console.error("Error in alive command:", e); + reply(`An error occurred: ${e.message}`); + } +}); \ No newline at end of file diff --git a/plugins/main-beta-menu.js b/plugins/main-beta-menu.js new file mode 100644 index 0000000000000000000000000000000000000000..bdca8d44b88f776a4a2696c0f68df2d19e85403d --- /dev/null +++ b/plugins/main-beta-menu.js @@ -0,0 +1,625 @@ +const config = require('../config'); +const { cmd, commands } = require('../command'); +const os = require("os"); +const { runtime } = require('../lib/functions'); +const axios = require('axios'); + +cmd({ + pattern: "betamenu", + desc: "menu the bot", + category: "menu", + react: "📑", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━━〔 *${config.BOT_NAME}* 〕━━━┈⊷ +┃★╭────────────── +┃★│ Owner : *${config.OWNER_NAME}* +┃★│ Baileys : *Multi Device* +┃★│ Type : *NodeJs* +┃★│ Platform : *Heroku* +┃★│ Mode : *[${config.MODE}]* +┃★│ Prifix : *[${config.PREFIX}]* +┃★│ Version : *1.0.3 Bᴇᴛᴀ* +┃★╰────────────── +╰━━━━━━━━━━━━━━━┈⊷ +╭━━〔 *Menu List* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• ᴀɪᴍᴇɴᴜ +┃◈┃• ᴀɴɪᴍᴇᴍᴇɴᴜ +┃◈┃• ᴄᴏɴᴠᴇʀᴛᴍᴇɴᴜ +┃◈┃• ꜰᴜɴᴍᴇɴᴜ +┃◈┃• ᴅʟᴍᴇɴᴜ +┃◈┃• ʟɪsᴛᴍᴇɴᴜ +┃◈┃• ᴍᴀɪɴᴍᴇɴᴜ +┃◈┃• ɢʀᴏᴜᴘᴍᴇɴᴜ +┃◈┃• ᴀʟʟᴍᴇɴᴜ +┃◈┃• ᴏᴡɴᴇʀᴍᴇɴᴜ +┃◈┃• ᴏᴛʜᴇʀᴍᴇɴᴜ +┃◈┃• sᴜʙᴢᴇʀᴏᴍᴇɴᴜ +┃◈┃• +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> SᴜʙZᴇʀᴏ W.A Bᴏᴛ`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + // Send audio + await conn.sendMessage(from, { + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/raw/refs/heads/main/audios/subzero-menu.mp3' }, + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + + +// dlmenu + +cmd({ + pattern: "dlmenu", + desc: "menu the bot", + category: "menu", + react: "🗳️", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Download Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• facebook +┃◈┃• mediafire +┃◈┃• tiktok +┃◈┃• twitter +┃◈┃• Insta +┃◈┃• apk +┃◈┃• img +┃◈┃• spotify +┃◈┃• play +┃◈┃• play2 +┃◈┃• play3 +┃◈┃• tt2 +┃◈┃• audio +┃◈┃• video +┃◈┃• video2 +┃◈┃• ytmp3 +┃◈┃• ytmp4 +┃◈┃• song +┃◈┃• darama +┃◈┃• git +┃◈┃• gdrive +┃◈┃• smovie +┃◈┃• baiscope +┃◈┃• ginisilia +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + +// group menu + +cmd({ + pattern: "groupmenu", + desc: "menu the bot", + category: "menu", + react: "👥", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try + { + let dec = `╭━━〔 *Group Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• grouplink +┃◈┃• kickall +┃◈┃• kickall2 +┃◈┃• kickall3 +┃◈┃• add +┃◈┃• remove +┃◈┃• kick +┃◈┃• promote +┃◈┃• demote +┃◈┃• dismiss +┃◈┃• revoke +┃◈┃• setgoodbye +┃◈┃• setwelcome +┃◈┃• delete +┃◈┃• getpic +┃◈┃• ginfo +┃◈┃• delete +┃◈┃• disappear on +┃◈┃• disappear off +┃◈┃• disappear 7D,24H +┃◈┃• allreq +┃◈┃• updategname +┃◈┃• updategdesc +┃◈┃• joinrequests +┃◈┃• senddm +┃◈┃• nikal +┃◈┃• mute +┃◈┃• unmute +┃◈┃• lockgc +┃◈┃• unlockgc +┃◈┃• invite +┃◈┃• tag +┃◈┃• hidetag +┃◈┃• tagall +┃◈┃• tagadmins +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + +// fun menu + +cmd({ + pattern: "funmenu", + desc: "menu the bot", + category: "menu", + react: "☺", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + + let dec = `╭━━〔 *Fun Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• insult +┃◈┃• pickup +┃◈┃• ship +┃◈┃• character +┃◈┃• hack +┃◈┃• joke +┃◈┃• hrt +┃◈┃• hpy +┃◈┃• syd +┃◈┃• anger +┃◈┃• shy +┃◈┃• kiss +┃◈┃• mon +┃◈┃• cunfuzed +┃◈┃• setpp +┃◈┃• hand +┃◈┃• nikal +┃◈┃• hold +┃◈┃• hug +┃◈┃• nikal +┃◈┃• hifi +┃◈┃• poke +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + +// other menu + +cmd({ + pattern: "othermenu", + desc: "menu the bot", + category: "menu", + react: "🤖", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Other Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• vv +┃◈┃• pair +┃◈┃• pair2 +┃◈┃• fact +┃◈┃• fancy +┃◈┃• define +┃◈┃• news +┃◈┃• movie +┃◈┃• weather +┃◈┃• srepo +┃◈┃• insult +┃◈┃• save +┃◈┃• wikipedia +┃◈┃• gpass +┃◈┃• githubstalk +┃◈┃• yts +┃◈┃• ytv +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + +// main menu + +cmd({ + pattern: "mainmenu", + desc: "menu the bot", + category: "menu", + react: "⚙️", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Main Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• ping +┃◈┃• live +┃◈┃• alive +┃◈┃• runtime +┃◈┃• uptime +┃◈┃• repo +┃◈┃• owner +┃◈┃• menu +┃◈┃• menu2 +┃◈┃• restart +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + +// owner menu + +cmd({ + pattern: "ownermenu", + desc: "menu the bot", + category: "menu", + react: "🔰", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Owner Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• owner +┃◈┃• menu +┃◈┃• menu2 +┃◈┃• listcmd +┃◈┃• allmenu +┃◈┃• repo +┃◈┃• block +┃◈┃• unblock +┃◈┃• fullpp +┃◈┃• setpp +┃◈┃• restart +┃◈┃• shutdown +┃◈┃• updatecmd +┃◈┃• alive +┃◈┃• ping +┃◈┃• gjid +┃◈┃• jid +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + +// convert menu + +cmd({ + pattern: "convertmenu", + desc: "menu the bot", + category: "menu", + react: "🔄", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Convert Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• sticker +┃◈┃• sticker2 +┃◈┃• fancy +┃◈┃• take +┃◈┃• tomp3 +┃◈┃• tts +┃◈┃• trt +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + + +// anmie menu + +cmd({ + pattern: "animemenu", + desc: "menu the bot", + category: "menu", + react: "🧚", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Anime Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• fack +┃◈┃• dog +┃◈┃• awoo +┃◈┃• garl +┃◈┃• waifu +┃◈┃• neko +┃◈┃• megnumin +┃◈┃• neko +┃◈┃• maid +┃◈┃• loli +┃◈┃• animegirl +┃◈┃• animegirl +┃◈┃• animegirl1 +┃◈┃• animegirl2 +┃◈┃• animegirl3 +┃◈┃• animegirl4 +┃◈┃• animegirl5 +┃◈┃• anime1 +┃◈┃• anime1 +┃◈┃• anime2 +┃◈┃• anime3 +┃◈┃• anime4 +┃◈┃• anime5 +┃◈┃• animenews +┃◈┃• foxgirl +┃◈┃• naruto +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + + +// ai menu + +cmd({ + pattern: "aimenu", + desc: "menu the bot", + category: "menu", + react: "🤖", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━〔 *Ai Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• ai +┃◈┃• gpt +┃◈┃• meta +┃◈┃• blackbox +┃◈┃• gpt4 +┃◈┃• bing +┃◈┃• copilot +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + diff --git a/plugins/main-download.js b/plugins/main-download.js new file mode 100644 index 0000000000000000000000000000000000000000..2255b18c69748fe54312ef8b46d62c5d1098999d --- /dev/null +++ b/plugins/main-download.js @@ -0,0 +1,1149 @@ +const { + fetchJson +} = require("../lib/functions"); +const { + downloadTiktok +} = require("@mrnima/tiktok-downloader"); +const { + facebook +} = require("@mrnima/facebook-downloader"); +const cheerio = require("cheerio"); +const { + igdl +} = require("ruhend-scraper"); +const axios = require("axios"); +const { + cmd, + commands +} = require('../command'); +cmd({ + 'pattern': "tiktok", + 'alias': ['tt'], + 'react': '🎥', + 'desc': "download tt videos", + 'category': "download", + 'filename': __filename +}, async (_0x17ba40, _0x3e7702, _0x2a55b1, { + from: _0x2af3cb, + quoted: _0x5a90c5, + body: _0x3b8f49, + isCmd: _0x179688, + command: _0x42362d, + args: _0x31ccaa, + q: _0x11bfff, + isGroup: _0xdefcea, + sender: _0x2542cf, + senderNumber: _0x3aa611, + botNumber2: _0x22057c, + botNumber: _0x23b31a, + pushname: _0x24af73, + isMe: _0x3594b3, + isOwner: _0x24a3e5, + groupMetadata: _0x2466d5, + groupName: _0x37e617, + participants: _0x567e09, + groupAdmins: _0x12f2aa, + isBotAdmins: _0x5e033e, + isAdmins: _0x497b76, + reply: _0x5f3bbd +}) => { + try { + if (!_0x11bfff && !_0x11bfff.startsWith('https://')) { + return _0x5f3bbd("*`Need url`*"); + } + _0x2a55b1.react('⬇️'); + let _0x3f9407 = await downloadTiktok(_0x11bfff); + let _0x4f6891 = "╭━━━〔 *SUBZERO-MD* 〕━━━┈⊷\n┃▸╭───────────\n┃▸┃๏ *TIKTOK DOWNLOADER*\n┃▸└───────────···๏\n╰────────────────┈⊷\n╭━━━❐━⪼\n┇๏ *Title* - " + _0x3f9407.result.title + " \n╰━━━❐━⪼\n╭━❮ *Download Video* ❯━┈⊷\n┃▸╭─────────────·๏\n┃▸┃๏ *1* ┃ *SD Quality*\n┃▸┃๏ *2* ┃ *HD Quality*\n┃▸└────────────┈⊷\n╰━━━━━━━━━━━━━━━⪼\n╭━❮ *Download Audio* ❯━┈⊷\n┃▸╭─────────────·๏\n┃▸┃๏ *3* ┃ *Audio*\n┃▸└────────────┈⊷\n╰━━━━━━━━━━━━━━━⪼\n> *© Pᴏᴡᴇʀᴇᴅ Bʏ Sᴜʙᴢᴇʀᴏ*"; + const _0x29dff7 = await _0x17ba40.sendMessage(_0x2af3cb, { + 'image': { + 'url': _0x3f9407.result.image + }, + 'caption': _0x4f6891 + }); + const _0x5e0151 = _0x29dff7.key.id; + _0x17ba40.ev.on("messages.upsert", async _0x571114 => { + const _0x55381c = _0x571114.messages[0x0]; + if (!_0x55381c.message) { + return; + } + const _0x14072d = _0x55381c.message.conversation || _0x55381c.message.extendedTextMessage?.["text"]; + const _0x2029bb = _0x55381c.key.remoteJid; + const _0x20da59 = _0x55381c.message.extendedTextMessage && _0x55381c.message.extendedTextMessage.contextInfo.stanzaId === _0x5e0151; + if (_0x20da59) { + await _0x17ba40.sendMessage(_0x2029bb, { + 'react': { + 'text': '⬇️', + 'key': _0x55381c.key + } + }); + let _0x27cf5f = _0x3f9407.result; + await _0x17ba40.sendMessage(_0x2029bb, { + 'react': { + 'text': '⬆️', + 'key': _0x55381c.key + } + }); + if (_0x14072d === '1') { + await _0x17ba40.sendMessage(_0x2029bb, { + 'video': { + 'url': _0x27cf5f.dl_link.download_mp4_1 + }, + 'caption': "*© Powered Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x55381c + }); + } else { + if (_0x14072d === '2') { + await _0x17ba40.sendMessage(_0x2029bb, { + 'video': { + 'url': _0x27cf5f.dl_link.download_mp4_2 + }, + 'caption': "*© Powered Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x55381c + }); + } else if (_0x14072d === '3') { + await _0x17ba40.sendMessage(_0x2029bb, { + 'audio': { + 'url': _0x27cf5f.dl_link.download_mp3 + }, + 'mimetype': "audio/mpeg" + }, { + 'quoted': _0x55381c + }); + } + } + } + }); + } catch (_0x1192a5) { + console.log(_0x1192a5); + _0x5f3bbd('' + _0x1192a5); + } +}); +cmd({ + 'pattern': 'fb', + 'alias': ["facebook"], + 'desc': "Download Facebook videos", + 'category': "download", + 'filename': __filename +}, async (_0x463020, _0x55bd97, _0x368c99, { + from: _0xd59c39, + quoted: _0x3054c8, + body: _0x267a02, + isCmd: _0x3e2744, + command: _0x79551a, + args: _0x1989d2, + q: _0x32da14, + isGroup: _0x3f7b6f, + sender: _0x42116d, + senderNumber: _0x45dc5e, + botNumber2: _0x34e464, + botNumber: _0x461cb9, + pushname: _0x213d3c, + isMe: _0x44ce4f, + isOwner: _0x1feea4, + groupMetadata: _0x3e49b1, + groupName: _0x20f33f, + participants: _0x5d4661, + groupAdmins: _0x57a821, + isBotAdmins: _0x122d73, + isAdmins: _0x1d8749, + reply: _0x26d68e +}) => { + try { + if (!_0x32da14 || !_0x32da14.startsWith("https://")) { + return _0x463020.sendMessage(_0xd59c39, { + 'text': "*`Need URL`*" + }, { + 'quoted': _0x55bd97 + }); + } + await _0x463020.sendMessage(_0xd59c39, { + 'react': { + 'text': '⏳', + 'key': _0x55bd97.key + } + }); + const _0xba6170 = await facebook(_0x32da14); + const _0x8af79d = "╭━━━〔 *SUBZERO-MD* 〕━━━┈⊷\n┃▸╭───────────\n┃▸┃๏ *FB DOWNLOADER*\n┃▸└───────────···๏\n╰────────────────┈⊷\n╭━━━❐━⪼\n┇๏ *Duration* - " + _0xba6170.result.duration + " \n╰━━━❐━⪼\n╭━❮ *Download Video* ❯━┈⊷\n┃▸╭─────────────·๏\n┃▸┃๏ *1.1* ┃ *SD Quality*\n┃▸┃๏ *1.2* ┃ *HD Quality*\n┃▸└────────────┈⊷\n╰━━━━━━━━━━━━━━━⪼\n╭━❮ *Download Audio* ❯━┈⊷\n┃▸╭─────────────·๏\n┃▸┃๏ *2.1* ┃ *Audio*\n┃▸┃๏ *2.2* ┃ *Document*\n┃▸┃๏ *2.3* ┃ *Voice*\n┃▸└────────────┈⊷\n╰━━━━━━━━━━━━━━━⪼\n> *© Pᴏᴡᴇʀᴇᴅ Bʏ Sᴜʙᴢᴇʀᴏ ♡*"; + const _0x1e4914 = await _0x463020.sendMessage(_0xd59c39, { + 'image': { + 'url': _0xba6170.result.thumbnail + }, + 'caption': _0x8af79d + }, { + 'quoted': _0x55bd97 + }); + const _0x304402 = _0x1e4914.key.id; + _0x463020.ev.on("messages.upsert", async _0x1fb420 => { + const _0x3ddaca = _0x1fb420.messages[0x0]; + if (!_0x3ddaca.message) { + return; + } + const _0x56b3d7 = _0x3ddaca.message.conversation || _0x3ddaca.message.extendedTextMessage?.['text']; + const _0x138ae5 = _0x3ddaca.key.remoteJid; + const _0x188836 = _0x3ddaca.message.extendedTextMessage && _0x3ddaca.message.extendedTextMessage.contextInfo.stanzaId === _0x304402; + if (_0x188836) { + await _0x463020.sendMessage(_0x138ae5, { + 'react': { + 'text': '⬇️', + 'key': _0x3ddaca.key + } + }); + let _0x3f9d82 = _0xba6170.result; + await _0x463020.sendMessage(_0x138ae5, { + 'react': { + 'text': '⬆️', + 'key': _0x3ddaca.key + } + }); + if (_0x56b3d7 === "1.1") { + await _0x463020.sendMessage(_0x138ae5, { + 'video': { + 'url': _0x3f9d82.links.SD + }, + 'caption': "*© Powered Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x3ddaca + }); + } else { + if (_0x56b3d7 === "1.2") { + await _0x463020.sendMessage(_0x138ae5, { + 'video': { + 'url': _0x3f9d82.links.HD + }, + 'caption': "*© Powered Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x3ddaca + }); + } else { + if (_0x56b3d7 === '2.1') { + await _0x463020.sendMessage(_0x138ae5, { + 'audio': { + 'url': _0x3f9d82.links.SD + }, + 'mimetype': "audio/mpeg" + }, { + 'quoted': _0x3ddaca + }); + } else { + if (_0x56b3d7 === '2.2') { + await _0x463020.sendMessage(_0x138ae5, { + 'document': { + 'url': _0x3f9d82.links.SD + }, + 'mimetype': "audio/mpeg", + 'fileName': "SUBZERO/FBDL.mp3", + 'caption': "*© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x3ddaca + }); + } else if (_0x56b3d7 === '2.3') { + await _0x463020.sendMessage(_0x138ae5, { + 'audio': { + 'url': _0x3f9d82.links.SD + }, + 'mimetype': "audio/mp4", + 'ptt': true + }, { + 'quoted': _0x3ddaca + }); + } + } + } + } + } + }); + } catch (_0x536e30) { + console.log(_0x536e30); + _0x26d68e('' + _0x536e30); + } +}); +cmd({ + 'pattern': "twitter", + 'alias': ["tweet", 'twdl'], + 'desc': "Download Twitter videos", + 'category': 'download', + 'filename': __filename +}, async (_0x1b6730, _0x5e34ab, _0x465d61, { + from: _0x530d47, + quoted: _0x34cff8, + body: _0x3eeb08, + isCmd: _0x253322, + command: _0x2bba29, + args: _0x402b20, + q: _0x424e48, + isGroup: _0x2d88e4, + sender: _0x350296, + senderNumber: _0x309c27, + botNumber2: _0x3ea1cc, + botNumber: _0x42585a, + pushname: _0x204c4a, + isMe: _0x3896d9, + isOwner: _0x397324, + groupMetadata: _0x4c9a76, + groupName: _0x6052fa, + participants: _0x516df4, + groupAdmins: _0x2a36f0, + isBotAdmins: _0x28cc20, + isAdmins: _0x395769, + reply: _0x5d688c +}) => { + try { + if (!_0x424e48 || !_0x424e48.startsWith('https://')) { + return _0x1b6730.sendMessage(_0x530d47, { + 'text': "❌ Please provide a valid Twitter URL." + }, { + 'quoted': _0x5e34ab + }); + } + await _0x1b6730.sendMessage(_0x530d47, { + 'react': { + 'text': '⏳', + 'key': _0x5e34ab.key + } + }); + const _0x75168f = await axios.get("https://www.dark-yasiya-api.site/download/twitter?url=" + _0x424e48); + const _0x2dd097 = _0x75168f.data; + if (!_0x2dd097 || !_0x2dd097.status || !_0x2dd097.result) { + return _0x465d61.reply("Failed to retrieve Twitter video. Please check the link and try again."); + } + const { + desc: _0x1ee042, + thumb: _0x5b0a7a, + video_sd: _0x10c016, + video_hd: _0x51b7f4 + } = _0x2dd097.result; + const _0x2ec70f = await _0x1b6730.sendMessage(_0x530d47, { + 'image': { + 'url': _0x5b0a7a + }, + 'caption': "╭━━━〔 *SUBZERO-MD* 〕━━━┈⊷\n┃▸╭───────────\n┃▸┃๏ *TWITTER DOWNLOADER*\n┃▸└───────────···๏\n╰────────────────┈⊷\n╭━❮ *Download Video* ❯━┈⊷\n┃▸╭─────────────·๏\n┃▸┃๏ *1.1* ┃ *SD Quality*\n┃▸┃๏ *1.2* ┃ *HD Quality*\n┃▸└────────────┈⊷\n╰━━━━━━━━━━━━━━━⪼\n╭━❮ *Download Audio* ❯━┈⊷\n┃▸╭─────────────·๏\n┃▸┃๏ *2.1* ┃ *Audio*\n┃▸┃๏ *2.2* ┃ *Document*\n┃▸┃๏ *2.3* ┃ *Voice*\n┃▸└────────────┈⊷\n╰━━━━━━━━━━━━━━━⪼\n> *© Pᴏᴡᴇʀᴇᴅ Bʏ Sᴜʙᴢᴇʀᴏ-Aɪ ♡*" + }, { + 'quoted': _0x5e34ab + }); + const _0x201536 = _0x2ec70f.key.id; + _0x1b6730.ev.on("messages.upsert", async _0x254226 => { + const _0x4da097 = _0x254226.messages[0x0]; + if (!_0x4da097.message) { + return; + } + const _0x111a51 = _0x4da097.message.conversation || _0x4da097.message.extendedTextMessage?.["text"]; + const _0x29bec7 = _0x4da097.key.remoteJid; + const _0x38e788 = _0x4da097.message.extendedTextMessage && _0x4da097.message.extendedTextMessage.contextInfo.stanzaId === _0x201536; + if (_0x38e788) { + await _0x1b6730.sendMessage(_0x29bec7, { + 'react': { + 'text': '⬇️', + 'key': _0x4da097.key + } + }); + if (_0x111a51 === "1.1") { + await _0x1b6730.sendMessage(_0x29bec7, { + 'video': { + 'url': _0x10c016 + }, + 'caption': "*© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x4da097 + }); + } else { + if (_0x111a51 === '1.2') { + await _0x1b6730.sendMessage(_0x29bec7, { + 'video': { + 'url': _0x51b7f4 + }, + 'caption': "*© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x4da097 + }); + } else { + if (_0x111a51 === "2.1") { + await _0x1b6730.sendMessage(_0x29bec7, { + 'audio': { + 'url': _0x10c016 + }, + 'mimetype': "audio/mpeg" + }, { + 'quoted': _0x4da097 + }); + } else { + if (_0x111a51 === "2.2") { + await _0x1b6730.sendMessage(_0x29bec7, { + 'document': { + 'url': _0x10c016 + }, + 'mimetype': "audio/mpeg", + 'fileName': "SUBZERO/TWDL.mp3", + 'caption': "*© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x4da097 + }); + } else if (_0x111a51 === "2.3") { + await _0x1b6730.sendMessage(_0x29bec7, { + 'audio': { + 'url': _0x10c016 + }, + 'mimetype': "audio/mp4", + 'ptt': true + }, { + 'quoted': _0x4da097 + }); + } + } + } + } + } + }); + } catch (_0x58c9ee) { + console.log(_0x58c9ee); + _0x5d688c("An error occurred: " + _0x58c9ee); + } +}); +cmd({ + 'pattern': 'mediafire', + 'alias': ["mfire"], + 'desc': "To download MediaFire files.", + 'react': '🎥', + 'category': 'download', + 'filename': __filename +}, async (_0xc60242, _0x56b9bd, _0x1d4064, { + from: _0x3eb310, + quoted: _0x4cba07, + body: _0x4b648, + isCmd: _0x2a96f2, + command: _0x468ea8, + args: _0x406c44, + q: _0x17ee78, + isGroup: _0x483c91, + sender: _0x510aa1, + senderNumber: _0x33fe01, + botNumber2: _0x45b464, + botNumber: _0xf63b78, + pushname: _0x3f038c, + isMe: _0x44506d, + isOwner: _0x27bda7, + groupMetadata: _0x1aeab2, + groupName: _0x2dd13e, + participants: _0x5e38a2, + groupAdmins: _0x364a5d, + isBotAdmins: _0x307bb0, + isAdmins: _0x59b66c, + reply: _0x3fc41a +}) => { + try { + if (!_0x17ee78) { + return _0x1d4064.reply("Please provide a valid MediaFire link."); + } + _0x1d4064.react('⬇️'); + const _0x670fc1 = await axios.get("https://www.dark-yasiya-api.site/download/mfire?url=" + _0x17ee78); + const _0x2a62ec = _0x670fc1.data; + if (!_0x2a62ec || !_0x2a62ec.status || !_0x2a62ec.result || !_0x2a62ec.result.dl_link) { + return _0x1d4064.reply("Failed to fetch MediaFire download link. Ensure the link is valid and public."); + } + const _0x338997 = _0x2a62ec.result.dl_link; + const _0x10a817 = _0x2a62ec.result.fileName || "mediafire_download"; + const _0x259baa = _0x2a62ec.result.fileType || "application/octet-stream"; + _0x1d4064.react('⬆️'); + let _0x4ad462 = "╭━━━〔 *SUBZERO-MD* 〕━━━┈⊷\n┃▸╭───────────\n┃▸┃๏ *MFIRE DOWNLOADER*\n┃▸└───────────···๏\n╰────────────────┈⊷\n╭━━━❐━⪼\n┇๏ *File Name* - " + _0x10a817 + " \n┇๏ *File Type* - " + _0x259baa + " \n╰━━━❐━⪼\n> *© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*"; + await _0xc60242.sendMessage(_0x3eb310, { + 'document': { + 'url': _0x338997 + }, + 'mimetype': _0x259baa, + 'fileName': _0x10a817, + 'caption': _0x4ad462 + }, { + 'quoted': _0x56b9bd + }); + } catch (_0x55f937) { + console.error(_0x55f937); + _0x3fc41a("An error occurred: " + _0x55f937.message); + } +}); +cmd({ + 'pattern': 'ig', + 'alias': ["insta", "Instagram"], + 'desc': "To download instagram videos.", + 'react': '🎥', + 'category': "download", + 'filename': __filename +}, async (_0x37f725, _0x489a1e, _0x150743, { + from: _0x41a867, + quoted: _0x420889, + body: _0x3446d4, + isCmd: _0x5e7ca9, + command: _0x287ec1, + args: _0x1f6906, + q: _0x3be185, + isGroup: _0x14506e, + sender: _0xe2d502, + senderNumber: _0x18bb0c, + botNumber2: _0x24d3b9, + botNumber: _0x2d3cae, + pushname: _0x2b6cdf, + isMe: _0x182762, + isOwner: _0x2baf9c, + groupMetadata: _0x16aaa8, + groupName: _0x42b083, + participants: _0x5b1a48, + groupAdmins: _0x497c62, + isBotAdmins: _0x3a233c, + isAdmins: _0x3fa458, + reply: _0x4edbb2 +}) => { + try { + if (!_0x3be185) { + return _0x150743.reply("Please Give Me a vaild Link..."); + } + _0x150743.react('⬇️'); + let _0x3507e0 = await igdl(_0x3be185); + let _0x2d751d = await _0x3507e0.data; + for (let _0x9567ff = 0x0; _0x9567ff < 0x14; _0x9567ff++) { + let _0x22bee3 = _0x2d751d[_0x9567ff]; + let _0x495822 = _0x22bee3.url; + _0x150743.react('⬆️'); + await _0x37f725.sendMessage(_0x41a867, { + 'video': { + 'url': _0x495822 + }, + 'mimetype': 'video/mp4', + 'caption': "> *© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x489a1e + }); + _0x150743.react('✅'); + } + } catch (_0x56d1cc) { + console.log(_0x56d1cc); + } +}); +async function xdl(_0x3d2536) { + return new Promise((_0x3c677f, _0x3b4b2e) => { + fetch('' + _0x3d2536, { + 'method': "get" + }).then(_0x5da93a => _0x5da93a.text()).then(_0x36604b => { + const _0x3ac5be = cheerio.load(_0x36604b, { + 'xmlMode': false + }); + const _0x3db906 = _0x3ac5be("meta[property=\"og:title\"]").attr("content"); + const _0x2faa2a = _0x3ac5be("meta[property=\"og:duration\"]").attr("content"); + const _0x5d0c84 = _0x3ac5be("meta[property=\"og:image\"]").attr("content"); + const _0x2be2a4 = _0x3ac5be("meta[property=\"og:video:type\"]").attr('content'); + const _0x503e28 = _0x3ac5be("meta[property=\"og:video:width\"]").attr("content"); + const _0x4e322e = _0x3ac5be("meta[property=\"og:video:height\"]").attr("content"); + const _0x17839d = _0x3ac5be('span.metadata').text(); + const _0x3d1c95 = _0x3ac5be("#video-player-bg > script:nth-child(6)").html(); + const _0x519722 = { + 'low': (_0x3d1c95.match("html5player.setVideoUrlLow\\('(.*?)'\\);") || [])[0x1], + 'high': _0x3d1c95.match("html5player.setVideoUrlHigh\\('(.*?)'\\);" || [])[0x1], + 'HLS': _0x3d1c95.match("html5player.setVideoHLS\\('(.*?)'\\);" || [])[0x1], + 'thumb': _0x3d1c95.match("html5player.setThumbUrl\\('(.*?)'\\);" || [])[0x1], + 'thumb69': _0x3d1c95.match("html5player.setThumbUrl169\\('(.*?)'\\);" || [])[0x1], + 'thumbSlide': _0x3d1c95.match("html5player.setThumbSlide\\('(.*?)'\\);" || [])[0x1], + 'thumbSlideBig': _0x3d1c95.match("html5player.setThumbSlideBig\\('(.*?)'\\);" || [])[0x1] + }; + _0x3c677f({ + 'status': true, + 'result': { + 'title': _0x3db906, + 'URL': _0x3d2536, + 'duration': _0x2faa2a, + 'image': _0x5d0c84, + 'videoType': _0x2be2a4, + 'videoWidth': _0x503e28, + 'videoHeight': _0x4e322e, + 'info': _0x17839d, + 'files': _0x519722 + } + }); + })["catch"](_0x3cd887 => _0x3b4b2e({ + 'status': false, + 'result': _0x3cd887 + })); + }); +} +cmd({ + 'pattern': "xnxxdown", + 'alias': ["dlxnxx", "xnxxdl"], + 'react': '🫣', + 'desc': "Download xnxx videos", + 'category': "nsfw", + 'use': ".xnxx ", + 'filename': __filename +}, async (_0x486161, _0x455e73, _0x44e403, { + from: _0x1ed280, + l: _0xd5ac3b, + quoted: _0x50d06e, + body: _0xbf6335, + isCmd: _0x77414e, + command: _0x2a4087, + args: _0x3eac74, + q: _0x47028d, + isGroup: _0x1ee1f5, + sender: _0x889d22, + senderNumber: _0x1aa706, + botNumber2: _0x48376c, + botNumber: _0xd92db2, + pushname: _0x2e4259, + isMe: _0x1b3a4e, + isOwner: _0x1f2f15, + groupMetadata: _0x36a1cb, + groupName: _0xe67509, + participants: _0x441600, + groupAdmins: _0x2a95d5, + isBotAdmins: _0x4fc5ae, + isAdmins: _0x2e06a2, + reply: _0x5685d0 +}) => { + try { + if (!_0x47028d) { + return _0x5685d0("*Please give me url !!*"); + } + let _0x3a9391 = await xdl(_0x47028d); + let _0x340eb7 = _0x3a9391.result.title; + await _0x486161.sendMessage(_0x1ed280, { + 'video': { + 'url': _0x3a9391.result.files.high + }, + 'caption': _0x340eb7 + }, { + 'quoted': _0x455e73 + }); + } catch (_0x1ee92f) { + _0x5685d0("*Error !!*"); + console.log(_0x1ee92f); + } +}); +cmd({ + 'pattern': "xvdown", + 'alias': ["dlxv", 'xvdl'], + 'react': '🫣', + 'desc': "Download xvideos videos", + 'category': 'nsfw', + 'use': ".xv ", + 'filename': __filename +}, async (_0xf4b747, _0x2d8700, _0xb5ff80, { + from: _0x2747f2, + l: _0x28ada0, + quoted: _0x1a14ba, + body: _0x132b6b, + isCmd: _0x31fc41, + command: _0x125d37, + args: _0x3e211e, + q: _0x17784d, + isGroup: _0x4aae41, + sender: _0x435ff6, + senderNumber: _0x519f66, + botNumber2: _0x5905f1, + botNumber: _0x295843, + pushname: _0xd89eca, + isMe: _0x4cb90b, + isOwner: _0x311d1b, + groupMetadata: _0x11b721, + groupName: _0x1668e8, + participants: _0x3340c2, + groupAdmins: _0x450bd7, + isBotAdmins: _0x52033f, + isAdmins: _0x37a118, + reply: _0x221664 +}) => { + try { + if (!_0x17784d) { + return _0x221664("*Please give me url !!*"); + } + let _0x1c083d = await fetchJson('https://www.dark-yasiya-api.site/download/xvideo?url=' + _0x17784d); + const _0x40cfc2 = "\n 🔞 *XVIDEO DOWNLOADER* 🔞\n\n \n• *Title* - " + _0x1c083d.result.title + "\n\n• *Views* - " + _0x1c083d.result.views + "\n\n• *Like* - " + _0x1c083d.result.like + "\n\n• *Deslike* - " + _0x1c083d.result.deslike + "\n\n• *Size* - " + _0x1c083d.result.size; + await _0xf4b747.sendMessage(_0x2747f2, { + 'video': { + 'url': _0x1c083d.result.dl_link + }, + 'caption': _0x40cfc2 + }, { + 'quoted': _0x2d8700 + }); + } catch (_0x302040) { + _0x221664("*Error !!*"); + console.log(_0x302040); + } +}); +const fs = require('fs'); +const path = require('path'); +cmd({ + 'pattern': "baiscope", + 'alias': ["movie2"], + 'react': '📑', + 'category': 'download', + 'desc': "baiscope.lk", + 'filename': __filename +}, async (_0x29f25e, _0x5a1475, _0x23f4fe, { + from: _0x16270b, + q: _0x234c71, + isDev: _0x5a061f, + reply: _0x2e05d8 +}) => { + try { + if (!_0x234c71) { + return await _0x2e05d8("*Please provide a search query! (e.g., Avatar)*"); + } + const _0x565da1 = "https://www.baiscope.lk/?s=" + encodeURIComponent(_0x234c71); + const _0x2f6b7f = await axios.get(_0x565da1); + const _0x55938d = cheerio.load(_0x2f6b7f.data); + let _0x2a128a = []; + _0x55938d("article.elementor-post").each((_0xc4379d, _0x58132b) => { + const _0x3c98a9 = _0x55938d(_0x58132b).find("h5.elementor-post__title > a").text().trim(); + const _0x4f6c46 = _0x55938d(_0x58132b).find("h5.elementor-post__title > a").attr("href"); + const _0x227928 = _0x55938d(_0x58132b).find(".elementor-post__thumbnail img").attr("src"); + if (_0x3c98a9 && _0x4f6c46 && _0x227928) { + _0x2a128a.push({ + 'title': _0x3c98a9, + 'episodeLink': _0x4f6c46, + 'imgUrl': _0x227928 + }); + } + }); + if (_0x2a128a.length === 0x0) { + return await _0x2e05d8("No results found for: " + _0x234c71); + } + let _0x159726 = "📺 Search Results for *" + _0x234c71 + ":*\n\n"; + _0x2a128a.forEach((_0x43023e, _0x261b1f) => { + _0x159726 += '*' + (_0x261b1f + 0x1) + ".* " + _0x43023e.title + "\n🔗 Link: " + _0x43023e.episodeLink + "\n\n"; + }); + const _0x390294 = await _0x29f25e.sendMessage(_0x16270b, { + 'text': _0x159726 + }, { + 'quoted': _0x23f4fe + }); + const _0x1c3498 = _0x390294.key.id; + _0x29f25e.ev.on("messages.upsert", async _0x42363d => { + const _0x9a9db9 = _0x42363d.messages[0x0]; + if (!_0x9a9db9.message) { + return; + } + const _0x19512a = _0x9a9db9.message.conversation || _0x9a9db9.message.extendedTextMessage?.["text"]; + const _0x44c1ea = _0x9a9db9.key.remoteJid; + const _0x1eb2ca = _0x9a9db9.message.extendedTextMessage && _0x9a9db9.message.extendedTextMessage.contextInfo.stanzaId === _0x1c3498; + if (_0x1eb2ca) { + const _0x1fc120 = parseInt(_0x19512a.trim()); + if (!isNaN(_0x1fc120) && _0x1fc120 > 0x0 && _0x1fc120 <= _0x2a128a.length) { + const _0x339cc7 = _0x2a128a[_0x1fc120 - 0x1]; + const _0x49062b = await axios.get(_0x339cc7.episodeLink); + const _0x4ae66c = cheerio.load(_0x49062b.data); + const _0x50c0f3 = _0x4ae66c("a.dlm-buttons-button").attr("href"); + if (_0x50c0f3) { + await _0x29f25e.sendMessage(_0x44c1ea, { + 'image': { + 'url': _0x339cc7.imgUrl + }, + 'caption': "🎬 *" + _0x339cc7.title + "*\n🔗 Link: " + _0x339cc7.episodeLink + "\n⬇️ Download will follow." + }, { + 'quoted': _0x9a9db9 + }); + const _0xede861 = path.join(__dirname, "downloaded_episode.zip"); + const _0x568fbb = fs.createWriteStream(_0xede861); + const _0x296eaf = await axios({ + 'url': _0x50c0f3, + 'method': "GET", + 'responseType': "stream" + }); + _0x296eaf.data.pipe(_0x568fbb); + _0x568fbb.on("finish", async () => { + await _0x29f25e.sendMessage(_0x44c1ea, { + 'document': { + 'url': _0xede861 + }, + 'mimetype': 'application/zip', + 'fileName': _0x339cc7.title + ".zip", + 'caption': '*' + _0x339cc7.title + "*\n\n> Lααɾα-ᴍᴅ ✻" + }, { + 'quoted': _0x9a9db9 + }); + fs.unlinkSync(_0xede861); + }); + _0x568fbb.on("error", _0x5e5593 => { + console.error("Error downloading ZIP file:", _0x5e5593); + _0x2e05d8("*Error downloading the episode ZIP file.*"); + }); + } else { + await _0x2e05d8("*Download link not found for the selected episode.*"); + } + } else { + await _0x2e05d8("*Invalid selection. Please choose a valid number.*"); + } + } + }); + } catch (_0x13a142) { + console.error(_0x13a142); + await _0x2e05d8("*An error occurred while scraping the data.*"); + } +}); +cmd({ + 'pattern': "ginisisila", + 'react': '📑', + 'category': 'download', + 'desc': "ginisisilacartoon.net", + 'filename': __filename +}, async (_0x2193c1, _0x46b55a, _0x1da9d5, { + from: _0x49af42, + q: _0x269b23, + isDev: _0x11a405, + reply: _0x5bc5f9 +}) => { + try { + if (!_0x269b23) { + return await _0x5bc5f9("*Please provide a search query! (e.g., Garfield)*"); + } + const _0x47bcff = "https://ginisisilacartoon.net/search.php?q=" + encodeURIComponent(_0x269b23); + const _0x942373 = await axios.get(_0x47bcff); + const _0x8a6b01 = cheerio.load(_0x942373.data); + let _0x4981e5 = []; + _0x8a6b01("div.inner-video-cell").each((_0x401c60, _0x3494b2) => { + const _0x556af6 = _0x8a6b01(_0x3494b2).find("div.video-title > a").attr('title'); + const _0x3356b4 = _0x8a6b01(_0x3494b2).find("div.posted-time").text().trim(); + const _0x124102 = _0x8a6b01(_0x3494b2).find("div.video-title > a").attr("href"); + const _0x10a7c3 = _0x8a6b01(_0x3494b2).find("div.inner-video-thumb-wrapper img").attr('src'); + if (_0x556af6 && _0x124102) { + _0x4981e5.push({ + 'title': _0x556af6, + 'postedTime': _0x3356b4, + 'episodeLink': 'https://ginisisilacartoon.net/' + _0x124102, + 'imageUrl': _0x10a7c3 + }); + } + }); + if (_0x4981e5.length === 0x0) { + return await _0x5bc5f9("No results found for: " + _0x269b23); + } + let _0x243034 = "📺 Search Results for *" + _0x269b23 + ":*\n\n"; + _0x4981e5.forEach((_0xb47ad9, _0x566538) => { + _0x243034 += '*' + (_0x566538 + 0x1) + ".* " + _0xb47ad9.title + "\n🗓️ Posted: " + _0xb47ad9.postedTime + "\n🔗 Link: " + _0xb47ad9.episodeLink + "\n\n"; + }); + const _0x338e95 = await _0x2193c1.sendMessage(_0x49af42, { + 'text': _0x243034 + }, { + 'quoted': _0x1da9d5 + }); + const _0x10da7c = _0x338e95.key.id; + _0x2193c1.ev.on("messages.upsert", async _0x391edd => { + const _0x50c272 = _0x391edd.messages[0x0]; + if (!_0x50c272.message) { + return; + } + const _0x18f109 = _0x50c272.message.conversation || _0x50c272.message.extendedTextMessage?.["text"]; + const _0x51f5e6 = _0x50c272.key.remoteJid; + const _0x45542b = _0x50c272.message.extendedTextMessage && _0x50c272.message.extendedTextMessage.contextInfo.stanzaId === _0x10da7c; + if (_0x45542b) { + const _0x134e52 = parseInt(_0x18f109.trim()); + if (!isNaN(_0x134e52) && _0x134e52 > 0x0 && _0x134e52 <= _0x4981e5.length) { + const _0x5ad7ef = _0x4981e5[_0x134e52 - 0x1]; + const _0x1165ac = "*🪄 ɴᴀᴍᴇ:-* " + _0x5ad7ef.title + "\n⏳ *ᴅᴀᴛᴇ:-* " + _0x5ad7ef.postedTime + "\n📎 *ᴇᴘɪꜱᴏᴅᴇ ʟɪɴᴋ*:- " + _0x5ad7ef.episodeLink + "\n\n☘ *We are uploading the Movie/Episode you requested.*"; + const _0x283018 = { + 'image': { + 'url': _0x5ad7ef.imageUrl + }, + 'caption': _0x1165ac + }; + await _0x2193c1.sendMessage(_0x51f5e6, _0x283018, { + 'quoted': _0x50c272 + }); + const _0x3888e9 = await axios.get(_0x5ad7ef.episodeLink); + const _0x517e63 = cheerio.load(_0x3888e9.data); + const _0xecfa53 = _0x517e63("div#player-holder iframe").attr("src"); + if (_0xecfa53) { + const _0x3e5b86 = "https://api.fgmods.xyz/api/downloader/gdrive?url=" + _0xecfa53 + "&apikey=mnp3grlZ"; + try { + const _0x53c0cc = await axios.get(_0x3e5b86); + const _0x13e7a7 = _0x53c0cc.data.result.downloadUrl; + if (_0x13e7a7) { + await _0x2193c1.sendMessage(_0x51f5e6, { + 'document': { + 'url': _0x13e7a7 + }, + 'mimetype': "video/mp4", + 'fileName': "MR FRANK | " + _0x5ad7ef.title + ".mp4", + 'caption': _0x5ad7ef.title + " | *© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x50c272 + }); + } else { + await _0x5bc5f9("Failed to retrieve the download link for this episode."); + } + } catch (_0x228fee) { + console.error("Error fetching the download link:", _0x228fee); + await _0x5bc5f9("An error occurred while trying to fetch the download link."); + } + } else { + await _0x5bc5f9("No downloadable link found for this episode."); + } + } else { + await _0x5bc5f9("Please reply with a valid number from the list."); + } + } + }); + } catch (_0x285e41) { + _0x5bc5f9("*Error occurred while scraping!*"); + console.error(_0x285e41); + } +}); +cmd({ + 'pattern': "apk", + 'desc': "Download apk.", + 'category': "download", + 'filename': __filename +}, async (_0x34e5dd, _0x17467d, _0x43d4c5, { + from: _0x23d582, + quoted: _0x134ddc, + body: _0x4fc311, + isCmd: _0x410690, + command: _0x5084aa, + args: _0x3080f8, + q: _0x30273e, + isGroup: _0x43bf4c, + sender: _0xbfe55b, + senderNumber: _0x1ee891, + botNumber2: _0x26b044, + botNumber: _0x2f596a, + pushname: _0x2d68d2, + isMe: _0x5c6a0e, + isOwner: _0x1d1336, + groupMetadata: _0x3b2e64, + groupName: _0x3fd919, + participants: _0x18345b, + groupAdmins: _0x1ab021, + isBotAdmins: _0xb86864, + isAdmins: _0x1215c0, + reply: _0x1f8220 +}) => { + try { + await _0x43d4c5.react('⬇'); + const _0x22a92f = 'http://ws75.aptoide.com/api/7/apps/search/query=' + _0x30273e + "/limit=1"; + const _0x4fde7e = await axios.get(_0x22a92f); + const _0x10c997 = _0x4fde7e.data; + let _0xd2bf2d = _0x10c997.datalist.list[0x0].size % 0xf4240; + let _0x59ba6b = '.' + _0xd2bf2d; + let _0x5ba56e = _0x10c997.datalist.list[0x0].size / 0xf4240; + let _0x24e318 = _0x5ba56e - _0x59ba6b; + let _0x5d8f45 = "╭━〔 *SUBZERO-APPSTORE* 〕━┈⊷\n┃▸╭───────────\n┃▸┃๏ *APK DOWNLOADER*\n┃▸└───────────···๏\n╰────────────────┈⊷\n╭━━━❐━⪼\n┇๏ *Name* - " + _0x10c997.datalist.list[0x0].name + " \n┇๏ *Size* - " + _0x24e318 + "MB \n┇๏ *Package* - " + _0x10c997.datalist.list[0x0]['package'] + " \n┇๏ *Updated On* - " + _0x10c997.datalist.list[0x0].updated + " \n┇๏ *Developer* - " + _0x10c997.datalist.list[0x0].developer.name + " \n╰━━━❐━⪼\n> *© Gᴇɴᴇʀᴀᴛᴇᴅ ʙʏ Sᴜʙᴢᴇʀᴏ*"; + await _0x43d4c5.react('⬆'); + await _0x34e5dd.sendMessage(_0x23d582, { + 'document': { + 'url': _0x10c997.datalist.list[0x0].file.path_alt + }, + 'fileName': _0x10c997.datalist.list[0x0].name, + 'mimetype': "application/vnd.android.package-archive", + 'caption': _0x5d8f45 + }, { + 'quoted': _0x17467d + }); + await _0x43d4c5.react('✅'); + } catch (_0x472ce9) { + console.log(_0x472ce9); + _0x1f8220('' + _0x472ce9); + } +}); +const { + sinhalaSub +} = require("mrnima-moviedl"); +cmd({ + 'pattern': "sinhalasub", + 'alias': ['movie'], + 'react': '📑', + 'category': "download", + 'desc': "Search movies on sinhalasub and get download links", + 'filename': __filename +}, async (_0x57388a, _0x25908f, _0x5a7bbb, { + from: _0x5f00ab, + q: _0x522a3c, + reply: _0x371d5f +}) => { + try { + if (!_0x522a3c) { + return await _0x371d5f("*Please provide a search query! (e.g., Deadpool)*"); + } + var _0x24d368 = await sinhalaSub(); + const _0x5c5824 = await _0x24d368.search(_0x522a3c); + const _0x5959f9 = _0x5c5824.result.slice(0x0, 0xa); + if (!_0x5959f9 || _0x5959f9.length === 0x0) { + return await _0x371d5f("No results found for: " + _0x522a3c); + } + let _0x5a71c6 = "📽️ *Search Results for* \"" + _0x522a3c + "\":\n\n"; + _0x5959f9.forEach((_0x203df6, _0x1152d7) => { + _0x5a71c6 += '*' + (_0x1152d7 + 0x1) + ".* " + _0x203df6.title + "\n🔗 Link: " + _0x203df6.link + "\n\n"; + }); + const _0x3469d1 = await _0x57388a.sendMessage(_0x5f00ab, { + 'text': _0x5a71c6 + }, { + 'quoted': _0x5a7bbb + }); + const _0x2c39e3 = _0x3469d1.key.id; + _0x57388a.ev.on('messages.upsert', async _0xf4885f => { + const _0x5703e1 = _0xf4885f.messages[0x0]; + if (!_0x5703e1.message) { + return; + } + const _0x1508b9 = _0x5703e1.message.conversation || _0x5703e1.message.extendedTextMessage?.["text"]; + const _0x55d809 = _0x5703e1.message.extendedTextMessage && _0x5703e1.message.extendedTextMessage.contextInfo.stanzaId === _0x2c39e3; + if (_0x55d809) { + const _0x3df263 = parseInt(_0x1508b9.trim()); + if (!isNaN(_0x3df263) && _0x3df263 > 0x0 && _0x3df263 <= _0x5959f9.length) { + const _0xa22e01 = _0x5959f9[_0x3df263 - 0x1]; + const _0x51f8f0 = 'https://api-site-2.vercel.app/api/sinhalasub/movie?url=' + encodeURIComponent(_0xa22e01.link); + try { + const _0x64ea0c = await axios.get(_0x51f8f0); + const _0x5469b6 = _0x64ea0c.data.result; + const _0x291aac = _0x5469b6.dl_links || []; + if (_0x291aac.length === 0x0) { + return await _0x371d5f("No PixelDrain links found."); + } + let _0x4ccef6 = "🎥 *" + _0x5469b6.title + "*\n\n"; + _0x4ccef6 += "*Available PixelDrain Download Links:*\n"; + _0x291aac.forEach((_0x66c253, _0x299595) => { + _0x4ccef6 += '*' + (_0x299595 + 0x1) + ".* " + _0x66c253.quality + " - " + _0x66c253.size + "\n🔗 Link: " + _0x66c253.link + "\n\n"; + }); + const _0xb3a0bf = await _0x57388a.sendMessage(_0x5f00ab, { + 'text': _0x4ccef6 + }, { + 'quoted': _0x5703e1 + }); + const _0x50fb94 = _0xb3a0bf.key.id; + _0x57388a.ev.on("messages.upsert", async _0x59cf50 => { + const _0x267b62 = _0x59cf50.messages[0x0]; + if (!_0x267b62.message) { + return; + } + const _0x2dcf80 = _0x267b62.message.conversation || _0x267b62.message.extendedTextMessage?.["text"]; + const _0x2a3361 = _0x267b62.message.extendedTextMessage && _0x267b62.message.extendedTextMessage.contextInfo.stanzaId === _0x50fb94; + if (_0x2a3361) { + const _0x48bb68 = parseInt(_0x2dcf80.trim()); + if (!isNaN(_0x48bb68) && _0x48bb68 > 0x0 && _0x48bb68 <= _0x291aac.length) { + const _0x21b2a8 = _0x291aac[_0x48bb68 - 0x1]; + const _0x207ee5 = _0x21b2a8.link.split('/').pop(); + await _0x57388a.sendMessage(_0x5f00ab, { + 'react': { + 'text': '⬇️', + 'key': _0x5a7bbb.key + } + }); + const _0x56e5a4 = "https://pixeldrain.com/api/file/" + _0x207ee5; + await _0x57388a.sendMessage(_0x5f00ab, { + 'react': { + 'text': '⬆', + 'key': _0x5a7bbb.key + } + }); + await _0x57388a.sendMessage(_0x5f00ab, { + 'document': { + 'url': _0x56e5a4 + }, + 'mimetype': "video/mp4", + 'fileName': _0x5469b6.title + " - " + _0x21b2a8.quality + ".mp4", + 'caption': _0x5469b6.title + "\nQuality: " + _0x21b2a8.quality + "\nPowered by SinhalaSub", + 'contextInfo': { + 'mentionedJid': [], + 'externalAdReply': { + 'title': _0x5469b6.title, + 'body': "Download powered by SUBZERO-ai", + 'mediaType': 0x1, + 'sourceUrl': _0xa22e01.link, + 'thumbnailUrl': _0x5469b6.image + } + } + }, { + 'quoted': _0x267b62 + }); + await _0x57388a.sendMessage(_0x5f00ab, { + 'react': { + 'text': '✅', + 'key': _0x5a7bbb.key + } + }); + } else { + await _0x371d5f("Invalid selection. Please reply with a valid number."); + } + } + }); + } catch (_0x105a5c) { + console.error("Error fetching movie details:", _0x105a5c); + await _0x371d5f("An error occurred while fetching movie details. Please try again."); + } + } else { + await _0x371d5f("Invalid selection. Please reply with a valid number."); + } + } + }); + } catch (_0x29d828) { + console.error("Error during search:", _0x29d828); + _0x371d5f("*An error occurred while searching!*"); + } +}); +cmd({ + 'pattern': "gdrive", + 'desc': "To download Gdrive files.", + 'react': '🌐', + 'category': "download", + 'filename': __filename +}, async (_0x597ff7, _0x13f4cd, _0x276591, { + from: _0xf9cfb6, + quoted: _0x3c87e1, + body: _0x1f0c41, + isCmd: _0xbf3628, + command: _0x411f00, + args: _0x22c9e1, + q: _0x18db41, + isGroup: _0x48d9b5, + sender: _0x556716, + senderNumber: _0x2f5b0a, + botNumber2: _0x1b3639, + botNumber: _0x366fc8, + pushname: _0x39afea, + isMe: _0x16b971, + isOwner: _0x55a48b, + groupMetadata: _0x45052b, + groupName: _0x5354f4, + participants: _0x58543a, + groupAdmins: _0x803c3, + isBotAdmins: _0x205fd8, + isAdmins: _0x3dce84, + reply: _0x465492 +}) => { + try { + await _0x597ff7.sendMessage(_0xf9cfb6, { + 'react': { + 'text': '⬇️', + 'key': _0x13f4cd.key + } + }); + if (!_0x18db41) { + return _0x276591.reply("Please Give Me a vaild Link..."); + } + const _0x54edc1 = "https://api.fgmods.xyz/api/downloader/gdrive?url=" + _0x18db41 + "&apikey=mnp3grlZ"; + const _0x530ff0 = await axios.get(_0x54edc1); + const _0x3e031d = _0x530ff0.data.result.downloadUrl; + if (_0x3e031d) { + await _0x597ff7.sendMessage(_0xf9cfb6, { + 'react': { + 'text': '⬆️', + 'key': _0x13f4cd.key + } + }); + await _0x597ff7.sendMessage(_0xf9cfb6, { + 'document': { + 'url': _0x3e031d + }, + 'mimetype': _0x530ff0.data.result.mimetype, + 'fileName': _0x530ff0.data.result.fileName, + 'caption': "*© Pᴏᴡᴇʀᴇᴅ Bʏ SᴜʙZᴇʀᴏ" + }, { + 'quoted': _0x13f4cd + }); + } + await _0x597ff7.sendMessage(_0xf9cfb6, { + 'react': { + 'text': '✅', + 'key': _0x13f4cd.key + } + }); + } catch (_0x5d813c) { + console.log(_0x5d813c); + } +}); diff --git a/plugins/main-group.js b/plugins/main-group.js new file mode 100644 index 0000000000000000000000000000000000000000..25e769b4a404d235bb29db7f83a39eefb6c9e57d --- /dev/null +++ b/plugins/main-group.js @@ -0,0 +1,1504 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ +const config = require("../config"); +const { + cmd, + commands +} = require('../command'); +const { + getBuffer, + getGroupAdmins, + getRandom, + h2k, + isUrl, + Json, + runtime, + sleep, + fetchJson +} = require("../lib/functions"); +const _0x235552 = { + pattern: "joinrequests", + "desc": "Get list of participants who requested to join the group", + "react": '📋', + "category": "group", + filename: __filename +}; +cmd(_0x235552, async (_0x4e9b1b, _0x37e247, _0x378499, { + from: _0x4fd72d, + q: _0x29e76c, + reply: _0x14e74a, + isGroup: _0x250e23 +}) => { + if (!_0x250e23) { + return _0x14e74a("This command can only be used in a group chat."); + } + try { + console.log("Attempting to fetch pending requests for group: " + _0x4fd72d); + const _0x2285e0 = await _0x4e9b1b.groupRequestParticipantsList(_0x4fd72d); + console.log(_0x2285e0); + if (_0x2285e0.length > 0) { + let _0x291f66 = "Pending Requests to Join the Group:\n"; + let _0x619041 = []; + _0x2285e0.forEach(_0x55480f => { + const _0x34b0d4 = _0x55480f.jid; + _0x291f66 += "😻 @" + _0x34b0d4.split('@')[0] + "\n"; + _0x619041.push(_0x34b0d4); + }); + const _0x14f928 = { + "text": _0x291f66, + mentions: _0x619041 + }; + await _0x4e9b1b.sendMessage(_0x4fd72d, _0x14f928); + } else { + _0x14e74a("No pending requests to join the group."); + } + } catch (_0xfb5304) { + console.error("Error fetching participant requests: " + _0xfb5304.message); + _0x14e74a("⚠️ An error occurred while fetching the pending requests. Please try again later."); + } +}); +const _0x485005 = { + "pattern": "allreq", + "desc": "Approve or reject all join requests", + "react": '✅', + "category": "group", + filename: __filename +}; +cmd(_0x485005, async (_0x4c4a0a, _0x22a536, _0x1112a6, { + from: _0xc86dd7, + reply: _0x2b6550, + isGroup: _0x3026e0 +}) => { + if (!_0x3026e0) { + return _0x2b6550("This command can only be used in a group chat."); + } + const _0x31018a = _0x1112a6.body.includes('approve') ? 'approve' : "reject"; + try { + const _0x4e8760 = await _0x4c4a0a.groupRequestParticipantsList(_0xc86dd7); + if (_0x4e8760.length === 0) { + return _0x2b6550("There are no pending requests to manage."); + } + let _0x22a341 = "Pending Requests to Join the Group:\n"; + let _0x38af9a = []; + let _0x76aee7 = []; + _0x4e8760.forEach(_0x482cd2 => { + const _0x2b59a7 = _0x482cd2.jid; + _0x22a341 += "😻 @" + _0x2b59a7.split('@')[0] + "\n"; + _0x38af9a.push(_0x2b59a7); + _0x76aee7.push(_0x2b59a7); + }); + const _0xecf38b = { + text: _0x22a341, + "mentions": _0x38af9a + }; + await _0x4c4a0a.sendMessage(_0xc86dd7, _0xecf38b); + const _0x336c3a = await _0x4c4a0a.groupRequestParticipantsUpdate(_0xc86dd7, _0x76aee7, _0x31018a); + console.log(_0x336c3a); + _0x2b6550("Successfully " + _0x31018a + "ed all join requests."); + } catch (_0x250e3f) { + console.error("Error updating participant requests: " + _0x250e3f.message); + _0x2b6550("⚠️ An error occurred while processing the request. Please try again later."); + } +}); +const _0x3bcce0 = { + "pattern": "disappear", + "react": "🌪️", + alias: ['dm'], + "desc": "Turn on/off disappearing messages.", + category: "main", + filename: __filename +}; +cmd(_0x3bcce0, async (_0x1264ab, _0x1c8255, _0x2be3d6, { + from: _0x4fdc3a, + isGroup: _0x5d0163, + isAdmins: _0x4b73d7, + args: _0x2c9e9b +}) => { + if (!_0x5d0163) { + const _0x3a84ad = { + "text": "This command can only be used in groups." + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x3a84ad); + return; + } + if (!_0x4b73d7) { + const _0xb275e7 = { + "text": "Only admins can turn on/off disappearing messages." + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0xb275e7); + return; + } + const _0x51ea06 = _0x2c9e9b[0]; + if (_0x51ea06 === 'on') { + const _0x193f23 = _0x2c9e9b[1]; + let _0x1df4d9; + switch (_0x193f23) { + case "24h": + _0x1df4d9 = 86400; + break; + case '7d': + _0x1df4d9 = 604800; + break; + case "90d": + _0x1df4d9 = 7776000; + break; + default: + const _0x890609 = { + "text": "Invalid duration! Use `24h`, `7d`, or `90d`." + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x890609); + return; + } + const _0x4ad088 = { + disappearingMessagesInChat: _0x1df4d9 + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x4ad088); + const _0x2b37a1 = { + "text": "Disappearing messages are now ON for " + _0x193f23 + '.' + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x2b37a1); + } else { + if (_0x51ea06 === 'off') { + const _0x3643ac = { + "disappearingMessagesInChat": false + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x3643ac); + const _0x47fcaf = { + "text": "Disappearing messages are now OFF." + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x47fcaf); + } else { + const _0x176df5 = { + text: "Please use `!disappear on ` or `!disappear off`." + }; + await _0x1264ab.sendMessage(_0x4fdc3a, _0x176df5); + } + } +}); +const _0x592aaf = { + pattern: "senddm", + react: "🌪️", + "alias": ["senddisappear"], + "desc": "Send a disappearing message.", + "category": "main", + "filename": __filename +}; +cmd(_0x592aaf, async (_0x5551fe, _0x1300f9, _0x1fbb8a, { + from: _0x188bab, + isGroup: _0x4c94c4, + isAdmins: _0x2679c0, + args: _0x51178a +}) => { + if (!_0x4c94c4) { + const _0x423961 = { + "text": "This command can only be used in groups." + }; + await _0x5551fe.sendMessage(_0x188bab, _0x423961); + return; + } + if (!_0x51178a.length) { + const _0x5a20ad = { + "text": "Please provide a message to send." + }; + await _0x5551fe.sendMessage(_0x188bab, _0x5a20ad); + return; + } + const _0x3a3ac9 = _0x51178a.join(" "); + const _0x18e63b = { + 'text': _0x3a3ac9 + }; + const _0x3fd007 = { + "ephemeralExpiration": 604800 + }; + await _0x5551fe.sendMessage(_0x188bab, _0x18e63b, _0x3fd007); +}); +const _0x4f6b5b = { + "pattern": "mute", + "react": '🔇', + "alias": ["close", "f_mute"], + "desc": "Change to group settings to only admins can send messages & Mr Frank.", + category: "group", + use: ".mute", + filename: __filename +}; +cmd(_0x4f6b5b, async (_0x4b40bf, _0x46e420, _0x21f531, { + from: _0x16d660, + l: _0x2c920b, + quoted: _0x98d19d, + body: _0x2d0cee, + isCmd: _0x43605e, + command: _0x23d9d0, + args: _0x4e09a2, + q: _0x435a11, + isGroup: _0xd1e600, + sender: _0x397d4b, + senderNumber: _0x163246, + botNumber2: _0x3ee3fe, + botNumber: _0x364a68, + pushname: _0x43018a, + isMe: _0x4ecf33, + isOwner: _0x3052d4, + groupMetadata: _0x595d9b, + groupName: _0x4f1c2f, + participants: _0x2d1550, + groupAdmins: _0x2b167e, + isBotAdmins: _0x568576, + isCreator: _0x1fe81d, + isDev: _0x59b3c0, + isAdmins: _0x5e0e98, + reply: _0x697f9a +}) => { + try { + const _0x19fc8e = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0xd1e600) { + return _0x697f9a(_0x19fc8e.only_gp); + } + if (!_0x5e0e98) { + const _0x4bf57a = { + quoted: _0x46e420 + }; + if (!_0x59b3c0) { + _0x697f9a(_0x19fc8e.you_adm); + return _0x4bf57a; + } + } + if (!_0x568576) { + return _0x697f9a(_0x19fc8e.give_adm); + } + await _0x4b40bf.groupSettingUpdate(_0x16d660, "announcement"); + const _0x474444 = { + text: "*Yooh Guys Iam Tired 😓, Its Time to rest, Group Chat closed by Admin " + _0x43018a + "* 🔇" + }; + const _0x1b6661 = { + "quoted": _0x46e420 + }; + await _0x4b40bf.sendMessage(_0x16d660, _0x474444, _0x1b6661); + } catch (_0x1ddb14) { + const _0x28d2e4 = { + "text": '❌', + "key": _0x46e420.key + }; + const _0x2dae93 = { + "react": _0x28d2e4 + }; + await _0x4b40bf.sendMessage(_0x16d660, _0x2dae93); + console.log(_0x1ddb14); + _0x697f9a("❌ *Error Accurated !!*\n\n" + _0x1ddb14); + } +}); +const _0x87e572 = { + "pattern": "unmute", + "react": '🔇', + "alias": ["open", 'f_unmute'], + "desc": "I have rested Enough, Changed group settings to all members can send messages.", + category: 'group', + "use": ".unmute", + "filename": __filename +}; +cmd(_0x87e572, async (_0x1d32ad, _0x5b4c22, _0x4681d1, { + from: _0x485de2, + l: _0x19d1e2, + quoted: _0x9471da, + body: _0x4a9b98, + isCmd: _0x28bc63, + command: _0x1f206b, + args: _0x220e84, + q: _0x356510, + isGroup: _0x14a7d0, + sender: _0x4531e7, + senderNumber: _0x44ee23, + botNumber2: _0x88df11, + botNumber: _0x3e85e2, + pushname: _0x2d059b, + isMe: _0x3eff46, + isOwner: _0xf07b83, + groupMetadata: _0x3ac276, + groupName: _0x217df6, + participants: _0x13a134, + groupAdmins: _0x5d0412, + isBotAdmins: _0x292886, + isCreator: _0x26d4c4, + isDev: _0x3a8707, + isAdmins: _0x3c91ba, + reply: _0x4f95d7 +}) => { + try { + const _0xbc7a1e = (await fetchJson('https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json')).replyMsg; + if (!_0x14a7d0) { + return _0x4f95d7(_0xbc7a1e.only_gp); + } + if (!_0x3c91ba) { + const _0x377117 = { + quoted: _0x5b4c22 + }; + if (!_0x3a8707) { + _0x4f95d7(_0xbc7a1e.you_adm); + return _0x377117; + } + } + if (!_0x292886) { + return _0x4f95d7(_0xbc7a1e.give_adm); + } + await _0x1d32ad.groupSettingUpdate(_0x485de2, 'not_announcement'); + const _0x59c538 = { + text: "*At Last, Group Chat Opened by Admin " + _0x2d059b + "* 🔇" + }; + const _0x2aec2a = { + "quoted": _0x5b4c22 + }; + await _0x1d32ad.sendMessage(_0x485de2, _0x59c538, _0x2aec2a); + } catch (_0x13a688) { + const _0x498e89 = { + "text": '❌', + "key": _0x5b4c22.key + }; + const _0x47bf17 = { + "react": _0x498e89 + }; + await _0x1d32ad.sendMessage(_0x485de2, _0x47bf17); + console.log(_0x13a688); + _0x4f95d7("❌ *Error Accurated !!*\n\n" + _0x13a688); + } +}); +const _0x2bff43 = { + "pattern": "lockgs", + react: '🔇', + "alias": ["lockgsettings"], + desc: "Change to group settings to only admins can edit group info", + "category": "group", + "use": ".lockgs", + "filename": __filename +}; +cmd(_0x2bff43, async (_0x17dcab, _0x51ddfc, _0x92991c, { + from: _0x245665, + l: _0x258a07, + quoted: _0x389910, + body: _0x8ea8d6, + isCmd: _0x2de789, + command: _0x38b535, + args: _0x156d65, + q: _0x3bb5b3, + isGroup: _0x2413cb, + sender: _0x2850e4, + senderNumber: _0x2acc63, + botNumber2: _0x53942b, + botNumber: _0x86ccd5, + pushname: _0x3e5138, + isMe: _0x4d25d4, + isOwner: _0x253c0b, + groupMetadata: _0x57aee8, + groupName: _0x66cfd1, + participants: _0x5c5045, + groupAdmins: _0x1480f2, + isBotAdmins: _0x4d1191, + isCreator: _0x466fd4, + isDev: _0x3212b6, + isAdmins: _0x53eaa0, + reply: _0x5d57b5 +}) => { + try { + const _0x4c4c7e = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x2413cb) { + return _0x5d57b5(_0x4c4c7e.only_gp); + } + if (!_0x53eaa0) { + const _0x18d36c = { + 'quoted': _0x51ddfc + }; + if (!_0x3212b6) { + _0x5d57b5(_0x4c4c7e.you_adm); + return _0x18d36c; + } + } + if (!_0x4d1191) { + return _0x5d57b5(_0x4c4c7e.give_adm); + } + await _0x17dcab.groupSettingUpdate(_0x245665, "locked"); + const _0x4f9b24 = { + 'text': "*Group settings Locked* 🔒" + }; + const _0x1141e4 = { + "quoted": _0x51ddfc + }; + await _0x17dcab.sendMessage(_0x245665, _0x4f9b24, _0x1141e4); + } catch (_0x28a762) { + const _0x30fcfa = { + "text": '❌', + "key": _0x51ddfc.key + }; + const _0x307022 = { + "react": _0x30fcfa + }; + await _0x17dcab.sendMessage(_0x245665, _0x307022); + console.log(_0x28a762); + _0x5d57b5("❌ *Error Accurated !!*\n\n" + _0x28a762); + } +}); +const _0x285abb = { + pattern: 'unlockgs', + "react": '🔓', + alias: ["unlockgsettings"], + desc: "Change to group settings to all members can edit group info", + category: "group", + use: '.unlockgs', + "filename": __filename +}; +cmd(_0x285abb, async (_0x2ae389, _0x60d2b1, _0x22a560, { + from: _0x2d4e9b, + l: _0xff3c0a, + quoted: _0x59f4ba, + body: _0x160f10, + isCmd: _0x57c99a, + command: _0x1a3516, + args: _0x32dfd2, + q: _0x41735f, + isGroup: _0x433848, + sender: _0x508c17, + senderNumber: _0x4c9383, + botNumber2: _0x4707a5, + botNumber: _0x569d59, + pushname: _0x529fc3, + isMe: _0x3ef3e6, + isOwner: _0x22e265, + groupMetadata: _0x11fe79, + groupName: _0xa86994, + participants: _0x3d5f52, + groupAdmins: _0x2fa38e, + isBotAdmins: _0x31dbf2, + isCreator: _0x5ce901, + isDev: _0x5f0b90, + isAdmins: _0x1fb04c, + reply: _0x515e28 +}) => { + try { + const _0x24157e = (await fetchJson('https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json')).replyMsg; + if (!_0x433848) { + return _0x515e28(_0x24157e.only_gp); + } + if (!_0x1fb04c) { + const _0x32aee9 = { + quoted: _0x60d2b1 + }; + if (!_0x5f0b90) { + _0x515e28(_0x24157e.you_adm); + return _0x32aee9; + } + } + if (!_0x31dbf2) { + return _0x515e28(_0x24157e.give_adm); + } + await _0x2ae389.groupSettingUpdate(_0x2d4e9b, 'unlocked'); + const _0x29d71f = { + text: "*Group settings Unlocked* 🔓" + }; + const _0x21b52c = { + "quoted": _0x60d2b1 + }; + await _0x2ae389.sendMessage(_0x2d4e9b, _0x29d71f, _0x21b52c); + } catch (_0x5f5b2d) { + const _0x9c6a36 = { + "text": '❌', + "key": _0x60d2b1.key + }; + const _0x2e4f79 = { + react: _0x9c6a36 + }; + await _0x2ae389.sendMessage(_0x2d4e9b, _0x2e4f79); + console.log(_0x5f5b2d); + _0x515e28("❌ *Error Accurated !!*\n\n" + _0x5f5b2d); + } +}); +const _0x2ad4fd = { + "pattern": "leave", + "react": '🔓', + alias: ["left", 'kickme', "f_leave", "f_left", "f-left"], + "desc": "To leave from the group", + category: "group", + "use": ".leave", + "filename": __filename +}; +cmd(_0x2ad4fd, async (_0x1f4ada, _0x3284fb, _0x5665b9, { + from: _0x2cb4c6, + l: _0x37734c, + quoted: _0x6cf87c, + body: _0x22a173, + isCmd: _0x1204f0, + command: _0x4149ba, + args: _0x1408f9, + q: _0x54b0dc, + isGroup: _0xb42f79, + sender: _0x2a81b1, + senderNumber: _0x269892, + botNumber2: _0x281709, + botNumber: _0x52d284, + pushname: _0x51965a, + isMe: _0x57e464, + isOwner: _0x4437cc, + groupMetadata: _0x3bbad6, + groupName: _0x894872, + participants: _0x1ccfdc, + groupAdmins: _0x487522, + isBotAdmins: _0x4a2eec, + isCreator: _0x46a35b, + isDev: _0xb7c31e, + isAdmins: _0x4dbc40, + reply: _0xbecec9 +}) => { + try { + const _0x4810ca = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0xb42f79) { + return _0xbecec9(_0x4810ca.only_gp); + } + if (!_0x4dbc40) { + if (!_0xb7c31e) { + return _0xbecec9(_0x4810ca.you_adm); + } + } + const _0x2b7926 = { + text: "*Good Bye All* 👋🏻" + }; + const _0x3fb4ba = { + "quoted": _0x3284fb + }; + await _0x1f4ada.sendMessage(_0x2cb4c6, _0x2b7926, _0x3fb4ba); + await _0x1f4ada.groupLeave(_0x2cb4c6); + } catch (_0x490203) { + const _0x2fc642 = { + "text": '❌', + "key": _0x3284fb.key + }; + const _0x16ad8f = { + "react": _0x2fc642 + }; + await _0x1f4ada.sendMessage(_0x2cb4c6, _0x16ad8f); + console.log(_0x490203); + _0xbecec9("❌ *Error Accurated !!*\n\n" + _0x490203); + } +}); +const _0x293215 = { + "pattern": 'updategname', + "react": '🔓', + "alias": ["upgname", "gname"], + "desc": "To Change the group name", + category: "group", + "use": '.updategname', + "filename": __filename +}; +cmd(_0x293215, async (_0x37d3b2, _0x3d6787, _0x4898d9, { + from: _0x1a39d2, + l: _0x36f1d7, + quoted: _0x41ca5b, + body: _0x66f306, + isCmd: _0x4e1117, + command: _0x13ca93, + args: _0x253685, + q: _0x1002e0, + isGroup: _0x3a6e46, + sender: _0x35b6df, + senderNumber: _0x329715, + botNumber2: _0x121d91, + botNumber: _0x42f260, + pushname: _0xe1b5e1, + isMe: _0x128e34, + isOwner: _0x13a679, + groupMetadata: _0x43c179, + groupName: _0x42e09e, + participants: _0x3d81a1, + groupAdmins: _0xeefb48, + isBotAdmins: _0x23506c, + isCreator: _0x28cc79, + isDev: _0x3bed69, + isAdmins: _0x32bdda, + reply: _0x5bcaae +}) => { + try { + const _0x3a21c3 = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x3a6e46) { + return _0x5bcaae(_0x3a21c3.only_gp); + } + if (!_0x32bdda) { + const _0x41ada9 = { + 'quoted': _0x3d6787 + }; + if (!_0x3bed69) { + _0x5bcaae(_0x3a21c3.you_adm); + return _0x41ada9; + } + } + if (!_0x23506c) { + return _0x5bcaae(_0x3a21c3.give_adm); + } + if (!_0x1002e0) { + return _0x5bcaae("*Please write the new Group Subject* 🖊️"); + } + await _0x37d3b2.groupUpdateSubject(_0x1a39d2, _0x1002e0); + const _0x3ef4e7 = { + 'text': "✔️ *Group name Updated*" + }; + const _0x456852 = { + "quoted": _0x3d6787 + }; + await _0x37d3b2.sendMessage(_0x1a39d2, _0x3ef4e7, _0x456852); + } catch (_0x5b57e0) { + const _0x303093 = { + text: '❌', + "key": _0x3d6787.key + }; + const _0x2e3c53 = { + "react": _0x303093 + }; + await _0x37d3b2.sendMessage(_0x1a39d2, _0x2e3c53); + console.log(_0x5b57e0); + _0x5bcaae("❌ *Error Accurated !!*\n\n" + _0x5b57e0); + } +}); +const _0x19cdd8 = { + pattern: "updategdesc", + "react": '🔓', + alias: ["upgdesc", "gdesc"], + desc: "To Change the group description", + "category": "group", + "use": '.updategdesc', + "filename": __filename +}; +cmd(_0x19cdd8, async (_0x13b839, _0x440c71, _0x29ed74, { + from: _0x461966, + l: _0x43e672, + quoted: _0x55ca79, + body: _0x3a4dd1, + isCmd: _0x21655a, + command: _0x29dc1f, + args: _0x2666a3, + q: _0x1fdf7b, + isGroup: _0x14d322, + sender: _0x3f1e42, + senderNumber: _0x252c0c, + botNumber2: _0x1c5adc, + botNumber: _0x26ecb6, + pushname: _0x423e72, + isMe: _0x4eaf13, + isOwner: _0x263d2e, + groupMetadata: _0x52e59b, + groupName: _0x3d1127, + participants: _0x239b78, + groupAdmins: _0x52b9d8, + isBotAdmins: _0x3f6c04, + isCreator: _0x1f123c, + isDev: _0x16c706, + isAdmins: _0x1ac543, + reply: _0x44929b +}) => { + try { + const _0x4a8ed0 = (await fetchJson('https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json')).replyMsg; + if (!_0x14d322) { + return _0x44929b(_0x4a8ed0.only_gp); + } + if (!_0x1ac543) { + const _0x58a1dd = { + quoted: _0x440c71 + }; + if (!_0x16c706) { + _0x44929b(_0x4a8ed0.you_adm); + return _0x58a1dd; + } + } + if (!_0x3f6c04) { + return _0x44929b(_0x4a8ed0.give_adm); + } + if (!_0x1fdf7b) { + return _0x44929b("*Please write the new Group Description* 🖊️"); + } + await _0x13b839.groupUpdateDescription(_0x461966, _0x1fdf7b); + const _0x40b8a4 = { + 'text': "✔️ *Group Description Updated*" + }; + const _0x44d43c = { + "quoted": _0x440c71 + }; + await _0x13b839.sendMessage(_0x461966, _0x40b8a4, _0x44d43c); + } catch (_0x227466) { + const _0x4e9f48 = { + "text": '❌', + "key": _0x440c71.key + }; + const _0x16626d = { + react: _0x4e9f48 + }; + await _0x13b839.sendMessage(_0x461966, _0x16626d); + console.log(_0x227466); + _0x44929b("❌ *Error Accurated !!*\n\n" + _0x227466); + } +}); +const _0x53f490 = { + "pattern": "join", + "react": '📬', + "alias": ["joinme", "f_join"], + "desc": "To Join a Group from Invite link", + "category": "group", + "use": ".join < Group Link >", + "filename": __filename +}; +cmd(_0x53f490, async (_0x5c6e0d, _0x274b96, _0xe24f8, { + from: _0x4293ac, + l: _0x1c760f, + quoted: _0x2f823f, + body: _0x3ba315, + isCmd: _0x2eac63, + command: _0x13619a, + args: _0x28d7a6, + q: _0x508e68, + isGroup: _0x168f6a, + sender: _0x1e37d6, + senderNumber: _0x46bea2, + botNumber2: _0x392b42, + botNumber: _0x3e8916, + pushname: _0x23c22f, + isMe: _0x83607f, + isOwner: _0xa3e4e3, + groupMetadata: _0x22f7bf, + groupName: _0x4f268f, + participants: _0x56a851, + groupAdmins: _0x548911, + isBotAdmins: _0x21d912, + isCreator: _0x5bf5ca, + isDev: _0x108bee, + isAdmins: _0x317502, + reply: _0x3377b1 +}) => { + try { + const _0x3bf70c = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x5bf5ca && !_0x108bee && !_0xa3e4e3 && !_0x83607f) { + return _0x3377b1(_0x3bf70c.own_cmd); + } + if (!_0x508e68) { + return _0x3377b1("*Please write the Group Link*️ 🖇️"); + } + let _0x2cbcb1 = _0x28d7a6[0].split('https://chat.whatsapp.com/')[1]; + await _0x5c6e0d.groupAcceptInvite(_0x2cbcb1); + const _0xb649ec = { + 'text': "✔️ *Successfully Joined*" + }; + const _0x320207 = { + "quoted": _0x274b96 + }; + await _0x5c6e0d.sendMessage(_0x4293ac, _0xb649ec, _0x320207); + } catch (_0x344145) { + const _0x2d8910 = { + "text": '❌', + key: _0x274b96.key + }; + const _0x1b03e2 = { + "react": _0x2d8910 + }; + await _0x5c6e0d.sendMessage(_0x4293ac, _0x1b03e2); + console.log(_0x344145); + _0x3377b1("❌ *Error Accurated !!*\n\n" + _0x344145); + } +}); +const _0x4df201 = { + "pattern": "invite", + "react": '🖇️', + "alias": ["grouplink", 'glink'], + "desc": "To Get the Group Invite link", + "category": "group", + "use": '.invite', + "filename": __filename +}; +cmd(_0x4df201, async (_0x57383d, _0x4f985a, _0x403b00, { + from: _0x14ace6, + l: _0x364d6d, + quoted: _0x45d470, + body: _0x1a6283, + isCmd: _0x1a51a8, + command: _0x383543, + args: _0x2e3f07, + q: _0x3ca2ae, + isGroup: _0xbf8854, + sender: _0x39f81a, + senderNumber: _0x1bc585, + botNumber2: _0x596376, + botNumber: _0x192325, + pushname: _0x31cdec, + isMe: _0x57d6de, + isOwner: _0x36fc8a, + groupMetadata: _0x48fae3, + groupName: _0x4c7a59, + participants: _0x542fb0, + groupAdmins: _0x4daafb, + isBotAdmins: _0x1c9e0f, + isCreator: _0x4f22a8, + isDev: _0x27e9cd, + isAdmins: _0xcc24b9, + reply: _0x30cf68 +}) => { + try { + const _0x2d04f9 = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0xbf8854) { + return _0x30cf68(_0x2d04f9.only_gp); + } + if (!_0xcc24b9) { + const _0x2763a3 = { + quoted: _0x4f985a + }; + if (!_0x27e9cd) { + _0x30cf68(_0x2d04f9.you_adm); + return _0x2763a3; + } + } + if (!_0x1c9e0f) { + return _0x30cf68(_0x2d04f9.give_adm); + } + const _0x37d2e7 = await _0x57383d.groupInviteCode(_0x14ace6); + const _0x2ecaa6 = { + text: "🖇️ *Group Link*\n\nhttps://chat.whatsapp.com/" + _0x37d2e7 + }; + const _0x409f05 = { + "quoted": _0x4f985a + }; + await _0x57383d.sendMessage(_0x14ace6, _0x2ecaa6, _0x409f05); + } catch (_0x561c19) { + const _0x346879 = { + "text": '❌', + "key": _0x4f985a.key + }; + const _0x7557d5 = { + "react": _0x346879 + }; + await _0x57383d.sendMessage(_0x14ace6, _0x7557d5); + console.log(_0x561c19); + _0x30cf68("❌ *Error Accurated !!*\n\n" + _0x561c19); + } +}); +const _0x34bd2a = { + "pattern": "revoke", + "react": '🖇️', + "alias": ["revokegrouplink", "resetglink", 'revokelink', "f_revoke"], + "desc": "To Reset the group link", + category: "group", + "use": ".revoke", + "filename": __filename +}; +cmd(_0x34bd2a, async (_0x41ae16, _0x3e573c, _0x38b41a, { + from: _0xee597d, + l: _0x378514, + quoted: _0x55191b, + body: _0x3fc193, + isCmd: _0x1dd591, + command: _0x221d8e, + args: _0x38fae6, + q: _0x36db72, + isGroup: _0xd97564, + sender: _0x5ae10e, + senderNumber: _0x33e2fd, + botNumber2: _0x5e13ab, + botNumber: _0x5223f6, + pushname: _0x256155, + isMe: _0x3fbbba, + isOwner: _0x3e8d35, + groupMetadata: _0x16506d, + groupName: _0x13822d, + participants: _0xd56593, + groupAdmins: _0x149535, + isBotAdmins: _0x57ebae, + isCreator: _0x377d4d, + isDev: _0x45e2dc, + isAdmins: _0x5ba3b6, + reply: _0xd38f68 +}) => { + try { + const _0x2f4bdc = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0xd97564) { + return _0xd38f68(_0x2f4bdc.only_gp); + } + if (!_0x5ba3b6) { + const _0x193f80 = { + quoted: _0x3e573c + }; + if (!_0x45e2dc) { + _0xd38f68(_0x2f4bdc.you_adm); + return _0x193f80; + } + } + if (!_0x57ebae) { + return _0xd38f68(_0x2f4bdc.give_adm); + } + await _0x41ae16.groupRevokeInvite(_0xee597d); + const _0x3bdddc = { + text: "*Group link Reseted* ⛔" + }; + const _0xddbc59 = { + "quoted": _0x3e573c + }; + await _0x41ae16.sendMessage(_0xee597d, _0x3bdddc, _0xddbc59); + } catch (_0x1920cf) { + const _0x2fd8b5 = { + "text": '❌', + key: _0x3e573c.key + }; + const _0x323b31 = { + "react": _0x2fd8b5 + }; + await _0x41ae16.sendMessage(_0xee597d, _0x323b31); + console.log(_0x1920cf); + _0xd38f68("❌ *Error Accurated !!*\n\n" + _0x1920cf); + } +}); +const _0x57538f = { + "pattern": "kick", + "react": '🥏', + "alias": ["remove"], + "desc": "To Remove a participant from Group", + category: "group", + "use": ".kick", + "filename": __filename +}; +cmd(_0x57538f, async (_0x41e259, _0x1b6220, _0x5accc4, { + from: _0x1405da, + l: _0x3c5793, + quoted: _0xddbe82, + body: _0x38545a, + isCmd: _0x586340, + command: _0x515391, + mentionByTag: _0x5a7b0c, + args: _0x1ba8bf, + q: _0x289e78, + isGroup: _0x4f8fb5, + sender: _0x3cd0e8, + senderNumber: _0x153fdb, + botNumber2: _0xd8495a, + botNumber: _0x1debc0, + pushname: _0x3c454b, + isMe: _0x24f1df, + isOwner: _0x163b25, + groupMetadata: _0xb24815, + groupName: _0x1f20bd, + participants: _0x300731, + groupAdmins: _0x373ac7, + isBotAdmins: _0x16fb62, + isCreator: _0x5ed285, + isDev: _0x2a7c41, + isAdmins: _0x3b32e1, + reply: _0x4add12 +}) => { + try { + const _0xf4014e = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x4f8fb5) { + return _0x4add12(_0xf4014e.only_gp); + } + if (!_0x3b32e1) { + const _0x30adce = { + 'quoted': _0x1b6220 + }; + if (!_0x2a7c41) { + _0x4add12(_0xf4014e.you_adm); + return _0x30adce; + } + } + if (!_0x16fb62) { + return _0x4add12(_0xf4014e.give_adm); + } + let _0x3e8f17 = _0x1b6220.mentionedJid ? _0x1b6220.mentionedJid[0] : _0x1b6220.msg.contextInfo.participant || false; + if (!_0x3e8f17) { + return _0x4add12("*Couldn't find any user in context* ❌"); + } + await _0x41e259.groupParticipantsUpdate(_0x1405da, [_0x3e8f17], "remove"); + const _0x44b452 = { + 'text': "*Successfully removed* ✔️" + }; + const _0x30c271 = { + "quoted": _0x1b6220 + }; + await _0x41e259.sendMessage(_0x1405da, _0x44b452, _0x30c271); + } catch (_0x2c8e2b) { + const _0x54186c = { + "text": '❌', + key: _0x1b6220.key + }; + const _0x3d2cb9 = { + react: _0x54186c + }; + await _0x41e259.sendMessage(_0x1405da, _0x3d2cb9); + console.log(_0x2c8e2b); + _0x4add12("❌ *Error Accurated !!*\n\n" + _0x2c8e2b); + } +}); +const _0xd699f4 = { + pattern: "promote", + "react": '🥏', + "alias": ['addadmin'], + "desc": "To Add a participatant as a Admin", + "category": 'group', + use: '.promote', + "filename": __filename +}; +cmd(_0xd699f4, async (_0xd441ad, _0x386107, _0xa0d74e, { + from: _0x1762c0, + l: _0x6b3fab, + quoted: _0x1a22c1, + body: _0x260161, + isCmd: _0x1f39c3, + command: _0x36db16, + mentionByTag: _0x3f79bc, + args: _0x4d646e, + q: _0x1fbf8d, + isGroup: _0x299bf3, + sender: _0x11f7a0, + senderNumber: _0x3246da, + botNumber2: _0x36be92, + botNumber: _0x135200, + pushname: _0x44fecd, + isMe: _0x3ede2b, + isOwner: _0x1185ac, + groupMetadata: _0x3ca1f0, + groupName: _0x20a13e, + participants: _0x280437, + groupAdmins: _0x2cce76, + isBotAdmins: _0x21032b, + isCreator: _0x5b91ad, + isDev: _0x28e3e2, + isAdmins: _0xd5dab5, + reply: _0x48bf1f +}) => { + try { + const _0x2c5d13 = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x299bf3) { + return _0x48bf1f(_0x2c5d13.only_gp); + } + if (!_0xd5dab5) { + const _0x18103d = { + quoted: _0x386107 + }; + if (!_0x28e3e2) { + _0x48bf1f(_0x2c5d13.you_adm); + return _0x18103d; + } + } + if (!_0x21032b) { + return _0x48bf1f(_0x2c5d13.give_adm); + } + let _0x5c5b44 = _0x386107.mentionedJid ? _0x386107.mentionedJid[0] : _0x386107.msg.contextInfo.participant || false; + if (!_0x5c5b44) { + return _0x48bf1f("*Couldn't find any user in context* ❌"); + } + const _0x110b3d = await getGroupAdmins(_0x280437); + if (_0x110b3d.includes(_0x5c5b44)) { + return _0x48bf1f("❗ *User Already an Admin* ✔️"); + } + await _0xd441ad.groupParticipantsUpdate(_0x1762c0, [_0x5c5b44], 'promote'); + const _0x5c487e = { + 'text': "*User promoted as an Admin* ✔️" + }; + const _0x5a2555 = { + quoted: _0x386107 + }; + await _0xd441ad.sendMessage(_0x1762c0, _0x5c487e, _0x5a2555); + } catch (_0x467402) { + const _0x914163 = { + "text": '❌', + "key": _0x386107.key + }; + const _0x572963 = { + "react": _0x914163 + }; + await _0xd441ad.sendMessage(_0x1762c0, _0x572963); + console.log(_0x467402); + _0x48bf1f("❌ *Error Accurated !!*\n\n" + _0x467402); + } +}); +const _0x10f253 = { + "pattern": 'demote', + react: '🥏', + alias: ["removeadmin"], + "desc": "To Demote Admin to Member", + "category": "group", + "use": ".demote", + "filename": __filename +}; +cmd(_0x10f253, async (_0x9b2f7d, _0x39351b, _0xcc8395, { + from: _0xe68cad, + l: _0x7244ea, + quoted: _0x52f979, + body: _0x4f94b4, + isCmd: _0x1a108c, + command: _0x41f029, + mentionByTag: _0x2b232a, + args: _0x256b13, + q: _0x43014d, + isGroup: _0x5b6a75, + sender: _0x1def0f, + senderNumber: _0x201f82, + botNumber2: _0x120e3c, + botNumber: _0x47554d, + pushname: _0x2b6cae, + isMe: _0x24a7ee, + isOwner: _0x10049e, + groupMetadata: _0xec1693, + groupName: _0x57285d, + participants: _0x275dec, + groupAdmins: _0x174790, + isBotAdmins: _0x4f333b, + isCreator: _0x3643ff, + isDev: _0x3eb57c, + isAdmins: _0x455273, + reply: _0x3566a2 +}) => { + try { + const _0x5577a8 = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x5b6a75) { + return _0x3566a2(_0x5577a8.only_gp); + } + if (!_0x455273) { + const _0x34a16d = { + 'quoted': _0x39351b + }; + if (!_0x3eb57c) { + _0x3566a2(_0x5577a8.you_adm); + return _0x34a16d; + } + } + if (!_0x4f333b) { + return _0x3566a2(_0x5577a8.give_adm); + } + let _0x29e551 = _0x39351b.mentionedJid ? _0x39351b.mentionedJid[0] : _0x39351b.msg.contextInfo.participant || false; + if (!_0x29e551) { + return _0x3566a2("*Couldn't find any user in context* ❌"); + } + const _0x4f0d9c = await getGroupAdmins(_0x275dec); + if (!_0x4f0d9c.includes(_0x29e551)) { + return _0x3566a2("❗ *User Already not an Admin*"); + } + await _0x9b2f7d.groupParticipantsUpdate(_0xe68cad, [_0x29e551], "demote"); + const _0x5d8348 = { + text: "*User No longer an Admin* ✔️" + }; + const _0x293c8d = { + "quoted": _0x39351b + }; + await _0x9b2f7d.sendMessage(_0xe68cad, _0x5d8348, _0x293c8d); + } catch (_0x94836e) { + const _0x1f05fd = { + "text": '❌', + "key": _0x39351b.key + }; + const _0x1346fb = { + "react": _0x1f05fd + }; + await _0x9b2f7d.sendMessage(_0xe68cad, _0x1346fb); + console.log(_0x94836e); + _0x3566a2("❌ *Error Accurated !!*\n\n" + _0x94836e); + } +}); +const _0x53a4af = { + "pattern": "tagall", + "react": '🔊', + "alias": ["f_tagall"], + "desc": "To Tag all Members", + "category": "group", + "use": ".tagall", + "filename": __filename +}; +cmd(_0x53a4af, async (_0x18845e, _0x4632c9, _0x55ef21, { + from: _0x2921e4, + l: _0xdf8a7f, + quoted: _0x10158f, + body: _0x11e711, + isCmd: _0x11a69a, + command: _0x4fc745, + mentionByTag: _0x4bc0e1, + args: _0x507a0, + q: _0x82f972, + isGroup: _0x27faa2, + sender: _0x12fa8, + senderNumber: _0x1797a0, + botNumber2: _0x53e37a, + botNumber: _0x370958, + pushname: _0x366640, + isMe: _0x34a29c, + isOwner: _0x12be5a, + groupMetadata: _0x39d18f, + groupName: _0x3b5423, + participants: _0x56c772, + groupAdmins: _0x5b3f7e, + isBotAdmins: _0x3b20c3, + isCreator: _0x2833a2, + isDev: _0x3d6d09, + isAdmins: _0x18b86b, + reply: _0xbd5407 +}) => { + try { + const _0x5aa172 = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x27faa2) { + return _0xbd5407(_0x5aa172.only_gp); + } + if (!_0x18b86b) { + const _0x1c6dca = { + quoted: _0x4632c9 + }; + if (!_0x3d6d09) { + _0xbd5407(_0x5aa172.you_adm); + return _0x1c6dca; + } + } + if (!_0x3b20c3) { + return _0xbd5407(_0x5aa172.give_adm); + } + let _0x3993c3 = "💱 *HI ALL ! GIVE YOUR ATTENTION PLEASE* \n \n"; + for (let _0x445e7a of _0x56c772) { + _0x3993c3 += "> ᴅᴇᴀʀ ☣️ @" + _0x445e7a.id.split('@')[0] + "\n"; + } + const _0xb97cc3 = { + quoted: _0x4632c9 + }; + _0x18845e.sendMessage(_0x2921e4, { + 'text': _0x3993c3, + 'mentions': _0x56c772.map(_0x47d9c6 => _0x47d9c6.id) + }, _0xb97cc3); + } catch (_0x1f1f2c) { + const _0xbc6e6b = { + "text": '❌', + "key": _0x4632c9.key + }; + const _0x305f38 = { + react: _0xbc6e6b + }; + await _0x18845e.sendMessage(_0x2921e4, _0x305f38); + console.log(_0x1f1f2c); + _0xbd5407("❌ *Error Accurated !!*\n\n" + _0x1f1f2c); + } +}); +const _0x3220aa = { + pattern: "hidetag", + "react": '🔊', + "alias": ["tag", 'f_tag'], + "desc": "To Tag all Members for Message", + category: "group", + "use": ".tag Hi", + "filename": __filename +}; +cmd(_0x3220aa, async (_0x42cc1d, _0x4f5e7e, _0x49808f, { + from: _0x53e02e, + l: _0xf27966, + quoted: _0x499ac3, + body: _0x35aa48, + isCmd: _0x580a45, + command: _0x2dcbc5, + mentionByTag: _0x586803, + args: _0x1b98ce, + q: _0x153bef, + isGroup: _0x2b35af, + sender: _0x47dc62, + senderNumber: _0x22cfc7, + botNumber2: _0x3555de, + botNumber: _0x386f73, + pushname: _0x450314, + isMe: _0x397067, + isOwner: _0x46be22, + groupMetadata: _0x2126df, + groupName: _0x4ad3fc, + participants: _0x3b7b63, + groupAdmins: _0x54e5a2, + isBotAdmins: _0x2e297e, + isCreator: _0x46bc7f, + isDev: _0x2d511d, + isAdmins: _0x67d41d, + reply: _0x247340 +}) => { + try { + const _0x1e63ea = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0x2b35af) { + return _0x247340(_0x1e63ea.only_gp); + } + if (!_0x67d41d) { + const _0x60891f = { + quoted: _0x4f5e7e + }; + if (!_0x2d511d) { + _0x247340(_0x1e63ea.you_adm); + return _0x60891f; + } + } + if (!_0x2e297e) { + return _0x247340(_0x1e63ea.give_adm); + } + if (!_0x153bef) { + return _0x247340("*Please add a Message* ℹ️"); + } + let _0x369546 = '' + _0x153bef; + const _0x10b59c = { + "quoted": _0x4f5e7e + }; + _0x42cc1d.sendMessage(_0x53e02e, { + 'text': _0x369546, + 'mentions': _0x3b7b63.map(_0x50fa51 => _0x50fa51.id) + }, _0x10b59c); + } catch (_0x461191) { + const _0x5b4083 = { + text: '❌', + "key": _0x4f5e7e.key + }; + const _0x3604e5 = { + "react": _0x5b4083 + }; + await _0x42cc1d.sendMessage(_0x53e02e, _0x3604e5); + console.log(_0x461191); + _0x247340("❌ *Error Accurated !!*\n\n" + _0x461191); + } +}); +const _0x446ca7 = { + "pattern": "taggp", + react: '🔊', + alias: ["tggp", 'f_taggp'], + desc: "To Tag all Members for Message", + "category": "group", + use: ".tag Hi", + "filename": __filename +}; +cmd(_0x446ca7, async (_0xb2d1ca, _0x26e406, _0x1fe36e, { + from: _0x48c3b8, + l: _0x33ce03, + quoted: _0x13d52e, + body: _0x298a5b, + isCmd: _0x2b91c0, + command: _0xe35736, + mentionByTag: _0x7ad100, + args: _0x18c434, + q: _0x1be236, + isGroup: _0x31bc0b, + sender: _0x28ca24, + senderNumber: _0x1a9dd6, + botNumber2: _0x583e95, + botNumber: _0x2aa89e, + pushname: _0x237aa6, + isMe: _0x26c405, + isOwner: _0x114432, + groupMetadata: _0xf9c904, + groupName: _0x17e4d5, + participants: _0x5ae5ac, + groupAdmins: _0x718ee3, + isBotAdmins: _0x1ddf62, + isCreator: _0x8ed2b, + isDev: _0x9e4c10, + isAdmins: _0x32ac67, + reply: _0x4b3c82 +}) => { + try { + if (!_0x1fe36e.quoted) { + return _0x4b3c82("*Please mention a message* ℹ️"); + } + if (!_0x1be236) { + return _0x4b3c82("*Please add a Group Jid* ℹ️"); + } + let _0x2298f1 = '' + _0x1fe36e.quoted.msg; + const _0x1a15a4 = { + quoted: _0x26e406 + }; + _0xb2d1ca.sendMessage(_0x1be236, { + 'text': _0x2298f1, + 'mentions': _0x5ae5ac.map(_0x8aac9 => _0x8aac9.id) + }, _0x1a15a4); + } catch (_0x438f31) { + const _0x3e865b = { + "text": '❌', + "key": _0x26e406.key + }; + const _0x1204ec = { + "react": _0x3e865b + }; + await _0xb2d1ca.sendMessage(_0x48c3b8, _0x1204ec); + console.log(_0x438f31); + _0x4b3c82("❌ *Error Accurated !!*\n\n" + _0x438f31); + } +}); +const _0x4c04aa = { + pattern: "ginfo", + react: '🥏', + "alias": ["groupinfo"], + "desc": "Get group informations.", + category: 'group', + use: ".ginfo", + "filename": __filename +}; +cmd(_0x4c04aa, async (_0x549d77, _0x7db638, _0x55a368, { + from: _0x522091, + l: _0x243155, + quoted: _0x58bcdd, + body: _0x4ec107, + isCmd: _0x5c3cc1, + command: _0xd8b3ee, + args: _0xe69fe4, + q: _0x46e09c, + isGroup: _0xc2faac, + sender: _0x1ae174, + senderNumber: _0x533479, + botNumber2: _0x551c23, + botNumber: _0x1b700f, + pushname: _0x1646bb, + isMe: _0x5ca086, + isOwner: _0x2c6b0f, + groupMetadata: _0x4f2b9b, + groupName: _0x577a56, + participants: _0x35bedf, + groupAdmins: _0x109785, + isBotAdmins: _0x3a70db, + isCreator: _0xa323c2, + isDev: _0x460ec0, + isAdmins: _0x489710, + reply: _0x4445db +}) => { + try { + const _0x15dacf = (await fetchJson("https://raw.githubusercontent.com/SILENTLOVER40/SILENT-SOBX-MD-DATA/refs/heads/main/DATABASE/mreply.json")).replyMsg; + if (!_0xc2faac) { + return _0x4445db(_0x15dacf.only_gp); + } + if (!_0x489710) { + const _0x5dc6e = { + 'quoted': _0x7db638 + }; + if (!_0x460ec0) { + _0x4445db(_0x15dacf.you_adm); + return _0x5dc6e; + } + } + if (!_0x3a70db) { + return _0x4445db(_0x15dacf.give_adm); + } + const _0x5b8728 = await _0x549d77.groupMetadata(_0x522091); + let _0x3d7bad = await _0x549d77.profilePictureUrl(_0x522091, 'image'); + const _0x348767 = "\n*" + _0x5b8728.subject + "*\n\n🐉 *Group Jid* - " + _0x5b8728.id + "\n\n📬 *Participant Count* - " + _0x5b8728.size + "\n\n👤 *Group Creator* - " + _0x5b8728.owner + "\n\n📃 *Group Description* - " + _0x5b8728.desc + "\n\n"; + const _0x30d9db = { + url: _0x3d7bad + }; + const _0x4986c1 = { + "quoted": _0x7db638 + }; + await _0x549d77.sendMessage(_0x522091, { + 'image': _0x30d9db, + 'caption': _0x348767 + config.FOOTER + }, _0x4986c1); + } catch (_0x1e118d) { + const _0x4d6757 = { + "text": '❌', + "key": _0x7db638.key + }; + const _0x2a549a = { + "react": _0x4d6757 + }; + await _0x549d77.sendMessage(_0x522091, _0x2a549a); + console.log(_0x1e118d); + _0x4445db("❌ *Error Accurated !!*\n\n" + _0x1e118d); + } +}); diff --git a/plugins/main-listmenu.js b/plugins/main-listmenu.js new file mode 100644 index 0000000000000000000000000000000000000000..00573b801b89511b260d35d441eb057ce75f082b --- /dev/null +++ b/plugins/main-listmenu.js @@ -0,0 +1,327 @@ +const config = require('../config') +const { cmd, commands } = require('../command'); + +cmd({ + pattern: "list", + alias: ["listcmd","listmenu"], + desc: "menu the bot", + category: "menu", + react: "📃", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━❮ *DOWNLOAD CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .play +┃▸❕ Download Audio from yt +┃▸ +┃▸📄 COMMAND: .song +┃▸❕ Download song from yt +┃▸ +┃▸📄 COMMAND: .apk +┃▸❕ Download apk from playstore +┃▸ +┃▸📄 COMMAND: .video +┃▸❕ Download video from yt +┃▸ +┃▸📄 COMMAND: .fb +┃▸❕ Download video from fb +┃▸ +┃▸📄 COMMAND: .tk +┃▸❕ Download video from tiktok +┃▸ +┃▸📄 COMMAND: .ig +┃▸❕ Download video from ig +┃▸ +┃▸📄 COMMAND: .gdrive +┃▸❕ Download drive files +┃▸ +┃▸📄 COMMAND: .twitter +┃▸❕ Download video from Twitter +┃▸ +┃▸📄 COMMAND: .img +┃▸❕ Download image +┃▸ +┃▸📄 COMMAND: .darama +┃▸❕ Download full episode video +┃▸ +┃▸📄 COMMAND: .play2 +┃▸❕ Download Audio from yt +┃▸ +┃▸📄 COMMAND: .video2 +┃▸❕ Download video from yt +┃▸ +┃▸📄 COMMAND: .baiscope +┃▸❕ Download video from baiscope +┃▸ +┃▸📄 COMMAND: .mfire +┃▸❕ Download mediafire files +╰━━━━━━━━━━━━⪼ + +╭━❮ *ANMIE CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .yts +┃▸❕ Serch videos from yt +┃▸ +┃▸📄 COMMAND: .king +┃▸❕ get king about +┃▸ +┃▸📄 COMMAND: .dog +┃▸❕ get random dog imgs +┃▸ +┃▸📄 COMMAND: .anime +┃▸❕ get anime pics +┃▸ +┃▸📄 COMMAND: .animegirl +┃▸❕ get animegirl pics +┃▸ +┃▸📄 COMMAND: .loli +┃▸❕ get romantic anime pics +╰━━━━━━━━━━━━⪼ + +╭━❮‍ *INFO CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .alive +┃▸❕ Check online or not +┃▸ +┃▸📄 COMMAND: .ping +┃▸❕ Check bot speed +┃▸ +┃▸📄 COMMAND: .menu +┃▸❕ Nero main menu +┃▸ +┃▸📄 COMMAND: .menu2 +┃▸❕ Nero main menu2 +┃▸ +┃▸📄 COMMAND: .ai +┃▸❕ chat with ai bot +┃▸ +┃▸📄 COMMAND: .system +┃▸❕ check bot systems +┃▸ +┃▸📄 COMMAND: .owner +┃▸❕ get owner info +┃▸ +┃▸📄 COMMAND: .status +┃▸❕ check bot runtime +┃▸ +┃▸📄 COMMAND: .about +┃▸❕ get about bot +┃▸ +┃▸📄 COMMAND: .list +┃▸❕ get bot command list +┃▸ +┃▸📄 COMMAND: .script +┃▸❕ get bot repository +╰━━━━━━━━━━━━⪼ + +╭━❮ *OTHER CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .joke +┃▸❕ Get Rendom joke +┃▸ +┃▸📄 COMMAND: .fact +┃▸❕ Get Rendom fact +┃▸ +┃▸📄 COMMAND: .githubstalk +┃▸❕ Get github data any user +┃▸ +┃▸📄 COMMAND: .gpass +┃▸❕ Get a strong password +┃▸ +┃▸📄 COMMAND: .hack +┃▸❕ prank with friends +┃▸ +┃▸📄 COMMAND: .srepo +┃▸❕ serch repository +┃▸ +┃▸📄 COMMAND: .define +┃▸❕ serch any words +╰━━━━━━━━━━━━⪼ + +╭━❮ *GROUP CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .mute +┃▸❕ Mute group +┃▸ +┃▸📄 COMMAND: .unmute +┃▸❕ Unmute group +┃▸ +┃▸📄 COMMAND: .left +┃▸❕ left group +┃▸ +┃▸📄 COMMAND: .jid +┃▸❕ group jid +┃▸ +┃▸📄 COMMAND: .remove +┃▸❕ remove member from group +┃▸ +┃▸📄 COMMAND: .delete +┃▸❕ remove sms from group +┃▸ +┃▸📄 COMMAND: .add +┃▸❕ add members in group +┃▸ +┃▸📄 COMMAND: .kick +┃▸❕ kick any user +┃▸ +┃▸📄 COMMAND: .kickall +┃▸❕ remove all members from group +┃▸ +┃▸📄 COMMAND: .setgoodbye +┃▸❕ set member leave sms +┃▸ +┃▸📄 COMMAND: .setwelcome +┃▸❕ set member welcome sms +┃▸ +┃▸📄 COMMAND: promote +┃▸❕ make group admin +┃▸ +┃▸📄 COMMAND: .demote +┃▸❕ dissmis any admin +┃▸ +┃▸📄 COMMAND: .tagall +┃▸❕ mention group all members +┃▸ +┃▸📄 COMMAND: .getpic +┃▸❕ get group profile +┃▸ +┃▸📄 COMMAND: .invite +┃▸❕ get group invite link +┃▸ +┃▸📄 COMMAND: .revoke +┃▸❕ reset group link +┃▸ +┃▸📄 COMMAND: .joinrequests +┃▸❕ cheack group panding members +┃▸ +┃▸📄 COMMAND: .allreq +┃▸❕ add group panding members +┃▸ +┃▸📄 COMMAND: .lockgc +┃▸❕ lock group private +┃▸ +┃▸📄 COMMAND: .unlockgc +┃▸❕ unlock group all +┃▸ +┃▸📄 COMMAND: .leave +┃▸❕ left any group +┃▸ +┃▸📄 COMMAND: .updategname +┃▸❕ set group name +┃▸ +┃▸📄 COMMAND: .updategdesc +┃▸❕ set group description +┃▸ +┃▸📄 COMMAND: .joim +┃▸❕ join invite link +┃▸ +┃▸📄 COMMAND: .hidetag +┃▸❕ mention any user hide +┃▸ +┃▸📄 COMMAND: .ginfo +┃▸❕ get group information +┃▸ +┃▸📄 COMMAND: .disappear on +┃▸❕ on disappear sms in group +┃▸ +┃▸📄 COMMAND: .disappear off +┃▸❕ off disappear sms in group +┃▸ +┃▸📄 COMMAND: .senddm +┃▸❕ send disappear sms in group +┃▸ +┃▸📄 COMMAND: .disappear 7d 24h 90d +┃▸❕ set time to disappear sms +╰━━━━━━━━━━━━⪼ + +╭━❮ *OWNER CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .update +┃▸❕ update bot velue +┃▸ +┃▸📄 COMMAND: .restart +┃▸❕ restart your bot +┃▸ +┃▸📄 COMMAND: .settings +┃▸❕ see bot settings +┃▸ +┃▸📄 COMMAND: .owner +┃▸❕ get owner number +┃▸ +┃▸📄 COMMAND: .repo +┃▸❕ get bot repository +┃▸ +┃▸📄 COMMAND: .system +┃▸❕ check bot systems +┃▸ +┃▸📄 COMMAND: .block +┃▸❕ block any user +┃▸ +┃▸📄 COMMAND: .unblock +┃▸❕ unblock any user +┃▸ +┃▸📄 COMMAND: .shutdown +┃▸❕ logout your bot +┃▸ +┃▸📄 COMMAND: .clearchats +┃▸❕ clearchats from ib +┃▸ +┃▸📄 COMMAND: .setpp +┃▸❕ update profile pic +┃▸ +┃▸📄 COMMAND: .broadcast +┃▸❕ creat broadcast +┃▸ +┃▸📄 COMMAND: .jid +┃▸❕ get jid any user +┃▸ +┃▸📄 COMMAND: .gjid +┃▸❕ get group jid +╰━━━━━━━━━━━━⪼ + +╭━❮ *CONVERT CMD* ❯━┈⊷ +┃▸ +┃▸📄 COMMAND: .sticker +┃▸❕ convert photo to sticker +┃▸ +┃▸📄 COMMAND: .tts +┃▸❕ change text to voice +┃▸ +┃▸📄 COMMAND: .trt +┃▸❕ change languages +╰━━━━━━━━━━━━⪼ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: 'SUBZERO MD', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + // Send audio + await conn.sendMessage(from, { + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/raw/refs/heads/main/audios/subzero-menu.mp3' }, + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); \ No newline at end of file diff --git a/plugins/main-menu.js b/plugins/main-menu.js new file mode 100644 index 0000000000000000000000000000000000000000..36b530b0213fceb6fc9dbd1246905f961735702c --- /dev/null +++ b/plugins/main-menu.js @@ -0,0 +1,314 @@ +const config = require('../config'); +const { cmd, commands } = require('../command'); +const os = require("os"); +const { runtime } = require('../lib/functions'); +const axios = require('axios'); + +cmd({ + pattern: "menu", + desc: "subzero menu", + category: "menu", + react: "📑", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + +let dec = ` +╭╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺◈ +┊┌⟝⟢ ${config.BOT_NAME} ⟣⟞ +┊│╭─────────────···◈ +┊┴│ +┊➮│▧ *ᴄʀᴇᴀᴛᴏʀ* : *ᴍʀ ғʀᴀɴᴋ (🇿🇼)* +┊➮│▧ *ᴍᴏᴅᴇ* : *[${config.MODE}]* +┊➮│▧ *ᴘʀᴇғɪx* : *[${config.PREFIX}]* +┊➮│▧ *ʀᴀᴍ* : ${(process.memoryUsage().heapUsed / 1024 / 1024).toFixed(2)}MB / ${Math.round(require('os').totalmem / 1024 / 1024)}MB +┊➮│▧ *ᴠᴇʀsɪᴏɴ* : *1.0.3* +┊➮│▧ *ᴜᴘᴛɪᴍᴇ* : ${runtime(process.uptime())} +┊➮│▸ +┬ │ +│ ╰────────────···◈ +└──────────────────···◈ + +> SUBZERO - MD- BOT + +*🏮 \`SUBZERO DOWNLOADER\` 🏮* + +╭─────────────···◈ +*┋* *⟡ ғʙ* +*┋* *⟡ ɪɴꜱᴛᴀ* +*┋* *⟡ sᴘᴏᴛɪғʏ* +*┋* *⟡ ᴠɪᴅᴇᴏ* +*┋* *⟡ ɢᴅʀɪᴠᴇ* +*┋* *⟡ ᴛᴡɪᴛᴛᴇʀ* +*┋* *⟡ ᴛᴛ* +*┋* *⟡ ᴍᴇᴅɪᴀғɪʀᴇ* +*┋* *⟡ ꜱᴏɴɢ* +*┋* *⟡ ᴘʟᴀʏ* +*┋* *⟡ ᴘʟᴀʏ2* +*┋* *⟡ ᴘʟᴀʏ3* +*┋* *⟡ ᴠɪᴅᴇᴏ* +*┋* *⟡ ᴠɪᴅᴇᴏ2* +*┋* *⟡ ᴠɪᴅᴇᴏ3* +*┋* *⟡ ɢɪᴛᴄʟᴏɴᴇ* +*┋* *⟡ ɪᴍɢ* +*┋* *⟡ ᴀᴘᴋ* +*┋* *⟡ ʏᴛᴍᴘ3* +*┋* *⟡ ʏᴛᴍᴘ4* +*┋* *⟡ ᴘɪɴᴛᴇʀᴇsᴛ* +*┋* *⟡ ʙᴀɪsᴄᴏᴘᴇ* +*┋* *⟡ ɢɪɴɪsɪsɪʟᴀ* +*╰─────────────╶╶···◈* + +*🔎 \`SEARCH-CMD\` 🔍* + +╭─────────────···◈ +*┋* *⟡ ʏᴛꜱ* +*┋* *⟡ ʏᴛᴀ* +*┋* *⟡ ɢᴏᴏɢʟᴇ* +*┋* *⟡ ʟᴏʟɪ* +*┋* *⟡ ɢɪᴛsᴛᴀʟᴋ* +*┋* *⟡ ᴡɪᴋɪᴘᴇᴅɪᴀ* +*┋* *⟡ ᴍᴏᴠɪᴇɪɴғᴏ* +*┋* *⟡ ɢᴏᴏɢʟᴇ* +*┋* *⟡ ʙɪʙʟᴇ* +*┋* *⟡ ᴍᴏᴠɪᴇ* +*┋* *⟡ ᴡᴇᴀᴛʜᴇʀ* +*┋* *⟡ ssᴡᴇʙ +*┋* *⟡ ɴᴘᴍ* +*╰─────────────╶╶···◈* +*🧠 \`AI-CMD\` 🧠* + +╭─────────────···◈ +*┋* *⟡ ɢᴘᴛ* +*┋* *⟡ ᴀɪ* +*┋* *⟡ sᴜʙᴢᴇʀᴏ* +*┋* *⟡ ɢᴇᴍɪɴɪ* +*┋* *⟡ ʙɪɴɢ* +*┋* *⟡ ᴄᴏᴘɪʟᴏᴛ* +*┋* *⟡ sᴜʙᴢᴇʀᴏ* +*┋* *⟡ ɢᴘᴛ4* +*┋* *⟡ ɢᴘᴛ4ᴏ* +*┋* *⟡ ʟʟᴀᴍᴀ2* +╰─────────────╶╶···◈ + +*👨‍💻 \`OWNER-CMD\` 👨‍💻* + +╭─────────────···◈ +*┋* *⟡ ᴜᴘᴅᴀᴛᴇᴄᴍᴅ* +*┋* *⟡ sᴇᴛᴛɪɴɢs* +*┋* *⟡ ᴏᴡɴᴇʀ* +*┋* *⟡ ʀᴇᴘᴏ* +*┋* *⟡ ʙᴏᴛsᴇᴛᴛɪɴɢs* +*┋* *⟡ ꜱʏꜱᴛᴇᴍ* +*┋* *⟡ ᴜᴘᴅᴀᴛᴇ* +*┋* *⟡ ꜱᴛᴀᴛᴜꜱ* +*┋* *⟡ ʙʟᴏᴄᴋ* +*┋* *⟡ ᴜɴʙʟᴏᴄᴋ* +*┋* *⟡ sʜᴜᴛᴅᴏᴡɴ* +*┋* *⟡ ᴄʟᴇᴀʀᴄʜᴀᴛs* +*┋* *⟡ sᴇᴛᴘᴘ* +*┋* *⟡ ғᴜʟʟᴘᴘ* +*┋* *⟡ ʙʀᴏᴀᴅᴄᴀsᴛ* +*┋* *⟡ ᴊɪᴅ* +*┋* *⟡ ɢᴊɪᴅ* +*┋* *⟡ ʀᴇꜱᴛᴀʀᴛ* +╰─────────────╶╶···◈ + +*👥 \`GROUP-CMD\` 👥* + +╭─────────────···◈ +*┋* *⟡ ʀᴇᴍᴏᴠᴇ* +*┋* *⟡ ᴅᴇʟᴇᴛᴇ* +*┋* *⟡ ᴀᴅᴅ* +*┋* *⟡ ᴋɪᴄᴋ* +*┋* *⟡ ᴋɪᴄᴋᴀʟʟ* +*┋* *⟡ sᴇᴛɢᴏᴏᴅʙʏᴇ* +*┋* *⟡ sᴇᴛᴡᴇʟᴄᴏᴍᴇ* +*┋* *⟡ ᴘʀᴏᴍᴏᴛᴇ* +*┋* *⟡ ᴅᴇᴍᴏᴛᴇ* +*┋* *⟡ ᴛᴀɢᴀʟʟ* +*┋* *⟡ ɢᴇᴛᴘɪᴄ* +*┋* *⟡ ɪɴᴠɪᴛᴇ* +*┋* *⟡ ʀᴇᴠᴏᴋᴇ* +*┋* *⟡ ᴊᴏɪɴʀᴇǫᴜᴇsᴛs* +*┋* *⟡ ᴀʟʟʀᴇǫ* +*┋* *⟡ ᴍᴜᴛᴇ* +*┋* *⟡ ᴜɴᴍᴜᴛᴇ* +*┋* *⟡ ʟᴏᴄᴋɢᴄ* +*┋* *⟡ ᴜɴʟᴏᴄᴋɢᴄ* +*┋* *⟡ ʟᴇᴀᴠᴇ* +*┋* *⟡ ᴜᴘᴅᴀᴛᴇɢɴᴀᴍᴇ* +*┋* *⟡ ᴜᴘᴅᴀᴛᴇɢᴅᴇsᴄ* +*┋* *⟡ ᴊᴏɪɴ* +*┋* *⟡ ʜɪᴅᴇᴛᴀɢ* +*┋* *⟡ ɢɪɴғᴏ* +*┋* *⟡ ᴅɪsᴀᴘᴘᴇᴀʀ ᴏɴ* +*┋* *⟡ ᴅɪsᴀᴘᴘᴇᴀʀ ᴏғғ* +*┋* *⟡ ᴅɪsᴀᴘᴘᴇᴀʀ 7ᴅ 24ʜ 90ᴅ* +*┋* *⟡ sᴇɴᴅᴅᴍ* +*┋* *⟡ ᴏᴘᴇɴᴛɪᴍᴇ* +*┋* *⟡ ᴄʟᴏsᴇᴛɪᴍᴇ* +╰─────────────╶╶···◈ + +*📃 \`INFO-CMD\` 📃* + +╭─────────────···◈ +*┋* *⟡ ᴍᴇɴᴜ* +*┋* *⟡ ᴀʟʟᴍᴇɴᴜ* +*┋* *⟡ ʙᴇᴛᴀᴍᴇɴᴜ* +*┋* *⟡ ᴀʙᴏᴜᴛ* +*┋* *⟡ sᴄʀɪᴘᴛ* +*┋* *⟡ ʀᴇᴘᴏ* +*┋* *⟡ ᴍʀғʀᴀɴᴋ* +*┋* *⟡ ᴀʟɪᴠᴇ* +*┋* *⟡ ʙᴏᴛɪɴꜰᴏ* +*┋* *⟡ ꜱᴛᴀᴛᴜꜱ* +*┋* *⟡ ꜱᴜᴘᴘᴏʀᴛ* +*┋* *⟡ ᴘɪɴɢ* +*┋* *⟡ ᴘɪɴɢ2* +*┋* *⟡ sᴜʙᴢᴇʀᴏɪɴᴄ* +*┋* *⟡ ꜱʏꜱᴛᴇᴍ* +*┋* *⟡ ᴘᴀɪʀ* +*┋* *⟡ ᴘᴀɪʀ2* +╰─────────────╶╶···◈ + +*🍭 \`CONVERTER-CMD\` 🍭* + +╭─────────────···◈ +*┋* *⟡ sᴛɪᴄᴋᴇʀ* +*┋* *⟡ ᴛʀᴛ* +*┋* *⟡ ᴛʀᴛs* +*┋* *⟡ ᴛɢsᴛɪᴄᴋᴇʀ* +*┋* *⟡ ʟᴏɢᴏ* +*┋* *⟡ ʟᴏɢᴏ1* +*┋* *⟡ ʟᴏɢᴏ2* +*┋* *⟡ ғᴀɴᴄʏ* +*┋* *⟡ ᴠᴠ* +*┋* *⟡ ᴛᴇᴍᴘᴍᴀɪʟ* +╰─────────────╶╶···◈ + +*⚙️ \`SUBZERO-SETTINGS\` ⚙️* + +╭─────────────···◈ +*┋* *⟡ sᴜʙᴢᴇʀᴏᴇɴᴠ* +*┋* *⟡ ᴜᴘᴅᴀᴛᴇ* +*┋* *⟡ ᴘɪɴɢ* +*┋* *⟡ ᴍʀғʀᴀɴᴋ* +*┋* *⟡ ᴏᴡɴᴇʀ* +*┋* *⟡ sᴜʙᴢᴇʀᴏɪɴᴄ* +*┋* *⟡ ᴀʙᴏᴜᴛ* +*┋* *⟡ sᴇᴛᴛɪɴɢs* +*┋* *⟡ ᴀʟɪᴠᴇ* +╰─────────────╶╶···◈ + +*♻️ \`RANDOM-CMD\` ♻️* + +╭─────────────···◈ +*┋* *⟡ ᴄᴘᴘ* +*┋* *⟡ ᴅᴏɢ* +*┋* *⟡ ʀᴀɴᴅᴏᴍᴡᴀʟʟᴘᴇʀ* +*┋* *⟡ ʟᴏʟɪ* +*┋* *⟡ ᴀᴡᴏᴏ* +*┋* *⟡ ᴡᴀɪғᴜ* +*┋* *⟡ ɢᴀʀʟ* +*┋* *⟡ ᴍᴀɪᴅ* +*┋* *⟡ ɴᴇᴋᴏ* +*┋* *⟡ ᴀɴɪᴍᴇ* +*┋* *⟡ ᴀɴɪᴍᴇɢɪʀʟ* +*┋* *⟡ ᴀɴɪᴍᴇɢɪʀʟ1* +*┋* *⟡ ᴀɴɪᴍᴇɢɪʀʟ2* +*┋* *⟡ ᴀɴɪᴍᴇɢɪʀʟ3* +*┋* *⟡ ᴀɴɪᴍᴇɢɪʀʟ4* +*┋* *⟡ ᴀɴɪᴍᴇɢɪʀʟ5* +╰─────────────╶╶···◈ + +*🎀 \`WALLPAPERS-CMD\` 🎀* + +╭─────────────···◈ +*┋* *⟡ ɪᴍɢ* +*┋* *⟡ ᴡᴀʟʟᴘᴀᴘᴇʀ* +╰─────────────╶╶···◈ + +*😆 \`FUN-CMD\` 😆* + +╭─────────────···◈ +*┋* *⟡ sʜʏ* +*┋* *⟡ sʜʏʏ* +*┋* *⟡ ʜᴀᴘᴘʏ* +*┋* *⟡ sᴀᴅ* +*┋* *⟡ ᴀɴɢʀʏ* +*┋* *⟡ ʜᴀɴᴅ* +*┋* *⟡ ɴɪᴋᴀʟ* +*┋* *⟡ ʜᴜɢ* +*┋* *⟡ ᴍᴏᴏɴ* +*┋* *⟡ ᴋɪss* +*┋* *⟡ ᴄᴏɴғᴜsᴇᴅ* +*┋* *⟡ ʜᴇᴀʀᴛ* +*┋* *⟡ ᴘɪᴄᴋᴜᴘʟɪɴᴇ* +*┋* *⟡ ғᴀᴄᴛ* +*┋* *⟡ ᴛʀᴜᴛʜ* +*┋* *⟡ ᴅᴀʀᴇ* +*┋* *⟡ ᴄʜᴀʀᴀᴄᴛᴇʀ* +╰─────────────╶╶···◈ + + +*❄️ \`OTHER-CMD\` ❄️* + +╭─────────────···◈ +*┋* *⟡ ᴛʀᴛ* +*┋* *⟡ ᴊᴏᴋᴇ* +*┋* *⟡ ᴛᴛs* +*┋* *⟡ ꜰᴀᴄᴛ* +*┋* *⟡ ɢɪᴛʜᴜʙ* +*┋* *⟡ ɢᴘᴀꜱꜱ* +*┋* *⟡ ʜᴀᴄᴋ* +*┋* *⟡ ǫᴜᴏᴛᴇ* +*┋* *⟡ ʀᴇᴘᴏ* +*┋* *⟡ ᴛɢsᴛɪᴄᴋᴇʀ* +*┋* *⟡ sʀᴇᴘᴏ* +*┋* *⟡ ᴅᴇꜰɪɴᴇ* +*┋* *⟡ ᴀɴᴛɪᴠɪᴇᴡᴏɴᴄᴇ* +╰─────────────╶╶···◈ + +*━━━━━━━━━━━━━━━━━━━━*⁠⁠⁠⁠ +> MADE BY MR FRANK +*━━━━━━━━━━━━━━━━━━━━━* +`; + +await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: '❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄️ ', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + // Send audio //https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/raw/refs/heads/main/audios/subzero-menu.mp3 + await conn.sendMessage(from, { //https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/blob/main/audios/subzero-menu.mp3 + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/raw/refs/heads/main/audios/subzero-menu.mp3' },//https://github.com/JawadYTX/KHAN-DATA/raw/refs/heads/main/autovoice/sigma.m4a + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + + + + +// SUBZERO SC BY MR FRANK diff --git a/plugins/main-menu2.js b/plugins/main-menu2.js new file mode 100644 index 0000000000000000000000000000000000000000..81084a2017002e54bb8eb3e36e4def7d0a2c25ff --- /dev/null +++ b/plugins/main-menu2.js @@ -0,0 +1,268 @@ +const config = require('../config') +const { cmd, commands } = require('../command'); +const os = require("os") +const {runtime} = require('../lib/functions') +const axios = require('axios') + +cmd({ + pattern: "allmenu", + alias: "menu2", + desc: "menu the bot", + category: "menu2", + react: "🛠️", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `╭━━━〔 *${config.BOT_NAME}* 〕━━━┈⊷ +┃★╭────────────── +┃★│ Owner : *${config.OWNER_NAME}* +┃★│ Baileys : *Multi Device* +┃★│ Type : *NodeJs* +┃★│ Platform : *Heroku* +┃★│ Mode : *[${config.MODE}]* +┃★│ Prefix : *[${config.PREFIX}]* +┃★│ Version : *1.0.3 Bᴇᴛᴀ* +┃★╰────────────── +╰━━━━━━━━━━━━━━━┈⊷ +╭━━〔 *Download Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• facebook +┃◈┃• mediafire +┃◈┃• tiktok +┃◈┃• twitter +┃◈┃• Insta +┃◈┃• apk +┃◈┃• img +┃◈┃• tt2 +┃◈┃• git +┃◈┃• spotify +┃◈┃• play +┃◈┃• play2 +┃◈┃• play3 +┃◈┃• audio +┃◈┃• video +┃◈┃• video2 +┃◈┃• ytmp3 +┃◈┃• ytmp4 +┃◈┃• song +┃◈┃• darama +┃◈┃• gdrive +┃◈┃• smovie +┃◈┃• baiscope +┃◈┃• ginisilia +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Group Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• grouplink +┃◈┃• kickall +┃◈┃• kickall2 +┃◈┃• kickall3 +┃◈┃• add +┃◈┃• remove +┃◈┃• kick +┃◈┃• promote +┃◈┃• demote +┃◈┃• dismiss +┃◈┃• revoke +┃◈┃• setgoodbye +┃◈┃• setwelcome +┃◈┃• delete +┃◈┃• getpic +┃◈┃• ginfo +┃◈┃• delete +┃◈┃• disappear on +┃◈┃• disappear off +┃◈┃• disappear 7D,24H +┃◈┃• allreq +┃◈┃• updategname +┃◈┃• updategdesc +┃◈┃• joinrequests +┃◈┃• senddm +┃◈┃• nikal +┃◈┃• mute +┃◈┃• unmute +┃◈┃• lockgc +┃◈┃• unlockgc +┃◈┃• invite +┃◈┃• tag +┃◈┃• hidetag +┃◈┃• tagall +┃◈┃• tagadmins +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Owner Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• owner +┃◈┃• menu +┃◈┃• menu2 +┃◈┃• vv +┃◈┃• listcmd +┃◈┃• allmenu +┃◈┃• repo +┃◈┃• block +┃◈┃• unblock +┃◈┃• fullpp +┃◈┃• setpp +┃◈┃• restart +┃◈┃• shutdown +┃◈┃• updatecmd +┃◈┃• alive +┃◈┃• ping +┃◈┃• gjid +┃◈┃• jid +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Fun Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• insult +┃◈┃• hack +┃◈┃• ship +┃◈┃• character +┃◈┃• pickup +┃◈┃• joke +┃◈┃• hrt +┃◈┃• hpy +┃◈┃• syd +┃◈┃• anger +┃◈┃• shy +┃◈┃• kiss +┃◈┃• mon +┃◈┃• cunfuzed +┃◈┃• setpp +┃◈┃• hand +┃◈┃• nikal +┃◈┃• hold +┃◈┃• hug +┃◈┃• nikal +┃◈┃• hifi +┃◈┃• poke +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Convert Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• sticker +┃◈┃• sticker2 +┃◈┃• fancy +┃◈┃• take +┃◈┃• tomp3 +┃◈┃• tts +┃◈┃• trt +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Ai Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• ai +┃◈┃• gpt +┃◈┃• meta +┃◈┃• blackbox +┃◈┃• gpt4 +┃◈┃• bing +┃◈┃• copilot +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Main Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• ping +┃◈┃• ping2 +┃◈┃• speed +┃◈┃• live +┃◈┃• alive +┃◈┃• runtime +┃◈┃• uptime +┃◈┃• repo +┃◈┃• owner +┃◈┃• menu +┃◈┃• menu2 +┃◈┃• restart +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Anime Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• fack +┃◈┃• truth +┃◈┃• dare +┃◈┃• dog +┃◈┃• awoo +┃◈┃• garl +┃◈┃• waifu +┃◈┃• neko +┃◈┃• megnumin +┃◈┃• neko +┃◈┃• maid +┃◈┃• loli +┃◈┃• animegirl +┃◈┃• animegirl +┃◈┃• animegirl1 +┃◈┃• animegirl2 +┃◈┃• animegirl3 +┃◈┃• animegirl4 +┃◈┃• animegirl5 +┃◈┃• anime1 +┃◈┃• anime1 +┃◈┃• anime2 +┃◈┃• anime3 +┃◈┃• anime4 +┃◈┃• anime5 +┃◈┃• animenews +┃◈┃• foxgirl +┃◈┃• naruto +┃◈└───────────┈⊷ +╰──────────────┈⊷ +╭━━〔 *Other Menu* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• fact +┃◈┃• cpp +┃◈┃• rw +┃◈┃• pair +┃◈┃• pair2 +┃◈┃• fancy +┃◈┃• logo +┃◈┃• define +┃◈┃• news +┃◈┃• movie +┃◈┃• weather +┃◈┃• srepo +┃◈┃• insult +┃◈┃• save +┃◈┃• wikipedia +┃◈┃• gpass +┃◈┃• githubstalk +┃◈┃• yts +┃◈┃• ytv +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> ${config.DESCRIPTION}`; + + await conn.sendMessage( + from, + { + image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, + caption: dec, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: 'ѕυϐzєяο м∂ ω.α ϐοτ', + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + // Send audio + await conn.sendMessage(from, { + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/raw/refs/heads/main/audios/subzero-menu.mp3' }, + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); diff --git a/plugins/main-owner.js b/plugins/main-owner.js new file mode 100644 index 0000000000000000000000000000000000000000..bec2afaa1e77f288c0e3fad285ea35bf0b0e03ca --- /dev/null +++ b/plugins/main-owner.js @@ -0,0 +1,65 @@ +const { cmd } = require('../command'); +const config = require('../config'); + +cmd({ + pattern: "owner", + react: "✅", + desc: "Get owner number", + category: "main", + filename: __filename +}, +async (conn, mek, m, { from }) => { + try { + const ownerNumber = config.OWNER_NUMBER; // Fetch owner number from config + const ownerName = config.OWNER_NAME; // Fetch owner name from config + + const vcard = 'BEGIN:VCARD\n' + + 'VERSION:3.0\n' + + `FN:${ownerName}\n` + + `TEL;type=CELL;type=VOICE;waid=${ownerNumber.replace('+', '')}:${ownerNumber}\n` + + 'END:VCARD'; + + // Send the vCard + const sentVCard = await conn.sendMessage(from, { + contacts: { + displayName: ownerName, + contacts: [{ vcard }] + } + }); + + // Send the owner contact message with image and audio + await conn.sendMessage(from, { + image: { url: 'https://files.catbox.moe/149k8x.jpg' }, // Image URL from your request + caption: `╭━━〔 *SUBZERO MD* 〕━━┈⊷ +┃◈╭─────────────·๏ +┃◈┃• *Here is the owner details* +┃◈┃• *Name* - ${ownerName} +┃◈┃• *Number* ${ownerNumber} +┃◈┃• *Version*: 2.0.0 +┃◈└───────────┈⊷ +╰──────────────┈⊷ +> © ᴘᴏᴡᴇʀᴇᴅ ʙʏ ᴍʀ ꜰʀᴀɴᴋ`, // Display the owner's details + contextInfo: { + mentionedJid: [`${ownerNumber.replace('+', '')}@s.whatsapp.net`], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: 'Mr Frank OFC', + serverMessageId: 143 + } + } + }, { quoted: mek }); + + // Send audio as per your request + await conn.sendMessage(from, { + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/blob/main/audios/subzero-menu.mp3' }, // Audio URL + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (error) { + console.error(error); + reply(`An error occurred: ${error.message}`); + } +}); diff --git a/plugins/main-repo.js b/plugins/main-repo.js new file mode 100644 index 0000000000000000000000000000000000000000..e09a0e11a32793ec08e6ea8e0e374507b0d9b0f1 --- /dev/null +++ b/plugins/main-repo.js @@ -0,0 +1,38 @@ +const { cmd, commands } = require('../command'); +const config = require('../config'); +// repo info +cmd({ + pattern: "repo", + alias: ["sc", "script", "info"], + desc: "Info about the bot repository", + category: "main", + react: "🗂️", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + let dec = `*Hello There SUBZERO W.A BOT User! 😄👋* + +> Simple, Icy, Cold & Rich Loaded Bot With Amazing Features, SubZero WhatsApp Bot. ❄️ + +*Thanks for using SubZero MD🌹🫶* + +> Don't forget to star & fork the repo🌟🍴 + +https://github.com/mrfrank-ofc/SUBZERO-MD`; + + await conn.sendMessage(from, { image: { url: `https://i.postimg.cc/yNf7rQFw/prn.jpg` }, caption: dec, contextInfo: { mentionedJid: [m.sender], forwardingScore: 999, isForwarded: true, forwardedNewsletterMessageInfo: { newsletterJid: '120363304325601080@newsletter', newsletterName: '『 sᴜʙᴢᴇʀᴏ ᴍᴅ 』', serverMessageId: 143 } } }, { quoted: mek }); + + // Send audio + await conn.sendMessage(from, { + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/raw/refs/heads/main/audios/subzero-menu.mp3' }, + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (e) { + console.log(e); + reply(`${e}`); + } +}); + diff --git a/plugins/main-restart.js b/plugins/main-restart.js new file mode 100644 index 0000000000000000000000000000000000000000..5da0deaf96894120c620a3b1342d27e426da95a8 --- /dev/null +++ b/plugins/main-restart.js @@ -0,0 +1,28 @@ +const { cmd } = require('../command'); +const { sleep } = require('../lib/functions'); + +cmd({ + pattern: "restart", + desc: "Restart the SubZero Md", + category: "owner", + filename: __filename +}, +async (conn, mek, m, { + from, quoted, body, isCmd, command, args, q, isGroup, senderNumber, reply +}) => { + try { + // Get the bot owner's number dynamically from conn.user.id + const botOwner = conn.user.id.split(":")[0]; // Extract the bot owner's number + if (senderNumber !== botOwner) { + return reply("Only the bot owner can use this command."); + } + + const { exec } = require("child_process"); + reply("Restarting..."); + await sleep(1500); + exec("pm2 restart all"); + } catch (e) { + console.error(e); + reply(`${e}`); + } +}); \ No newline at end of file diff --git a/plugins/main-settings.js b/plugins/main-settings.js new file mode 100644 index 0000000000000000000000000000000000000000..55177608d2870664760a85ad033013ffdd7aeace --- /dev/null +++ b/plugins/main-settings.js @@ -0,0 +1,77 @@ +const config = require('../config'); +const { cmd, commands } = require('../command'); +const { runtime } = require('../lib/functions'); +const axios = require('axios'); + +function isEnabled(value) { + // Function to check if a value represents a "true" boolean state + return value && value.toString().toLowerCase() === "true"; +} + +cmd({ + pattern: "env", + alias: ["settings", "allvar"], + desc: "Settings of bot", + category: "menu", + react: "❄", + filename: __filename +}, +async (conn, mek, m, { from, quoted, reply }) => { + try { + // Define the settings message with the correct boolean checks + let envSettings = `╭━━━〔 *SUBZERO-MD* 〕━━━┈⊷ +┃▸╭─────────── +┃▸┃๏ *SUBZERO MD SETTINGS ❄️* +┃▸└───────────···๏ +╰────────────────┈⊷ +╭━━〔 *Enabled Disabled* 〕━━┈⊷ +┇๏ *Auto Read Status:* ${isEnabled(config.AUTO_STATUS_SEEN) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto Reply Status:* ${isEnabled(config.AUTO_STATUS_REPLY) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto Reply:* ${isEnabled(config.AUTO_REPLY) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto Sticker:* ${isEnabled(config.AUTO_STICKER) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto Voice:* ${isEnabled(config.AUTO_VOICE) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Custom Reacts:* ${isEnabled(config.CUSTOM_REACT) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto React:* ${isEnabled(config.AUTO_REACT) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Delete Links:* ${isEnabled(config.DELETE_LINKS) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Anti-Link:* ${isEnabled(config.ANTI_LINK) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Anti-Bad Words:* ${isEnabled(config.ANTI_BAD) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto Typing:* ${isEnabled(config.AUTO_TYPING) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Auto Recording:* ${isEnabled(config.AUTO_RECORDING) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Always Online:* ${isEnabled(config.ALWAYS_ONLINE) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Public Mode:* ${isEnabled(config.PUBLIC_MODE) ? "Enabled ✅" : "Disabled ❌"} +┇๏ *Read Message:* ${isEnabled(config.READ_MESSAGE) ? "Enabled ✅" : "Disabled ❌"} +╰━━━━━━━━━━━━──┈⊷ +> ${config.DESCRIPTION}`; + + // Send message with an image + await conn.sendMessage( + from, + { + image: { url: 'https://i.postimg.cc/yNf7rQFw/prn.jpg' }, // Image URL + caption: envSettings, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: "❄️『 𝐒𝐔𝐁𝐙𝐄𝐑𝐎 𝐌𝐃 』❄️", + serverMessageId: 143 + } + } + }, + { quoted: mek } + ); + + // Send an audio file + await conn.sendMessage(from, { + audio: { url: 'https://github.com/mrfrank-ofc/SUBZERO-MD-DATABASE/blob/main/audios/subzero-menu.mp3' }, // Audio URL + mimetype: 'audio/mp4', + ptt: true + }, { quoted: mek }); + + } catch (error) { + console.log(error); + reply(`Error: ${error.message}`); + } +}); diff --git a/plugins/main-subzero.js b/plugins/main-subzero.js new file mode 100644 index 0000000000000000000000000000000000000000..5092c3549e6d47139c6105010c591fc871ea520d --- /dev/null +++ b/plugins/main-subzero.js @@ -0,0 +1,53 @@ +const { cmd } = require("../command"); + +cmd({ + pattern: "subzeroinc", + desc: "All About The Bot & Dev", + category: "fun", + react: "🦄", + filename: __filename +}, async (conn, mek, m, { reply }) => { + const familyList = ` *⟣────────────⟢* + *[ • Developer: Darrell M ]* + *⟣────────────•⟢* + + *⟣┈───────────────⟢* + 🗂️ *REPOSITORY* + https://github.com/mrfrank-ofc/SUBZERO-MD + + *⟣┈───────────────•* + 🔗 *PROJECT NAME* + SUBZERO-MD W.A BOT + + *⟣┈───────────────•* + 👨‍💻 *DEVELOPER* + https://github.com/mrfrank-ofc + + *⟣┈───────────────•* + 🧮 *RELEASE DATE* + 15 December 2024 + + *⟣┈───────────────•* + 📩 *SUPPORT GROUP* + https://chat.whatsapp.com/InsR5qk3cBsG2781A6uxcO + + *⟣┈───────────────•* + 🎀 *SUPPORT CHANNEL* + https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D + + ◦🪄 Hit Me Here :wa.me/263719647303* + *⟝┈───────────────⟞* + *⟣────────────•⟢* + `; + + try { + // Envoi de la réponse avec l'image et la liste de la famille + await conn.sendMessage(m.chat, { + image: { url: "https://i.postimg.cc/FHN6KVzM/In-Shot-20241227-205053424.jpg" }, + caption: familyList.trim() + }, { quoted: mek }); + } catch (error) { + console.error(error); + reply("❌ *An error occurred while fetching the family list. Please try again.*"); + } +}); diff --git a/plugins/main-wa-presence.js b/plugins/main-wa-presence.js new file mode 100644 index 0000000000000000000000000000000000000000..8c4d3162446e53ad62e7cb080bdbfd3239c4932f --- /dev/null +++ b/plugins/main-wa-presence.js @@ -0,0 +1,130 @@ +const fs = require('fs'); +const path = require('path'); +const config = require('../config') +const {cmd , commands} = require('../command') + + +//auto recording +cmd({ + on: "body" +}, +async (conn, mek, m, { from, body, isOwner }) => { + if (config.AUTO_RECORDING === 'true') { + await conn.sendPresenceUpdate('recording', from); + } + } + ); + +//auto_voice +cmd({ + on: "body" +}, +async (conn, mek, m, { from, body, isOwner }) => { + const filePath = path.join(__dirname, '../data/autovoice.json'); + const data = JSON.parse(fs.readFileSync(filePath, 'utf8')); + for (const text in data) { + if (body.toLowerCase() === text.toLowerCase()) { + + if (config.AUTO_VOICE === 'true') { + //if (isOwner) return; + await conn.sendPresenceUpdate('recording', from); + await conn.sendMessage(from, { audio: { url: data[text] }, mimetype: 'audio/mpeg', ptt: true }, { quoted: mek }); + } + } + } +}); + +//auto sticker +cmd({ + on: "body" +}, +async (conn, mek, m, { from, body, isOwner }) => { + const filePath = path.join(__dirname, '../data/autosticker.json'); + const data = JSON.parse(fs.readFileSync(filePath, 'utf8')); + for (const text in data) { + if (body.toLowerCase() === text.toLowerCase()) { + + if (config.AUTO_STICKER === 'true') { + //if (isOwner) return; + await conn.sendMessage(from,{sticker: { url : data[text]},package: 'SUBZERO-MD'},{ quoted: mek }) + + } + } + } +}); + +//auto reply +cmd({ + on: "body" +}, +async (conn, mek, m, { from, body, isOwner }) => { + const filePath = path.join(__dirname, '../data/autoreply.json'); + const data = JSON.parse(fs.readFileSync(filePath, 'utf8')); + for (const text in data) { + if (body.toLowerCase() === text.toLowerCase()) { + + if (config.AUTO_REPLY === 'true') { + //if (isOwner) return; + await m.reply(data[text]) + + } + } + } +}); + +// Composing (Auto Typing) +cmd({ + on: "body" +}, +async (conn, mek, m, { from, body, isOwner }) => { + if (config.AUTO_TYPING === 'true') { + await conn.sendPresenceUpdate('composing', from); // send typing + } +}); + + +// Always Online +cmd({ + on: "body" +}, async (conn, mek, m, { from, isOwner }) => { + try { + if (config.ALWAYS_ONLINE === "true") { + // Always Online Mode: Bot always appears online (double tick) + await conn.sendPresenceUpdate("available", from); + } else { + // Dynamic Mode: Adjust presence based on owner's status + if (isOwner) { + // If the owner is online, show as available (double tick) + await conn.sendPresenceUpdate("available", from); + } else { + // If the owner is offline, show as unavailable (single tick) + await conn.sendPresenceUpdate("unavailable", from); + } + } + } catch (e) { + console.log(e); + } +}); + +// Public Mod +cmd({ + on: "body" +}, async (conn, mek, m, { from, isOwner }) => { + try { + if (config.ALWAYS_ONLINE === "true") { + // Public Mode + Always Online: Always show as online + await conn.sendPresenceUpdate("available", from); + } else if (config.PUBLIC_MODE === "true") { + // Public Mode + Dynamic: Respect owner's presence + if (isOwner) { + // If owner is online, show available + await conn.sendPresenceUpdate("available", from); + } else { + // If owner is offline, show unavailable + await conn.sendPresenceUpdate("unavailable", from); + } + } + } catch (e) { + console.log(e); + } +}); diff --git a/plugins/mixed-emotions.js b/plugins/mixed-emotions.js new file mode 100644 index 0000000000000000000000000000000000000000..4f05dab7e986aff3610a12a58850dce3f9aef92a --- /dev/null +++ b/plugins/mixed-emotions.js @@ -0,0 +1,324 @@ +const { + cmd, + commands +} = require("../command"); +cmd({ + 'pattern': "hand", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '✊', + 'filename': __filename +}, async (_0x45cd83, _0x286d49, _0x19855e, { + from: _0x96d404, + reply: _0x47c6bc +}) => { + try { + const _0x1d39fa = await _0x45cd83.sendMessage(_0x96d404, { + 'text': "✊🏻 *STARTED...* 💦" + }); + const _0x3eccb1 = ['8✊️===D', "8=✊️==D", "8==✊️=D", "8===✊️D", "8==✊️=D", "8=✊️==D", "8✊️===D", "8=✊️==D", "8==✊️=D", '8===✊️D', "8==✊️=D", "8=✊️==D", '8✊️===D', "8=✊️==D", "8==✊️=D", "8===✊️D", "8==✊️=D", '8=✊️==D', "8✊️===D", '8=✊️==D', "8==✊️=D", "8===✊️D 💦", "8==✊️=D💦 💦", "8=✊️==D 💦💦 💦"]; + for (const _0x406c5e of _0x3eccb1) { + await new Promise(_0x2b41ff => setTimeout(_0x2b41ff, 0x3e8)); + await _0x45cd83.relayMessage(_0x96d404, { + 'protocolMessage': { + 'key': _0x1d39fa.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x406c5e + } + } + }, {}); + } + } catch (_0x57d8ae) { + console.log(_0x57d8ae); + _0x47c6bc("❌ *Error!* " + _0x57d8ae.message); + } +}); +cmd({ + 'pattern': "happyy", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '😁', + 'filename': __filename +}, async (_0x353111, _0x52aa7e, _0x362309, { + from: _0x3d98dd, + reply: _0x46f413 +}) => { + try { + const _0xce6d4d = await _0x353111.sendMessage(_0x3d98dd, { + 'text': '😂' + }); + const _0x47a009 = ['😃', '😄', '😁', '😊', '😎', '🥳', '😸', '😹', '🌞', '🌈', '😃', '😄', '😁', '😊', '😎', '🥳', '😸', '😹', '🌞', '🌈', '😃', '😄', '😁', '😊']; + for (const _0x445d2a of _0x47a009) { + await new Promise(_0x3a1a76 => setTimeout(_0x3a1a76, 0x320)); + await _0x353111.relayMessage(_0x3d98dd, { + 'protocolMessage': { + 'key': _0xce6d4d.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x445d2a + } + } + }, {}); + } + } catch (_0x3d2162) { + console.log(_0x3d2162); + _0x46f413("❌ *Error!* " + _0x3d2162.message); + } +}); +cmd({ + 'pattern': "heart", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '🫀', + 'filename': __filename +}, async (_0x468a9f, _0x3a7e90, _0xac39dc, { + from: _0x53a037, + reply: _0x542a66 +}) => { + try { + const _0x39d571 = await _0x468a9f.sendMessage(_0x53a037, { + 'text': '❤️' + }); + const _0x52271e = ['💖', '💗', '💕', '❤️', '💛', '💚', '🫀', '💙', '💜', '🖤', '♥️', '🤍', '🤎', '💗', '💞', '💓', '💘', '💝', '♥️', '💟', '🫀', '❤️']; + for (const _0x42a679 of _0x52271e) { + await new Promise(_0xc0ed08 => setTimeout(_0xc0ed08, 0x1f4)); + await _0x468a9f.relayMessage(_0x53a037, { + 'protocolMessage': { + 'key': _0x39d571.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x42a679 + } + } + }, {}); + } + } catch (_0x2f7fbb) { + console.log(_0x2f7fbb); + _0x542a66("❌ *Error!* " + _0x2f7fbb.message); + } +}); +cmd({ + 'pattern': "anger", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '🤡', + 'filename': __filename +}, async (_0x4c63a0, _0x2a2d0f, _0xfd1920, { + from: _0x7c1f05, + reply: _0x2fc617 +}) => { + try { + const _0x471762 = await _0x4c63a0.sendMessage(_0x7c1f05, { + 'text': '🤡' + }); + const _0x4383e5 = ['😡', '😠', '🤬', '😤', '😾', '😡', '😠', '🤬', '😤', '😾']; + for (const _0x562bf3 of _0x4383e5) { + await new Promise(_0x2be7c0 => setTimeout(_0x2be7c0, 0x3e8)); + await _0x4c63a0.relayMessage(_0x7c1f05, { + 'protocolMessage': { + 'key': _0x471762.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x562bf3 + } + } + }, {}); + } + } catch (_0x44a0c5) { + console.log(_0x44a0c5); + _0x2fc617("❌ *Error!* " + _0x44a0c5.message); + } +}); +cmd({ + 'pattern': "sad", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '😫', + 'filename': __filename +}, async (_0x33fcee, _0x1876fe, _0xc17cb8, { + from: _0x15bb18, + reply: _0xee066f +}) => { + try { + const _0x4c06fd = await _0x33fcee.sendMessage(_0x15bb18, { + 'text': '😭' + }); + const _0x2d9a88 = ['🥺', '😟', '😕', '😖', '😫', '🙁', '😩', '😥', '😓', '😪', '😢', '😔', '😞', '😭', '💔', '😭', '😿']; + for (const _0x336d71 of _0x2d9a88) { + await new Promise(_0x6eece4 => setTimeout(_0x6eece4, 0x3e8)); + await _0x33fcee.relayMessage(_0x15bb18, { + 'protocolMessage': { + 'key': _0x4c06fd.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x336d71 + } + } + }, {}); + } + } catch (_0x345651) { + console.log(_0x345651); + _0xee066f("❌ *Error!* " + _0x345651.message); + } +}); +cmd({ + 'pattern': 'shy', + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '😳', + 'filename': __filename +}, async (_0x5cfd31, _0x13a257, _0x4fe9cd, { + from: _0x453318, + reply: _0x138a01 +}) => { + try { + const _0x361884 = await _0x5cfd31.sendMessage(_0x453318, { + 'text': "> SUBZERO MD" + }); + const _0x206081 = ['😳', '😊', '😶', '🙈', '🙊', '😳', '😊', '😶', '🙈', '🙊']; + for (const _0x5ccb6e of _0x206081) { + await new Promise(_0x23b67b => setTimeout(_0x23b67b, 0x3e8)); + await _0x5cfd31.relayMessage(_0x453318, { + 'protocolMessage': { + 'key': _0x361884.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x5ccb6e + } + } + }, {}); + } + } catch (_0x3775a4) { + console.log(_0x3775a4); + _0x138a01("❌ *Error!* " + _0x3775a4.message); + } +}); +cmd({ + 'pattern': "moon", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': 'tools', + 'react': '🌙', + 'filename': __filename +}, async (_0x2adc05, _0x574382, _0xe7924c, { + from: _0x10f877, + reply: _0x1797ef +}) => { + try { + const _0x16fb04 = await _0x2adc05.sendMessage(_0x10f877, { + 'text': '🌙' + }); + const _0x226056 = ['🌗', '🌘', '🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘', '🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘', '🌑', '🌒', '🌓', '🌔', '🌕', '🌖', '🌗', '🌘', '🌑', '🌒', '🌓', '🌔', '🌕', "🌚🌝"]; + for (const _0x3ad6c8 of _0x226056) { + await new Promise(_0x1eba41 => setTimeout(_0x1eba41, 0x3e8)); + await _0x2adc05.relayMessage(_0x10f877, { + 'protocolMessage': { + 'key': _0x16fb04.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x3ad6c8 + } + } + }, {}); + } + } catch (_0x31361e) { + console.log(_0x31361e); + _0x1797ef("❌ *Error!* " + _0x31361e.message); + } +}); +cmd({ + 'pattern': "confused", + 'desc': "Displays a dynamic edit msg for fun.", + 'category': 'tools', + 'react': '🙀', + 'filename': __filename +}, async (_0x4e5dcf, _0x197ed7, _0x4e6e55, { + from: _0x419892, + reply: _0x1f258d +}) => { + try { + const _0x566b9e = await _0x4e5dcf.sendMessage(_0x419892, { + 'text': '🙀' + }); + const _0x35a517 = ['😕', '😟', '😵', '🤔', '😖', '😲', '😦', '🤷', "🤷‍♂️", '🤷‍♀️']; + for (const _0x177123 of _0x35a517) { + await new Promise(_0x19e7ff => setTimeout(_0x19e7ff, 0x3e8)); + await _0x4e5dcf.relayMessage(_0x419892, { + 'protocolMessage': { + 'key': _0x566b9e.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x177123 + } + } + }, {}); + } + } catch (_0x3914f5) { + console.log(_0x3914f5); + _0x1f258d("❌ *Error!* " + _0x3914f5.message); + } +}); +cmd({ + 'pattern': 'kiss', + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '♥️', + 'filename': __filename +}, async (_0x5534d6, _0xea351e, _0x4a659, { + from: _0x3549d3, + reply: _0x38bcdd +}) => { + try { + const _0x3d3056 = await _0x5534d6.sendMessage(_0x3549d3, { + 'text': '♥️' + }); + const _0x548d62 = ['🥵', '❤️', '💋', '😫', '🤤', '😋', '🥵', '🥶', '🙊', '😻', '🙈', '💋', '🫂', '🫀', '👅', '👄', '💋']; + for (const _0x2ae417 of _0x548d62) { + await new Promise(_0x3260b1 => setTimeout(_0x3260b1, 0x3e8)); + await _0x5534d6.relayMessage(_0x3549d3, { + 'protocolMessage': { + 'key': _0x3d3056.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x2ae417 + } + } + }, {}); + } + } catch (_0x1763fc) { + console.log(_0x1763fc); + _0x38bcdd("❌ *Error!* " + _0x1763fc.message); + } +}); +cmd({ + 'pattern': 'nikal', + 'desc': "Displays a dynamic edit msg for fun.", + 'category': "tools", + 'react': '🗿', + 'filename': __filename +}, async (_0x125191, _0x3f957c, _0xb9d01a, { + from: _0x3ae285, + reply: _0x30a5f5 +}) => { + try { + const _0x19567b = await _0x125191.sendMessage(_0x3ae285, { + 'text': "Mr Frank OFC🗿" + }); + const _0x1c80f3 = ["⠀⠀⠀⣠⣶⡾⠏⠉⠙⠳⢦⡀⠀⠀⠀⢠⠞⠉⠙⠲⡀⠀\n ⠀⣴⠿⠏⠀⠀⠀⠀⠀ ⢳⡀⠀⡏⠀⠀⠀ ⠀ ⢷\n⢠⣟⣋⡀⢀⣀⣀⡀⠀⣀⡀ ⣧⠀⢸⠀⠀⠀ ⠀ ⡇\n⢸⣯⡭⠁⠸⣛⣟⠆⡴⣻⡲ ⣿ ⣸ Nikal ⡇\n ⣟⣿⡭⠀⠀⠀⠀⠀⢱⠀⠀ ⣿ ⢹⠀ ⡇\n ⠙⢿⣯⠄⠀⠀⠀__⠀ ⠀ ⡿ ⠀⡇⠀⠀⠀⠀ ⡼\n⠀⠀⠀⠹⣶⠆⠀⠀⠀⠀⠀⡴⠃⠀ ⠘⠤⣄⣠⠞⠀\n⠀⠀⠀⠀⢸⣷⡦⢤⡤⢤⣞⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⢀⣤⣴⣿⣏⠁⠀⠀⠸⣏⢯⣷⣖⣦⡀⠀⠀⠀⠀⠀⠀\n⢀⣾⣽⣿⣿⣿⣿⠛⢲⣶⣾⢉⡷⣿⣿⠵⣿⠀⠀⠀⠀⠀⠀\n⣼⣿⠍⠉⣿⡭⠉⠙⢺⣇⣼⡏⠀⠀ ⠀⣄⢸⠀⠀⠀⠀⠀⠀`", "⠀⠀⠀⣠⣶⡾⠏⠉⠙⠳⢦⡀⠀⠀⠀⢠⠞⠉⠙⠲⡀⠀\n ⠀⣴⠿⠏⠀⠀⠀⠀⠀ ⠀ ⢳⡀⠀⡏⠀⠀⠀ ⠀ ⢷\n⢠⣟⣋⡀⢀⣀⣀⡀⠀⣀⡀ ⣧⠀⢸⠀⠀⠀ ⡇\n⢸⣯⡭⠁⠸⣛⣟⠆⡴⣻⡲ ⣿ ⣸ Lavde ⡇\n ⣟⣿⡭⠀⠀⠀⠀⠀⢱⠀⠀ ⣿ ⢹⠀ ⡇\n ⠙⢿⣯⠄⠀⠀|__|⠀⠀ ⡿ ⠀⡇⠀⠀⠀⠀ ⡼\n⠀⠀⠀⠹⣶⠆⠀⠀⠀⠀⠀⡴⠃⠀ ⠘⠤⣄⣠⠞⠀\n⠀⠀⠀⠀⢸⣷⡦⢤⡤⢤⣞⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⢀⣤⣴⣿⣏⠁⠀⠀⠸⣏⢯⣷⣖⣦⡀⠀⠀⠀⠀⠀⠀\n⢀⣾⣽⣿⣿⣿⣿⠛⢲⣶⣾⢉⡷⣿⣿⠵⣿⠀⠀⠀⠀⠀⠀\n⣼⣿⠍⠉⣿⡭⠉⠙⢺⣇⣼⡏⠀⠀ ⠀⣄⢸⠀⠀⠀⠀⠀⠀`", "⠀⠀⠀⣠⣶⡾⠏⠉⠙⠳⢦⡀⠀⠀⠀⢠⠞⠉⠙⠲⡀⠀\n ⠀⣴⠿⠏⠀⠀ ⠀ ⢳⡀⠀⡏⠀⠀ ⠀ ⢷\n⢠⣟⣋⡀⢀⣀⣀⡀⠀⣀⡀ ⣧⠀⢸⠀⠀⠀⠀ ⡇\n⢸⣯⡭⠁⠸⣛⣟⠆⡴⣻⡲ ⣿ ⣸ Pehli ⡇\n ⣟⣿⡭⠀⠀⠀⠀⠀⢱⠀⠀ ⣿ ⢹⠀ ⡇\n ⠙⢿⣯⠄⠀⠀(P)⠀⠀ ⡿ ⠀⡇⠀⠀⠀⠀ ⡼\n⠀⠀⠀⠹⣶⠆⠀⠀⠀⠀⠀⡴⠃⠀ ⠘⠤⣄⣠⠞⠀\n⠀⠀⠀⠀⢸⣷⡦⢤⡤⢤⣞⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⢀⣤⣴⣿⣏⠁⠀⠀⠸⣏⢯⣷⣖⣦⡀⠀⠀⠀⠀⠀⠀\n⢀⣾⣽⣿⣿⣿⣿⠛⢲⣶⣾⢉⡷⣿⣿⠵⣿⠀⠀⠀⠀⠀⠀\n⣼⣿⠍⠉⣿⡭⠉⠙⢺⣇⣼⡏⠀⠀ ⠀⣄⢸⠀⠀⠀⠀⠀⠀`", "⠀⠀⠀⣠⣶⡾⠏⠉⠙⠳⢦⡀⠀⠀⠀⢠⠞⠉⠙⠲⡀⠀\n ⠀⣴⠿⠏⠀⠀ ⠀ ⢳⡀⠀⡏⠀⠀ ⠀ ⢷\n⢠⣟⣋⡀⢀⣀⣀⡀⠀⣀⡀ ⣧⠀⢸⠀ ⠀ ⡇\n⢸⣯⡭⠁⠸⣛⣟⠆⡴⣻⡲ ⣿ ⣸ Fursat ⡇\n ⣟⣿⡭⠀⠀⠀⠀⠀⢱⠀ ⣿ ⢹⠀ ⡇\n ⠙⢿⣯⠄⠀⠀⠀__ ⠀ ⠀ ⡿ ⠀⡇⠀⠀⠀⠀ ⡼\n⠀⠀⠀⠹⣶⠆⠀⠀⠀⠀⠀⡴⠃⠀ ⠘⠤⣄⣠⠞⠀\n⠀⠀⠀⠀⢸⣷⡦⢤⡤⢤⣞⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⢀⣤⣴⣿⣏⠁⠀⠀⠸⣏⢯⣷⣖⣦⡀⠀⠀⠀⠀⠀⠀\n⢀⣾⣽⣿⣿⣿⣿⠛⢲⣶⣾⢉⡷⣿⣿⠵⣿⠀⠀⠀⠀⠀⠀\n⣼⣿⠍⠉⣿⡭⠉⠙⢺⣇⣼⡏⠀⠀ ⠀⣄⢸⠀⠀⠀⠀⠀⠀`", "⠀⠀⠀⣠⣶⡾⠏⠉⠙⠳⢦⡀⠀⠀⠀⢠⠞⠉⠙⠲⡀⠀\n ⠀⣴⠿⠏⠀⠀⠀⠀⠀ ⢳⡀⠀⡏⠀⠀ ⠀ ⢷\n⢠⣟⣋⡀⢀⣀⣀⡀⠀⣀⡀ ⣧⠀⢸⠀⠀ ⠀ ⡇\n⢸⣯⡭⠁⠸⣛⣟⠆⡴⣻⡲ ⣿ ⣸ Meeee ⡇\n ⣟⣿⡭⠀⠀⠀⠀⠀⢱⠀⠀ ⣿ ⢹⠀ ⡇\n ⠙⢿⣯⠄⠀⠀|__| ⠀ ⡿ ⠀⡇⠀⠀⠀⠀ ⡼\n⠀⠀⠀⠹⣶⠆⠀⠀⠀⠀⠀⡴⠃⠀ ⠘⠤⣄⣠⠞⠀\n⠀⠀⠀⠀⢸⣷⡦⢤⡤⢤⣞⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⢀⣤⣴⣿⣏⠁⠀⠀⠸⣏⢯⣷⣖⣦⡀⠀⠀⠀⠀⠀⠀\n⢀⣾⣽⣿⣿⣿⣿⠛⢲⣶⣾⢉⡷⣿⣿⠵⣿⠀⠀⠀⠀⠀⠀\n⣼⣿⠍⠉⣿⡭⠉⠙⢺⣇⣼⡏⠀⠀ ⠀⣄⢸⠀⠀⠀⠀⠀⠀`", "⠀⠀⠀⣠⣶⡾⠏⠉⠙⠳⢦⡀⠀⠀⠀⢠⠞⠉⠙⠲⡀⠀\n ⠀⣴⠿⠏⠀⠀⠀⠀ ⠀ ⠀⢳⡀⠀⡏⠀⠀ ⢷\n⢠⣟⣋⡀⢀⣀⣀⡀⠀⣀⡀ ⣧⠀⢸⠀ ⠀ ⡇\n⢸⣯⡭⠁⠸⣛⣟⠆⡴⣻⡲ ⣿ ⣸ Nikal ⡇\n ⣟⣿⡭⠀⠀⠀⠀⠀⢱⠀ ⣿ ⢹⠀ ⡇\n ⠙⢿⣯⠄⠀⠀lodu⠀⠀ ⡿ ⠀⡇⠀⠀⠀⠀ ⡼\n⠀⠀⠀⠹⣶⠆⠀⠀⠀⠀⠀ ⡴⠃⠀ ⠘⠤⣄⣠⠞⠀\n⠀⠀⠀⠀⢸⣷⡦⢤⡤⢤⣞⣁⠀⠀⠀⠀⠀⠀⠀⠀⠀⠀\n⠀⢀⣤⣴⣿⣏⠁⠀⠀⠸⣏⢯⣷⣖⣦⡀⠀⠀⠀⠀⠀⠀\n⢀⣾⣽⣿⣿⣿⣿⠛⢲⣶⣾⢉⡷⣿⣿⠵⣿⠀⠀⠀⠀⠀⠀\n⣼⣿⠍⠉⣿⡭⠉⠙⢺⣇⣼⡏⠀⠀ ⠀⣄⢸⠀"]; + for (const _0x77af75 of _0x1c80f3) { + await new Promise(_0x40d3fb => setTimeout(_0x40d3fb, 0x5dc)); + await _0x125191.relayMessage(_0x3ae285, { + 'protocolMessage': { + 'key': _0x19567b.key, + 'type': 0xe, + 'editedMessage': { + 'conversation': _0x77af75 + } + } + }, {}); + } + } catch (_0x61a6ba) { + console.log(_0x61a6ba); + _0x30a5f5("❌ *Error!* " + _0x61a6ba.message); + } +}); diff --git a/plugins/other-alive.js b/plugins/other-alive.js new file mode 100644 index 0000000000000000000000000000000000000000..56dbd55b672304dde13bf3b3d6a9caf605a44ab1 --- /dev/null +++ b/plugins/other-alive.js @@ -0,0 +1,17 @@ +const config = require('../config') +const {cmd , commands} = require('../command') +cmd({ + pattern: "alive", + react: "💗", + desc: "Check bot online or no.", + category: "main", + filename: __filename +}, +async(conn, mek, m,{from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { +try{ +return await conn.sendMessage(from,{image: {url: config.ALIVE_IMG},caption: config.LIVE_MSG},{quoted: mek}) +}catch(e){ +console.log(e) +reply(`${e}`) +} +}) diff --git a/plugins/other-tts.js b/plugins/other-tts.js new file mode 100644 index 0000000000000000000000000000000000000000..ccd3a5acead377570160c727eb7144dfcb6c7a12 --- /dev/null +++ b/plugins/other-tts.js @@ -0,0 +1,62 @@ +const axios = require('axios'); +const config = require('../config') +const {cmd , commands} = require('../command') +const googleTTS = require('google-tts-api') + +cmd({ + pattern: "trt", + alias: ["translate"], + desc: "🌍 Translate text between languages", + react: "⚡", + category: "other", + filename: __filename +}, +async (conn, mek, m, { from, q, reply }) => { + try { + const args = q.split(' '); + if (args.length < 2) return reply("❗ Please provide a language code and text. Usage: .translate [language code] [text]"); + + const targetLang = args[0]; + const textToTranslate = args.slice(1).join(' '); + + const url = `https://api.mymemory.translated.net/get?q=${encodeURIComponent(textToTranslate)}&langpair=en|${targetLang}`; + + const response = await axios.get(url); + const translation = response.data.responseData.translatedText; + + const translationMessage = `> *SUBZERO MD TRANSLATION* + +> 🔤 *Original*: ${textToTranslate} + +> 🔠 *Translated*: ${translation} + +> 🌐 *Language*: ${targetLang.toUpperCase()}`; + + return reply(translationMessage); + } catch (e) { + console.log(e); + return reply("⚠️ An error occurred data while translating the your text. Please try again later🤕"); + } +}); + +//____________________________TTS___________________________ +cmd({ + pattern: "tts", + desc: "download songs", + category: "download", + react: "👧", + filename: __filename +}, +async(conn, mek, m,{from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { +try{ +if(!q) return reply("Need some text.") + const url = googleTTS.getAudioUrl(q, { + lang: 'hi-IN', + slow: false, + host: 'https://translate.google.com', +}) +await conn.sendMessage(from, { audio: { url: url }, mimetype: 'audio/mpeg', ptt: true }, { quoted: mek }) + }catch(a){ +reply(`${a}`) +} +}) diff --git a/plugins/owners-tools.js b/plugins/owners-tools.js new file mode 100644 index 0000000000000000000000000000000000000000..01525c842f8bb1656d1945b77a73dab606b78562 --- /dev/null +++ b/plugins/owners-tools.js @@ -0,0 +1,141 @@ +const { cmd ,commands } = require('../command'); +const { exec } = require('child_process'); +const config = require('../config'); +const {sleep} = require('../lib/functions') +// 1. Shutdown Bot +cmd({ + pattern: "shutdown", + desc: "Shutdown the bot.", + category: "owner", + react: "🛑", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + reply("🛑 Shutting down...").then(() => process.exit()); +}); +// 2. Broadcast Message to All Groups +cmd({ + pattern: "broadcast", + desc: "Broadcast a message to all groups.", + category: "owner", + react: "📢", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, args, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + if (args.length === 0) return reply("📢 Please provide a message to broadcast."); + const message = args.join(' '); + const groups = Object.keys(await conn.groupFetchAllParticipating()); + for (const groupId of groups) { + await conn.sendMessage(groupId, { text: message }, { quoted: mek }); + } + reply("📢 Message broadcasted to all groups."); +}); +// 3. Set Profile Picture +cmd({ + pattern: "setpp", + desc: "Set bot profile picture.", + category: "owner", + react: "🖼️", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, quoted, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + if (!quoted || !quoted.message.imageMessage) return reply("❌ Please reply to an image."); + try { + const media = await conn.downloadMediaMessage(quoted); + await conn.updateProfilePicture(conn.user.jid, { url: media }); + reply("🖼️ Profile picture updated successfully!"); + } catch (error) { + reply(`❌ Error updating profile picture: ${error.message}`); + } +}); + +// 6. Clear All Chats +cmd({ + pattern: "clearchats", + desc: "Clear all chats from the bot.", + category: "owner", + react: "🧹", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + try { + const chats = conn.chats.all(); + for (const chat of chats) { + await conn.modifyChat(chat.jid, 'delete'); + } + reply("🧹 All chats cleared successfully!"); + } catch (error) { + reply(`❌ Error clearing chats: ${error.message}`); + } +}); + +cmd({ + pattern: "jid", + desc: "Get the bot's JID.", + category: "owner", + react: "🤖", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + reply(`🤖 *Bot JID:* ${conn.user.jid}`); +}); +// 8. Group JIDs List +cmd({ + pattern: "gjid", + desc: "Get the list of JIDs for all groups the bot is part of.", + category: "owner", + react: "📝", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + const groups = await conn.groupFetchAllParticipating(); + const groupJids = Object.keys(groups).join('\n'); + reply(`📝 *Group JIDs:*\n\n${groupJids}`); +}); + + +// block + +cmd({ + pattern: "block", + desc: "Block a user.", + category: "owner", + react: "🚫", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, quoted, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + if (!quoted) return reply("❌ Please reply to the user you want to block."); + const user = quoted.sender; + try { + await conn.updateBlockStatus(user, 'block'); + reply(`🚫 User ${user} blocked successfully.`); + } catch (error) { + reply(`❌ Error blocking user: ${error.message}`); + } +}); +// 5. Unblock User +cmd({ + pattern: "unblock", + desc: "Unblock a user.", + category: "owner", + react: "✅", + filename: __filename +}, +async (conn, mek, m, { from, isOwner, quoted, reply }) => { + if (!isOwner) return reply("❌ You are not the owner!"); + if (!quoted) return reply("❌ Please reply to the user you want to unblock."); + const user = quoted.sender; + try { + await conn.updateBlockStatus(user, 'unblock'); + reply(`✅ User ${user} unblocked successfully.`); + } catch (error) { + reply(`❌ Error unblocking user: ${error.message}`); + } +}); diff --git a/plugins/search-bible.js b/plugins/search-bible.js new file mode 100644 index 0000000000000000000000000000000000000000..18717f345c93ae309affc906b1fedd1b45af89a6 --- /dev/null +++ b/plugins/search-bible.js @@ -0,0 +1,61 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO MD ᐯ2 + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/mrfrank-ofc/SUBZERO-V2 + +© Recoding This Script In Unacceptable⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + +const axios = require("axios"); +const { cmd } = require("../command"); + +// Command: bible +cmd({ + pattern: "bible", + desc: "Fetch Bible verses by reference.", + category: "fun", + react: "📖", + filename: __filename +}, async (conn, mek, m, { args, reply }) => { + try { + // Vérifiez si une référence est fournie + if (args.length === 0) { + return reply(`⚠️ *Please provide a Bible reference.*\n\n📝 *Example:*\n.bible John 1:1`); + } + + // Joindre les arguments pour former la référence + const reference = args.join(" "); + + // Appeler l'API avec la référence + const apiUrl = `https://bible-api.com/${encodeURIComponent(reference)}`; + const response = await axios.get(apiUrl); + + // Vérifiez si la réponse contient des données + if (response.status === 200 && response.data.text) { + const { reference: ref, text, translation_name } = response.data; + + // Envoyez la réponse formatée avec des emojis + reply( + `📜 *Bible Verse Found!*\n\n` + + `📖 *Reference:* ${ref}\n` + + `📚 *Text:* ${text}\n\n` + + `🗂️ *Translation:* ${translation_name}\n\n © SUBZERO BIBLE` + ); + } else { + reply("❌ *Verse not found.* Please check the reference and try again."); + } + } catch (error) { + console.error(error); + reply("⚠️ *An error occurred while fetching the Bible verse.* Please try again."); + } +}); diff --git a/plugins/search-define.js b/plugins/search-define.js new file mode 100644 index 0000000000000000000000000000000000000000..ea3808edcdaaedf1d0a693e9ad3712df92e5002f --- /dev/null +++ b/plugins/search-define.js @@ -0,0 +1,41 @@ +const axios = require('axios'); + const {cmd , commands} = require('../command'); + + cmd({ + pattern: "define", + desc: "📚 Get the definition of a word", + react: "🔍", + category: "Auther", + filename: __filename + }, + async (conn, mek, m, { from, q, reply }) => { + try { + if (!q) return reply("❗ Please provide a word to define. Usage: .define [word]"); + + const word = q; + const url = `https://api.dictionaryapi.dev/api/v2/entries/en/${word}`; + + const response = await axios.get(url); + const definitionData = response.data[0]; + + const definition = definitionData.meanings[0].definitions[0].definition; + const example = definitionData.meanings[0].definitions[0].example || 'No example available'; + const synonyms = definitionData.meanings[0].definitions[0].synonyms.join(', ') || 'No synonyms available'; + +const wordInfo = ` +📚 *Word*: ${definitionData.word} +🔍 *Definition*: ${definition} +📝 *Example*: ${example} +🔗 *Synonyms*: ${synonyms} + +> *@ Powered By SubZero*`; + + return reply(wordInfo); + } catch (e) { + console.log(e); + if (e.response && e.response.status === 404) { + return reply("🚫 Word not found. Please check the spelling and try again."); + } + return reply("⚠️ An error occurred while fetching the definition. Please try again later."); + } + }); diff --git a/plugins/search-gitstalk.js b/plugins/search-gitstalk.js new file mode 100644 index 0000000000000000000000000000000000000000..7652bb2e6e47243bb5bb4d26e295e68a5077563b --- /dev/null +++ b/plugins/search-gitstalk.js @@ -0,0 +1,38 @@ +const axios = require('axios'); +const config = require('../config'); +const { cmd, commands } = require('../command'); + +cmd({ + pattern: "githubstalk", + desc: "Fetch detailed GitHub user profile including profile picture.", + category: "menu", + react: "🖥️", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const username = args[0]; + if (!username) { + return reply("Please provide a GitHub username. "); + } + const apiUrl = `https://api.github.com/users/${username}`; + const response = await axios.get(apiUrl); + const data = response.data; + + let userInfo = `👤 *Username*: ${data.name || data.login} +🔗 *Github Url*:(${data.html_url}) +📝 *Bio*: ${data.bio || 'Not available'} +🏙️ *Location*: ${data.location || 'Unknown'} +📊 *Public Repos*: ${data.public_repos} +👥 *Followers*: ${data.followers} | Following: ${data.following} +📅 *Created At*: ${new Date(data.created_at).toDateString()} +🔭 *Public Gists*: ${data.public_gists} +> © ᴘᴏᴡᴇʀᴇᴅ ʙʏ Mʀ Fʀᴀɴᴋ`; + const sentMsg = await conn.sendMessage(from,{image:{url: data.avatar_url },caption: userInfo },{quoted:mek }) + } catch (e) { + console.log(e); + reply(`error: ${e.response ? e.response.data.message : e.message}`); + } +}); + +// jawad tech x diff --git a/plugins/search-google.js b/plugins/search-google.js new file mode 100644 index 0000000000000000000000000000000000000000..c8d709c079e7cdb20454f71e2e2d8e5b1cb76d6b --- /dev/null +++ b/plugins/search-google.js @@ -0,0 +1,45 @@ +// GOOGLE CMD + + +const axios = require("axios"); +const { cmd } = require("../command"); + +cmd({ + pattern: "google", + alias: ["gsearch", "search"], + desc: "Search Google for a query.", + category: "tools", + react: "🌐", + filename: __filename +}, async (conn, mek, m, { args, reply }) => { + try { + // Vérifiez si un mot-clé est fourni + if (args.length === 0) { + return reply(`❗ *Please provide a search query.*\n\n*Example:*\n.google SubZero Md Bot`); + } + + const query = args.join(" "); + const apiKey = "AIzaSyDMbI3nvmQUrfjoCJYLS69Lej1hSXQjnWI"; // Votre clé API Google + const cx = "baf9bdb0c631236e5"; // Votre ID de moteur de recherche personnalisé + const apiUrl = `https://www.googleapis.com/customsearch/v1?q=${encodeURIComponent(query)}&key=${apiKey}&cx=${cx}`; + + // Appel API + const response = await axios.get(apiUrl); + + // Vérifiez si l'API a renvoyé des résultats + if (response.status !== 200 || !response.data.items || response.data.items.length === 0) { + return reply(`❌ *No results found for:* ${query}`); + } + + // Format et envoi des résultats + let results = `🔎 *Google Search Results for:* "${query}"\n\n`; + response.data.items.slice(0, 5).forEach((item, index) => { + results += `*${index + 1}. ${item.title}*\n${item.link}\n${item.snippet}\n\n`; + }); + + reply(results.trim()); + } catch (error) { + console.error(error); + reply(`⚠️ *An error occurred while fetching search results.*\n\n${error.message}`); + } +}); diff --git a/plugins/search-img.js b/plugins/search-img.js new file mode 100644 index 0000000000000000000000000000000000000000..4adcb7889ad2d2c75e0fe1bb4d92ec334fccb68b --- /dev/null +++ b/plugins/search-img.js @@ -0,0 +1,127 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + +const { + cmd, + commands +} = require('../command'); +const axios = require('axios'); +cmd({ + 'pattern': "img", + 'alias': ["image", "pinterest", "pinimg"], + 'react': '🖼️', + 'desc': "Search and download images from Pinterest using keywords.", + 'category': "image", + 'use': ".img ", + 'filename': __filename +}, async (_0x1a9409, _0x59fdb9, _0x3f150e, { + from: _0x163393, + args: _0x12b1f7, + reply: _0x2ac5cb +}) => { + try { + const _0x3207b0 = _0x12b1f7.join(" "); + if (!_0x3207b0) { + return _0x2ac5cb("*Please provide search keywords for the image. Eg Subzero*"); + } + _0x2ac5cb("*🔍 Showing Results For - " + _0x3207b0 + "...*"); + const _0x2f5556 = 'https://apitest1-f7dcf17bd59b.herokuapp.com/download/piniimg?text=' + encodeURIComponent(_0x3207b0); + const _0x530cac = await axios.get(_0x2f5556); + if (!_0x530cac.data || !_0x530cac.data.result || _0x530cac.data.result.length === 0x0) { + return _0x2ac5cb("❌ No images found for \"" + _0x3207b0 + "\"."); + } + const _0x82a454 = _0x530cac.data.result; + for (let _0xecb4cf = 0x0; _0xecb4cf < Math.min(_0x82a454.length, 0x5); _0xecb4cf++) { + const _0x58b5b7 = _0x82a454[_0xecb4cf]; + if (_0x58b5b7.images_url) { + await _0x1a9409.sendMessage(_0x163393, { + 'image': { + 'url': _0x58b5b7.images_url + }, + 'caption': "*© Gᴇɴᴇʀᴀᴛᴇᴅ ʙʏ SᴜʙZᴇʀᴏ*" + }, { + 'quoted': _0x59fdb9 + }); + } + } + if (_0x82a454.every(_0x45deb7 => !_0x45deb7.images_url)) { + _0x2ac5cb("❌ No valid image URLs found in the results."); + } + } catch (_0x422b47) { + console.error(_0x422b47); + _0x2ac5cb("❌ An error occurred while processing your request."); + } +}); + +/*const { cmd } = require('../command'); +const axios = require('axios'); +const { Buffer } = require('buffer'); + +const GOOGLE_API_KEY = 'AIzaSyDMbI3nvmQUrfjoCJYLS69Lej1hSXQjnWI'; // Replace with your Google API key +const GOOGLE_CX = 'baf9bdb0c631236e5'; // Replace with your Google Custom Search Engine ID +//const apiKey = "AIzaSyDMbI3nvmQUrfjoCJYLS69Lej1hSXQjnWI"; // Votre clé API Google +// const cx = "baf9bdb0c631236e5"; / +cmd({ + pattern: "img", + desc: "Search and send images from Google.", + react: "🖼️", + category: "media", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + if (!q) return reply("Please provide a search query for the image."); + + // Fetch image URLs from Google Custom Search API + const searchQuery = encodeURIComponent(q); + const url = `https://www.googleapis.com/customsearch/v1?q=${searchQuery}&cx=${GOOGLE_CX}&key=${GOOGLE_API_KEY}&searchType=image&num=5`; + + const response = await axios.get(url); + const data = response.data; + + if (!data.items || data.items.length === 0) { + return reply("No images found for your query."); + } + + // Send images + for (let i = 0; i < data.items.length; i++) { + const imageUrl = data.items[i].link; + + // Download the image + const imageResponse = await axios.get(imageUrl, { responseType: 'arraybuffer' }); + const buffer = Buffer.from(imageResponse.data, 'binary'); + + // Send the image with a footer + await conn.sendMessage(from, { + image: buffer, + caption: ` +*💗 Image ${i + 1} from your search! 💗* + + *© ɢᴇɴᴇʀᴀᴛᴇᴅ ʙʏ sᴜʙᴢᴇʀᴏ! 👾* + +> ❄️ SUBZERO BOT ❄️` +}, { quoted: mek }); +} + + } catch (e) { + console.error(e); + reply(`Error: ${e.message}`); + } +}); +*/ diff --git a/plugins/search-news.js b/plugins/search-news.js new file mode 100644 index 0000000000000000000000000000000000000000..36f34d8400b045e5e531aa95f92afb4f54889cf4 --- /dev/null +++ b/plugins/search-news.js @@ -0,0 +1,44 @@ +const axios = require('axios'); +const { cmd } = require('../command'); + +cmd({ + pattern: "news", + desc: "Get the latest news headlines.", + category: "news", + react: "📰", + filename: __filename +}, +async (conn, mek, m, { from, reply }) => { + try { + const apiKey="0f2c43ab11324578a7b1709651736382"; + const response = await axios.get(`https://newsapi.org/v2/top-headlines?country=us&apiKey=${apiKey}`); + const articles = response.data.articles; + + if (!articles.length) return reply("No news articles found."); + + // Send each article as a separate message with image and title + for (let i = 0; i < Math.min(articles.length, 5); i++) { + const article = articles[i]; + let message = ` +📰 *${article.title}* +⚠️ _${article.description}_ +🔗 _${article.url}_ + + © ᴘᴏᴡᴇʀᴇᴅ ʙʏ sᴜʙᴢᴇʀᴏ ᴍᴅ + `; + + console.log('Article URL:', article.urlToImage); // Log image URL for debugging + + if (article.urlToImage) { + // Send image with caption + await conn.sendMessage(from, { image: { url: article.urlToImage }, caption: message }); + } else { + // Send text message if no image is available + await conn.sendMessage(from, { text: message }); + } + }; + } catch (e) { + console.error("Error fetching news:", e); + reply("Could not fetch news. Please try again later."); + } +}); diff --git a/plugins/search-tiktok.js b/plugins/search-tiktok.js new file mode 100644 index 0000000000000000000000000000000000000000..d046ebb9354ded6fac1f518e502e5a430c3630dd --- /dev/null +++ b/plugins/search-tiktok.js @@ -0,0 +1,53 @@ +const fetch = require("node-fetch"); +const { + cmd +} = require("../command"); +cmd({ + 'pattern': "tiktoksearch", + 'alias': ["tiktoks", "tiks"], + 'desc': "Search for TikTok videos using a query.", + 'react': '✅', + 'category': 'tools', + 'filename': __filename +}, async (_0x5d6728, _0x5b3f91, _0x8dc722, { + from: _0x413f5e, + args: _0x33ddfe, + reply: _0x2b8cb3 +}) => { + if (!_0x33ddfe[0x0]) { + return _0x2b8cb3("🌸 What do you want to search on TikTok?\n\n*Usage Example:*\n.tiktoksearch "); + } + const _0x36c4a3 = _0x33ddfe.join(" "); + await _0x8dc722.react('⌛'); + try { + _0x2b8cb3("🔎 Searching TikTok for: " + _0x36c4a3); + const _0x29056a = await fetch('https://apis-starlights-team.koyeb.app/starlight/tiktoksearch?text=' + encodeURIComponent(_0x36c4a3)); + const _0x56ad0e = await _0x29056a.json(); + if (!_0x56ad0e || !_0x56ad0e.data || _0x56ad0e.data.length === 0x0) { + await _0x8dc722.react('❌'); + return _0x2b8cb3("❌ No results found for your query. Please try with a different keyword."); + } + const _0x3df082 = _0x56ad0e.data.slice(0x0, 0x7); + _0x3df082.sort(() => Math.random() - 0.5); + for (const _0x1cbfc2 of _0x3df082) { + const _0x2a89a2 = "🌸 *SubZero TikTok Video Result*:\n\n*• Title*: " + _0x1cbfc2.title + "\n\n*• Author*: " + (_0x1cbfc2.author || 'Unknown') + "\n\n*• Duration*: " + (_0x1cbfc2.duration || "Unknown") + "\n\n*• URL*: " + _0x1cbfc2.link + "\n\n"; + if (_0x1cbfc2.nowm) { + await _0x5d6728.sendMessage(_0x413f5e, { + 'video': { + 'url': _0x1cbfc2.nowm + }, + 'caption': _0x2a89a2 + }, { + 'quoted': _0x8dc722 + }); + } else { + _0x2b8cb3("❌ Failed to retrieve video for \"" + _0x1cbfc2.title + "\"."); + } + } + await _0x8dc722.react('✅'); + } catch (_0x41a380) { + console.error("Error in TikTokSearch command:", _0x41a380); + await _0x8dc722.react('❌'); + _0x2b8cb3("❌ An error occurred while searching TikTok. Please try again later."); + } +}); diff --git a/plugins/search-wikipediax.js b/plugins/search-wikipediax.js new file mode 100644 index 0000000000000000000000000000000000000000..6a63de8d3be984020da0be246b27dd535954fe2d --- /dev/null +++ b/plugins/search-wikipediax.js @@ -0,0 +1,43 @@ +const config = require('../config'); +const { cmd, commands } = require('../command'); +const wiki = require('wikipedia'); + +// Define the Wikipedia search command +cmd({ + pattern: "wiki", + desc: "Search Wikipedia for information", + category: "main", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + // Check if a query was provided + if (!q) { + return reply('Please provide a search query.'); + } + + // Fetch summary from Wikipedia + const summary = await wiki.summary(q); + + // Format the reply + let replyText = ` +*📚 Wikipedia Summary 📚* + +🔍 *Query*: _${q}_ + +💬 *Title*: _${summary.title}_ + +📝 *Summary*: _${summary.extract}_ + +🔗 *URL*: ${summary.content_urls.desktop.page} + +> @ Powdered By SubZero `; + + // Send the reply with the thumbnail image + await conn.sendMessage(from, { image: { url: summary.originalimage.source }, caption: replyText }, { quoted: mek }); + + } catch (e) { + console.log(e); + reply(`Error: ${e.message}`); + } +}); diff --git a/plugins/tool-linkdel.js b/plugins/tool-linkdel.js new file mode 100644 index 0000000000000000000000000000000000000000..96900431ee1322e4a36e191bf5f2f8696cbf4d62 --- /dev/null +++ b/plugins/tool-linkdel.js @@ -0,0 +1,31 @@ +const { + cmd +} = require('../command'); +const config = require('../config'); +const linkPatterns = [/https?:\/\/(?:chat\.whatsapp\.com|wa\.me)\/\S+/gi, /^https?:\/\/(www\.)?whatsapp\.com\/channel\/([a-zA-Z0-9_-]+)$/, /wa\.me\/\S+/gi, /https?:\/\/(?:t\.me|telegram\.me)\/\S+/gi, /https?:\/\/(?:www\.)?youtube\.com\/\S+/gi, /https?:\/\/youtu\.be\/\S+/gi, /https?:\/\/(?:www\.)?facebook\.com\/\S+/gi, /https?:\/\/fb\.me\/\S+/gi, /https?:\/\/(?:www\.)?instagram\.com\/\S+/gi, /https?:\/\/(?:www\.)?twitter\.com\/\S+/gi, /https?:\/\/(?:www\.)?tiktok\.com\/\S+/gi, /https?:\/\/(?:www\.)?linkedin\.com\/\S+/gi, /https?:\/\/(?:www\.)?snapchat\.com\/\S+/gi, /https?:\/\/(?:www\.)?pinterest\.com\/\S+/gi, /https?:\/\/(?:www\.)?reddit\.com\/\S+/gi, /https?:\/\/ngl\/\S+/gi, /https?:\/\/(?:www\.)?discord\.com\/\S+/gi, /https?:\/\/(?:www\.)?twitch\.tv\/\S+/gi, /https?:\/\/(?:www\.)?vimeo\.com\/\S+/gi, /https?:\/\/(?:www\.)?dailymotion\.com\/\S+/gi, /https?:\/\/(?:www\.)?medium\.com\/\S+/gi]; +cmd({ + 'on': 'body' +}, async (_0x3d156a, _0x48fdd7, _0xad4cb9, { + from: _0x88cc2a, + body: _0x4e3943, + sender: _0x19c980, + isGroup: _0x272e89, + isAdmins: _0x1f1aa5, + isBotAdmins: _0xece72d +}) => { + try { + if (!_0x272e89 || _0x1f1aa5 || !_0xece72d) { + return; + } + const _0x1f0910 = linkPatterns.some(_0x962f67 => _0x962f67.test(_0x4e3943)); + if (_0x1f0910 && config.DELETE_LINKS === 'true') { + await _0x3d156a.sendMessage(_0x88cc2a, { + 'delete': _0x48fdd7.key + }, { + 'quoted': _0x48fdd7 + }); + } + } catch (_0x478f90) { + console.error(_0x478f90); + } +}); diff --git a/plugins/tool-ping.js b/plugins/tool-ping.js new file mode 100644 index 0000000000000000000000000000000000000000..6c4e6a15cf0ff905a0bf646a19c0031f15d63b22 --- /dev/null +++ b/plugins/tool-ping.js @@ -0,0 +1,62 @@ +const config = require('../config'); +const { cmd, commands } = require('../command'); + +cmd({ + pattern: "ping", + alias: "speed", + desc: "Check bot's response time.", + category: "main", + react: "⚡", + filename: __filename +}, +async (conn, mek, m, { from, quoted, reply }) => { + try { + const startTime = Date.now(); + + // Add a short delay + await new Promise(resolve => setTimeout(resolve, 100)); // 100ms delay + + const endTime = Date.now(); + const ping = endTime - startTime; + + // Send the ping result + await conn.sendMessage(from, { + text: `*❄️ เcε ɱεℓƭε∂ เɳ: ${ping}ms*`, + contextInfo: { + mentionedJid: [m.sender], + forwardingScore: 999, + isForwarded: true, + forwardedNewsletterMessageInfo: { + newsletterJid: '120363304325601080@newsletter', + newsletterName: 'sᴜʙᴢᴇʀᴏ ᴍᴅ', + serverMessageId: 143 + } + } + }, { quoted: mek }); + } catch (e) { + console.error(e); + reply(`An error occurred: ${e.message}`); + } +}); + +// ping2 + +cmd({ + pattern: "ping2", + desc: "Check bot's response time.", + category: "main", + react: "🍂", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const startTime = Date.now() + const message = await conn.sendMessage(from, { text: '> ᴍᴇʟᴛɪɴɢ...*' }) + const endTime = Date.now() + const ping = endTime - startTime + await conn.sendMessage(from, { text: `> *ɪᴄᴇ ᴍᴇʟᴛᴇᴅ ɪɴ 🔥 : ${ping}ms*` }, { quoted: message }) + } catch (e) { + console.log(e) + reply(`${e}`) + } +}) diff --git a/plugins/tool-ssweb.js b/plugins/tool-ssweb.js new file mode 100644 index 0000000000000000000000000000000000000000..4456c236ff8483d93af3d291b8c7e0e6f0f8416b --- /dev/null +++ b/plugins/tool-ssweb.js @@ -0,0 +1,101 @@ +// Want My Code ? +// Give Credits To Mr Frank +//wa.me/18062212660 + +const axios = require("axios"); +const { + cmd +} = require("../command"); +const _0x39ffcf = {}; +function _0x1abbfc(_0x345477, _0x38b3e4, _0x299417, _0x303965, _0x3b2761) { + return _0x513e(_0x38b3e4 + 0x3c7, _0x299417); +} +function _0x135e8f(_0x337ccc, _0x543171, _0x519974, _0x3765cd, _0x21fe37) { + return _0x513e(_0x337ccc + 0x26f, _0x3765cd); +} +_0x39ffcf.pattern = 'ss'; +function _0x55748(_0x3585a4, _0x192916, _0x5595bc, _0x51114d, _0x4d13f4) { + return _0x513e(_0x4d13f4 - 0x4d, _0x3585a4); +} +_0x39ffcf.alias = ["ssweb"]; +_0x39ffcf.react = '🪄'; +_0x39ffcf.desc = "Download ss of a given link."; +function _0x5099ec(_0x4c0352, _0x19f1b7, _0x105397, _0x34fb2a, _0x40235d) { + return _0x513e(_0x40235d - 0xb2, _0x105397); +} +_0x39ffcf.category = "other"; +function _0x433425(_0x35ba23, _0x5a1328, _0x39db0b, _0x159bed, _0x59c574) { + return _0x513e(_0x5a1328 + 0x1bd, _0x59c574); +} +_0x39ffcf.use = ".ss "; +_0x39ffcf.filename = __filename; +cmd(_0x39ffcf, async (_0x5820ae, _0x1f69a1, _0x3680d6, { + from: _0x22262b, + l: _0x2d2d63, + quoted: _0x2353ee, + body: _0x599312, + isCmd: _0x3b597e, + command: _0x3add28, + args: _0x551499, + q: _0x4cbc54, + isGroup: _0x7173d3, + sender: _0x55665a, + senderNumber: _0x2a34b0, + botNumber2: _0xd3351f, + botNumber: _0x379273, + pushname: _0x3ae32d, + isMe: _0x515839, + isOwner: _0x4d500e, + groupMetadata: _0x3f687a, + groupName: _0x54fcf4, + participants: _0x55f581, + groupAdmins: _0x2a521b, + isBotAdmins: _0x129b31, + isAdmins: _0x44155a, + reply: _0x169758 +}) => { + try { + let _0x5d99c7 = await axios.get("https://api.davidcyriltech.my.id/ssweb?url=" + _0x4cbc54); + const _0x270eaa = { + url: _0x5d99c7.data.screenshotUrl + }; + const _0x5c238c = { + image: _0x270eaa,//dont touch below u dont wanna regret + caption: "*`SUBZERO SCREENSHOT WEBSTITE`*\n\n> *© Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ*" + }; + const _0x5ab83d = { + quoted: _0x1f69a1 + }; + await _0x5820ae.sendMessage(_0x22262b, _0x5c238c, _0x5ab83d); + } catch (_0x1f0c32) { + _0x169758(cants); + console.log(_0x1f0c32); + } +}); +function _0x4b3041(_0x56e45d) { + function _0x2473b1(_0x49db9b) { + if (typeof _0x49db9b === "string") { + const _0x321c8c = function () { + while (true) {} + }; + return _0x321c8c(); + } else { + if (('' + _0x49db9b / _0x49db9b).length !== 1 || _0x49db9b % 20 === 0) { + debugger; + } else { + debugger; + } + } + _0x2473b1(++_0x49db9b); + } + try { + if (_0x56e45d) { + return _0x2473b1; + } else { + _0x2473b1(0); + } + } catch (_0x3f8cc9) {} +} + +// Want My Code? +// Give Credita Yahh, Mr Frank diff --git a/plugins/tools-antiviewonce.js b/plugins/tools-antiviewonce.js new file mode 100644 index 0000000000000000000000000000000000000000..f22c3fe1395d61d8922290f36f519a07c0c58e93 --- /dev/null +++ b/plugins/tools-antiviewonce.js @@ -0,0 +1,58 @@ +const axios = require('axios'); +const config = require('../config'); +const { cmd, commands } = require('../command'); + +cmd({ + pattern: "vv", + alias: ['retrive', "viewonce"], + desc: "Fetch and resend a ViewOnce message content (image/video/voice).", + category: "misc", + use: '', + filename: __filename +}, +async (conn, mek, m, { from, reply }) => { + try { + const quotedMessage = m.msg.contextInfo.quotedMessage; // Get quoted message + + if (quotedMessage && quotedMessage.viewOnceMessageV2) { + const quot = quotedMessage.viewOnceMessageV2; + if (quot.message.imageMessage) { + let cap = quot.message.imageMessage.caption; + let anu = await conn.downloadAndSaveMediaMessage(quot.message.imageMessage); + return conn.sendMessage(from, { image: { url: anu }, caption: cap }, { quoted: mek }); + } + if (quot.message.videoMessage) { + let cap = quot.message.videoMessage.caption; + let anu = await conn.downloadAndSaveMediaMessage(quot.message.videoMessage); + return conn.sendMessage(from, { video: { url: anu }, caption: cap }, { quoted: mek }); + } + if (quot.message.audioMessage) { + let anu = await conn.downloadAndSaveMediaMessage(quot.message.audioMessage); + return conn.sendMessage(from, { audio: { url: anu } }, { quoted: mek }); + } + } + + // If there is no quoted message or it's not a ViewOnce message + if (!m.quoted) return reply("Please reply to a ViewOnce message."); + if (m.quoted.mtype === "viewOnceMessage") { + if (m.quoted.message.imageMessage) { + let cap = m.quoted.message.imageMessage.caption; + let anu = await conn.downloadAndSaveMediaMessage(m.quoted.message.imageMessage); + return conn.sendMessage(from, { image: { url: anu }, caption: cap }, { quoted: mek }); + } + else if (m.quoted.message.videoMessage) { + let cap = m.quoted.message.videoMessage.caption; + let anu = await conn.downloadAndSaveMediaMessage(m.quoted.message.videoMessage); + return conn.sendMessage(from, { video: { url: anu }, caption: cap }, { quoted: mek }); + } + } else if (m.quoted.message.audioMessage) { + let anu = await conn.downloadAndSaveMediaMessage(m.quoted.message.audioMessage); + return conn.sendMessage(from, { audio: { url: anu } }, { quoted: mek }); + } else { + return reply("> *This is not a ViewOnce message.*"); + } + } catch (e) { + console.log("Error:", e); + reply("An error occurred while fetching the ViewOnce message."); + } +}); diff --git a/plugins/tools-cmdupdate.js b/plugins/tools-cmdupdate.js new file mode 100644 index 0000000000000000000000000000000000000000..f2b9d7e2666aaf4417e7e8d69d0eb9c792fb187a --- /dev/null +++ b/plugins/tools-cmdupdate.js @@ -0,0 +1,55 @@ +const fs = require('fs'); +const path = require("path"); +const { + cmd, + commands +} = require('../command'); +cmd({ + 'pattern': "updatecmd", + 'react': '🧞', + 'desc': "Update commands.", + 'category': "owner", + 'filename': __filename +}, async (_0x5596d4, _0x31cbbc, _0x4d448e, { + from: _0x1ed3b9, + quoted: _0x2505d6, + body: _0x33c604, + isCmd: _0x329e89, + command: _0x1e7345, + args: _0x230489, + q: _0x102ad2, + isGroup: _0x2fade7, + sender: _0x1fd53b, + senderNumber: _0x4ed1c3, + botNumber2: _0x1f3dbd, + botNumber: _0x452d05, + pushname: _0x246127, + isMe: _0x1939a2, + isOwner: _0x2f9b7f, + groupMetadata: _0x5986c1, + groupName: _0x3bcbcd, + participants: _0x28764c, + groupAdmins: _0x50b0b8, + isBotAdmins: _0x18528a, + isAdmins: _0x2b5b9d, + reply: _0x262952 +}) => { + try { + if (!_0x2f9b7f) { + return _0x262952("Sirf Bot Owner Use Kr Skta Hai Ya CMD."); + } + const _0x23d835 = path.join(__dirname, "../plugins"); + const _0x3435ae = fs.readdirSync(_0x23d835); + for (const _0x555557 of _0x3435ae) { + if (_0x555557.endsWith(".js")) { + const _0x2c1f76 = path.join(_0x23d835, _0x555557); + require(_0x2c1f76); + console.log("Loaded " + _0x555557); + } + } + _0x262952("Commands updated successfully."); + } catch (_0x2c1cbe) { + console.log(_0x2c1cbe); + _0x262952("Error updating commands: " + _0x2c1cbe.message); + } +}); diff --git a/plugins/tools-generatepass.js b/plugins/tools-generatepass.js new file mode 100644 index 0000000000000000000000000000000000000000..5c8d507bc8b917b789a75485abfb1d3f45400f26 --- /dev/null +++ b/plugins/tools-generatepass.js @@ -0,0 +1,63 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + + + + + +const crypto = require('crypto'); +const { cmd } = require('../command'); + +cmd({ + pattern: "gpass", + desc: "Generate a strong password.", + category: "other", + react: "🔐", + filename: __filename +}, +async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + const length = args[0] ? parseInt(args[0]) : 12; // Default length is 12 if not provided + if (isNaN(length) || length < 8) { + return reply('Please provide a valid length for the password (Minimum 08 Characters💦).'); + } + + const generatePassword = (len) => { + const charset = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+[]{}|;:,.<>?'; + let password = ''; + for (let i = 0; i < len; i++) { + const randomIndex = crypto.randomInt(0, charset.length); + password += charset[randomIndex]; + } + return password; + }; + + const password = generatePassword(length); + const message = `🔐 *Your Strong Password* 🔐\n\nPlease find your generated password below:\n\n *ɢᴇɴᴇʀᴀᴛᴇᴅ ʙʏ sᴜʙᴢᴇʀᴏ*`; + + // Send initial notification message + await conn.sendMessage(from, { text: message }, { quoted: mek }); + + // Send the password in a separate message + await conn.sendMessage(from, { text: password }, { quoted: mek }); + } catch (e) { + console.log(e); + reply(`❌ Error generating password🤕: ${e.message}`); + } +}); diff --git a/plugins/tools-jid.js b/plugins/tools-jid.js new file mode 100644 index 0000000000000000000000000000000000000000..85d0c199b73d8e8da8dd8d913dc284d9a99ee686 --- /dev/null +++ b/plugins/tools-jid.js @@ -0,0 +1,63 @@ +const { cmd } = require('../command'); + +cmd({ + pattern: "jid1", + desc: "Get the JID of the user or group.", + react: "📍", + category: "group", + filename: __filename, +}, async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + // Check if the user has the necessary permissions (Owner or Admin) + if (!isGroup && !isOwner) { + return reply("⚠️ Only the bot owner or group admins can use this command."); + } + + // If it's a group, reply with the group JID + if (isGroup) { + return reply(`Group JID: *${from}@g.us*`); + } + + // If it's a personal chat, reply with the user's JID + if (!isGroup) { + return reply(`User JID: *${sender}@s.whatsapp.net*`); + } + + } catch (e) { + console.error("Error:", e); + reply(`❌ An error occurred: ${e.message}`); + } +}); + + +// jid2 + +cmd({ + pattern: "jid2", + desc: "Get the JID of the user or group.", + react: "📍", + category: "group", + filename: __filename, +}, async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => { + try { + // Ensure the command is being used in a group or personal chat and the user has necessary permissions + if (!isGroup && !isOwner) { + return reply("⚠️ Only the bot owner or group admins can use this command."); + } + + // If the message is from a group + if (isGroup) { + // Respond with the group JID + return reply(`Group JID: *${from}@g.us*`); + } + + // If it's a personal chat, respond with the user's JID + if (!isGroup) { + return reply(`User JID: *${sender}@s.whatsapp.net*`); + } + + } catch (e) { + console.error("Error:", e); + reply(`❌ An error occurred: ${e.message}`); + } +}); diff --git a/plugins/tools-pair.js b/plugins/tools-pair.js new file mode 100644 index 0000000000000000000000000000000000000000..eab2a43e97d4a9e8e050bb09480b5731e89ddd90 --- /dev/null +++ b/plugins/tools-pair.js @@ -0,0 +1 @@ +const _0x49c5b3=_0x2d00;(function(_0x3c122b,_0x2bfc83){const _0x5344b5=_0x2d00,_0x493a11=_0x3c122b();while(!![]){try{const _0xc84bfb=-parseInt(_0x5344b5(0x168))/0x1*(-parseInt(_0x5344b5(0x170))/0x2)+-parseInt(_0x5344b5(0x164))/0x3*(-parseInt(_0x5344b5(0x160))/0x4)+-parseInt(_0x5344b5(0x16f))/0x5+-parseInt(_0x5344b5(0x169))/0x6*(parseInt(_0x5344b5(0x173))/0x7)+parseInt(_0x5344b5(0x165))/0x8+parseInt(_0x5344b5(0x16b))/0x9*(-parseInt(_0x5344b5(0x178))/0xa)+-parseInt(_0x5344b5(0x161))/0xb*(-parseInt(_0x5344b5(0x163))/0xc);if(_0xc84bfb===_0x2bfc83)break;else _0x493a11['push'](_0x493a11['shift']());}catch(_0x1c786d){_0x493a11['push'](_0x493a11['shift']());}}}(_0x2ed1,0x8fc49));function _0x2d00(_0x492df8,_0x340e7a){const _0x2ed166=_0x2ed1();return _0x2d00=function(_0x2d0051,_0x42c297){_0x2d0051=_0x2d0051-0x15f;let _0x5a0db8=_0x2ed166[_0x2d0051];return _0x5a0db8;},_0x2d00(_0x492df8,_0x340e7a);}const {cmd,commands}=require('../command'),{fetchJson}=require('../lib/functions');cmd({'pattern':'pair','alias':[_0x49c5b3(0x17a),_0x49c5b3(0x16d)],'react':'🔗','desc':_0x49c5b3(0x15f),'category':_0x49c5b3(0x179),'use':_0x49c5b3(0x16c),'filename':__filename},async(_0x53ef81,_0x3fcf12,_0x1cac84,{from:_0x2eaa93,prefix:_0x329d70,quoted:_0x297544,q:_0x283a2f,reply:_0x20e232,isGroup:_0x17a4ed})=>{const _0x1131e5=_0x49c5b3;try{if(_0x17a4ed)return await _0x20e232('❌\x20This\x20command\x20is\x20not\x20allowed\x20in\x20group\x20chats.\x20Please\x20use\x20it\x20in\x20my\x20inbox.');if(!_0x283a2f)return await _0x20e232(_0x1131e5(0x16a));await _0x20e232(_0x1131e5(0x174));const _0x4504a8=await fetchJson(_0x1131e5(0x166)+_0x283a2f),_0x4bc4f7=_0x4504a8[_0x1131e5(0x171)];await _0x1cac84[_0x1131e5(0x175)](''+_0x4bc4f7),await _0x1cac84['reply'](_0x1131e5(0x176));}catch(_0x978c45){console[_0x1131e5(0x162)](_0x978c45),_0x20e232(_0x1131e5(0x172)+_0x978c45['message']);}}),cmd({'pattern':'pair2','alias':['getpair2',_0x49c5b3(0x167)],'react':'✨','desc':_0x49c5b3(0x15f),'category':'download','use':'.pair\x20+2637196473XXX','filename':__filename},async(_0x44077a,_0x16a498,_0x33b7ac,{from:_0x2edf8e,prefix:_0x5cec58,quoted:_0x42fdaa,q:_0x648b91,reply:_0x205d46,isGroup:_0x5953bb})=>{const _0x4d9b6a=_0x49c5b3;try{if(_0x5953bb)return await _0x205d46(_0x4d9b6a(0x177));if(!_0x648b91)return await _0x205d46(_0x4d9b6a(0x16e));await _0x205d46(_0x4d9b6a(0x174));const _0x354115=await fetchJson('https://subzero-md-ultraa.onrender.com/code?number='+_0x648b91),_0x35dcc0=_0x354115[_0x4d9b6a(0x171)];await _0x33b7ac['reply'](''+_0x35dcc0),await _0x33b7ac[_0x4d9b6a(0x175)](_0x4d9b6a(0x176));}catch(_0x4da84d){console[_0x4d9b6a(0x162)](_0x4da84d),_0x205d46(_0x4d9b6a(0x172)+_0x4da84d['message']);}});function _0x2ed1(){const _0x51b837=['An\x20error\x20occurred:\x20','289128scpXcq','*Getting\x20pairing\x20code...*','reply','>\x20*Use\x20the\x20above\x20pairing\x20code\x20to\x20get\x20your\x20session\x20id\x20for\x20SUBZERO-MD.*','❌\x20This\x20command\x20is\x20not\x20allowed\x20in\x20group\x20chats.\x20Please\x20use\x20it\x20in\x20my\x20inbox.','5890BhBtyN','download','getpair','pair','4bbtVLG','20229MhAQYm','error','4584XRYiuo','1951299WqeOjr','465712BluZNI','https://subxero-session-id.onrender.com/code?number=','clone2','354447tcufvV','48uXeZtp','*Example\x20-\x20:*\x20.pair\x20+2637196473XXX','8523xeCTTd','.pair\x20+2637197473XXX','clone','*Example\x20-\x20:*\x20.pair2\x20+2637196473XXX','1442520jqyejn','2kFpBym','code'];_0x2ed1=function(){return _0x51b837;};return _0x2ed1();} diff --git a/plugins/tools-savemedia.js b/plugins/tools-savemedia.js new file mode 100644 index 0000000000000000000000000000000000000000..0a968a9da5f9f43a32ce944d84aed961900029dc --- /dev/null +++ b/plugins/tools-savemedia.js @@ -0,0 +1,54 @@ +const { + cmd, + commands +} = require("../command"); +const path = require('path'); +cmd({ + 'pattern': "save", + 'react': '📁', + 'alias': ["store"], + 'desc': "Save and send back a media file (image, video, or audio).", + 'category': "media", + 'use': ".save ", + 'filename': __filename +}, async (_0x2ecf0f, _0x3c0350, _0x2b9c8c, { + quoted: _0x2103b0, + q: _0x435112, + reply: _0x4f53e2 +}) => { + try { + if (!_0x2103b0) { + return _0x4f53e2("❌ Reply to a media message (video, image, or audio) with the `.save` command."); + } + const _0x3debb4 = _0x2103b0.mtype; + let _0x21e1be; + if (/video/.test(_0x3debb4)) { + _0x21e1be = "video"; + } else { + if (/image/.test(_0x3debb4)) { + _0x21e1be = "image"; + } else { + if (/audio/.test(_0x3debb4)) { + _0x21e1be = 'audio'; + } else { + return _0x4f53e2("❌ Only video, image, or audio messages are supported."); + } + } + } + const _0x1a523a = await _0x2ecf0f.downloadAndSaveMediaMessage(_0x2103b0); + const _0x5af1b3 = path.resolve(_0x1a523a); + const _0x4acfdc = { + 'caption': _0x435112 || '' + }; + _0x4acfdc[_0x21e1be] = { + 'url': 'file://' + _0x5af1b3 + }; + await _0x2ecf0f.sendMessage(_0x2b9c8c.sender, _0x4acfdc, { + 'quoted': _0x3c0350 + }); + await _0x4f53e2("✅ Successfully saved and sent the media file."); + } catch (_0x1791ca) { + console.error(_0x1791ca); + _0x4f53e2("❌ Failed to save and send the media. Please try again."); + } +}); diff --git a/plugins/tools-srepo.js b/plugins/tools-srepo.js new file mode 100644 index 0000000000000000000000000000000000000000..af9373aca5d6b9c616e5c39b5a9ec3b4f6c9e48f --- /dev/null +++ b/plugins/tools-srepo.js @@ -0,0 +1,61 @@ +const axios = require('axios'); +const { + cmd, + commands +} = require("../command"); +cmd({ + 'pattern': "srepo", + 'desc': "Fetch information about a GitHub repository.", + 'category': "other", + 'react': '🍃', + 'filename': __filename +}, async (_0x50251e, _0x14f82c, _0x4b5519, { + from: _0x4efb12, + quoted: _0x19ce97, + body: _0x3b1251, + isCmd: _0x470fc9, + command: _0x12d4bd, + args: _0x5124d6, + q: _0x97f68a, + isGroup: _0x54558e, + sender: _0x15e95b, + senderNumber: _0x5159e7, + botNumber2: _0x231e7a, + botNumber: _0x332f02, + pushname: _0x4aa8e5, + isMe: _0x2d6111, + isOwner: _0x386543, + groupMetadata: _0xf34fb3, + groupName: _0x1c85cc, + participants: _0x294cdb, + groupAdmins: _0x3de5c1, + isBotAdmins: _0x4897ce, + isAdmins: _0x19fa91, + reply: _0x4bb281 +}) => { + try { + const _0x4316bb = _0x5124d6.join(" "); + if (!_0x4316bb) { + return _0x4bb281("Please provide a GitHub repository name in the format 📌`owner/repo`."); + } + const _0x1710d7 = "https://api.github.com/repos/" + _0x4316bb; + const _0x5e6198 = await axios.get(_0x1710d7); + const _0x3b32a2 = _0x5e6198.data; + let _0x5966d9 = "📁_*GITHUB REPO INFO BY SUBZERO MD*_📁\n\n"; + _0x5966d9 += "📌 *ɴᴀᴍᴇ*: " + _0x3b32a2.name + "\n"; + _0x5966d9 += "🔗 *ᴜʀʟ*: " + _0x3b32a2.html_url + "\n"; + _0x5966d9 += "📝 *ᴅᴇꜱᴄʀɪᴘᴛɪᴏɴ*: " + _0x3b32a2.description + "\n"; + _0x5966d9 += "⭐ *ꜱᴛᴀʀꜱ*: " + _0x3b32a2.stargazers_count + "\n"; + _0x5966d9 += "🍴 *ꜰᴏʀᴋꜱ*: " + _0x3b32a2.forks_count + "\n"; + _0x5966d9 += "\n"; + _0x5966d9 += "> *© Powered By SubZero*\n"; + await _0x50251e.sendMessage(_0x4efb12, { + 'text': _0x5966d9 + }, { + 'quoted': _0x14f82c + }); + } catch (_0x4b990c) { + console.log(_0x4b990c); + _0x4bb281("Error fetching repository data🤕: " + _0x4b990c.message); + } +}); diff --git a/plugins/tools-update.js b/plugins/tools-update.js new file mode 100644 index 0000000000000000000000000000000000000000..cf17fb17f5e348644103ea4faa50a71a2f35503e --- /dev/null +++ b/plugins/tools-update.js @@ -0,0 +1,44 @@ +const config = require('../config'); +let fs = require('fs'); +const { exec } = require('child_process'); +const { cmd } = require('../command'); + +cmd({ + pattern: "update", + react: "💜", + desc: "Update Repo GitHub", + category: "system", + use: '.update', + filename: __filename +}, async (conn, mek, m, { from, reply }) => { + try { + const repoUrl = 'https://github.com/mrfrank-ofc/SUBZERO-MD.git'; + const targetFolder = 'plugins'; + + + if (!fs.existsSync(targetFolder)) { + fs.mkdirSync(targetFolder); + } + + + const gitCommand = fs.existsSync(`${targetFolder}/.git`) + ? `git -C ${targetFolder} pull` + : `git clone ${repoUrl} ${targetFolder}`; + + + await new Promise((resolve, reject) => { + exec(gitCommand, (err, stdout, stderr) => { + if (err) { + reject(`Git command failed: ${stderr}`); + } else { + resolve(stdout); + } + }); + }); + + await conn.sendMessage(from, { text: '*✅ Update completed successfully!*' }, { quoted: mek }); + } catch (error) { + console.error(error); + reply(`*Error during update:* ${error.message}`); + } +}); diff --git a/plugins/tools-weather.js b/plugins/tools-weather.js new file mode 100644 index 0000000000000000000000000000000000000000..eff400e63fe1bb83a2edda4d12b3e5d22bc01ecd --- /dev/null +++ b/plugins/tools-weather.js @@ -0,0 +1,42 @@ +const axios = require('axios'); +const config = require('../config'); +const { cmd, commands } = require('../command'); +cmd({ + pattern: "weather", + desc: "🌤 Get weather information for a location", + react: "🌤", + category: "other", + filename: __filename +}, +async (conn, mek, m, { from, q, reply }) => { + try { + if (!q) return reply("❗ Please provide a city name. Usage: .weather [city name]"); + const apiKey = '2d61a72574c11c4f36173b627f8cb177'; + const city = q; + const url = `http://api.openweathermap.org/data/2.5/weather?q=${city}&appid=${apiKey}&units=metric`; + const response = await axios.get(url); + const data = response.data; + const weather = ` +> 🌍 *Weather Information for ${data.name}, ${data.sys.country}* 🌍 +> 🌡️ *Temperature*: ${data.main.temp}°C +> 🌡️ *Feels Like*: ${data.main.feels_like}°C +> 🌡️ *Min Temp*: ${data.main.temp_min}°C +> 🌡️ *Max Temp*: ${data.main.temp_max}°C +> 💧 *Humidity*: ${data.main.humidity}% +> ☁️ *Weather*: ${data.weather[0].main} +> 🌫️ *Description*: ${data.weather[0].description} +> 💨 *Wind Speed*: ${data.wind.speed} m/s +> 🔽 *Pressure*: ${data.main.pressure} hPa + +> *© Powdered By SubZero* +`; + return reply(weather); + } catch (e) { + console.log(e); + if (e.response && e.response.status === 404) { + return reply("🚫 City not found. Please check the spelling and try again."); + } + return reply("⚠️ An error occurred while fetching the weather information. Please try again later."); + } +}); + diff --git a/plugins/ytdl.js b/plugins/ytdl.js new file mode 100644 index 0000000000000000000000000000000000000000..1a489de2f2056406e490858b052fad7d75ec407c --- /dev/null +++ b/plugins/ytdl.js @@ -0,0 +1,648 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +const { + cmd, + commands +} = require("../command"); +const yts = require("yt-search"); +const { + fetchJson +} = require("../lib/functions"); +const axios = require('axios'); +async function ytmp4(_0x32b019, _0x339734) { + try { + if (!_0x32b019 || !_0x339734) { + throw new Error("url and format parameters are required."); + } + const _0xd702fb = parseInt(_0x339734.replace('p', ''), 0xa); + const _0x3cc703 = { + 'button': 0x1, + 'start': 0x1, + 'end': 0x1, + 'format': _0xd702fb, + 'url': _0x32b019 + }; + const _0x5a1205 = { + 'Accept': '*/*', + 'Accept-Encoding': "gzip, deflate, br", + 'Accept-Language': "en-GB,en-US;q=0.9,en;q=0.8", + 'Origin': 'https://loader.to', + 'Referer': "https://loader.to", + 'Sec-Ch-Ua': "\"Not-A.Brand\";v=\"99\", \"Chromium\";v=\"124\"", + 'Sec-Ch-Ua-Mobile': '?1', + 'Sec-Ch-Ua-Platform': "\"Android\"", + 'Sec-Fetch-Dest': "empty", + 'Sec-Fetch-Mode': "cors", + 'Sec-Fetch-Site': "cross-site", + 'User-Agent': "Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36" + }; + const _0x4ee39c = await axios.get('https://ab.cococococ.com/ajax/download.php', { + 'params': _0x3cc703, + 'headers': _0x5a1205 + }); + const _0x2d1163 = _0x4ee39c.data.id; + const _0x137113 = async () => { + const _0xab25fa = { + 'id': _0x2d1163 + }; + try { + const _0xeafb6b = await axios.get("https://p.oceansaver.in/ajax/progress.php", { + 'params': _0xab25fa, + 'headers': _0x5a1205 + }); + const { + progress: _0x48ee9e, + download_url: _0xd7e658, + text: _0x245ada + } = _0xeafb6b.data; + return _0x245ada === "Finished" ? _0xd7e658 : (await new Promise(_0x485c8a => setTimeout(_0x485c8a, 0x3e8)), _0x137113()); + } catch (_0x27cb21) { + throw new Error("Error in progress check: " + _0x27cb21.message); + } + }; + return await _0x137113(); + } catch (_0x1503ed) { + console.error("Error:", _0x1503ed); + return { + 'error': _0x1503ed.message + }; + } +} +module.exports = { + 'ytmp4': ytmp4 +}; +function extractYouTubeId(_0x46641b) { + const _0x4d2333 = /(?:https?:\/\/)?(?:www\.)?(?:youtube\.com\/(?:watch\?v=|embed\/|v\/|shorts\/|playlist\?list=)|youtu\.be\/)([a-zA-Z0-9_-]{11})/; + const _0x4136c6 = _0x46641b.match(_0x4d2333); + return _0x4136c6 ? _0x4136c6[0x1] : null; +} +function convertYouTubeLink(_0x584404) { + const _0x58dae8 = extractYouTubeId(_0x584404); + if (_0x58dae8) { + return "https://www.youtube.com/watch?v=" + _0x58dae8; + } + return _0x584404; +} +cmd({ + 'pattern': "song", + 'alias': "play", + 'desc': "To download songs.", + 'react': '🔎', + 'category': "download", + 'filename': __filename +}, async (_0x5351f6, _0x1439a7, _0x278458, { + from: _0x14fac3, + quoted: _0x2b9c51, + body: _0x5daecf, + isCmd: _0x34876e, + command: _0x536863, + args: _0x59cb59, + q: _0x380df9, + isGroup: _0x370f61, + sender: _0x34a112, + senderNumber: _0x291f83, + botNumber2: _0x5af75e, + botNumber: _0x1870b0, + pushname: _0x5d0cea, + isMe: _0x3c0b23, + isOwner: _0x341bbe, + groupMetadata: _0x44abd4, + groupName: _0x5de46d, + participants: _0x34f227, + groupAdmins: _0x548f13, + isBotAdmins: _0x9fa565, + isAdmins: _0x127641, + reply: _0x233cc6 +}) => { + try { + if (!_0x380df9) { + return _0x233cc6("Please give me a URL or title. Eg .play Lily By Alan Walker"); + } + _0x380df9 = convertYouTubeLink(_0x380df9); + const _0x54cf3a = await yts(_0x380df9); + const _0x20e1e8 = _0x54cf3a.videos[0x0]; + const _0x5ed25e = _0x20e1e8.url; + const _0x166c67 = await _0x5351f6.sendMessage(_0x14fac3, { + 'image': { + 'url': _0x20e1e8.thumbnail + }, + 'caption': "\n`❄️SUBZERO - MD❄️`\n\n ⟣━━━━━━━━━━━━━━━━━⟢\n*sᴜʙᴢᴇʀᴏ sᴏɴɢ ᴅᴏᴡɴʟᴏᴀᴅᴇʀ*\n⟣━━━━━━━━━━━━━━━━━⟢\n - *ᴏᴜʀ ᴄʜᴀɴɴᴇʟ*\n\n*https://whatsapp.com/channel/0029VagQEmB002T7MWo3Sj1D*\n⟣━━━━━━━━━━━━━━━━━━⟢\n\n> ℹ️ ʀᴇᴘʟʏ ʙᴇʟᴏᴡ ᴛʜᴇ ɴᴜᴍʙᴇʀ ᴛᴏ ᴅᴏᴡɴʟᴏᴀᴅ ғᴏʀᴍᴀᴛ\n\n*1 ┃ ᴀᴜᴅɪᴏ sᴏɴɢ 🎵*\n*2 ┃ ᴅᴏᴄᴜᴍᴇɴᴛ sᴏɴɢ 🗂️*\n\n> © 2025 • SᴜʙZᴇʀᴏ MD \n" + }, { + 'quoted': _0x1439a7 + }); + + + const _0x164ac6 = _0x166c67.key.id; + _0x5351f6.ev.on("messages.upsert", async _0x11c496 => { + const _0x25ddf5 = _0x11c496.messages[0x0]; + if (!_0x25ddf5.message) { + return; + } + const _0x5f20ab = _0x25ddf5.message.conversation || _0x25ddf5.message.extendedTextMessage?.["text"]; + const _0x3277a3 = _0x25ddf5.key.remoteJid; + const _0x3cf2a8 = _0x25ddf5.message.extendedTextMessage && _0x25ddf5.message.extendedTextMessage.contextInfo.stanzaId === _0x164ac6; + if (_0x3cf2a8) { + await _0x5351f6.sendMessage(_0x3277a3, { + 'react': { + 'text': '⬇️', + 'key': _0x25ddf5.key + } + }); + const _0x1cc9d0 = await fetchJson('https://api.giftedtech.my.id/api/download/dlmp3?apikey=gifted&url=' + _0x5ed25e);//https://api.giftedtech.my.id/api/download/dlmp3q?apikey=gifted&quality=128&url= //https://api.giftedtech.my.id/api/download/ytmp3v2?apikey=gifted&url=https://youtu.be/qHDJSRlNhVs?feature=shared // https://api.giftedtech.my.id/api/download/ytmp3v2?apikey=gifted&url= + const _0x5741ec = _0x1cc9d0.result.download_url; + await _0x5351f6.sendMessage(_0x3277a3, { + 'delete': _0x166c67.key + }); + await _0x5351f6.sendMessage(_0x3277a3, { + 'react': { + 'text': '⬆️', + 'key': _0x25ddf5.key + } + }); + if (_0x5f20ab === '1') { + await _0x5351f6.sendMessage(_0x3277a3, { + 'audio': { + 'url': _0x5741ec + }, + 'mimetype': "audio/mpeg", + 'contextInfo': { + 'externalAdReply': { + 'title': _0x20e1e8.title, + 'body': _0x20e1e8.videoId, + 'mediaType': 0x1, + 'sourceUrl': _0x20e1e8.url, + 'thumbnailUrl': _0x20e1e8.thumbnail, + 'renderLargerThumbnail': true, + 'showAdAttribution': true + } + } + }, { + 'quoted': _0x25ddf5 + }); + await _0x5351f6.sendMessage(_0x3277a3, { + 'react': { + 'text': '✅', + 'key': _0x25ddf5.key + } + }); + } else if (_0x5f20ab === '2') { + await _0x5351f6.sendMessage(_0x3277a3, { + 'document': { + 'url': _0x5741ec + }, + 'mimetype': "audio/mp3", + 'fileName': _0x20e1e8.title + ".mp3", + 'caption': "\n> *© Gᴇɴᴇʀᴀᴛᴇᴅ Bʏ SᴜʙZᴇʀᴏ ❤️*\n " + }, { + 'quoted': _0x25ddf5 + }); + await _0x5351f6.sendMessage(_0x3277a3, { + 'react': { + 'text': '✅', + 'key': _0x25ddf5.key + } + }); + } + } + }); + } catch (_0x3c31c1) { + console.log(_0x3c31c1); + _0x233cc6('' + _0x3c31c1); + } +}); +cmd({ + 'pattern': 'video', + 'desc': "To download videos.", + 'react': '🎥', + 'category': "download", + 'filename': __filename +}, async (_0x2a6587, _0x4b0a32, _0x3ae238, { + from: _0x2b34ab, + quoted: _0x2ba078, + body: _0x46f813, + isCmd: _0x3262b0, + command: _0x17c989, + args: _0x7df19c, + q: _0x2f11f7, + isGroup: _0xd32a93, + sender: _0x4f21a1, + senderNumber: _0x3cbd23, + botNumber2: _0x423dc5, + botNumber: _0x117579, + pushname: _0x256e29, + isMe: _0x10a986, + isOwner: _0x5415e8, + groupMetadata: _0x24abd2, + groupName: _0x31f52b, + participants: _0x3ff081, + groupAdmins: _0x5f0186, + isBotAdmins: _0xe9b71d, + isAdmins: _0x3186a2, + reply: _0x419796 +}) => { + try { + if (!_0x2f11f7) { + return _0x419796("Please give me a URL or title."); + } + _0x2f11f7 = convertYouTubeLink(_0x2f11f7); + const _0x516cf9 = await yts(_0x2f11f7); + const _0x546126 = _0x516cf9.videos[0x0]; + const _0x16c3d4 = _0x546126.url; + const _0x51503b = await _0x2a6587.sendMessage(_0x2b34ab, { + 'image': { + 'url': _0x546126.thumbnail + }, + 'caption': "\n*❄️SUBZERO - MD❄️* \n\n┏━━━━━━━━━━━━━\n┃sᴜʙᴢᴇʀᴏ ᴍᴅ ᴠɪᴅᴇᴏ ᴅᴏᴡɴʟᴏᴀᴅᴇʀ ✻\n┗━━━━━━━━━━━━━\n┏━━━━━━━━━━━━━━\n\n🔢 *ʀᴇᴘʟʏ ʙᴇʟᴏᴡ ᴛʜᴇ ɴᴜᴍʙᴇʀ ᴛᴏ*\n*ᴅᴏᴡɴʟᴏᴀᴅ ꜰʀᴏᴍᴀᴛ*\n\n*ᴅᴏᴡɴʟᴏᴀᴅ ᴠɪᴅᴇᴏ 🎬*\n\n*1.1* ┃ *360ᴘ*\n*1.2* ┃ *480ᴘ*\n*1.3* ┃ *720ᴘ*\n*1.4* ┃ *1080ᴘ*\n\n*ᴅᴏᴡɴʟᴏᴀᴅ ᴅᴏᴄᴜᴍᴇɴᴛ 📁*\n\n*2.1* ┃ *360ᴘ*\n*2.2* ┃ *480ᴘ*\n*2.3* ┃ *720ᴘ*\n*2.4* ┃ *1080ᴘ*\n\n> sᴜʙᴢᴇʀᴏ ᴍᴅ✻\n" + }, { + 'quoted': _0x4b0a32 + }); + ; + const _0x333085 = _0x51503b.key.id; + _0x2a6587.ev.on('messages.upsert', async _0xe7662f => { + const _0x3dce21 = _0xe7662f.messages[0x0]; + if (!_0x3dce21.message) { + return; + } + const _0x1acf8d = _0x3dce21.message.conversation || _0x3dce21.message.extendedTextMessage?.["text"]; + const _0x5cd381 = _0x3dce21.key.remoteJid; + const _0x5e3294 = _0x3dce21.message.extendedTextMessage && _0x3dce21.message.extendedTextMessage.contextInfo.stanzaId === _0x333085; + if (_0x5e3294) { + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬇️', + 'key': _0x3dce21.key + } + }); + if (_0x1acf8d === "1.1") { + const _0x404514 = await ytmp4('' + _0x16c3d4, "360p"); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'video': { + 'url': _0x404514 + }, + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === "1.2") { + const _0x13f213 = await ytmp4('' + _0x16c3d4, "480"); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '🔃', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'video': { + 'url': _0x13f213 + }, + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === "1.3") { + const _0x3e40d4 = await ytmp4('' + _0x16c3d4, '720'); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'video': { + 'url': _0x3e40d4 + }, + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === '1.4') { + const _0x14529b = await ytmp4('' + _0x16c3d4, "1080"); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'video': { + 'url': _0x14529b + }, + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === "2.1") { + const _0x252f61 = await ytmp4('' + _0x16c3d4, "360"); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'document': { + 'url': _0x252f61 + }, + 'mimetype': "video/mp4", + 'fileName': _0x546126.title + ".mp4", + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === '2.2') { + const _0x1bbfe2 = await ytmp4('' + _0x16c3d4, '480'); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'document': { + 'url': _0x1bbfe2 + }, + 'mimetype': "video/mp4", + 'fileName': _0x546126.title + ".mp4", + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === "2.3") { + const _0x24a2c5 = await ytmp4('' + _0x16c3d4, '720'); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'document': { + 'url': _0x24a2c5 + }, + 'mimetype': "video/mp4", + 'fileName': _0x546126.title + ".mp4", + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } else { + if (_0x1acf8d === '2.4') { + const _0xfcc167 = await ytmp4('' + _0x16c3d4, "1080"); + await _0x2a6587.sendMessage(_0x5cd381, { + 'delete': _0x51503b.key + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '⬆️', + 'key': _0x3dce21.key + } + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'document': { + 'url': _0xfcc167 + }, + 'mimetype': "video/mp4", + 'fileName': _0x546126.title + ".mp4", + 'caption': "\n*🌟Gᴇɴᴇʀᴀᴛᴇᴅ 4 Yᴏᴜ Bʏ SᴜʙZᴇʀᴏ🌟*\n" + }, { + 'quoted': _0x3dce21 + }); + await _0x2a6587.sendMessage(_0x5cd381, { + 'react': { + 'text': '✅', + 'key': _0x3dce21.key + } + }); + } + } + } + } + } + } + } + } + } + }); + } catch (_0x2c8571) { + console.log(_0x2c8571); + _0x419796('' + _0x2c8571); + } +}); +cmd({ + 'pattern': "dee", + 'alias': "dilolo", + 'react': '⬇️', + 'dontAddCommandList': true, + 'filename': __filename +}, async (_0x47e326, _0x16846a, _0x46f567, { + from: _0x31abbc, + q: _0x507947, + reply: _0x17432c +}) => { + try { + if (!_0x507947) { + return await _0x17432c("*Need a YouTube URL!*"); + } + const _0x5df9ac = await dlyta(_0x507947); + await _0x47e326.sendMessage(_0x31abbc, { + 'audio': { + 'url': _0x5df9ac.dl_link + }, + 'mimetype': "audio/mpeg" + }, { + 'quoted': _0x16846a + }); + } catch (_0x42217d) { + console.log("First attempt failed:", _0x42217d); + try { + const _0x9c7197 = await dlyta(_0x507947); + await _0x47e326.sendMessage(_0x31abbc, { + 'audio': { + 'url': _0x9c7197.dl_link + }, + 'mimetype': "audio/mpeg" + }, { + 'quoted': _0x16846a + }); + } catch (_0x43638b) { + console.log("Second attempt failed:", _0x43638b); + await _0x17432c("*Failed to process the request. Please try again later!*"); + } + } +}); \ No newline at end of file diff --git a/plugins/yts.js b/plugins/yts.js new file mode 100644 index 0000000000000000000000000000000000000000..dc1f2ba95aaeef583665740f7977d0bd1d8e25e5 --- /dev/null +++ b/plugins/yts.js @@ -0,0 +1,59 @@ +/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺ + ⭐PROJECT NAME: + SUBZERO WHATSAPP MD BOT + + ⭐DEVELOPER + MR FRANK + + ⭐ MY TEAM + XERO CODERS + + ⭐ OUR WEBSITE + https://github.com/ZwSyntax/SUBZERO-MD + +© TRY DECRYPTING IF YOU CAN⚠ + +╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/ + + + + +const config = require('../config') +const l = console.log +const { cmd, commands } = require('../command') +const dl = require('@bochilteam/scraper') +const ytdl = require('yt-search'); +const fs = require('fs-extra') +var videotime = 60000 // 1000 min +const { getBuffer, getGroupAdmins, getRandom, h2k, isUrl, Json, runtime, sleep, fetchJson} = require('../lib/functions') +cmd({ + pattern: "yts", + alias: ["ytsearch"], + use: '.yts sameer kutti', + react: "🔎", + desc: "Search and get details from youtube.", + category: "search", + filename: __filename + +}, + +async(conn, mek, m,{from, l, quoted, body, isCmd, umarmd, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply}) => { +try{ +if (!q) return reply('*Please give me words to search*') +try { +let yts = require("yt-search") +var arama = await yts(q); +} catch(e) { + l(e) +return await conn.sendMessage(from , { text: '*Error !!*' }, { quoted: mek } ) +} +var mesaj = ''; +arama.all.map((video) => { +mesaj += ' *🖲️' + video.title + '*\n🔗 ' + video.url + '\n\n' +}); +await conn.sendMessage(from , { text: mesaj }, { quoted: mek } ) +} catch (e) { + l(e) + reply('*Error !!*') +} +}); \ No newline at end of file