// 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.4.0", author: "RAYHAN-ISLAM", role: 0, shortDescription: "Owner information with image", category: "Information", guide: { bn: "owner" } }, onStart: async function ({ api, event }) { const ownerText = `โ•ญโ”€ ๐Ÿ‘‘ ๐Ž๐–๐๐„๐‘ ๐ˆ๐๐…๐Ž ๐Ÿ‘‘ โ”€โ•ฎ โ”‚ ๐Ÿ‘ค ๐๐š๐ฆ๐ž : ๐‘๐š๐ฒ๐ก๐š๐ง ๐ˆ๐ฌ๐ฅ๐š๐ฆ โ”‚ ๐Ÿงธ ๐๐ข๐œ๐ค : ๐‘๐š๐ฒ๐ก๐š๐ง โ”‚ ๐ŸŽ‚ ๐€๐ ๐ž : 18+ โ”‚ ๐Ÿ’˜ ๐‘๐ž๐ฅ๐š๐ญ๐ข๐จ๐ง : ๐’๐ข๐ง๐ ๐ฅ๐ž โ”‚ ๐ŸŽ“ ๐๐ซ๐จ๐Ÿ๐ž๐ฌ๐ข๐จ๐ง : ๐’๐ญ๐ฎ๐๐ž๐ง๐ญ โ”‚ ๐Ÿ“š ๐„๐๐ฎ๐œ๐š๐ญ๐ข๐จ๐ง : ๐‚๐ฅ๐š๐ฌ ๐๐ž๐ฐ ๐“๐ž๐ง โ”‚ ๐Ÿก ๐‹๐จ๐œ๐š๐ญ๐ข๐จ๐ง : ๐“๐š๐ง๐ ๐š๐ข๐ฅ, ๐๐š๐ง๐ ๐ฅ๐š๐๐ž๐ฌ๐ก โ”‚ ๐Ÿ’ผ ๐–๐จ๐ซ๐ค : ๐๐š๐›๐š๐ซ ๐‡๐จ๐ญ๐ž๐ฅ โ”œโ”€ ๐Ÿ”— ๐‚๐Ž๐๐“๐€๐‚๐“ โ”€โ•ฎ โ”‚ ๐Ÿ“˜ ๐…๐š๐œ๐ž๐›๐จ๐ค : ๐‘๐š๐ฒ๐ก๐š๐ง ๐ˆ๐ฌ๐ฅ๐š๐ฆ โ”‚ ๐Ÿ’ฌ ๐Œ๐ž๐ฌ๐ฌ๐ž๐ง๐ ๐ž๐ซ: ๐€๐ฏ๐š๐ข๐ฅ๐š๐›๐ฅ๐ž โ”‚ ๐Ÿ“ž ๐–๐ก๐š๐ญ๐ฌ๐€๐ฉ๐ฉ : ๐ˆ๐ง๐›๐จ๐ฑ ๐Œ๐ž โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ ๐Ÿ‘เฆฒเฆพเฆ‡เฆ• เฆฎเง‡เฆฐเง‡ เฆ•เฆฟเฆฌเง‹เฆฐเงเฆก เฆฆเงเฆฐเงเฆฌเฆฒ เฆ•เฆฐเง‹ เฆจเฆพ-๐Ÿคฃ เฆงเฆจเงเฆฏเฆฌเฆพเฆฆ-๐Ÿค`; const cacheDir = path.join(__dirname, "cache"); const imgPath = path.join(cacheDir, "owner.jpg"); if (!fs.existsSync(cacheDir)) fs.mkdirSync(cacheDir); // เฆคเง‹เฆฎเฆพเฆฐ เฆ›เฆฌเฆฟเฆฐ เฆฒเฆฟเฆ‚เฆ• const imgLink = "https://www.facebook.com/profile.php?id=61559237171744"; 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) .on("error", (err) => { api.sendMessage(ownerText, event.threadID, event.messageID); }); } };