diff options
| author | soler_j <soler_j@etna-alternance.net> | 2025-05-04 01:26:36 +0200 |
|---|---|---|
| committer | soler_j <soler_j@etna-alternance.net> | 2025-05-04 01:26:36 +0200 |
| commit | e82d081f0fc630fe9244ff9d461f91dd1d4dc63b (patch) | |
| tree | 09c49fec114326a982648ccb4ce961f092a44b19 /bot/src/main.cpp | |
| parent | 23cba7cd6b32b7c5db98aa5a3f9206d4bce07902 (diff) | |
| parent | 502ae25637f103a063c145509c051d1ce6061e4f (diff) | |
Merge branch '1-more-actions-to-handle' of github.com:ketsuna-org/bot-creator-api into 1-more-actions-to-handle
Diffstat (limited to 'bot/src/main.cpp')
| -rw-r--r-- | bot/src/main.cpp | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/bot/src/main.cpp b/bot/src/main.cpp index 42e84bd..1edac34 100644 --- a/bot/src/main.cpp +++ b/bot/src/main.cpp @@ -1,5 +1,3 @@ -#include <dpp/dpp.h> -#include <string> #include "../include/utils.hpp" #include "../include/http_webhook_server.hpp" #include "../include/handle_actions.hpp" @@ -20,7 +18,7 @@ dpp::activity_type activity_type_from_string(const std::string& type) { } else if (type == "competing") { return dpp::activity_type::at_competing; } else { - throw std::invalid_argument("Invalid activity type"); + return dpp::activity_type::at_game; // Default to "playing" if the type is unknown } } |
