Skip to content

Instantly share code, notes, and snippets.

@ishkumarr
Last active February 28, 2023 10:09
Show Gist options
  • Save ishkumarr/a5fa79a85b65b11ae9c689a4b739a831 to your computer and use it in GitHub Desktop.
Save ishkumarr/a5fa79a85b65b11ae9c689a4b739a831 to your computer and use it in GitHub Desktop.
const {Function,isPublic, getJson, getBuffer,prefix} = require("../lib/");
Function({pattern: 'naruto ?(.*)', fromMe: isPublic, desc: 'random naruto status videos', type: 'anime'}, async (m, text, client) => {
let { result} = await getJson ('https://raw.githubusercontent.com/mask-sir/api.mask-ser/main/Naruto.json')
let mask = result[Math.floor(Math.random()*result.length)]
const buttons = [
{buttonId: prefix + 'naruto', buttonText: {displayText: 'next'}, type: 1}]
const buttonMessage = {
video: {url: mask},
caption: "*Naruto uzumaki*",
footer: 'Arin Beta Ver 1.0',
buttons: buttons,
headerType: 4
}
client.sendMessage(m.jid, buttonMessage)
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment