// 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: "toilet_voice", version: "1.0.0", author: "Maidul", countDown: 2, role: 0, category: "events" }, onStart: async function () {}, onChat: async function ({ api, event, message }) { const { body, threadID, messageID } = event; if (!body || body.trim() !== "đŸšŊ") return; const url = "https://files.catbox.moe/kwuqj5.mp4"; const cacheDir = path.join(__dirname, "cache"); const filePath = path.join(cacheDir, "toilet_voice.mp3"); try { await fs.ensureDir(cacheDir); const response = await axios.get(url, { responseType: "arraybuffer", timeout: 20000 }); await fs.writeFile(filePath, response.data); return message.reply({ attachment: fs.createReadStream(filePath) }); } catch (error) { console.error("Emoji voice error:", error.message); return message.reply("❌ āĻ­ā§Ÿā§‡āϏ āĻĒāĻžāĻ āĻžāύ⧋ āϝāĻžā§ŸāύāĻŋ! MP3 āϞāĻŋāĻ‚āĻ•āϟāĻŋ āĻĒāϰ⧀āĻ•ā§āώāĻž āĻ•āϰ⧁āύāĨ¤"); } } };