From d57a5bcc3151f91fd82aa6f333e99a60eca8ced3 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sat, 11 May 2024 17:05:41 +0500 Subject: feat: help command + url configuration --- src/config.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.cpp') diff --git a/src/config.cpp b/src/config.cpp index 977b92c..a8bf3fb 100644 --- a/src/config.cpp +++ b/src/config.cpp @@ -23,6 +23,7 @@ namespace bot { DatabaseConfiguration db_cfg; CommandConfiguration cmd_cfg; OwnerConfiguration owner_cfg; + UrlConfiguration url_cfg; std::string line; while (std::getline(ifs, line, '\n')) { @@ -64,8 +65,13 @@ namespace bot { } else if (key == "owner.id") { owner_cfg.id = std::stoi(value); } + + else if (key == "url.help") { + url_cfg.help = value; + } } + cfg.url = url_cfg; cfg.owner = owner_cfg; cfg.commands = cmd_cfg; cfg.twitch_credentials = ttv_crd_cfg; -- cgit v1.2.3