Skip to content

Instantly share code, notes, and snippets.

@dipto-008
Created July 12, 2025 17:31
Show Gist options
  • Save dipto-008/5f74fcf43c29f7117839c45fb5eade71 to your computer and use it in GitHub Desktop.
Save dipto-008/5f74fcf43c29f7117839c45fb5eade71 to your computer and use it in GitHub Desktop.
Hey noob 👋👋
const { GoatWrapper } = require("fca-liane-utils");
module.exports = {
  config: {
    name: "profile",
    aliases: ["pp"],
    version: "1.1",
    author: "NIB",
    countDown: 5,
    role: 0,
    shortDescription: "PROFILE image",
    longDescription: "PROFILE image",
    category: "image",
    guide: {
      en: " {pn} @tag or reply to see profile picture"
    }
  },
  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 }) {
    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);
      }
    }
    return message.reply({
      body: "",
      attachment: await global.utils.getStreamFromURL(avt)
    });
  }
};
// ✅ Enable No-Prefix
const wrapper = new GoatWrapper(module.exports);
wrapper.applyNoPrefix({ allowPrefix: true });
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment