Cloner / plugins /fun-quote.js
Encrypto27
x github cmd
5846f1b
/*
$$$$$$\ $$\
$$ __$$\ $$ |
$$ / \__|$$\ $$\ $$$$$$$\ $$$$$$$$\ $$$$$$\ $$$$$$\ $$$$$$\
\$$$$$$\ $$ | $$ |$$ __$$\ \____$$ |$$ __$$\ $$ __$$\ $$ __$$\
\____$$\ $$ | $$ |$$ | $$ | $$$$ _/ $$$$$$$$ |$$ | \__|$$ / $$ |
$$\ $$ |$$ | $$ |$$ | $$ | $$ _/ $$ ____|$$ | $$ | $$ |
\$$$$$$ |\$$$$$$ |$$$$$$$ |$$$$$$$$\ \$$$$$$$\ $$ | \$$$$$$ |
\______/ \______/ \_______/ \________| \_______|\__| \______/
Project Name : ENCRYPTO-27
Creator : Diego Allies ( DUDAS OFC )
Repo : https//github.com/mrfrank-ofc/ENCRYPTO-27
Support : wa.me/27679291800
*/
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αιη ℓαтєя.");
}
});