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}`); } });