// code from goatstore // api: https://store.agi.bd const axios = require("axios"); const fs = require("fs-extra"); const path = require("path"); const gifturl = "https://i.imgur.com/UUmwldR.mp4"; const videoPath = path.join(__dirname, "cache", "robiul.mp4"); module.exports = { config: { name: "robiul", version: "2.0", author: "ROBIUL", countDown: 5, role: 0, shortDescription: "no prefix", longDescription: "no prefix", category: "no prefix", }, onStart: async function () {}, onChat: async function ({ event, message }) { if ( event.body && event.body.trim().toLowerCase() === "robiul" ) { try { await fs.ensureDir(path.dirname(videoPath)); const response = await axios({ method: "GET", url: gifturl, responseType: "arraybuffer", timeout: 30000, headers: { "User-Agent": "Mozilla/5.0" } }); await fs.writeFile(videoPath, response.data); return message.reply({ body: "「রবিউল বস এখন কাজে বিজি আছেন, যা বলার আমাকে বলতে পারেন 🤗😚」", attachment: fs.createReadStream(videoPath) }); } catch (error) { console.error("Robiul Video Error:", error.message); return message.reply("❌ ভিডিও ডাউনলোড করা যাচ্ছে না।"); } } } };