Created
April 30, 2024 09:27
-
-
Save sataniceypz/a1d64ce6c672c44fe93b2ae3d7de5677 to your computer and use it in GitHub Desktop.
Izumi owner plugin
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
const { getJson, getBuffer, command, isPrivate, sleep } = require("../lib/"); | |
command({ | |
pattern: "owner", | |
fromMe: isPrivate, | |
desc: "Izumi Support", | |
type: "support" | |
}, async (message) => { | |
const name = 'Eʏᴘᴢ ☔', title = "Iᴢᴜᴍɪ Sᴜᴘᴘᴏʀᴛ🧚♂️", number = '917994489493', body = "Eʏᴘᴢ☔"; | |
const image = "https://i.imgur.com/JS0TpvM.jpeg", sourceUrl = 'https://github.com/sataniceypz/Izumi-v2'; | |
const logo = await getBuffer(image); | |
const vcard = `BEGIN:VCARD\nVERSION:3.0\nFN:${name}\nORG: powered by Izumi;\nTEL;type=CELL;type=VOICE;waid=${number}:${number}\nEND:VCARD`; | |
const adon = { title, body, thumbnail: logo, mediaType: 1, mediaUrl: sourceUrl, sourceUrl, showAdAttribution: true, renderLargerThumbnail: false }; | |
await message.client.sendMessage(message.jid, { contacts: { displayName: name, contacts: [{ vcard }] }, contextInfo: { externalAdReply: adon } }, { quoted: message }); | |
}); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment