mirror of
https://github.com/blitzkit/blitzkit.git
synced 2026-10-24 03:59:50 +02:00
Merge branch 'main' into dev
This commit is contained in:
commit
b4f0a9f1b9
2 files changed
+9
-4
No files matched your search
@@ -20,8 +20,8 @@ type Result =
|
|||||||
type: 'vehicle';
|
type: 'vehicle';
|
||||||
countable?: boolean;
|
countable?: boolean;
|
||||||
entity?: Entity;
|
entity?: Entity;
|
||||||
initial_count?: number;
|
initial_count: number;
|
||||||
current_count?: number;
|
current_count: number;
|
||||||
saleable?: boolean;
|
saleable?: boolean;
|
||||||
available_from?: Date;
|
available_from?: Date;
|
||||||
available_before?: Date;
|
available_before?: Date;
|
||||||
@@ -112,12 +112,16 @@ export const auctionCommand = new Promise<CommandRegistry>((resolve) => {
|
|||||||
interaction.locale,
|
interaction.locale,
|
||||||
)}`,
|
)}`,
|
||||||
]);
|
]);
|
||||||
|
const available = translate('bot.commands.auction.body.available', [
|
||||||
|
data.current_count.toLocaleString(interaction.locale),
|
||||||
|
data.initial_count.toLocaleString(interaction.locale),
|
||||||
|
]);
|
||||||
|
|
||||||
return `${
|
return `${
|
||||||
index + 1
|
index + 1
|
||||||
}. ${name} <:gold:1317173197082333244> ${data.price!.value.toLocaleString(
|
}. ${name} <:gold:1317173197082333244> ${data.price!.value.toLocaleString(
|
||||||
interaction.locale,
|
interaction.locale,
|
||||||
)}\n-# ${next}`;
|
)}\n-# ${available}\n-# ${next}`;
|
||||||
})
|
})
|
||||||
.join('\n\n');
|
.join('\n\n');
|
||||||
const content = `${title}\n${subtitle}\n\n${body}`;
|
const content = `${title}\n${subtitle}\n\n${body}`;
|
||||||
|
|||||||
@@ -298,7 +298,8 @@
|
|||||||
"body": {
|
"body": {
|
||||||
"title": "Blitz Auction",
|
"title": "Blitz Auction",
|
||||||
"subtitle": "%s available • next prices %s\nBid now: %s",
|
"subtitle": "%s available • next prices %s\nBid now: %s",
|
||||||
"next": "Next price: %s"
|
"next": "Next price: %s",
|
||||||
|
"available": "Available: %s / %s"
|
||||||
},
|
},
|
||||||
"errors": {
|
"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)."
|
"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)."
|
||||||
|
|||||||
Reference in new issue
Block a user