Created
May 10, 2026 07:36
-
-
Save ayashiiiyo/31859d38c8d4bb81fdf859649b9f92fb to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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