2021-09-17 18:28:39 +02:00
|
|
|
|
const { MessageEmbed } = require("discord.js");
|
|
|
|
|
module.exports = {
|
|
|
|
|
name: "profile",
|
|
|
|
|
usage: "(User)",
|
|
|
|
|
description: "Check an user economy profile",
|
|
|
|
|
type: "CHAT_INPUT",
|
|
|
|
|
options: [
|
|
|
|
|
{
|
|
|
|
|
type: 6,
|
|
|
|
|
name: "user",
|
|
|
|
|
description: "The user you want to see",
|
|
|
|
|
required: false,
|
|
|
|
|
},
|
|
|
|
|
],
|
2021-11-18 18:56:42 +01:00
|
|
|
|
run: async (client, interaction, args) => {
|
2021-09-17 18:28:39 +02:00
|
|
|
|
const user =
|
|
|
|
|
interaction.guild.members.cache.get(args[0]) || interaction.member;
|
|
|
|
|
const bjwin = await client.bjWin(user.user.id);
|
|
|
|
|
const swin = await client.sWin(user.user.id);
|
|
|
|
|
const bwin = await client.bWin(user.user.id);
|
|
|
|
|
const cmdused = await client.cmdsUSED(user.user.id);
|
|
|
|
|
const bal = await client.bal(user.user.id);
|
|
|
|
|
const multi = await client.multi(interaction);
|
|
|
|
|
const game = new MessageEmbed()
|
2021-11-18 18:56:42 +01:00
|
|
|
|
.setFooter(`Made by ${client.author}`, client.user.displayAvatarURL())
|
2021-09-17 18:28:39 +02:00
|
|
|
|
.setColor("7196ef")
|
|
|
|
|
.setTitle(`${user.displayName}'s profile`)
|
2021-11-18 18:56:42 +01:00
|
|
|
|
.setDescription(`Current Balance ${bal} ${client.currency}`)
|
|
|
|
|
.setURL(client.web)
|
|
|
|
|
.addFields(
|
|
|
|
|
{
|
|
|
|
|
name: "Basic",
|
|
|
|
|
value: `
|
|
|
|
|
Total Commands Used \`${cmdused}\`\n
|
|
|
|
|
${client.xp} Multiplier \`${`1.${multi}x`}\``,
|
|
|
|
|
inline: true,
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
name: "🎊 Wins",
|
|
|
|
|
value: `Overall ❯ \`${bjwin + swin + bwin}\`
|
|
|
|
|
🃏 Blackjack ❯ \`${bjwin}\`\n
|
|
|
|
|
🎰 Slots ❯ \`${swin}\`\n
|
|
|
|
|
🕹 Bets ❯ \`${bwin}\`\n`,
|
|
|
|
|
inline: true,
|
|
|
|
|
}
|
2021-09-17 18:28:39 +02:00
|
|
|
|
);
|
2021-11-18 18:56:42 +01:00
|
|
|
|
interaction.followUp({ embeds: [game] });
|
2021-09-17 18:28:39 +02:00
|
|
|
|
},
|
|
|
|
|
};
|