// code from goatstore // api: https://store.agi.bd module.exports = { config: { name: "profile", aliases: ["pp"], version: "1.1", author: "NIB | No prefix by ArYan", countDown: 5, role: 0, shortDescription: "PROFILE image", longDescription: "PROFILE image", category: "image", guide: { en: " {pn} @tag" } }, langs: { vi: { noTag: "Bạn phải tag người bạn muốn tát" }, en: { noTag: "You must tag the person you want to get profile picture of" } }, onStart: async function ({ event, message, usersData, args, getLang }) { let avt; const uid1 = event.senderID; const uid2 = Object.keys(event.mentions)[0]; if(event.type == "message_reply"){ avt = await usersData.getAvatarUrl(event.messageReply.senderID) } else{ if (!uid2){avt = await usersData.getAvatarUrl(uid1) } else{avt = await usersData.getAvatarUrl(uid2)}} message.reply({ body:"", attachment: await global.utils.getStreamFromURL(avt) }) } }