Last active
December 31, 2025 08:24
-
-
Save Reyz2902/800087cf00dbe84dae66b8fc2398e1a4 to your computer and use it in GitHub Desktop.
Uploaded via Theresa
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
| /*• Nama Fitur : toqin | |
| • Type : Plugin ESM | |
| • Link Channel : https://whatsapp.com/channel/0029VbBt4432f3ENa8ULoM1J | |
| • Author : Z7 | |
| */ | |
| import { Buffer } from "buffer"; | |
| const DEFAULT_PROMPT = ` | |
| Buat saya memakai kostum Qin Shi Huang dari anime Record of Ragnarok, termasuk desain penutup mata dan pakaian yang dikenakan Qin Shi Huang di dalam anime Record of Ragnarok. Buatkan pose khasnya. | |
| Characterized by stark cinematic lighting and intense contrast. Captured with a slightly low, upward-facing angle that dramatizes the subject's jawline and neck, the composition evokes quiet dominance and sculptural elegance. The background is a deep, saturated crimson red, creating a bold visual clash with the model's luminous skin and dark wardrobe. | |
| Lighting is tightly directional, casting warm golden highlights on one side of the face while plunging the other into velvety shadow, emphasizing bone structure with almost architectural precision. | |
| The subject's expression is unreadable, cool-toned eyes half-lidded, lips relaxed—suggesting detachment or quiet defiance. The model wears a highly detailed and realistic costume inspired by the anime, preserving anime-like colors and textures. | |
| Minimal retouching preserves skin texture and slight imperfections, adding realism. Editorial tension is created through close cropping, tonal control, and the almost oppressive intimacy of the camera's proximity. | |
| Make the face and hairstyle as similar as possible to the one in the photo. Pertahankan gaya rambut dan warna yang sama. Buat kostumnya sangat detail dan realistis. Gunakan warna dan tekstur yang mirip anime. | |
| `.trim(); | |
| let handler = async (m, { conn }) => { | |
| try { | |
| let q = m.quoted ? m.quoted : m; | |
| let mime = (q.msg || q).mimetype || ""; | |
| if (!mime.startsWith("image/")) { | |
| return m.reply("🍂 *Reply gambar yang ingin diedit.*"); | |
| } | |
| await conn.sendMessage(m.chat, { | |
| react: { text: "⏳", key: m.key } | |
| }); | |
| let buffer = await q.download(); | |
| if (!buffer) { | |
| return m.reply("🍂 *Gagal membaca gambar.*"); | |
| } | |
| let imageBase64 = Buffer.from(buffer).toString("base64"); | |
| let payload = { | |
| image: imageBase64, | |
| prompt: DEFAULT_PROMPT | |
| }; | |
| let res = await fetch("https://ai-studio.anisaofc.my.id/api/edit-image", { | |
| method: "POST", | |
| headers: { | |
| "User-Agent": "Mozilla/5.0", | |
| "Accept": "*/*", | |
| "Content-Type": "application/json", | |
| "Origin": "https://ai-studio.anisaofc.my.id", | |
| "Referer": "https://ai-studio.anisaofc.my.id/" | |
| }, | |
| body: JSON.stringify(payload) | |
| }); | |
| let result; | |
| try { | |
| result = await res.json(); | |
| } catch { | |
| return m.reply("🍂 *Respon server tidak valid.*"); | |
| } | |
| if (!result?.imageUrl) { | |
| return m.reply( | |
| "🍂 *Gagal mengedit gambar.*\nServer tidak mengembalikan hasil edit." | |
| ); | |
| } | |
| await conn.sendMessage( | |
| m.chat, | |
| { image: { url: result.imageUrl } }, | |
| { quoted: m } | |
| ); | |
| } catch (e) { | |
| m.reply("🍂 *Terjadi kesalahan saat memproses gambar.*"); | |
| } finally { | |
| await conn.sendMessage(m.chat, { | |
| react: { text: "", key: m.key } | |
| }); | |
| } | |
| }; | |
| handler.help = ["toqin"]; | |
| handler.tags = ["ai"]; | |
| handler.command = /^(toqin)$/i; | |
| handler.premium = true; | |
| handler.register = true; | |
| export default handler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment