Skip to content

Instantly share code, notes, and snippets.

@ayashiiiyo
Created May 10, 2026 07:36
Show Gist options
  • Select an option

  • Save ayashiiiyo/31859d38c8d4bb81fdf859649b9f92fb to your computer and use it in GitHub Desktop.

Select an option

Save ayashiiiyo/31859d38c8d4bb81fdf859649b9f92fb to your computer and use it in GitHub Desktop.
let handler = async (m, { text, command }) => {
try {
if (!text) return m.reply(`*Example :* .${command} Halo`)
m.reply(global.wait)
let res = await fetch(`https://fgsi.dpdns.org/api/ai/zai?apikey=APIKEY_MU&text=${encodeURIComponent(text)}`)
let json = await res.json()
m.reply(json.data.answer)
} catch (e) {
m.reply(e.message)
}
}
handler.help = ['zai']
handler.command = ['zai']
handler.tags = ['ai']
export default handler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment