Making it so that Settings.hpp replaces token.h
This commit is contained in:
@@ -1,5 +1,4 @@
|
||||
#include "../../languages/locale_en.hpp"
|
||||
#include "../../token.h"
|
||||
#include "../Commands.hpp"
|
||||
#include "../Databases.hpp"
|
||||
|
||||
|
@@ -46,12 +46,13 @@ void commandPrintMoney(const dpp::slashcommand_t &event) {
|
||||
std::int64_t userid = event.command.get_issuing_user().id;
|
||||
|
||||
if (ADMIN_ID != userid) {
|
||||
event.reply(COMMAND_PRINT_FAIL_NO_PRIVILIEGE);
|
||||
event.reply(COMMAND_PRINT_FAIL_NO_PRIVILIEGE(std::to_string(ADMIN_ID)));
|
||||
return;
|
||||
}
|
||||
std::uint64_t amount = std::get<std::int64_t>(event.get_parameter("amount"));
|
||||
increaseFromUsersBalance(ADMIN_ID, amount);
|
||||
event.reply(COMMAND_PRINT_SUCCESS(std::to_string(amount)));
|
||||
event.reply(
|
||||
COMMAND_PRINT_SUCCESS(std::to_string(ADMIN_ID), std::to_string(amount)));
|
||||
}
|
||||
|
||||
///
|
||||
|
@@ -1,5 +1,5 @@
|
||||
#include "../languages/locale_en.hpp"
|
||||
#include "../token.h"
|
||||
#include "../settings.hpp"
|
||||
#include <dpp/cluster.h>
|
||||
#include <dpp/dispatcher.h>
|
||||
#include <dpp/snowflake.h>
|
||||
|
Reference in New Issue
Block a user