Skip to content

Instantly share code, notes, and snippets.

@itzmesuhail143
Forked from Loki-Xer/mention.js
Last active May 3, 2024 10:11
Show Gist options
  • Save itzmesuhail143/2007bdfbf73945e67e1a1a057365a69a to your computer and use it in GitHub Desktop.
Save itzmesuhail143/2007bdfbf73945e67e1a1a057365a69a to your computer and use it in GitHub Desktop.
MADE FOR JARVIS MD MENTION ❤
/*------------------------------------------------------------------------------------------------------------------------------------------------------
Copyright (C) 2023 Loki - Xer.
Licensed under the GPL-3.0 License;
you may not use this file except in compliance with the License.
Jarvis - Loki-Xer
------------------------------------------------------------------------------------------------------------------------------------------------------*/
const { System, getBuffer, toAudio } = require("../lib/");
const logo = 'https://i.imgur.com/Gy2EztE.jpeg';
const audios = ["https://i.imgur.com/vCFL5oG.mp4", "https://i.imgur.com/yDsSsvX.mp4", "https://i.imgur.com/0NZsy2r.mp4", "https://i.imgur.com/ngjc5BZ.mp4", "https://i.imgur.com/xNs3CE8.mp4", "https://i.imgur.com/m8jbQr3.mp4", "https://i.imgur.com/CuEAyMH.mp4", "https://i.imgur.com/BEGsACV.mp4", "https://i.imgur.com/wBd0Eih.mp4"];
System({ pattern: "mnew", on: "all", fromMe: 'public', desc: "mention audio" }, async (message, match) => {
if (!message.mention.isOwner) return;
try {
const audio = audios[Math.floor(Math.random() * audios.length)];
const Audio = await getBuffer(audio);
const image2 = await getBuffer(logo);
const res = await toAudio(Audio);
await message.client.sendMessage(message.jid, {
audio: res,
mimetype: 'audio/mpeg',
ptt: true,
waveform: [00, 99, 00, 99, 00, 99, 00],
contextInfo: {
externalAdReply: {
title: "◉─━〔 𝙎𝙐𝞖𝞓𝞘𝙇-𝞑𝞗𝙏-𝞛𝘿 〕━─◉",
body: "≛͢⃝⃖✯⎈͢𝑺᪵𝑼͢𝑯𝑨𝑰𝑳᪵𖠇𝑺᪵𝑬𝑹᭄⎈͢ ≛⃝⃗➳",
renderLargerThumbnail: false,
thumbnail: image2,
mediaType: 1,
mediaUrl: 'https://www.instagram.com/__s_u_h_a_i_l__s_u_h_a_i_l__?igsh=MzNlNGNkZWQ4Mg==',
sourceUrl: "https://www.instagram.com/__s_u_h_a_i_l__s_u_h_a_i_l__?igsh=MzNlNGNkZWQ4Mg==",
showAdAttribution: true
}
}
}, { quoted: message });
} catch (error) {
console.log(error);
process.exist(0);
}
});
// mention audio for Jarvis-md
// credit : @Loki-Xer
// Thanks to @inrl-official
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment