summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgarder500 <jeremy27.clara22@gmail.com>2025-05-02 00:21:01 +0200
committergarder500 <jeremy27.clara22@gmail.com>2025-05-02 00:21:01 +0200
commit502ae25637f103a063c145509c051d1ce6061e4f (patch)
tree09c49fec114326a982648ccb4ce961f092a44b19
parent83298ee3aec687ba1c5f41fb7135e465869d4fe8 (diff)
Modifie la gestion des types d'activité : retourne "playing" par défaut en cas de type inconnu au lieu de lancer une exception.
-rw-r--r--bot/src/main.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/bot/src/main.cpp b/bot/src/main.cpp
index 8007998..1edac34 100644
--- a/bot/src/main.cpp
+++ b/bot/src/main.cpp
@@ -18,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
}
}