diff --git a/.replit b/.replit index 5b6f647..3aa8355 100644 --- a/.replit +++ b/.replit @@ -22,6 +22,10 @@ externalPort = 80 localPort = 8080 externalPort = 8080 +[[ports]] +localPort = 35953 +externalPort = 3000 + [workflows] runButton = "Project" diff --git a/aethex-bot/commands/prestige.js b/aethex-bot/commands/prestige.js index f0e72d0..c685fa6 100644 --- a/aethex-bot/commands/prestige.js +++ b/aethex-bot/commands/prestige.js @@ -193,8 +193,7 @@ async function prestigeUp(interaction, supabase, client) { .from('user_profiles') .update({ xp: 0, - prestige_level: newPrestige, - total_xp_earned: totalEarned + currentXp + prestige_level: newPrestige }) .eq('id', link.user_id); @@ -216,7 +215,7 @@ async function prestigeUp(interaction, supabase, client) { .setDescription(`Congratulations! You are now **${newPrestigeInfo.name}**!\n\n**Rewards Unlocked:**\n${getNewRewards(newPrestige).join('\n')}`) .addFields( { name: 'XP Bonus', value: `+${xpBonus}%`, inline: true }, - { name: 'Total XP Earned (All Time)', value: (totalEarned + currentXp).toLocaleString(), inline: true } + { name: 'Total XP Earned (All Time)', value: totalEarned.toLocaleString(), inline: true } ) .setThumbnail(interaction.user.displayAvatarURL({ size: 256 })) .setTimestamp();