// code from goatstore // api: https://store.agi.bd const axios = require("axios"); const fs = require("fs-extra"); const path = require("path"); // ๐Ÿ”’ LOCKED AUDIO BLOCKS const LOCKED_THUMBS_UP = Object.freeze([ "https://files.catbox.moe/f2qevj.mp3" ]); const LOCKED_HEART_SMILE = Object.freeze([ "https://files.catbox.moe/zwl3z5.mp3" ]); // ๐Ÿ”ฅ FULL EMOJI MAP (ONLY ๐Ÿ‘ & ๐Ÿฅฐ ARE PROTECTED) const emojiAudioMap = { "๐Ÿฅฑ": ["https://files.catbox.moe/9pou40.mp3"], "๐Ÿ˜": ["https://files.catbox.moe/60cwcg.mp3"], "๐Ÿ˜†": ["https://files.catbox.moe/qg6hz1.mp3"], "๐Ÿ˜„": ["https://files.catbox.moe/qg6hz1.mp3"], "๐Ÿ˜Œ": ["https://files.catbox.moe/epqwbx.mp3"], "๐Ÿฅบ": ["https://files.catbox.moe/wc17iq.mp3"], "๐Ÿคญ": ["https://files.catbox.moe/cu0mpy.mp3"], "๐Ÿ˜…": ["https://files.catbox.moe/jl3pzb.mp3"], "๐Ÿ˜": ["https://files.catbox.moe/z9e52r.mp3"], "๐Ÿ˜ž": ["https://files.catbox.moe/tdimtx.mp3"], "๐Ÿ˜": ["https://files.catbox.moe/0uii99.mp3"], "๐Ÿผ": ["https://files.catbox.moe/p6ht91.mp3"], "๐Ÿค”": ["https://files.catbox.moe/hy6m6w.mp3"], "๐Ÿฅฐ": LOCKED_HEART_SMILE, // ๐Ÿ”’ LOCKED "๐Ÿคฆ": ["https://files.catbox.moe/ivlvoq.mp3"], "๐Ÿ˜˜": ["https://files.catbox.moe/sbws0w.mp3"], "๐Ÿ˜™": ["https://files.catbox.moe/37dqpx.mp3"], "๐Ÿ˜‘": ["https://files.catbox.moe/p78xfw.mp3"], "๐Ÿ˜ข": ["https://files.catbox.moe/shxwj1.mp3"], "๐Ÿ™Š": ["https://files.catbox.moe/3bejxv.mp3"], "๐Ÿคจ": ["https://files.catbox.moe/cccdel.mp3"], "๐Ÿ˜ก": ["https://files.catbox.moe/4aci0r.mp3"], "๐Ÿ˜ ": ["https://files.catbox.moe/h9ekli.mp3"], "๐Ÿคฌ": ["https://files.catbox.moe/q0ndv6.mp3"], "๐Ÿ˜พ": ["https://files.catbox.moe/h9ekli.mp3"], "๐Ÿ˜ค": ["https://files.catbox.moe/h9ekli.mp3"], "๐Ÿ™ˆ": ["https://files.catbox.moe/3qc90y.mp3"], "๐Ÿ˜": ["https://files.catbox.moe/qjfk1b.mp3"], "๐Ÿ˜ญ": ["https://files.catbox.moe/itm4g0.mp3"], "๐Ÿ˜ฑ": ["https://files.catbox.moe/mu0kka.mp3"], "๐Ÿ˜ป": ["https://files.catbox.moe/y8ul2j.mp3"], "๐Ÿ˜ฟ": ["https://files.catbox.moe/tqxemm.mp3"], "๐Ÿ’”": ["https://files.catbox.moe/6yanv3.mp3"], "๐Ÿคฃ": ["https://files.catbox.moe/2sweut.mp3"], "๐Ÿ˜”": ["https://files.catbox.moe/jl3pzb.mp3"], "๐Ÿฅน": ["https://files.catbox.moe/jf85xe.mp3"], "๐Ÿ˜ฉ": ["https://files.catbox.moe/b4m5aj.mp3"], "๐Ÿซฃ": ["https://files.catbox.moe/ttb6hi.mp3"], "๐Ÿธ": ["https://files.catbox.moe/sg6ugl.mp3"], "๐Ÿ": ["https://files.catbox.moe/utl83s.mp3"], "๐Ÿ’‹": ["https://files.catbox.moe/37dqpx.mp3"], "๐Ÿซฆ": ["https://files.catbox.moe/61w3i0.mp3"], "๐Ÿ˜ด": ["https://files.catbox.moe/rm5ozj.mp3"], "๐Ÿ™": ["https://files.catbox.moe/7avi7u.mp3"], "๐Ÿ˜ผ": ["https://files.catbox.moe/4oz916.mp3"], "๐Ÿ–•": ["https://files.catbox.moe/dtua60.mp3"], "๐Ÿฅต": ["https://files.catbox.moe/l90704.mp3"], "๐Ÿ™‚": ["https://files.catbox.moe/4oks08.mp3"], "๐Ÿ˜’": ["https://files.catbox.moe/cccdel.mp3"], "๐Ÿ˜“": ["https://files.catbox.moe/zh3mdg.mp3"], "๐Ÿคง": ["https://files.catbox.moe/zh3mdg.mp3"], "๐Ÿ™„": ["https://files.catbox.moe/vgzkeu.mp3"], "๐Ÿ˜‚": ["https://files.catbox.moe/1p8ijx.mp3"], "๐Ÿ˜š": ["https://files.catbox.moe/fffxhp.mp3"], "๐Ÿ˜—": ["https://files.catbox.moe/fffxhp.mp3"], "๐Ÿคซ": ["https://files.catbox.moe/slywu4.mp3"], "๐Ÿคฒ": ["https://files.catbox.moe/l8qym7.mp3"], "๐Ÿซถ": ["https://files.catbox.moe/egturw.mp3"], "๐Ÿ‘": LOCKED_THUMBS_UP // ๐Ÿ”’ LOCKED }; // ๐Ÿ”ฅ LOCK CHECK FUNCTION function checkIntegrity() { if ( !emojiAudioMap["๐Ÿ‘"] || emojiAudioMap["๐Ÿ‘"][0] !== "https://files.catbox.moe/f2qevj.mp3" ) return false; if ( !emojiAudioMap["๐Ÿฅฐ"] || emojiAudioMap["๐Ÿฅฐ"][0] !== "https://files.catbox.moe/zwl3z5.mp3" ) return false; return true; } module.exports = { config: { name: "emoji_voice", version: "2.0.2", author: "FARHAN-KHAN", countDown: 5, role: 0, shortDescription: "Emoji voice system", longDescription: "One emoji triggers random voice", category: "system" }, onStart: async function () { // ๐Ÿ”’ AUTHOR LOCK if (module.exports.config.author !== "FARHAN-KHAN") { console.log("โŒ AUTHOR MODIFIED - STOPPED"); process.exit(1); } // ๐Ÿ”’ EMOJI LOCK CHECK if (!checkIntegrity()) { console.log("โŒ CRITICAL EMOJI TAMPER DETECTED (๐Ÿ‘ / ๐Ÿฅฐ)"); process.exit(1); } }, onChat: async function ({ event, message }) { if (module.exports.config.author !== "FARHAN-KHAN") return; const { body } = event; if (!body || body.length > 2) return; const emoji = body.trim(); const audioList = emojiAudioMap[emoji]; if (!audioList) return; const audioUrl = audioList[Math.floor(Math.random() * audioList.length)]; const cacheDir = path.join(__dirname, "cache"); fs.ensureDirSync(cacheDir); const filePath = path.join( cacheDir, `${encodeURIComponent(emoji)}_${Date.now()}_${Math.floor(Math.random() * 1000)}.mp3` ); try { const res = await axios.get(audioUrl, { responseType: "arraybuffer" }); fs.writeFileSync(filePath, Buffer.from(res.data)); await message.reply({ attachment: fs.createReadStream(filePath) }); fs.unlink(filePath, () => {}); } catch (err) { console.error(err); message.reply("เฆ‡เฆฎเง‹เฆœเฆฟ เฆฆเฆฟเฆฏเฆผเง‡ เฆฒเฆพเฆญ เฆจเฆพเฆ‡ ๐Ÿ˜’\nเฆฏเฆพเฆ“ เฆฎเงเฆกเฆผเฆฟ เฆ–เฆพเฆ“ เฆœเฆพเฆจ ๐Ÿ˜˜"); } } };