diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-02 00:05:53 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-02 00:05:53 +0500 |
| commit | 64ee8f8e7639c1e84a7e68d45e2aceec5299a4d6 (patch) | |
| tree | cbed19fbf96eceab891d8435eb80f69d51e7ed0f /src/main.cpp | |
| parent | de0439408529a257f975e613a9ac6b31926844f6 (diff) | |
feat: client for twitch api
Diffstat (limited to 'src/main.cpp')
| -rw-r--r-- | src/main.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/main.cpp b/src/main.cpp index d617769..842e093 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -3,6 +3,7 @@ #include <pqxx/pqxx> #include <string> +#include "api/twitch/helix_client.hpp" #include "bundle.hpp" #include "commands/command.hpp" #include "config.hpp" @@ -57,6 +58,9 @@ int main(int argc, char *argv[]) { work.commit(); conn.close(); + bot::api::twitch::HelixClient helix_client(cfg.bot_password, + cfg.bot_client_id); + client.on<bot::irc::MessageType::Privmsg>( [&client, &command_loader, &localization, &cfg](const bot::irc::Message<bot::irc::MessageType::Privmsg> &message) { |
