Skip to content

Instantly share code, notes, and snippets.

@sksbot7
Forked from Akshay-Eypz/owner.js
Last active August 7, 2024 17:33
Show Gist options
  • Select an option

  • Save sksbot7/8767fba9f8ac5167ade0620def5d0230 to your computer and use it in GitHub Desktop.

Select an option

Save sksbot7/8767fba9f8ac5167ade0620def5d0230 to your computer and use it in GitHub Desktop.
Owner
const { izumi, mode } = require('../lib/');
izumi({
pattern: "owner$",
fromMe: mode,
desc: "Bot Owner",
type: "user",
}, async (message, match, client) => {
try {
const name = 'S Y 4 M', title = "IG|_sks_bot_", number = '919888280858', body = "SY4M!";
const image = "https://i.imgur.com/zL8iMBv.jpeg", sourceUrl = 'https://chat.whatsapp.com/DAD1FGg9dES0FpxtrUEheo';
const vcard = `BEGIN:VCARD\nVERSION:3.0\nFN:${name}\nTEL;type=CELL;type=VOICE;waid=${number}:${number}\nEND:VCARD`;
await client.sendMessage(message.jid, {
contacts: {
contacts: [{ vcard }]
},
contextInfo: {
externalAdReply: {
title: `${title}`,
body: `${body}`,
sourceUrl: `${sourceUrl}`,
mediaUrl: `${sourceUrl}`,
mediaType: 1,
showAdAttribution: true,
renderLargerThumbnail: true,
thumbnailUrl: `${image}`
}
}
});
} catch (error) {
console.error('Error occurred:', error);
await client.sendMessage(message.jid, { text: '```Error occurred while executing the command.```' });
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment