// code from goatstore // api: https://store.agi.bd const axios = require("axios"); const fs = require("fs-extra"); const path = require("path"); module.exports = { config: { name: "owner", version: "1.3.0", author: "Mahabul JR", role: 0, shortDescription: "Owner info", category: "Information", guide: { en: "{pn}" } }, onStart: async function({api, event}) { const txt = "👑 OWNER INFO 👑\n" + "━━━━━━━━━━━━━━\n" + "ðŸ‘Ī Name: Mahabul JR\n" + "ðŸŠķ Nick: Mahabul\n" + "🎂 Age: 18\n" + "💝 Relation: Secret\n" + "💞 Profession: Bike Lover\n" + "🌍 Location: mymensing, Bangladesh\n" + "━━━━━━━━━━━━━━\n" + "📘 Facebook: https://www.facebook.com/share/1HVfpDXZp6/\n" + "💎 Messenger: m.me/61591411614593\n" + "━━━━━━━━━━━━━━"; try { const dir = path.join(__dirname, "cache"); if (!fs.existsSync(dir)) fs.mkdirSync(dir, {recursive: true}); const p = path.join(dir, "owner.jpg"); const r = await axios.get("https://i.imgur.com/g4LLkZJ.jpeg", {responseType: "arraybuffer"}); fs.writeFileSync(p, Buffer.from(r.data)); api.sendMessage({body: txt, attachment: fs.createReadStream(p)}, event.threadID, function(){if(fs.existsSync(p)) fs.unlinkSync(p)}, event.messageID); } catch (e) { api.sendMessage(txt, event.threadID, event.messageID); } } };