Skip to content

Instantly share code, notes, and snippets.

@ADK-RICHU
Forked from mask-sir/Naruto.js
Last active September 8, 2023 03:33
Show Gist options
  • Select an option

  • Save ADK-RICHU/720f026a713d4e19a3575304bd44cf26 to your computer and use it in GitHub Desktop.

Select an option

Save ADK-RICHU/720f026a713d4e19a3575304bd44cf26 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: "*© ᴀᴅᴋ ʀᴉᴄⲏᴜ ᴘᴜʙᴌᴉᴄ ʙᴏᴛ*"})
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment