From 744b36aefee654530158f06d682e9e330ffc06c9 Mon Sep 17 00:00:00 2001 From: ilotterytea Date: Sun, 21 Apr 2024 02:36:45 +0500 Subject: feat: .env config parser --- src/config.hpp | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 src/config.hpp (limited to 'src/config.hpp') diff --git a/src/config.hpp b/src/config.hpp new file mode 100644 index 0000000..3c10d86 --- /dev/null +++ b/src/config.hpp @@ -0,0 +1,14 @@ +#pragma once + +#include +#include + +namespace bot { + struct Configuration { + std::string bot_username; + std::string bot_password; + }; + + std::optional parse_configuration_from_file( + const std::string &file_path); +} -- cgit v1.2.3