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 // Weirdest thing ever
if (std::holds_alternative<std::monostate>(id)) { if (std::holds_alternative<std::monostate>(id)) {
person = event.command.get_issuing_user().id; balance = getUserBalance(event.command.get_issuing_user().id);
balance = getUserBalance(person);
event.reply(COMMAND_BALANCE_SELF_RESPONSE(balance)); event.reply(COMMAND_BALANCE_SELF_RESPONSE(balance));
return; return;
} }

View File

@@ -31,7 +31,7 @@ void createCommands(const dpp::ready_t &event, dpp::cluster &bot) {
GUILD); GUILD);
bot.guild_command_create( 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( .add_option(dpp::command_option(
dpp::command_option_type::co_integer, "amount", dpp::command_option_type::co_integer, "amount",
COMMAND_PRINT_ARGS_AMOUNT_DESCRIPTION, true) COMMAND_PRINT_ARGS_AMOUNT_DESCRIPTION, true)

View File

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