summaryrefslogtreecommitdiff
path: root/src/config.hpp
diff options
context:
space:
mode:
authorilotterytea <iltsu@alright.party>2024-04-21 02:36:45 +0500
committerilotterytea <iltsu@alright.party>2024-04-21 02:36:45 +0500
commit744b36aefee654530158f06d682e9e330ffc06c9 (patch)
tree3e88ff8e693d99840fd7bb9f17923e360a4e2155 /src/config.hpp
parentaa21312f18ef86a335dd28272e317da959ceb9b7 (diff)
feat: .env config parser
Diffstat (limited to 'src/config.hpp')
-rw-r--r--src/config.hpp14
1 files changed, 14 insertions, 0 deletions
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 <optional>
+#include <string>
+
+namespace bot {
+ struct Configuration {
+ std::string bot_username;
+ std::string bot_password;
+ };
+
+ std::optional<Configuration> parse_configuration_from_file(
+ const std::string &file_path);
+}