summaryrefslogtreecommitdiff
path: root/bot/include/utils.hpp
diff options
context:
space:
mode:
authorsoler_j <soler_j@etna-alternance.net>2025-04-30 22:30:54 +0200
committersoler_j <soler_j@etna-alternance.net>2025-04-30 22:30:54 +0200
commit976c7a7466ef2852607a83ead4e0ed93550742d8 (patch)
treef3a6996d9b2e283b2501cf1d8b8f0bb82a21a967 /bot/include/utils.hpp
parente557ff8f867d777332ab397ba5b3b6be57767972 (diff)
Refactor project structure and remove unused files
- Updated CMakeLists.txt to include source files from the 'src' directory instead of 'include'. - Deleted 'http_webhook_server.cpp' and 'utils.cpp' files as they were no longer needed. - Added 'handle_actions.hpp' and 'handle_actions.cpp' to manage slash command actions. - Implemented 'http_webhook_server.cpp' to handle HTTP webhook server functionality. - Updated 'utils.hpp' to include necessary headers and declarations. - Refactored 'main.cpp' to include 'handle_actions.hpp' and updated slash command handling logic. - Enhanced 'utils.cpp' with utility functions for handling user and guild data.
Diffstat (limited to 'bot/include/utils.hpp')
-rw-r--r--bot/include/utils.hpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/bot/include/utils.hpp b/bot/include/utils.hpp
index 3052ecf..820fd01 100644
--- a/bot/include/utils.hpp
+++ b/bot/include/utils.hpp
@@ -1,5 +1,5 @@
// utils.hpp
-
+#pragma once
#ifndef UTILS_HPP
#define UTILS_HPP
@@ -63,7 +63,7 @@ namespace app
* @param actions The JSON object containing actions to be handled
* @param key_values The map of key-value pairs to be used in the actions
*/
- bool handle_actions(const slashcommand_t &event, const nlohmann::json &actions, const std::unordered_map<std::string, std::string> &key_values, dpp::cluster &bot);
+ bool handle_actions(const slashcommand_t &event, const nlohmann::json &actions, const std::unordered_map<std::string, std::string> &key_values);
/**
* @brief Parses a JSON string into a JSON object