|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
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 DUDAS* |
|
`; |
|
return reply(message); |
|
} catch (e) { |
|
console.error("Error fetching quote:", e); |
|
reply("Β’ΟΟ
ββ Ξ·ΟΡ ΖΡΡΒ’Π½ Ξ± qΟ
ΟΡΡ. ΟβΡΞ±ΡΡ ΡΡΡ Ξ±gΞ±ΞΉΞ· βΞ±ΡΡΡ."); |
|
} |
|
}); |
|
|