Skip to content

Instantly share code, notes, and snippets.

@mifyow
Created December 2, 2025 09:29
Show Gist options
  • Select an option

  • Save mifyow/0640acb665a87c4634eee4bc67ccb8ba to your computer and use it in GitHub Desktop.

Select an option

Save mifyow/0640acb665a87c4634eee4bc67ccb8ba to your computer and use it in GitHub Desktop.
Uploaded via ESEMPE-MD
/*
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