From d76037b36feaa71923325f3f6073085a68810917 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 20 Apr 2024 22:47:34 +0500 Subject: feat: irc client (wip) --- src/irc/client.cpp | 10 ++++++++++ src/irc/client.hpp | 17 +++++++++++++++++ src/main.cpp | 5 +++++ 3 files changed, 32 insertions(+) create mode 100644 src/irc/client.cpp create mode 100644 src/irc/client.hpp diff --git a/src/irc/client.cpp b/src/irc/client.cpp new file mode 100644 index 0000000..ed9552e --- /dev/null +++ b/src/irc/client.cpp @@ -0,0 +1,10 @@ +#include "client.hpp" + +#include + +using namespace RedpilledBot::IRC; + +Client::Client(std::string username, std::string password) { + this->username = username; + this->password = password; +} diff --git a/src/irc/client.hpp b/src/irc/client.hpp new file mode 100644 index 0000000..2fea780 --- /dev/null +++ b/src/irc/client.hpp @@ -0,0 +1,17 @@ +#pragma once + +#include + +namespace RedpilledBot { + namespace IRC { + class Client { + public: + Client(std::string username, std::string password); + ~Client() = default; + + private: + std::string username; + std::string password; + }; + } +} diff --git a/src/main.cpp b/src/main.cpp index f3eff06..34839eb 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -1,6 +1,11 @@ #include +#include "irc/client.hpp" + int main(int argc, char *argv[]) { std::cout << "hi world\n"; + + RedpilledBot::IRC::Client client("", ""); + return 0; } -- cgit v1.2.3