Skip to content

Instantly share code, notes, and snippets.

@techgod143
Last active October 24, 2023 06:18
Show Gist options
  • Save techgod143/59e8c34a16d4d3f11d1f52826a0c7533 to your computer and use it in GitHub Desktop.
Save techgod143/59e8c34a16d4d3f11d1f52826a0c7533 to your computer and use it in GitHub Desktop.
FD hermit
const {
Function,
parsedJid,
getBuffer
} = require("../lib/");
const url1 = 'https://i.imgur.com/QfF6O95.jpeg'
const url2 = 'https://i.imgur.com/QfF6O95.jpeg'
Function({
pattern: 'fd ?(.*)',
fromMe: true,
type: 'misc'
}, async (m, text, client) => {
if (!m.reply_message) return await m.reply('*Reply to a message*')
if (!text) return await m.reply('*Give me a jid*\nExample .fd jid1 jid2 jid3 jid4 ...')
const image1 = await getBuffer(url1)
const image2 = await getBuffer(url2)
const options = {}
options.contextInfo = {
forwardingScore: 5, // change it to 999 for many times forwarded
isForwarded: false,
}
options.linkPreview = {
title: ' Tech God Sir one and only king๐Ÿ’– ',
body: 'ฤช.am Tech God Siโค๏ธ๐Ÿ’ซ',
mediaType: 2,
thumbnail: image2,
mediaUrl: 'https://youtube.com/shorts/@techgod143', // insta link for video
sourceUrl: 'https://wa.me/919012008456?text=_*I+love+You+Tech+God+Sir+แŸšสœแด‡สŸสŸแด+แดแด€sแด‹+sแด‡ส€+ส™ษชษข า“แด€ษด+แด ส€แด+๐Ÿช„*_',
showAdAttribution: false
}
options.filesize = 99999999999;
options.quoted = {
key: {
fromMe: false,
participant: `0@s.whatsapp.net`,
...(m.jid ? {
remoteJid: `status@broadcast`
} : {})
},
message: {
'contactMessage': {
'displayName': '๐Ž๐๐„ ๐€๐๐ƒ ๐Ž๐๐‹๐˜ ๐Š๐ˆ๐๐† Tech God Sir๐Ÿ˜ป',
'vcard': `BEGIN:VCARD\nVERSION:3.0\nN:XL;'๐Ž๐๐„ ๐€๐๐ƒ ๐Ž๐๐‹๐˜ King _Tech God Sir_๐Ÿ˜ป',;;;\nFN:'๐Ž๐๐„ ๐€๐๐ƒ ๐Ž๐๐‹๐˜ ๐Š๐ˆ๐๐† _Tech God Sir_๐Ÿ˜ป',\nitem1.TEL;waid=${m.sender.split('@')[0]}:${m.sender.split('@')[0]}\nitem1.X-ABLabel:Ponsel\nEND:VCARD`,
'jpegThumbnail': image1
}
}
}
if (/audio/.test(m.mine)) {
options.duration = 2000001355
options.ptt = true
}
options.audiowave = [99,0,99,0,99]
for (let jid of parsedJid(text)) {
await client.forwardMessage(jid, m.quoted_message, options)
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment