// code from goatstore // api: https://store.agi.bd const replies = [ "📢 Oi shobai koi? 😑\nChupaiya thaka bondho koro, ber ho! 👀\nTagall diya dhore felsi tomader 😈🔥", "📢 Attention please! 🚨😂\nJara jara chupchap pore acho, shobai ber hoye asho!\nTagall er shomoy lukaya thaka jabe na 🤣", "🤖 SYSTEM ALERT 🚨\nSilent members detected... 👀\nTagall activated!\nEkhon shobai attendance dao 😤😂", "🚨 Oi lurker team! 👀\nGroup e acho jokhon, ekbar awaj dao! 😂\nTagall diye attendance neya hocche 😈", "📣 Shobai ber hoye asho! 😤\nKothay lukaya acho bujhi na naki? 👀\nBot shobai ke tag kore dise 😂🔥", "🤖 Bot er chokh erayte parba na! 👀\nChupchap online thaka dhora khaiso 😭😂\nEkhon ekta reply dao!", "📢 Roll call! 🫡\nJara group e acho, shobai হাজিরা dao!\nNoyto abar tagall aste pare 😈😂", "🚨 Silent mode OFF! 🔊\nJara chup kore boshe acho, shobai kotha bolo!\nBot attendance nite asche 🤖🔥" ]; module.exports = { config: { name: "tagall", version: "3.0.0", author: "Asif", countDown: 10, role: 0, category: "group", shortDescription: { en: "Tag all group members" }, longDescription: { en: "Mention all group members without a member limit" }, guide: { en: "{pn} [message]" } }, onStart: async function ({ api, event, args, message }) { try { const threadInfo = await api.getThreadInfo(event.threadID); const participants = threadInfo.participantIDs || []; if (!participants.length) { return message.reply("❌ Group member পাওয়া যায়নি।"); } const customMessage = args.join(" ").trim(); const randomReply = replies[Math.floor(Math.random() * replies.length)]; let body = customMessage ? `📢 ${customMessage}\n\n${randomReply}\n\n` : `${randomReply}\n\n`; const mentions = []; // No artificial member limit const userInfo = await api.getUserInfo(participants); for (const uid of participants) { const name = userInfo?.[uid]?.name || "Member"; const tag = `@${name}`; const fromIndex = body.length; body += `${tag} `; mentions.push({ tag, id: uid, fromIndex, length: tag.length }); } body += "\n\n🤖 — TagAll by Asif"; return api.sendMessage( { body, mentions }, event.threadID, event.messageID ); } catch (error) { console.error("[TAGALL ERROR]", error); return message.reply( "❌ সবাইকে tag করতে সমস্যা হয়েছে। Messenger-এর message/mention limit থাকলে কিছু member tag নাও হতে পারে।" ); } } };