Renamed it from cash to money, also fixed balance issue

This commit is contained in:
2025-07-19 03:18:09 +03:00
parent 1284fde1ee
commit 6d5177629a
3 changed files with 3 additions and 5 deletions

View File

@@ -15,10 +15,8 @@ void commandBalance(const dpp::slashcommand_t &event) {
// Weirdest thing ever
if (std::holds_alternative<std::monostate>(id)) {
person = event.command.get_issuing_user().id;
balance = getUserBalance(person);
balance = getUserBalance(event.command.get_issuing_user().id);
event.reply(COMMAND_BALANCE_SELF_RESPONSE(balance));
return;
}

View File

@@ -31,7 +31,7 @@ void createCommands(const dpp::ready_t &event, dpp::cluster &bot) {
GUILD);
bot.guild_command_create(
dpp::slashcommand("print_cash", COMMAND_PRINT_DESCRIPTION, bot.me.id)
dpp::slashcommand("print_money", COMMAND_PRINT_DESCRIPTION, bot.me.id)
.add_option(dpp::command_option(
dpp::command_option_type::co_integer, "amount",
COMMAND_PRINT_ARGS_AMOUNT_DESCRIPTION, true)

View File

@@ -26,4 +26,4 @@ inline std::unordered_map<std::string,
{"balance", commandBalance},
{"bal", commandBalance},
{"pay", commandPay},
{"print_cash", commandPrintMoney}};
{"print_money", commandPrintMoney}};