diff --git a/GuildWarsPartySearch.Bot/config.example.sh b/GuildWarsPartySearch.Bot/config.example.sh index 3afabc9..b1ac521 100644 --- a/GuildWarsPartySearch.Bot/config.example.sh +++ b/GuildWarsPartySearch.Bot/config.example.sh @@ -14,9 +14,9 @@ PASSWORD="" CHARACTER="" # Map ID to travel to listen for party searches, default embark beach MAP_ID="857" -# Composite district enum to use (e.g. 1 = AMERICAN) - check source code! +# Composite district enum to use (e.g. 1 = AMERICAN) - check Dependencies/Headquarter/include/client/constants.h! DISTRICT="1" # Endpoint to send party searches to -WEBSOCKET_URL="ws://localhost/party-search/update" +WEBSOCKET_URL="wss://localhost" # Api key to provide as a header when connecting to above websocket WEBSOCKET_API_KEY="development" diff --git a/GuildWarsPartySearch.Bot/main.cpp b/GuildWarsPartySearch.Bot/main.cpp index eb7835b..aacaf10 100644 --- a/GuildWarsPartySearch.Bot/main.cpp +++ b/GuildWarsPartySearch.Bot/main.cpp @@ -7,9 +7,12 @@ #endif #define _CRT_SECURE_NO_WARNINGS -#include -#include +#include +#include #include +#include +#include +#include #define HEADQUARTER_RUNTIME_LINKING extern "C" { @@ -27,11 +30,8 @@ extern "C" { #endif #include -#include -#include #include #include -#include #include #ifdef array @@ -59,8 +59,8 @@ extern "C" { struct BotConfiguration { std::string web_socket_url = ""; std::string api_key = "development"; - uint32_t map_id = 0; // Embark beach - District district = District::DISTRICT_AMERICAN; + uint32_t map_id = 0; // stay in current map + District district = District::DISTRICT_CURRENT; uint32_t district_number = 0; int32_t connection_retries = 10; };