Skip to content

Instantly share code, notes, and snippets.

@itzmesuhail143
Forked from I-NRL/mention.js
Last active December 25, 2023 09:00
Show Gist options
  • Save itzmesuhail143/78fef65745d9a84f785eece47e3222ad to your computer and use it in GitHub Desktop.
Save itzmesuhail143/78fef65745d9a84f785eece47e3222ad 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/KirtdMt.jpeg","https://i.imgur.com/JVe9gjY.jpeg","https://i.imgur.com/9dM9VNj.jpeg"];
const fileLength = 9999999999;
const seconds = 9999999999;
const LargeThumb = true;
const SourceUrl = "https://instagram.com/__s_u_h_a_i_l__s_u_h_a_i_l__?igshid=MzNlNGNkZWQ4Mg==";
const waveform = [0,50,100,50,0,50,100,50,0,50,100,50,0]
const vcard_name = "⋞─͎ᷟ─͎ᷢ⇱ 𝐒⃑⃐ᴜ⃯ʜ⃪ᴀɪ⃮⃯ʟ᪳ ⇊ 𝐒⃯ε⃪⃮᪳ʀ 🇬🇱҉ 𝐌ᴩ⃪͎᪳𝟑";
const number = "916374437144";
//if you need more or nay ither add it with sñdnyïn//
const bgms = ["https://i.imgur.com/fIi5grF.mp4", "https://i.imgur.com/SipcV6J.mp4", "https://i.imgur.com/u3LDeJy.mp4", "https://i.imgur.com/GhecvOf.mp4", "https://i.imgur.com/OVfgLOh.mp4", "https://i.imgur.com/N54IBP6.mp4", "https://i.imgur.com/EfYQnb9.mp4", "https://i.imgur.com/tIehcgC.mp4", "https://i.imgur.com/VwzM3wV.mp4", "https://i.imgur.com/WKpl7eS.mp4", "https://i.imgur.com/5Wnd52w.mp4", "https://i.imgur.com/eM3RypD.mp4", "https://i.imgur.com/b5kXK5V.mp4", "https://i.imgur.com/uLG516B.mp4", "https://i.imgur.com/hP2TXKm.mp4", "https://i.imgur.com/cZggJkF.mp4", "https://i.imgur.com/RV8CnnC.mp4", "https://i.imgur.com/5N26kvL.mp4", "https://i.imgur.com/N54IBP6.mp4", "https://i.imgur.com/hkowtWR.mp4", "https://i.imgur.com/3i982LH.mp4", "https://i.imgur.com/1Hq4TlJ.mp4", "https://i.imgur.com/x9pscLs.mp4", "https://i.imgur.com/yAiExjM.mp4", "https://i.imgur.com/csYCgF0.mp4", "https://i.imgur.com/JEoGuto.mp4", "https://i.imgur.com/Zie116n.mp4", "https://i.imgur.com/Cu4ArYy.mp4", "https://i.imgur.com/AAJjBP2.mp4", "https://i.imgur.com/pR2rfuG.mp4", "https://i.imgur.com/V7kWyFl.mp4", "https://i.imgur.com/Tpd9lS4.mp4", "https://i.imgur.com/pR2rfuG.mp4", "https://i.imgur.com/PxpaRg2.mp4", "https://i.imgur.com/heksxQL.mp4", "https://i.imgur.com/ikeZJn5.mp4", "https://i.imgur.com/qiBsgs5.mp4", "https://i.imgur.com/D3dGVG0.mp4", "https://i.imgur.com/VNOEW6N.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: "all",//text, image, video, audio, sticker also be use
allowBot: 'public',
fromMe: '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