summaryrefslogtreecommitdiff
path: root/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/main.cpp')
-rw-r--r--src/main.cpp4
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) {