Skip to content

Instantly share code, notes, and snippets.

@Loki-Xer
Forked from I-NRL/mention.js
Last active January 6, 2024 12:32
Show Gist options
  • Save Loki-Xer/1f8132e01852ccd60bf6369230becf7c to your computer and use it in GitHub Desktop.
Save Loki-Xer/1f8132e01852ccd60bf6369230becf7c to your computer and use it in GitHub Desktop.
const {inrl, getBuffer} = require('../lib');
/*
inrl({
pattern: "mention",
type: "misc",
desc: external
}, async (message, match) => {
*/
const title = "ʟᴏᴋɪ-хᴇʀ";
const body = "";
const thumbnail = ["https://i.imgur.com/ep3UbBP.jpg"];
const fileLength = 9999999999;
const seconds = 99999999999;
const LargeThumb = false;
const SourceUrl = "https://www.instagram.com/reel/ʟᴏᴋɪ-xᴇʀ";
const waveform = [0,50,100,50,0,50,100,50,0,50,100,50,0]
const vcard_name = "ʟᴏᴋɪ-хᴇʀ";
const number = "917025673121";
//if you need more or nay ither add it with sñdnyïn//
const bgms = ["https://i.imgur.com/W3kXXsy.mp4"]
let option = {
fileLength,
seconds,
/*waveform,*/
linkPreview: {
title,
body,
thumbnailUrl: thumbnail[Math.floor(Math.random() * thumbnail.length)],
showAdAttribution: true,
mediaType: 2,
renderLargerThumbnail: LargeThumb,
mediaUrl: SourceUrl,
sourceUrl: SourceUrl
},
mimetype: "audio/mpeg",
forwardType: "audio",
ptt: true,
quoted: {
key: {
fromMe: false,
participant: "0@s.whatsapp.net",
remoteJid: "status@broadcast"
},
message: {
'contactMessage': {
'displayName': `${vcard_name}`,
'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;${vcard_name},;;;\nFN:${vcard_name},\nitem1.TEL;waid=${number}:${number}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`,
'jpegThumbnail': undefined//await getBuffer(thumbnail[Math.floor(Math.random() * thumbnail.length)])
}
}
}
}
inrl({
on: "text",
allowBot: true
}, async (m) => {
if(!m.client.mention.isOwner) return;
return await m.forwardMessage(m.jid, bgms[Math.floor(Math.random() * bgms.length)], option);
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment