diff options
| -rw-r--r-- | src/irc/client.cpp | 10 | ||||
| -rw-r--r-- | src/irc/client.hpp | 17 | ||||
| -rw-r--r-- | src/main.cpp | 5 |
3 files changed, 32 insertions, 0 deletions
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 <string> + +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 <string> + +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 <iostream> +#include "irc/client.hpp" + int main(int argc, char *argv[]) { std::cout << "hi world\n"; + + RedpilledBot::IRC::Client client("", ""); + return 0; } |
