From 750c6b4447e208986def87ae058c5fecbcdbe3c1 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Fri, 1 Nov 2024 19:07:15 +0100 Subject: [PATCH] small fixes for play position --- src/commands/music/play.ts | 4 ++-- src/locales/en-US.json | 2 +- src/locales/fr.json | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/commands/music/play.ts b/src/commands/music/play.ts index 439a4ea..9cbb3d2 100644 --- a/src/commands/music/play.ts +++ b/src/commands/music/play.ts @@ -187,12 +187,12 @@ export default { return loc.get("c_play_sub2_name"); } + const estimation = timeToString(queue.estimatedDuration); return `${loc.get("c_play10")} ${pos} (${loc.get("c_play11")} ≈${estimation})`; }; - const estimation = timeToString(queue.estimatedDuration); return await interaction.followUp({ - content: `⏱️ | \`${title}\` ${loc.get("c_play5")}, ${loc.get("c_play12")} : ${positionEstimation()}.`, + content: `⏱️ | \`${title}\` ${loc.get("c_play5")}, ${loc.get("c_play12")} ${positionEstimation()}.`, }); }, diff --git a/src/locales/en-US.json b/src/locales/en-US.json index ecbf532..4385cb5 100644 --- a/src/locales/en-US.json +++ b/src/locales/en-US.json @@ -96,7 +96,7 @@ "c_play7": "Currently playing", "c_play8": "Asked by", "c_play9": "No results were found", - "c_play10": "position", + "c_play10": "in position", "c_play11": "estimation", "c_play12": "play", diff --git a/src/locales/fr.json b/src/locales/fr.json index 65163d5..e83b8ae 100644 --- a/src/locales/fr.json +++ b/src/locales/fr.json @@ -96,7 +96,7 @@ "c_play7": "Joue actuellement", "c_play8": "Demandé par", "c_play9": "Aucun résultat trouvé", - "c_play10": "position", + "c_play10": "en position", "c_play11": "estimation", "c_play12": "joue",