From 4fc1508c10a4627cd3a77ccb25b4eba6801c7ff4 Mon Sep 17 00:00:00 2001 From: cat Date: Sat, 19 Jul 2025 01:19:47 +0300 Subject: [PATCH] Locale adjustment --- languages/locale_en.hpp | 2 ++ src/Commands.cpp | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/languages/locale_en.hpp b/languages/locale_en.hpp index 97c16c8..7e3c0b7 100644 --- a/languages/locale_en.hpp +++ b/languages/locale_en.hpp @@ -1,2 +1,4 @@ #define CURRENCY_NAME "The Night Coin" #define COMMAND_BALANCE_DESCRIPTION "See your balance of " CURRENCY_NAME +#define COMMAND_BALANCE_RESPONSE(balance) \ + "You currently have " + balance + " " CURRENCY_NAME "(s)" diff --git a/src/Commands.cpp b/src/Commands.cpp index 258aee9..80c2df6 100644 --- a/src/Commands.cpp +++ b/src/Commands.cpp @@ -17,5 +17,5 @@ void commandBalance(const dpp::slashcommand_t &event) { balance = balance.substr(begining, balance.find(';') - begining); } - event.reply("You have " + balance + " " + CURRENCY_NAME + "(s)"); + event.reply(COMMAND_BALANCE_RESPONSE(balance)); }