diff options
| author | ilotterytea <iltsu@alright.party> | 2024-05-08 22:06:23 +0500 |
|---|---|---|
| committer | ilotterytea <iltsu@alright.party> | 2024-05-08 22:06:23 +0500 |
| commit | 8c83c83184cc2daf5fb10bbcd01d92dee0bfbb26 (patch) | |
| tree | ed81c57775b9bfd03670e03ea369501f9484471e /src | |
| parent | 3a1e75ab3767139de0f381a04c44e92bb0d947de (diff) | |
upd: added Configuration into InstanceBundle
Diffstat (limited to 'src')
| -rw-r--r-- | src/bundle.hpp | 2 | ||||
| -rw-r--r-- | src/main.cpp | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/src/bundle.hpp b/src/bundle.hpp index 1ea47a3..d30f5f8 100644 --- a/src/bundle.hpp +++ b/src/bundle.hpp @@ -1,6 +1,7 @@ #pragma once #include "api/twitch/helix_client.hpp" +#include "config.hpp" #include "irc/client.hpp" #include "localization/localization.hpp" @@ -9,5 +10,6 @@ namespace bot { irc::Client &irc_client; const api::twitch::HelixClient &helix_client; const bot::loc::Localization &localization; + const Configuration &configuration; }; } diff --git a/src/main.cpp b/src/main.cpp index ecae796..4443497 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -69,7 +69,7 @@ int main(int argc, char *argv[]) { client.on<bot::irc::MessageType::Privmsg>( [&client, &command_loader, &localization, &cfg, &helix_client]( const bot::irc::Message<bot::irc::MessageType::Privmsg> &message) { - bot::InstanceBundle bundle{client, helix_client, localization}; + bot::InstanceBundle bundle{client, helix_client, localization, cfg}; pqxx::connection conn(GET_DATABASE_CONNECTION_URL(cfg)); |
