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)); }