Created
December 20, 2025 07:56
-
-
Save manzxy/5e4d83a6f4b70724520fd76591fcdf56 to your computer and use it in GitHub Desktop.
Uploaded via YogiriMD
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
| /** | |
| Fitur:["Flux Ai"] | |
| Sumber:["https://whatsapp.com/channel/0029VbBS8ys0G0XnmJFRiV2v"] | |
| **/ | |
| import axios from "axios" | |
| let handler = async (m, { conn, text }) => { | |
| if (!text) return m.reply("Contoh:\n.flux cyberpunk girl") | |
| try { | |
| const { data } = await axios.post( | |
| "https://fluxai.pro/api/tools/fast", | |
| { prompt: text }, | |
| { timeout: 3e4 } | |
| ) | |
| const img = data?.data?.imageUrl | |
| if (!data?.ok || !img) throw 0 | |
| await conn.sendMessage( | |
| m.chat, | |
| { image: { url: img }, caption: `🖼️ FLUX AI\n\n${text}` }, | |
| { quoted: m } | |
| ) | |
| } catch { | |
| m.reply("❌ Gagal generate image") | |
| } | |
| } | |
| handler.command = /^flux$/i | |
| handler.tags = ["ai"] | |
| handler.help = ["flux <prompt>"] | |
| handler.limit = true | |
| export default handler |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment