Lynxdecode / CICI-AI & DOLA
Base Code : Plugin Esm Author : Lynx decode Note : jangan di spam gunakan bijak. kalo ga sesuai sama base masing masing, sesuaikan sendiri yaa
UtilityJavaScript
7 views
Base Code : Plugin Esm Author : Lynx decode Note : jangan di spam gunakan bijak. kalo ga sesuai sama base masing masing, sesuaikan sendiri yaa
/**
* ───「 FEATURE AUTHOR 」───
* 👤 Author : Lynx Decode
* 📞 Contact : +62 882-5804-1396
* 📢 Channel : https://whatsapp.com/channel/0029VbAnuii6GcGCu73oep1i
* ⚠️ Note : Keep credit to respect the creator!
* ─────────────────────────
* 📝 Plugin: Cici AI (Universal)
*/
import fetch from 'node-fetch'
let handler = async (m, { conn, text, usedPrefix, command }) => {
if (!text) return m.reply(`*Format salah!*\nGunakan: ${usedPrefix + command} <pertanyaan>`)
try {
await m.react('⏳')
let res = await fetch(`https://api.ikyyxd.my.id/ai/cici?prompt=${encodeURIComponent(text)}`)
let json = await res.json()
if (!json.status || !json.result || !json.result.reply) throw new Error('API sedang bermasalah.')
await conn.sendMessage(m.chat, { text: `🤖 *Cici-AI*\n\n${json.result.reply}` }, { quoted: m })
await m.react('✅')
} catch (e) {
await m.react('❌')
m.reply(`❌ *Terjadi kesalahan:* ${e.message}`)
}
}
handler.help = ['cici <pertanyaan>', dola 'pertanyaan']
handler.tags = ['ai']
handler.command = /^(cici|dola)$/i
export default handler