// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "laugh", version: "2.0", author: "Zihad", countDown: 5, role: 0, shortDescription: "Laugh GIF", category: "fun" }, onStart: async function ({ message, event, usersData }) { let targetName = null; if (event.mentions && Object.keys(event.mentions).length > 0) { const id = Object.keys(event.mentions)[0]; targetName = event.mentions[id]; } else if (event.messageReply) { try { targetName = await usersData.getName(event.messageReply.senderID); } catch (e) { targetName = "এই ব্যক্তি"; } } else { return message.reply( "😂 কাউকে Mention করুন অথবা Reply করুন!\n\n" + "Mention: !laugh @name\n" + "Reply: !laugh" ); } const gif = "https://media.giphy.com/media/10JhviFuU2gWD6/giphy.gif"; try { const axios = require("axios"); const res = await axios.get(gif, { responseType: "stream" }); return message.reply({ body: "╭━━━〔 😂 LAUGH 〕━━━╮\n" + "┃ 👤 " + targetName + "\n" + "┃ 🤣 দেখে হাসি থামছে না!\n" + "╰━━━━━━━━━━━━━━━━╯", attachment: res.data }); } catch (e) { return message.reply( "😂 " + targetName + " আজকের হাসির কারণ! 🤣" ); } } };