Skip to content

Instantly share code, notes, and snippets.

@mask-sir
Last active October 16, 2023 12:24
Show Gist options
  • Select an option

  • Save mask-sir/debfea6654c6c3e85df67d7768eb8e39 to your computer and use it in GitHub Desktop.

Select an option

Save mask-sir/debfea6654c6c3e85df67d7768eb8e39 to your computer and use it in GitHub Desktop.
const {Function,isPublic, getJson, getBuffer,prefix} = require("../lib/");
Function({
pattern: 'naruto ?(.*)',
fromMe: isPublic,
desc: 'Sends random naruto videos',
type: 'misc',
}, async (message, match) => {
let { result} = await getJson ('https://gist.githubusercontent.com/lokixjs/c5478d203d8bb889af1627b610360b4b/raw/bd1ad9843710c6b9cbdb8a69fd732ee6db11b302/naruto.json')
let loki = result[Math.floor(Math.random()*result.length)]
await message.client.sendMessage(message.chat, {video: {url: `${loki}`}, caption: "*Naruto uzumaki 😹💭*"})
});
@S-U-P-E-R-I-O-R
Copy link

G

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment