diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-02 01:18:23 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-02 01:18:23 +0500 |
| commit | 673f55a39e5e7626ca29becf60ba161f264a8ad1 (patch) | |
| tree | 9f7d04f54507f872edb5db024daae3d4d415ea98 /src/irc/client.hpp | |
| parent | 5776100b8a2f5fe568fbd19f8117bfce2cd63a5b (diff) | |
upd: use client_id and token to get bot creds
Diffstat (limited to 'src/irc/client.hpp')
| -rw-r--r-- | src/irc/client.hpp | 10 |
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; |
