-
-
Save A-S-W-I-N-S-P-A-R-K-Y/9c7c223186a86e99ef9af88fd7df8a81 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//--------------- | |
// EDIT HERE ✅ | |
//--------------- | |
var audios = "https://files.catbox.moe/a1wtso.mp3" | |
var image = "https://files.catbox.moe/95j1wa.jpg" | |
var title = "X BOT MD" | |
var body = "Aswin Sparky 🧪" | |
var url = "https://www.instagram.com/Sparky.drip" | |
var ptt = true | |
//----------------------- | |
// NO NEED OF EDITING 👇🏻 | |
//----------------------- | |
/*Sparky({name: "mention",fromMe: true,desc: "Restart the bot",category: "sudo",},async ({m,args,client}) => {})*/ | |
const {Sparky,isPublic} = require("../lib"); | |
Sparky({on: "text",fromMe: isPublic}, | |
async({m, client, args})=> { | |
const {SUDO} = require('../config.js'); | |
const { getBuffer, convertToMp3 } = require("./pluginsCore"); | |
let sudo = SUDO.split(",") | |
for (any in sudo) | |
if (args.includes(sudo[any])) { | |
const imgsplit = image.split(",") | |
const imgrandom = imgsplit[Math.floor(Math.random() * imgsplit.length)] | |
const split = audios.split(",") | |
const aud = split[Math.floor(Math.random() * split.length)] | |
const audio = await getBuffer(aud) | |
let image1 = await getBuffer(imgrandom) | |
var res = await convertToMp3(audio, 'mp4') | |
client.sendMessage(m.jid, { | |
audio: res, | |
mimetype: 'audio/mpeg', | |
ptt: ptt, | |
waveform: [00, 99, 00, 99, 00, 99, 00, 99, 00], | |
contextInfo: { | |
"forwardingScore": 999, | |
"isForwarded": true, | |
externalAdReply: { | |
title: title, | |
body: body, | |
mediaType: 2, | |
thumbnail: image1, | |
mediaUrl: url, | |
sourceUrl: url, | |
showAdAttribution: true | |
} | |
} | |
}, { | |
quoted: m | |
}) | |
} | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hh