diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-17 10:21:19 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-17 10:21:19 -0500 |
| commit | 31be1abee66d89e5b4120c46f231303c9fed7a23 (patch) | |
| tree | 7dd338f00c020e027be55c178979a1f8059bc8ff | |
| parent | 0414f7d5da426f9d0b8082727ec7f8085515fffa (diff) | |
| download | DLAP-31be1abee66d89e5b4120c46f231303c9fed7a23.tar.gz DLAP-31be1abee66d89e5b4120c46f231303c9fed7a23.tar.bz2 DLAP-31be1abee66d89e5b4120c46f231303c9fed7a23.zip | |
Made pong ms translatable
| -rw-r--r-- | Commands/ping.js | 2 | ||||
| -rw-r--r-- | Locales/en/translation.json | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Commands/ping.js b/Commands/ping.js index 3ee61e0..91d5ed0 100644 --- a/Commands/ping.js +++ b/Commands/ping.js @@ -27,6 +27,6 @@ export default { .setName('ping') .setDescription('Pong!'), async execute(interaction, bot) { - return await interaction.reply(`${t('pong')} ${Math.round(bot.ws.ping)}ms`); + return await interaction.reply(t('pong', { ms: Math.round(bot.ws.ping) })); } }; diff --git a/Locales/en/translation.json b/Locales/en/translation.json index 68cd260..69b83b4 100644 --- a/Locales/en/translation.json +++ b/Locales/en/translation.json @@ -58,7 +58,7 @@ "listPage": "Page", "pausingMusic": "Pausing music", "pausedAlready": "Music is already paused", - "pong": "Pong!", + "pong": "Pong! {{ms}}ms", "numBig": "Number is too big, choose a number that's less than {{files}}.", "resumingMusic": "Resuming music", "resumedAlready": "Music is already playing", |
