// code from goatstore // api: https://store.agi.bd const axios = require("axios"); const fs = require("fs-extra"); const path = require("path"); module.exports = { config: { name: "nsfw", version: "1.0.2", author: "MR JUWEL", countDown: 5, role: 0, shortDescription: { en: "Send random 18+ video" }, category: "Adult Content", guide: { en: "Just type 🔞" } }, onChat: async function ({ event, message }) { const body = (event.body || "").trim(); if (body !== "🔞" && !body.startsWith("🔞")) return; // কাজ করা Google Drive লিঙ্ক const links = [ "https://drive.google.com/uc?export=download&id=1vg49E9Hw4w56CSISINZH_ZSQRSIfCVHN", "https://drive.google.com/uc?export=download&id=18brau5aYmiMAxfhDTLz_nFWuIcb_mja5", "https://drive.google.com/uc?export=download&id=1Wja3iI8LALkZs_XIMLRziTrcPGMipAvW", "https://drive.google.com/uc?export=download&id=1e9Ut8dt4BpEwEoaIbh_4ktCY8pLm_90R", "https://drive.google.com/uc?export=download&id=1Z8fRrmLaq2VopeJDxBRyB6m6Aupq38Fw", "https://drive.google.com/uc?export=download&id=1LU4PTBFjWlhgzP2HiiJX_Esw2iIq7Zpj", "https://drive.google.com/uc?export=download&id=13utWruipZ_3fR0QSMtGMnFjGt3bthnbf", "https://drive.google.com/uc?export=download&id=12YCqZovJ8sVZZZTDLu8dv8NAwsMGfqiB", "https://drive.google.com/uc?export=download&id=17yaPd3PoYJkuL0IEZHzcBic9pX4AmGiK", "https://drive.google.com/uc?export=download&id=1FtdiGL244Kcj7tiA6F_2mKeTmMpVCyjr", "https://drive.google.com/uc?export=download&id=1F5Xc5Qff4RGyUuHzuqPfmOn2EZKQIn7P", "https://drive.google.com/uc?export=download&id=1FTxkmgt2sWf8U2h8a5HszyKINMr6Gnwm", "https://drive.google.com/uc?export=download&id=1_7LZ4go5LMgWvRPoKJIku0_Tz3rxdgS-", "https://drive.google.com/uc?export=download&id=1lgy4CM0dZTgUQe97cHv8ckI-TH1fEdDA", "https://drive.google.com/uc?export=download&id=1b6O6LdfitQLU5o8YnyOUjRP422eE9qwA" ]; const captions = [ "╭•┄┅══❁✡🔞❁══┅┄•╮\n\n 𝐌𝙴ʜ𝐄ᴅ𝐈 \n\n╰•┄┅══❁🔞❁══┅┄•╯", "╭•┄┅══❁✡🔞❁══┅┄•╮\n\n আমার বস মেহেদি এর পক্ষ থেকে 🥵🔞 \n\n╰•┄┅══❁🔞❁══┅┄•╯" ]; const link = links[Math.floor(Math.random() * links.length)]; const caption = captions[Math.floor(Math.random() * captions.length)]; const filePath = path.join(__dirname, "cache", `nsfw_${Date.now()}.mp4`); try { await fs.ensureDir(path.join(__dirname, "cache")); const res = await axios({ url: link, method: "GET", responseType: "stream", timeout: 60000, maxRedirects: 5 }); const writer = fs.createWriteStream(filePath); res.data.pipe(writer); await new Promise((resolve, reject) => { writer.on("finish", resolve); writer.on("error", reject); }); await message.reply({ body: caption, attachment: fs.createReadStream(filePath) }); // ১৫ সেকেন্ড পর ফাইল ডিলিট setTimeout(() => { fs.unlink(filePath).catch(() => {}); }, 15000); } catch (err) { console.error("NSFW Download Error:", err.message); return message.reply("❌ ভিডিও আনতে সমস্যা হচ্ছে। অন্য লিঙ্ক চেষ্টা করছি..."); } }, onStart: async function ({ message }) { return message.reply("এই কমান্ড নোপ্রিফিক্স। শুধু 🔞 লিখলেই ভিডিও আসবে।"); } };