// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "adduser", version: "1.0", author: "—͞𝐏ʀɪᴍᴇ́", countDown: 5, role: 1, shortDescription: "Add user to group by UID", longDescription: "Add user to group using their UID", category: "group", guide: "{pn} ", aliases: ["add"] }, onStart: async function ({ api, event, args }) { const { threadID, messageID } = event; if (!args[0]) { return api.sendMessage("Use: adduser \nExample: adduser 6155xxxx", threadID, messageID); } const uid = args[0].trim(); try { await api.addUserToGroup(uid, threadID); return api.sendMessage(`Added user ${uid} to the group`, threadID, messageID); } catch (e) { return api.sendMessage(`Failed to add ${uid}\nMaybe bot is not admin or user blocked bot`, threadID, messageID); } } };