forked from syntaxbullet/AuroraBot-discord
feat: introduce weekly bonus for daily rewards, updating calculations, configuration, and command UI.
This commit is contained in:
@@ -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")
|
||||
|
||||
Reference in New Issue
Block a user