summaryrefslogtreecommitdiff
path: root/src/config.hpp
blob: 6f4c7655d4a8b00fbb3d8f09419c736c5ffa7e32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#pragma once

#include <optional>
#include <string>

namespace bot {
  struct DatabaseConfiguration {
      std::string name;
      std::string user;
      std::string password;
      std::string host;
      std::string port;
  };

  struct Configuration {
      std::string bot_username;
      std::string bot_password;
      DatabaseConfiguration database;
  };

  std::optional<Configuration> parse_configuration_from_file(
      const std::string &file_path);
}