Cloner / plugins /fun-quote.js
𝗗𝗔π—₯π—₯π—˜π—Ÿπ—Ÿ π— π—¨π—–π—›π—˜π—₯π—œ ⚑
❄️ SUBZERO MD V 1.0.3 ❄️
c1dc9d9 unverified
raw
history blame
1.66 kB
/*
$$$$$$\ $$\
$$ __$$\ $$ |
$$ / \__|$$\ $$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\
\$$$$$$\ $$ | $$ |$$ __$$\ \____$$ |$$ __$$\ $$ __$$\ $$ __$$\
\____$$\ $$ | $$ |$$ | $$ | $$$$ _/ $$$$$$$$ |$$ | \__|$$ / $$ |
$$\ $$ |$$ | $$ |$$ | $$ | $$ _/ $$ ____|$$ | $$ | $$ |
\$$$$$$ |\$$$$$$ |$$$$$$$ |$$$$$$$$\ \$$$$$$$\ $$ | \$$$$$$ |
\______/ \______/ \_______/ \________| \_______|\__| \______/
Project Name : SubZero MD
Creator : Darrell Mucheri ( Mr Frank OFC )
Repo : https//github.com/mrfrank-ofc/SUBZERO-MD
Support : wa.me/18062212660
*/
const axios = require('axios');
const { cmd } = require('../command');
cmd({
pattern: "quote",
desc: "Get a random inspiring quote.",
category: "fun",
react: "πŸ’¬",
filename: __filename
},
async (conn, mek, m, { from, reply }) => {
try {
const response = await axios.get('https://api.gifted.my.id/api/fun/quotes?apikey=gifted');
const quote = response.data;
const message = `
πŸ’¬ "${quote.content}"
- ${quote.author}
*QUOTES BY MR FRANK OFC*
`;
return reply(message);
} catch (e) {
console.error("Error fetching quote:", e);
reply("Β’ΟƒΟ…β„“βˆ‚ Ξ·ΟƒΡ‚ Ζ’Ρ”Ρ‚Β’Π½ Ξ± qΟ…ΟƒΡ‚Ρ”. ρℓєαѕє тяу Ξ±gΞ±ΞΉΞ· ℓαтєя.");
}
});