Lynxdecode / GITHUB STALKER
Base Code : Plugin Esm Author : Lynx decode Note : Nga sesuai sama basemu? sesuaikan sendiri yaa
OtherJavaScript
3 views
Base Code : Plugin Esm Author : Lynx decode Note : Nga sesuai sama basemu? sesuaikan sendiri yaa
/**
* ───「 FEATURE AUTHOR 」───
* 👤 Author : Lynx Decode
* 📞 Contact : +62 882-5804-1396
* 📢 Channel : https://whatsapp.com/channel/0029VbAnuii6GcGCu73oep1i
* ⚠️ Note : Keep credit to respect the creator!
* ─────────────────────────
* 📝 Plugin: GitHub Stalker (Universal)
*/
import fetch from 'node-fetch'
let handler = async (m, { conn, text, usedPrefix, command }) => {
if (!text) return m.reply(`*Format salah!*\nGunakan: ${usedPrefix + command} <username_github>`)
try {
await m.react('⏳')
let res = await fetch(`https://api.soonex.biz.id/v1/stalk/github?username=${encodeURIComponent(text)}`)
let json = await res.json()
if (!json.status || !json.data) throw new Error('User tidak ditemukan.')
let data = json.data
let infoText = `🔍 *GITHUB STALK*\n\n` +
`• *Username:* ${data.username}\n` +
`• *Name:* ${data.name || '-'}\n` +
`• *Bio:* ${data.bio || '-'}\n` +
`• *Company:* ${data.company || '-'}\n` +
`• *Location:* ${data.location || '-'}\n` +
`• *Repo:* ${data.public_repos} | *Gist:* ${data.public_gists}\n` +
`• *Followers:* ${data.followers} | *Following:* ${data.following}\n` +
`• *URL:* ${data.url}`
await conn.sendMessage(m.chat, {
image: { url: data.avatar },
caption: infoText
}, { quoted: m })
await m.react('✅')
} catch (e) {
await m.react('❌')
m.reply(`❌ *Terjadi kesalahan:* ${e.message}`)
}
}
handler.help = ['githubstalk <username>', 'stalkgh <username>']
handler.tags = ['tools']
handler.command = /^(githubstalk|stalkgh)$/i
export default handler