summaryrefslogtreecommitdiff
path: root/src/irc/client.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/irc/client.hpp')
-rw-r--r--src/irc/client.hpp10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/irc/client.hpp b/src/irc/client.hpp
index 36d7382..cff867f 100644
--- a/src/irc/client.hpp
+++ b/src/irc/client.hpp
@@ -11,7 +11,7 @@ namespace bot {
namespace irc {
class Client {
public:
- Client(std::string username, std::string password);
+ Client(std::string client_id, std::string token);
~Client() = default;
void run();
@@ -31,15 +31,19 @@ namespace bot {
}
}
+ const std::string &get_bot_username() const { return this->username; };
+ const int &get_bot_id() const { return this->id; }
+
private:
void authorize();
- std::string username;
- std::string password;
+ std::string client_id, token, username;
std::string host;
std::string port;
+ int id;
+
ix::WebSocket websocket;
bool is_connected = false;