// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "uidall", aliases: ["alluid", "uidlist"], version: "2.0.0", author: "Zihad", countDown: 2, role: 0, shortDescription: "Get all group member UID", longDescription: "Shows all member names, UID and Facebook profile links.", category: "group", guide: "{pn}" }, onStart: async function ({ api, event, message }) { try { const threadID = event.threadID; const info = await api.getThreadInfo(threadID); if (!info || !info.participantIDs) { return message.reply( "❌ Group member information পাওয়া যায়নি।" ); } const members = info.participantIDs; let result = "╭━━〔 👥 𝗚𝗥𝗢𝗨𝗣 𝗨𝗜𝗗 𝗟𝗜𝗦𝗧 〕━━╮\n" + "┃\n" + "┃ 📊 Total Members: " + members.length + "\n" + "┃\n" + "╰━━━━━━━━━━━━━━━━━━━━╯\n\n"; for (let i = 0; i < members.length; i++) { const uid = members[i]; let name = "Unknown User"; try { const userInfo = await api.getUserInfo(uid); if ( userInfo && userInfo[uid] && userInfo[uid].name ) { name = userInfo[uid].name; } } catch (e) { name = "Unknown User"; } result += "╭──〔 " + (i + 1) + " 〕──╮\n" + "👤 Name: " + name + "\n" + "🆔 UID: " + uid + "\n" + "🔗 Facebook: https://facebook.com/" + uid + "\n" + "╰━━━━━━━━━━━━╯\n\n"; } result += "⚡ 𝗖𝗿𝗲𝗱𝗶𝘁𝘀: 𝗭𝗶𝗵𝗮𝗱"; return message.reply(result); } catch (error) { return message.reply( "❌ 𝗨𝗜𝗗 𝗟𝗜𝗦𝗧 𝗙𝗔𝗜𝗟𝗘𝗗\n\n" + "⚠️ Group member information পাওয়া যাচ্ছে না।" ); } } };