Last active
December 10, 2022 22:14
-
-
Save ishkumarr/d398cab9606a330b34e0ab6c2279b07e to your computer and use it in GitHub Desktop.
This file contains 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
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: 'Lord Arin', | |
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