forked from syntaxbullet/AuroraBot-discord
refactor: remove unused import, markdown fences, and standardize string interpolation formatting.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
```typescript
|
||||
|
||||
import { createCommand } from "@/lib/utils";
|
||||
import { SlashCommandBuilder, EmbedBuilder, MessageFlags } from "discord.js";
|
||||
import { economyService } from "@/modules/economy/economy.service";
|
||||
@@ -15,10 +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!`)
|
||||
.addFields(
|
||||
{ name: "Streak", value: `🔥 ${ result.streak } days`, inline: true },
|
||||
{ name: "Next Reward", value: `< t:${ Math.floor(result.nextReadyAt.getTime() / 1000) }: R > `, inline: true }
|
||||
{ name: "Streak", value: `🔥 ${result.streak} days`, inline: true },
|
||||
{ name: "Next Reward", value: `< t:${Math.floor(result.nextReadyAt.getTime() / 1000)}: R > `, inline: true }
|
||||
)
|
||||
.setColor("Gold")
|
||||
.setTimestamp();
|
||||
@@ -34,5 +34,4 @@ export const daily = createCommand({
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
```
|
||||
});
|
||||
Reference in New Issue
Block a user