// code from goatstore // api: https://store.agi.bd const axios = require("axios"); module.exports = { config: { name: "uid", version: "1.1", author: "—͞𝐏ʀɪᴍᴇ́", role: 0, category: "utility", guide: "{pn} [@mention/reply]" }, onStart: async function ({ api, event }) { const { mentions, type, messageReply, senderID } = event; let uid = senderID; if (type === "message_reply") uid = messageReply.senderID; else if (mentions && Object.keys(mentions).length > 0) uid = Object.keys(mentions)[0]; const styledBody = `${uid}`; try { const picUrl = `https://graph.facebook.com/${uid}/picture?width=720&height=720&access_token=6628568379%7Cc1e620fa708a1d5696fb991c1bde5662`; const res = await axios.get(picUrl, { responseType: "stream" }); return api.sendMessage({ body: styledBody, attachment: res.data }, event.threadID, event.messageID); } catch (e) { return api.sendMessage(styledBody, event.threadID, event.messageID); } } };