diff options
author | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-25 03:07:05 +0200 |
---|---|---|
committer | TheArcaneBrony <myrainbowdash949@gmail.com> | 2023-06-25 03:07:05 +0200 |
commit | f866946fbbe962c712049327ade9dcbd43900295 (patch) | |
tree | 3400fcce20f68a6ef3eb130f4ef57733e346d0e9 /MatrixRoomUtils.Bot/MRUBotConfiguration.cs | |
parent | Working sync (diff) | |
download | MatrixUtils-f866946fbbe962c712049327ade9dcbd43900295.tar.xz |
Working state, refactored Rory&::LibMatrix
Diffstat (limited to 'MatrixRoomUtils.Bot/MRUBotConfiguration.cs')
-rw-r--r-- | MatrixRoomUtils.Bot/MRUBotConfiguration.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/MatrixRoomUtils.Bot/MRUBotConfiguration.cs b/MatrixRoomUtils.Bot/MRUBotConfiguration.cs new file mode 100644 index 0000000..14d9b60 --- /dev/null +++ b/MatrixRoomUtils.Bot/MRUBotConfiguration.cs @@ -0,0 +1,11 @@ +using Microsoft.Extensions.Configuration; + +namespace MatrixRoomUtils.Bot; + +public class MRUBotConfiguration { + public MRUBotConfiguration(IConfiguration config) { + config.GetRequiredSection("Bot").Bind(this); + } + public string Homeserver { get; set; } = ""; + public string AccessToken { get; set; } = ""; +} \ No newline at end of file |