Skip to content

Instantly share code, notes, and snippets.

@whatsappxyz
Last active May 10, 2025 15:31
Show Gist options
  • Select an option

  • Save whatsappxyz/4d41f985c3e75d36556e74950e4132bf to your computer and use it in GitHub Desktop.

Select an option

Save whatsappxyz/4d41f985c3e75d36556e74950e4132bf to your computer and use it in GitHub Desktop.
const { bot, getJson } = require('../lib/');
bot({
pattern: 'naruto ?(.*)',
fromMe: true,
desc: 'Naruto WhatsApp Status Generator',
type: 'Anime🪄'
}, async (message, match) => {
// API से डेटा प्राप्त करें
const apiUrl = 'https://raw.githubusercontent.com/mask-sir/api.mask-ser/main/Naruto.json';
const { result } = await getJson(apiUrl);
// रैंडम इमेज सेलेक्ट करें
const randomImage = result[Math.floor(Math.random() * result.length)];
// कैप्शन सेट करें
let caption = '*Nαɾυƚσ υȥυɱαƙι*';
// इमेज भेजें
return await message.sendFromUrl(randomImage, { caption });
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment