goat
command
pfp
๐๐ก๐จ๐ฐ ๐ฉ๐ซ๐จ๐๐ข๐ฅ๐ ๐ฉ๐ข๐๐ญ๐ฎ๐ซ๐
0
views
0
likes
0
installs
Aliases: pp
raw source
const axios = require("axios");
const fs = require("fs");
const path = require("path");
module.exports = {
config: {
name: "pfp",
aliases: ["pp"],
version: "0.0.1",
author: "Azadx69x",
countDown: 3,
role: 0,
shortDescription: "๐๐ก๐จ๐ฐ ๐ฉ๐ซ๐จ๐๐ข๐ฅ๐ ๐ฉ๐ข๐๐ญ๐ฎ๐ซ๐",
longDescription: "๐ฉ๐ข๐๐ญ๐ฎ๐ซ๐ ๐จ๐ ๐ฒ๐จ๐ฎ๐ซ๐ฌ๐๐ฅ๐ ๐จ๐ซ ๐๐ง๐ฒ ๐ฎ๐ฌ๐๐ซ",
category: "image",
guide: {
en: "{pn}[@tag | reply | uid]"
}
},
onStart: async function ({ event, message, args, usersData }) {
try {
let targetID =
(event.type === "message_reply" && event.messageReply?.senderID) ||
(event.mentions && Object.keys(event.mentions)[0]) ||
(args[0] && !isNaN(args[0]) && args[0]) ||
event.senderID;
const name = await usersData.getName(targetID).catch(() => "Unknown User");
const avatarURL = await usersData.getAvatarUrl(targetID);
const replyText = `
โฟโขโซโโโโโขใPPใโขโโโโโชโขโฟ
๐๐๐ซ๐ ๐ข๐ฌ ๐ญ๐ก๐ ๐ฉ๐ซ๐จ๐๐ข๐ฅ๐ ๐ฉ๐ข๐๐ญ๐ฎ๐ซ๐ ๐ธ
๐๐ ๐ญ๐จ๐ซ ๐ฉ๐ข๐: ๐ ${name}
๐๐: ${targetID}
โฟโขโซโโโโโโโโโโโโโโโโชโขโฟ
`;
return message.reply({
body: replyText,
attachment: await global.utils.getStreamFromURL(avatarURL)
});
} catch (err) {
console.error("๐๐จ๐ฆ๐ฆ๐๐ง๐ ๐๐ซ๐ซ๐จ๐ซ:", err);
const errorText = `
โฟโขโซโโโโโขใPPใโขโโโโโชโขโฟ
โ ๐๐จ๐ฎ๐ฅ๐ ๐ง๐จ๐ญ ๐๐๐ญ๐๐ก ๐ฉ๐ข๐๐ญ๐ฎ๐ซ๐.
โ ๐ข๐ง๐ฏ๐๐ฅ๐ข๐ ๐จ๐ซ ๐ฉ๐ซ๐ข๐ฏ๐๐๐ฒ ๐๐ฅ๐จ๐๐ค๐๐.
โฟโขโซโโโโโโโโโโโโโโโโชโขโฟ
`;
return message.reply(errorText);
}
}
};