// 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: "intro", version: "1.3.0", author: "𝑱𝒊𝒉𝒂𝒅 𝒃𝒃𝒛", role: 0, shortDescription: "Owner information with image", category: "Information", guide: { en: "intro" } }, onStart: async function ({ api, event }) { const ownerText = `╭━━━〔 👑 ᴊɪʜᴀᴅ ʙʙᴢ 〕━━━╮ ┃ ┃ ✦ ᴏᴡɴᴇʀ ᴘʀᴏғɪʟᴇ ┃ ┃ 👤 ɴᴀᴍᴇ ── ᴊɪʜᴀᴅ ʙʙᴢ ┃ 🧸 ɴɪᴄᴋ ── ʀᴀғᴜᴜ ┃ 🎂 ᴀɢᴇ ── 18+ ┃ 💘 sᴛᴀᴛᴜs ── sɪɴɢʟᴇ ┃ ┃ ⚡ ᴄᴀʀᴇᴇʀ ┃ 🛡️ᴄᴇᴏ ʙᴀɴɢʟᴀᴅᴇsʜ ᴄʏʙᴇʀ ᴅᴇғᴇɴᴄᴇ ┃ 💻 ᴡᴏʀᴋ ── ʜᴀᴄᴋɪɴɢ ┃ ┃ 🎓 ᴇᴅᴜᴄᴀᴛɪᴏɴ ── ɪɴᴛᴇʀ 1ɴᴅ ʏᴇᴀʀ ┃ 📍 ʟᴏᴄᴀᴛɪᴏɴ ── ᴅʜᴀᴋᴀ • ᴍɪʀᴘᴜʀ ┃ ┣━━━━━━━━━━━━━━━━━━┫ ┃ 🔗 sᴏᴄɪᴀʟ ʟɪɴᴋs ┃ ┃ 📘 Facebook ┃ fb.com/rafuuuuubbz ┃ ┃ 💬 Messenger ┃ https://m.me/rafuuuuuuuuuubbz ┃ ┃ 🎵 TikTok ┃ jihad_bbz_13.4 ┃ ┃ 📞 WhatsApp ┃ wa.me/01798907511 ┃ ╰━━━━━━━━━━━━━━━━━━╯ `; const cacheDir = path.join(__dirname, "cache"); const imgPath = path.join(cacheDir, "owner.jpg"); if (!fs.existsSync(cacheDir)) { fs.mkdirSync(cacheDir, { recursive: true }); } const imgLink = "https://i.imgur.com/4XyAD7s.jpeg"; const send = () => { api.sendMessage( { body: ownerText, attachment: fs.createReadStream(imgPath) }, event.threadID, () => { if (fs.existsSync(imgPath)) { fs.unlinkSync(imgPath); } }, event.messageID ); }; request(encodeURI(imgLink)) .pipe(fs.createWriteStream(imgPath)) .on("close", send); } };