feat: introduce weekly bonus for daily rewards, updating calculations, configuration, and command UI.

This commit is contained in:
syntaxbullet
2025-12-22 13:16:44 +01:00
parent b7b1dd87b8
commit f859618367
4 changed files with 34 additions and 3 deletions

View File

@@ -15,9 +15,10 @@ export const daily = createCommand({
const embed = new EmbedBuilder()
.setTitle("💰 Daily Reward Claimed!")
.setDescription(`You claimed ** ${result.amount}** Astral Units!`)
.setDescription(`You claimed ** ${result.amount}** Astral Units!${result.isWeekly ? `\n🎉 **Weekly Bonus!** +${result.weeklyBonus} extra!` : ''}`)
.addFields(
{ name: "Streak", value: `🔥 ${result.streak} days`, inline: true },
{ name: "Weekly Progress", value: `${"🟩".repeat(result.streak % 7 || 7)}${"⬜".repeat(7 - (result.streak % 7 || 7))} (${result.streak % 7 || 7}/7)`, inline: true },
{ name: "Next Reward", value: `< t:${Math.floor(result.nextReadyAt.getTime() / 1000)}: R > `, inline: true }
)
.setColor("Gold")