Spaces:
Runtime error
Runtime error
File size: 944 Bytes
8d8b0ad |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 |
const axios = require('axios');
const { cmd, commands } = require('../command');
cmd({
pattern: "loli",
alias: ["lolii"],
desc: "Fetch a random anime girl image.",
category: "fun",
react: "π±",
filename: __filename
},
async (conn, mek, m, { from, quoted, body, isCmd, command, args, q, isGroup, sender, senderNumber, botNumber2, botNumber, pushname, isMe, isOwner, groupMetadata, groupName, participants, groupAdmins, isBotAdmins, isAdmins, reply }) => {
try {
const apiUrl = `https://api.waifu.pics/sfw/waifu`;
const response = await axios.get(apiUrl);
const data = response.data;
await conn.sendMessage(from, { image: { url: data.url }, caption: 'πΈ *SUBZERO MD RANDOM ANIME GIRL IMAGES* πΈ\n\n\n *𧬠© SubZero MD BY Mr Frank OFC*' }, { quoted: mek });
} catch (e) {
console.log(e);
reply(`*Error Fetching Anime Girl image*: ${e.message}`);
}
});
|