// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "punch", version: "2.0", author: "Zihad", countDown: 5, role: 0, shortDescription: "Funny punch", category: "fun" }, onStart: async function ({ message, event, usersData }) { let name = null; if (event.mentions && Object.keys(event.mentions).length) { name = event.mentions[Object.keys(event.mentions)[0]]; } else if (event.messageReply) { try { name = await usersData.getName(event.messageReply.senderID); } catch (e) { name = "এই ব্যক্তি"; } } else { return message.reply("👊 Mention করুন অথবা Reply করে !punch লিখুন!"); } const gif = "https://media.giphy.com/media/11HeubLHnQJSAU/giphy.gif"; try { const axios = require("axios"); const res = await axios.get(gif, { responseType: "stream" }); return message.reply({ body: "👊 " + name + " একটা Cartoon Punch খেলো! 😂", attachment: res.data }); } catch (e) { return message.reply("👊 " + name + " Punch খাইছে! 😂"); } } };