diff --git a/commands/stats.js b/commands/stats.js index 16da704..6c16547 100644 --- a/commands/stats.js +++ b/commands/stats.js @@ -44,6 +44,7 @@ module.exports = { { name: "Cards owned", value: `${qualities.join('\n')}\n${totalCards} total - ${burnedCards} burned`, inline: true }, { name: "Level", value: `${level.currentLevel}`, inline: true }, { name: "Progress", value: `${level.currentExperience} / ${level.nextLevelExperience}\n${level.remaining} XP remaining`, inline: true }, + { name: "Wallet", value: `${user.primaryCurrency} ${CURRENCY_SYMBOLS[1]}\n${user.secondaryCurrency} ${CURRENCY_SYMBOLS[2]}`, inline: true }, { name: "Registered since", value: `${registrationDate}`, inline: true } ) .setColor(0x00FF00); diff --git a/commands/view.js b/commands/view.js index 02bd339..b1ed58d 100644 --- a/commands/view.js +++ b/commands/view.js @@ -1,6 +1,7 @@ const { SlashCommandBuilder, AttachmentBuilder, EmbedBuilder, ActionRowBuilder, ButtonBuilder, ButtonStyle, ComponentType } = require("discord.js"); const { Card, User, Band, Character } = require("../models"); const { Rendering, UserUtils } = require("../util"); +const { QUALITY_NAMES } = require("../config/constants"); const fs = require("fs"); const edit = require("./edit"); @@ -87,7 +88,7 @@ module.exports = { { name: "Band", value: `${card.Character.Band.name}` }, { name: "Character ID", value: `${card.Character.id}` }, { name: 'Print Number', value: `${card.printNr}`, inline: true }, - { name: 'Quality', value: `${card.quality}`, inline: true } + { name: 'Quality', value: `${QUALITY_NAMES[card.quality]} ${(card.quality === 6 ? '':'')}`, inline: true } ) .setColor(0x00ff00) .setFooter({ text: `${card.identifier}`, iconURL: 'https://cdn.discordapp.com/attachments/856904078754971658/1017431187234508820/fp.png' })