// 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", aliases: ["info"], version: "1.3.0", author: "๐“๐€๐‡๐€ ๐Š๐‡๐€๐", role: 0, shortDescription: "Owner information with image", category: "Information", guide: { en: "owner" } }, onStart: async function ({ api, event }) { const ownerText = `โ•ญโ”€ ๐Ÿ‘‘ Oแดกษดแด‡ส€ Iษดา“แด ๐Ÿ‘‘ โ”€โ•ฎ โ”‚ ๐Ÿ‘ค Nแด€แดแด‡ : ๐“๐€๐‡๐€ ๐Š๐‡๐€๐ โ”‚ ๐Ÿฆ‹ Nษชแด„แด‹ : ๐“๐€๐‡๐€ ๐Š๐‡๐€๐ โ”‚ ๐ŸŽ‚ Aษขแด‡ : 19 โ”‚ ๐Ÿ’˜ Rแด‡สŸแด€แด›ษชแดษด : STFU โ”‚ ๐ŸŽ“ Pส€แดา“แด‡ssษชแดษด : ๐‰๐Ž๐ โ”‚ ๐Ÿ“š Eแด…แดœแด„แด€แด›ษชแดn : ๐†๐Ž๐•๐„๐“ ๐’๐‚๐‡๐Ž๐Ž๐‹ โ”‚ ๐Ÿก Lแดแด„แด€แด›ษชแดษด : ๐‹๐€๐‡๐Ž๐„๐‘ ๐๐€๐Š๐ˆ๐’๐€๐ โ”œโ”€ ๐Ÿ”— Cแดษดแด›แด€แด„แด› โ”€โ•ฎ โ”‚ ๐Ÿ“˜ Facebook : id=100075933317520 โ”‚ ๐Ÿ’ฌ Messenger: id=100075933317520 โ”‚ ๐Ÿ“ž WhatsApp : 923474771404 โ•ฐโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ•ฏ`; 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/1tUVG85.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) } };