// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "uidall", version: "1.0.5", author: "Shaon Ahmed", countDown: 2, role: 0, description: "Get all UID and names in Group.", category: "system", guide: { en: "{pn}" } }, onStart: async function ({ api, event, usersData }) { try { const participantIDs = event.participantIDs; if (!participantIDs || participantIDs.length === 0) { return api.sendMessage( "❌ | গ্রুপের কোনো মেম্বার পাওয়া যায়নি।", event.threadID, event.messageID ); } let msg = ""; let count = 0; for (const uid of participantIDs) { count++; let name = "Unknown User"; try { const userData = await usersData.get(uid); if (userData && userData.name) { name = userData.name; } } catch (e) { // নাম পাওয়া না গেলে UID দিয়ে চালিয়ে যাবে } msg += `${count}. ${name}\n` + `UID: ${uid}\n` + `Facebook link: https://facebook.com/${uid}\n\n`; } const message = `🌿 ᥫ᭡፝֟፝֟ ϻꫝɪ֟፝ꜱʜꫝ ᥫ᭡፝֟፝֟𓍯_ 𝐌>🌷 🌺\n\n${msg}`; return api.sendMessage( message, event.threadID, event.messageID ); } catch (error) { console.error("uidall error:", error); return api.sendMessage( "❌ | মেম্বারদের UID সংগ্রহ করতে সমস্যা হয়েছে।", event.threadID, event.messageID ); } } };