fix: avilable

This commit is contained in:
tresabhi committed 2024-12-13 16:25:37 -06:00
1 parent 4e513998a9
commit c0076e9ef9
2 files changed
+9 -4

No files matched your search

+7 -3
View File
@@ -20,8 +20,8 @@ type Result =
type: 'vehicle';
countable?: boolean;
entity?: Entity;
initial_count?: number;
current_count?: number;
initial_count: number;
current_count: number;
saleable?: boolean;
available_from?: Date;
available_before?: Date;
@@ -112,12 +112,16 @@ export const auctionCommand = new Promise<CommandRegistry>((resolve) => {
interaction.locale,
)}`,
]);
const available = translate('bot.commands.auction.body.available', [
data.current_count.toLocaleString(interaction.locale),
data.initial_count.toLocaleString(interaction.locale),
]);
return `${
index + 1
}. ${name} <:gold:1317173197082333244> ${data.price!.value.toLocaleString(
interaction.locale,
)}\n-# ${next}`;
)}\n-# ${available}\n-# ${next}`;
})
.join('\n\n');
const content = `${title}\n${subtitle}\n\n${body}`;
+2 -1
View File
@@ -298,7 +298,8 @@
"body": {
"title": "Blitz Auction",
"subtitle": "%s available • next prices %s\nBid now: %s",
"next": "Next price: %s"
"next": "Next price: %s",
"available": "Available: %s / %s"
},
"errors": {
"no_auction": "# No ongoing auction\n\nCurrently, there are no tanks available for purchase in the auction. If you think this is an error, please report this discrepancy in [the official Discord Server](https://discord.gg/nDt7AjGJQH)."