Added bot parameter to all methods and get_pfp

This commit is contained in:
2025-07-22 04:41:45 +03:00
parent 836d257a17
commit 18573286bc
6 changed files with 40 additions and 14 deletions

View File

@@ -3,8 +3,9 @@
#include "Commands/OtherCommands.cpp"
// Registry
std::unordered_map<std::string,
std::function<void(const dpp::slashcommand_t &event)>>
std::unordered_map<
std::string,
std::function<void(const dpp::slashcommand_t &event, dpp::cluster &bot)>>
Commands{{"ping", commandPing},
{"about", commandAbout},
{"balance", commandBalance},
@@ -12,4 +13,5 @@ std::unordered_map<std::string,
{"pay", commandPay},
{"print_money", commandPrintMoney},
{"burn_money", commandBurnMoney},
{"money_leaderboard", commandMoneyLeaderboard}};
{"money_leaderboard", commandMoneyLeaderboard},
{"get_pfp", commandGetPFP}};