Created
December 2, 2025 09:29
-
-
Save mifyow/0640acb665a87c4634eee4bc67ccb8ba to your computer and use it in GitHub Desktop.
Uploaded via ESEMPE-MD
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
| /* | |
| REACT CH | |
| • Type : Plugin ESM | |
| • Author : MifNity | |
| • ApiKey : https://asitha.top/login?ref=mamixx157435 | |
| */ | |
| import fetch from 'node-fetch'; | |
| let handler = async (m, { conn, args, usedPrefix, command }) => { | |
| if (args.length < 2) { | |
| return m.reply(`Format salah!\n\nContoh:\n${usedPrefix + command} <link> <emoji1> <emoji2>`); | |
| } | |
| const link = args.shift(); | |
| let emojiList = args.join(" ") | |
| .replace(/,/g, " ") | |
| .split(/\s+/) | |
| .filter(e => e.trim()); | |
| const emoji = emojiList.join(","); | |
| const apiKey = ""; // api : https://asitha.top/login?ref=mamixx157435 | |
| try { | |
| const url = `https://react.whyux-xec.my.id/api/rch?link=${encodeURIComponent(link)}&emoji=${encodeURIComponent(emoji)}`; | |
| const res = await fetch(url, { | |
| method: "GET", | |
| headers: { "x-api-key": apiKey } | |
| }); | |
| let json = await res.json(); | |
| if (json.creator) delete json.creator; | |
| let text = ""; | |
| if (json.success) { | |
| text = | |
| `╭───❰ *React Result* ❱ | |
| │ 🔗 *Link:* ${json.link || "-"} | |
| │ 😄 *Emojis:* ${json.emojis || "-"} | |
| ╰───────────────`; | |
| } else { | |
| text = | |
| `╭───❰ *React Gagal* ❱ | |
| │ 📌 ${json.message || "Tidak diketahui"} | |
| ╰───────────────`; | |
| } | |
| m.reply(text); | |
| } catch (e) { | |
| m.reply("❌ Error saat mengambil data API!"); | |
| } | |
| }; | |
| handler.command = /^(rch|react)$/i; | |
| handler.help = ["reactch <link> <emoji1> <emoji2>"]; | |
| handler.tags = ["tools"]; | |
| export default handler; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment