Spaces:
Sleeping
Sleeping
File size: 1,326 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 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 |
/*╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺
⭐PROJECT NAME:
SUBZERO WHATSAPP MD BOT
⭐DEVELOPER
MR FRANK
⭐ MY TEAM
XERO CODERS
⭐ OUR WEBSITE
https://github.com/ZwSyntax/SUBZERO-MD
© TRY DECRYPTING IF YOU CAN⚠
╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺╺*/
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αιη ℓαтєя.");
}
});
|