From 673f55a39e5e7626ca29becf60ba161f264a8ad1 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Thu, 2 May 2024 01:18:23 +0500 Subject: upd: use client_id and token to get bot creds --- src/irc/client.hpp | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'src/irc/client.hpp') 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; -- cgit v1.2.3