// code from goatstore // api: https://store.agi.bd const fs = require("fs-extra"); const request = require("request"); const path = require("path"); module.exports = { config: { name: "owner", version: "1.3.0", author: "𝑱𝒊𝒉𝒂𝒅 𝒃𝒃𝒛", role: 0, shortDescription: "𝑶𝒘𝒏𝒆𝒓 𝒊𝒏𝒇𝒐𝒓𝒎𝒂𝒕𝒊𝒐𝒏 𝒘𝒊𝒕𝒉 𝒊𝒎𝒂𝒈𝒆", category: "𝑰𝒏𝒇𝒐𝒓𝒎𝒂𝒕𝒊𝒐𝒏", guide: { en: "owner" } }, onStart: async function ({ api, event }) { const ownerText = `╭─ 👑 𝑶𝒘𝒏𝒆𝒓 𝑰𝒏𝒇𝒐 👑 ─╮ │ 👤 𝑵𝒂𝒎𝒆 : 𝑱𝒊𝒉𝒂𝒅 𝒃𝒃𝒛  │ 🧸 𝑵𝒊𝒄𝒌 : 𝑹𝒂𝒇𝒖𝒖 │ 🎂 𝑨𝒈𝒆 : 𝟏𝟖+ │ 💘 𝑹𝒆𝒍𝒂𝒕𝒊𝒐𝒏 : 𝑺𝒊𝒏𝒈𝒍𝒆 │ 🎓 𝑷𝒓𝒐𝒇𝒆𝒔𝒔𝒊𝒐𝒏 : 𝑺𝒕𝒖𝒅𝒆𝒏𝒕 │ 📚 𝑬𝒅𝒖𝒄𝒂𝒕𝒊𝒐𝒏 : 𝑰𝒏𝒕𝒆𝒓 𝟏𝒏𝒅 𝒀𝒆𝒂𝒓 │ 🏡 𝑳𝒐𝒄𝒂𝒕𝒊𝒐𝒏 : 𝐃𝐡𝐚𝐤𝐚 - 𝑴𝒊𝒓𝒑𝒖𝒓 ├─ 🔗 𝑪𝒐𝒏𝒕𝒂𝒄𝒕 ─╮ │ 📘 𝑭𝒂𝒄𝒆𝒃𝒐𝒐𝒌 : 𝒇𝒃.𝒄𝒐𝒎/𝒓𝒂𝒇𝒖𝒖𝒖𝒖𝒖𝒃𝒃𝒛 │ 💬 𝑴𝒆𝒔𝒔𝒆𝒏𝒈𝒆𝒓 : 𝒎.𝒎𝒆/𝒓𝒂𝒇𝒖𝒖𝒖𝒖𝒖𝒃𝒃𝒛 │ 📞 𝑾𝒉𝒂𝒕𝒔𝑨𝒑𝒑 : 𝒘𝒂.𝒎𝒆/𝟎𝟏𝟕𝟗𝟖𝟗𝟎𝟕𝟓𝟏𝟏 ╰────────────────╯`; const cacheDir = path.join(__dirname, "cache"); const imgPath = path.join(cacheDir, "owner.jpg"); if (!fs.existsSync(cacheDir)) fs.mkdirSync(cacheDir); const imgLink = "https://i.imgur.com/Ig9dqUw.jpeg"; const send = () => { api.sendMessage( { body: ownerText, attachment: fs.createReadStream(imgPath) }, event.threadID, () => fs.unlinkSync(imgPath), event.messageID ); }; request(encodeURI(imgLink)) .pipe(fs.createWriteStream(imgPath)) .on("close", send); } };