summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-20 23:01:32 +0500
committerilotterytea <iltsu@alright.party>2024-04-20 23:01:32 +0500
commite4cbe022bd03d3675f4d8a1986bf75c5bc313094 (patch)
tree6663cfe47fd26bc456c5db09fd19feebb09b9515
parentd76037b36feaa71923325f3f6073085a68810917 (diff)
feat: ixwebsocket
-rw-r--r--CMakeLists.txt10
-rw-r--r--src/irc/client.hpp4
2 files changed, 10 insertions, 4 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index c04707d..d0bb75b 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -11,12 +11,14 @@ set(CMAKE_CXX_STANDARD_REQUIRED True)
add_executable(Bot)
-file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.h" "src/*.hpp")
-
-target_sources(Bot PRIVATE ${SRC_FILES})
-
set_target_properties(
Bot PROPERTIES
DESCRIPTION ${PROJECT_DESCRIPTION}
OUTPUT_NAME "redpilled-bot_${PROJECT_VERSION}"
)
+
+file(GLOB_RECURSE SRC_FILES "src/*.cpp" "src/*.h" "src/*.hpp")
+
+target_sources(Bot PRIVATE ${SRC_FILES})
+
+target_link_libraries(Bot PRIVATE ixwebsocket)
diff --git a/src/irc/client.hpp b/src/irc/client.hpp
index 2fea780..493235b 100644
--- a/src/irc/client.hpp
+++ b/src/irc/client.hpp
@@ -1,5 +1,7 @@
#pragma once
+#include <ixwebsocket/IXWebSocket.h>
+
#include <string>
namespace RedpilledBot {
@@ -12,6 +14,8 @@ namespace RedpilledBot {
private:
std::string username;
std::string password;
+
+ ix::WebSocket websocket;
};
}
}