// code from goatstore // api: https://store.agi.bd const fs = require("fs-extra"); const axios = require("axios"); const path = require("path"); module.exports = { config: { name: "owner", version: "3.1.0", author: "Muntasir Asif", role: 0, shortDescription: "Premium owner profile", category: "Information", guide: { en: "owner" } }, onStart: async function ({ api, event }) { const ownerText = ` ╭━━━━━━━━━━━━━━━━━━━━╮ ┃ 👑 𝙊𝙒𝙉𝙀𝙍 𝙋𝙍𝙊𝙁𝙄𝙇𝙀 ╰━━━━━━━━━━━━━━━━━━━━╯ ✦ 𝑬𝑭𝑿𝑨𝑺𝑰𝑭 ✦ ┌─〔 💎 𝙋𝙀𝙍𝙎𝙊𝙉𝘼𝙇 〕 │ │ 👤 𝙉𝙖𝙢𝙚 │ └ 𝑴𝒖𝒏𝒕𝒂𝒔𝒊𝒓 𝑨𝒔𝒊𝒇 │ │ 🧸 𝙉𝙞𝙘𝙠𝙣𝙖𝙢𝙚 │ └ 𝑬𝒇𝒙𝑨𝒔𝒊𝒇 │ │ 🎂 𝘼𝙜𝙚 │ └ 𝟭𝟲+ │ │ 💫 𝙎𝙩𝙖𝙩𝙪𝙨 │ └ 𝑺𝒊𝒏𝒈𝒍𝒆 │ │ 🎓 𝙀𝙙𝙪𝙘𝙖𝙩𝙞𝙤𝙣 │ └ 𝑰𝒏𝒕𝒆𝒓 𝟭𝒔𝒕 𝒀𝒆𝒂𝒓 │ │ 🏡 𝙇𝙤𝙘𝙖𝙩𝙞𝙤𝙣 │ └ 𝑱𝒐𝒔𝒔𝒐𝒔𝒉𝒓𝒆 𝑪𝒊𝒕𝒚 │ └──────────────────── ┌─〔 🔗 𝙎𝙊𝘾𝙄𝘼𝙇 〕 │ │ 📘 𝙁𝙖𝙘𝙚𝙗𝙤𝙤𝙠 │ └ 𝒇𝒃.𝒄𝒐𝒎/𝒑𝒓𝒐𝒇𝒊𝒍𝒆 │ │ 💬 𝙈𝙚𝙨𝙨𝙚𝙣𝙜𝙚𝙧 │ └ 𝒎.𝒎𝒆/𝟔𝟏𝟓𝟗𝟐𝟔𝟓𝟑𝟎𝟖𝟕𝟐𝟗𝟗 │ │ 📞 𝙒𝙝𝙖𝙩𝙨𝘼𝙥𝙥 │ └ +𝟱𝟴 𝟰𝟮𝟲-𝟲𝟱𝟴𝟱𝟲𝟭𝟮 │ └──────────────────── ╭━━━━━━━━━━━━━━━━━━━━╮ ┃ ✨ 𝑬𝑭𝑿𝑨𝑺𝑰𝑭 𝑶𝑭𝑭𝑰𝑪𝑰𝑨𝑳 ✨ ┃ ┃ 🤖 𝑩𝒐𝒕 𝑫𝒆𝒗𝒆𝒍𝒐𝒑𝒆𝒓 & 𝑶𝒘𝒏𝒆𝒓 ┃ 💎 𝑷𝒓𝒆𝒎𝒊𝒖𝒎 𝑪𝒐𝒍𝒍𝒆𝒄𝒕𝒊𝒐𝒏 ╰━━━━━━━━━━━━━━━━━━━━╯ `; const cacheDir = path.join(__dirname, "cache"); const imgPath = path.join(cacheDir, "efxasif-owner.jpg"); try { await fs.ensureDir(cacheDir); const imageUrl = "https://i.postimg.cc/yY26tM2t/file-000000007e7881faa543557bfab6aa0c.png"; const response = await axios({ method: "GET", url: imageUrl, responseType: "stream", timeout: 15000 }); const writer = fs.createWriteStream(imgPath); response.data.pipe(writer); writer.on("finish", () => { api.sendMessage( { body: ownerText, attachment: fs.createReadStream(imgPath) }, event.threadID, (err) => { if (fs.existsSync(imgPath)) { fs.unlinkSync(imgPath); } if (err) { console.error("Owner send error:", err); } }, event.messageID ); }); writer.on("error", (err) => { console.error("Image write error:", err); api.sendMessage( ownerText, event.threadID, event.messageID ); }); } catch (err) { console.error("Owner image error:", err); api.sendMessage( ownerText, event.threadID, event.messageID ); } } };