From 41b2785ad57a25503a16970542f3b1ecf3606519 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Sat, 10 Aug 2024 12:12:16 +0200 Subject: [PATCH 1/2] Update default url --- GuildWarsPartySearch.Bot/main.cpp | 2 +- GuildWarsPartySearch/extract-container-db.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) create mode 100644 GuildWarsPartySearch/extract-container-db.sh diff --git a/GuildWarsPartySearch.Bot/main.cpp b/GuildWarsPartySearch.Bot/main.cpp index 0c99822..fab6be3 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 = "ws://localhost/party-search/update"; uint32_t map_id = 857; // Embark beach District district = District::DISTRICT_AMERICAN; uint32_t district_number = 0; diff --git a/GuildWarsPartySearch/extract-container-db.sh b/GuildWarsPartySearch/extract-container-db.sh new file mode 100644 index 0000000..7e3ef79 --- /dev/null +++ b/GuildWarsPartySearch/extract-container-db.sh @@ -0,0 +1 @@ +docker cp partysearch:partysearches.db partysearches.db \ No newline at end of file From bd7c27c140e4576027f5fd58920c1e7b55c84506 Mon Sep 17 00:00:00 2001 From: Alex Macocian Date: Sat, 10 Aug 2024 12:21:11 +0200 Subject: [PATCH 2/2] Add bot dockerfile to the sln --- GuildWarsPartySearch.sln | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GuildWarsPartySearch.sln b/GuildWarsPartySearch.sln index 8c53007..3a8022a 100644 --- a/GuildWarsPartySearch.sln +++ b/GuildWarsPartySearch.sln @@ -35,6 +35,11 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Server", "Server", "{10E130 GuildWarsPartySearch\Dockerfile = GuildWarsPartySearch\Dockerfile EndProjectSection EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Bot", "Bot", "{0465395B-3F2E-485B-9802-E9B2F1D4BD38}" + ProjectSection(SolutionItems) = preProject + GuildWarsPartySearch.Bot\Dockerfile = GuildWarsPartySearch.Bot\Dockerfile + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -100,6 +105,7 @@ Global GlobalSection(NestedProjects) = preSolution {9FF3793B-F37B-4370-AECC-D901C879E0CB} = {B9CF84E8-5186-4C8F-A892-FDE452C3F21E} {10E13028-30D6-47CF-846E-757E6510D018} = {7F3BB655-7DC0-41BB-BC28-34039267C833} + {0465395B-3F2E-485B-9802-E9B2F1D4BD38} = {7F3BB655-7DC0-41BB-BC28-34039267C833} EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {41E8BB8F-3A9F-4256-8E34-62CCC9EB5EEE}