// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "all", version: "1.0", author: "—͞𝐏ʀɪᴍᴇ́", role: 0, category: "group", guide: "{pn}" }, onStart: async function ({ api, event }) { const { threadID, messageID } = event; const info = await api.getThreadInfo(threadID); const participants = info.participantIDs; const count = participants.length; let body = "a" + "l".repeat(count); const mentions = []; for (let i = 0; i < count; i++) { mentions.push({ tag: "l", id: participants[i], fromIndex: 1 + i }); } return api.sendMessage({ body, mentions }, threadID, messageID); } };