From 67be061be8d2e49f2c6e672fb071350488f815f4 Mon Sep 17 00:00:00 2001 From: Jon <> Date: Sat, 10 Aug 2024 11:15:36 +0100 Subject: [PATCH] Define websocket endpoint from config.sh --- GuildWarsPartySearch.Bot/config.example.sh | 4 +++- GuildWarsPartySearch.Bot/main.cpp | 2 +- GuildWarsPartySearch.Bot/run.sh | 11 +---------- 3 files changed, 5 insertions(+), 12 deletions(-) diff --git a/GuildWarsPartySearch.Bot/config.example.sh b/GuildWarsPartySearch.Bot/config.example.sh index 9eb129a..ef0793c 100644 --- a/GuildWarsPartySearch.Bot/config.example.sh +++ b/GuildWarsPartySearch.Bot/config.example.sh @@ -13,4 +13,6 @@ CHARACTER="" # Map ID to travel to listen for party searches MAP_ID="148" # Composite district enum to use (e.g. 1 = AMERICAN) - check source code! -DISTRICT="1" \ No newline at end of file +DISTRICT="1" +# Endpoint to send party searches to +WEBSOCKET_URL="ws://hostname/party-search/update" \ No newline at end of file diff --git a/GuildWarsPartySearch.Bot/main.cpp b/GuildWarsPartySearch.Bot/main.cpp index 6cbed16..7c10e7f 100644 --- a/GuildWarsPartySearch.Bot/main.cpp +++ b/GuildWarsPartySearch.Bot/main.cpp @@ -49,7 +49,7 @@ extern "C" { #define FAILED_TO_CONNECT 5 struct BotConfiguration { - std::string web_socket_url = "ws://217.160.162.89/party-search/update"; + std::string web_socket_url = ""; uint32_t map_id = 857; // Embark beach District district = District::DISTRICT_AMERICAN; uint32_t district_number = 0; diff --git a/GuildWarsPartySearch.Bot/run.sh b/GuildWarsPartySearch.Bot/run.sh index f1de3cb..63ad42e 100644 --- a/GuildWarsPartySearch.Bot/run.sh +++ b/GuildWarsPartySearch.Bot/run.sh @@ -29,16 +29,6 @@ if [ ! -f $CLIENT_EXE ]; then source build.sh fi -echo $CLIENT_EXE -echo $EMAIL -echo $PASSWORD -echo $CHARACTER -echo $DISTRICT -echo $MAP_ID -echo $LOG_FILE -echo $BUILD_VERSION_FILE -echo $PLUGIN_EXE - RUN_CMD=$(cat <