Lynxdecode / STORE-GACHAOTP
Base Code : Plugin Esm Author : Lynx decode Note : Jangan berharap banyak sama fitur gratisan !!, kalo ga cocok sama basemu sesuaikan sendiri.
OtherJavaScript
2 views
Base Code : Plugin Esm Author : Lynx decode Note : Jangan berharap banyak sama fitur gratisan !!, kalo ga cocok sama basemu sesuaikan sendiri.
/**
* ───「 FEATURE AUTHOR 」───
* 👤 Author : Lynx Decode
* 📞 Contact : +62 882-5804-1396
* 📢 Channel : https://whatsapp.com/channel/0029VbAnuii6GcGCu73oep1i
* ⚠️ Note : Keep credit to respect the creator!
* ─────────────────────────
* 📝 Plugin: Gacha OTP Checker
*/
import axios from 'axios';
let handler = async (m, { conn, args, usedPrefix, command }) => {
let type = args[0] ? args[0].toLowerCase() : '';
if (!['number', 'get'].includes(type)) {
return m.reply(`┌˚₊ ๑│ ɢ ᴀ ᴄ ʜ ᴀ ᴏ ᴛ ᴘ │๑˚₊ 📱
┇
│ 📌 *Format penggunaan:*
│ ${usedPrefix + command} number (Cek daftar nomor)
│ ${usedPrefix + command} get <jumlah> (Ambil OTP terbaru)
┇
└˚₊ ๑ ────────────── ๑˚₊
> © ERINE-AI`);
}
await m.react('⏳');
try {
if (type === 'number') {
const url = 'https://weak-deloris-nothing672434-fe85179d.koyeb.app/api/numbers';
const { data } = await axios.get(url, {
headers: {
'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36',
'Accept': 'application/json'
},
timeout: 15000
});
if (data && data.numbers) {
let txt = `┌˚₊ ๑│ ᴅ ᴀ ғ ᴛ ᴀ ʀ ɴ ᴏ ᴍ ᴏ ʀ │๑˚₊ 📱\n┇ \n`;
data.numbers.forEach((item, index) => {
txt += `│ [${index + 1}] 🏳️ ${item.flag} ${item.country} (+${item.countryCode})\n`;
txt += `│ 📞 Nomor: ${item.number}\n│ \n`;
});
txt += `└˚₊ ๑ ────────────── ๑˚₊\n> © ERINE-AI`;
await conn.sendMessage(m.chat, { text: txt }, { quoted: m });
} else {
throw new Error('Gagal mendapatkan data nomor.');
}
}
else if (type === 'get') {
let limit = parseInt(args[1]) || 5;
if (limit > 50) limit = 50;
const url = `https://weak-deloris-nothing672434-fe85179d.koyeb.app/api/otps?limit=${limit}`;
const { data } = await axios.get(url, {
headers: {
'User-Agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/149.0.0.0 Mobile Safari/537.36',
'Referer': 'https://www.ddxotp.xyz/',
'Accept': 'application/json'
},
timeout: 15000
});
if (data.success && data.otps) {
let txt = `┌˚₊ ๑│ ᴏ ᴛ ᴘ ᴛ ᴇ ʀ ʙ ᴀ ʀ ᴜ │๑˚₊ ✉️\n┇ \n`;
data.otps.forEach((item, index) => {
let msgClean = item.message ? item.message.replace(/\\n/g, ' ') : '-';
txt += `│ 🕒 *Waktu:* ${item.time}\n`;
txt += `│ 🏳️ *Negara:* ${item.flag} ${item.country}\n`;
txt += `│ 📞 *Nomor:* +${item.number}\n`;
txt += `│ 👤 *Sender:* ${item.sender}\n`;
txt += `│ 🔑 *OTP:* ${item.otp ? item.otp : 'Link / Kosong'}\n`;
txt += `│ 💬 *Pesan:* ${msgClean}\n│ \n`;
});
txt += `└˚₊ ๑ ────────────── ๑˚₊\n> © ERINE-AI`;
await conn.sendMessage(m.chat, { text: txt }, { quoted: m });
} else {
throw new Error('Gagal mendapatkan data OTP.');
}
}
await m.react('✅');
} catch (e) {
console.error(e);
await m.react('❌');
m.reply(`┌˚₊ ๑│ s ʏ s ᴛ ᴇ ᴍ ᴇ ʀ ʀ ᴏ ʀ │๑˚₊ ❌\n┇ Terjadi kesalahan:\n┇ ${e.message || e}\n└˚₊ ๑ ────────────── ๑˚₊\n> © ERINE-AI`);
}
};
handler.help = ['gachaotp <opsi>'];
handler.tags = ['tools'];
handler.command = /^gachaotp$/i;
handler.limit = true;
export default handler;