// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "share", aliases: ["s"], version: "1.0.0", author: "Zihad", countDown: 3, role: 0, shortDescription: "Share a link", longDescription: "Send a link to the current Messenger group.", category: "utility", guide: "{pn} " }, onStart: async function ({ api, event, args }) { try { if (!args || args.length === 0) { return api.sendMessage( "❌ একটি লিংক দিন!\n\nExample:\nshare https://example.com", event.threadID ); } const link = args.join(" ").trim(); return api.sendMessage( "🔗 𝗟𝗜𝗡𝗞 𝗦𝗛𝗔𝗥𝗘\n\n" + "✅ Link:\n" + link + "\n\n⚡ Shared by Zihad", event.threadID ); } catch (error) { console.error("share.js error:", error); return api.sendMessage( "❌ Share command এ সমস্যা হয়েছে।", event.threadID ); } } };