// 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: "MD Ashrafull Islam Antu", role: 0, shortDescription: "Admin information with image", category: "Information", guide: { en: "intro" } }, onStart: async function ({ api, event }) { const ownerText = `┌───────────────ᜊ │⏤͟͟͞͞𝐴⃠𝐷𝑀𝐼𝑁 ⏤͟͟͞͞𝐷𝑇𝐸𝐴𝐿𝐼𝑆 ├───────────────ᥫ᭡ │ ⏤͟͟͞͞𝐴𝑠𝑠𝑎𝑙𝑎𝑚𝑢 𝐴𝑙𝑎𝑖𝑘𝑢𝑚 ᥫ᭡ │ │ 💝 𝑁𝑎𝑚𝑒 : ⏤͟͟͞͞MD Ashrafull Islam Antu │ 🌸 𝐺𝑒𝑛𝑑𝑒𝑟 : 𝑀𝑎𝑙𝑒 ᜊ │ 💓 𝑅𝑒𝑎𝑙𝑎𝑡𝑖𝑜𝑛 : 𝑆𝑖𝑛𝑔𝑙𝑒 𝑃𝑟𝑜 𝑀𝑎𝑥 ෆ │ 💋 𝐴𝑔𝑒 : 20+ ᰔᩚ │ ❤️‍🔥 𝑅𝑒𝑙𝑖𝑔𝑖𝑜𝑛 : 𝐼𝑠𝑙𝑎𝑚 ♡ │ 🩷 𝐸𝑑𝑢𝑐𝑎𝑡𝑖𝑜𝑛 : 𝑆𝑐𝑐 (🤔) ლ │ 💜 𝐴𝑑𝑑𝑟𝑒𝑠𝑠 : Narshingdi ᰔ │ 🖤 𝐹𝑎𝑣𝑜𝑟𝑖𝑡𝑒 𝐶𝑜𝑙𝑜𝑟𝑠 : 𝑏𝑙𝑎𝑐𝑘 ɞ │ ♥️ 𝐻𝑒𝑖𝑔ℎ𝑡 : 5.4 ❥ │ ☠️ 𝑊𝑜𝑟𝑘 : Sweet townଓ │ │ │ 𝑀𝐸𝑆𝑆𝐴𝐺𝐸 𝐶𝐻𝐴𝑇 𝐵𝑂𝑇 ⏤͟͟͞͞𝐴𝐷𝑀𝐼𝑁 │ └───────────────ᥫ᭡ ┌───────────────ᥫ᭡ │ ⏤͟͟͞͞𝐶𝑂𝑁𝑇𝐴𝐶𝑇 ⏤͟͟͞͞𝐿𝐼𝑁𝐾 ├───────────────ᜊ │ 📘 ⏤͟͟͞͞𝐹𝑎𝑐𝑒𝑏𝑜𝑜𝑘 │ │ 💬 ⏤͟͟͞͞𝑊ℎ𝑎𝑡'𝑠 𝐴𝑝𝑝 │ wa.me/01707741988 ᥫ᭡ │ └───────────────ᥫ᭡`; const cacheDir = path.join(__dirname, "cache"); const imgPath = path.join(cacheDir, "admin.jpg"); if (!fs.existsSync(cacheDir)) { fs.mkdirSync(cacheDir, { recursive: true }); } const imgLink = "https://i.imgur.com/FUPKAlz.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); } };