aboutsummaryrefslogtreecommitdiff
path: root/Commands/ping.js
diff options
context:
space:
mode:
authorAndrew Lee <alee14498@protonmail.com>2024-02-13 22:35:50 -0500
committerAndrew Lee <alee14498@protonmail.com>2024-02-13 23:39:19 -0500
commit72ea1090753ccca3c5573801ae0b0a4439e1b736 (patch)
treebb3ff6e00572d111ddc1af0a864df90208c63840 /Commands/ping.js
parent3d4f5061d402b44218cdfd351f39317d5f8ecd11 (diff)
downloadDLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.tar.gz
DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.tar.bz2
DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.zip
Fully working i18n (hopefully); Docker on walkthrough
Diffstat (limited to 'Commands/ping.js')
-rw-r--r--Commands/ping.js5
1 files changed, 3 insertions, 2 deletions
diff --git a/Commands/ping.js b/Commands/ping.js
index 72ef024..3ee61e0 100644
--- a/Commands/ping.js
+++ b/Commands/ping.js
@@ -20,12 +20,13 @@
***************************************************************************/
import { SlashCommandBuilder } from 'discord.js';
-
+import i18next from '../Utilities/i18n.js';
+const t = i18next.t;
export default {
data: new SlashCommandBuilder()
.setName('ping')
.setDescription('Pong!'),
async execute(interaction, bot) {
- return await interaction.reply(`Pong! ${Math.round(bot.ws.ping)}ms`);
+ return await interaction.reply(`${t('pong')} ${Math.round(bot.ws.ping)}ms`);
}
};