about summary refs log tree commit diff
path: root/MatrixUtils.DmSpaced/ModerationBotConfiguration.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-02-23 13:57:06 +0100
committerRory& <root@rory.gay>2024-02-23 13:57:06 +0100
commitd0d11db2209a8be65c27e15ca9d8a3b594f1a352 (patch)
treeb42b7de4b09888a1439d0939707ba1331becf626 /MatrixUtils.DmSpaced/ModerationBotConfiguration.cs
parentHS emulator (diff)
downloadMatrixUtils-d0d11db2209a8be65c27e15ca9d8a3b594f1a352.tar.xz
Add eons of work because I forgot to push
Diffstat (limited to 'MatrixUtils.DmSpaced/ModerationBotConfiguration.cs')
-rw-r--r--MatrixUtils.DmSpaced/ModerationBotConfiguration.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/MatrixUtils.DmSpaced/ModerationBotConfiguration.cs b/MatrixUtils.DmSpaced/ModerationBotConfiguration.cs
new file mode 100644
index 0000000..47e6423
--- /dev/null
+++ b/MatrixUtils.DmSpaced/ModerationBotConfiguration.cs
@@ -0,0 +1,10 @@
+using Microsoft.Extensions.Configuration;
+
+namespace ModerationBot;
+
+public class ModerationBotConfiguration {
+    public ModerationBotConfiguration(IConfiguration config) => config.GetRequiredSection("ModerationBot").Bind(this);
+
+    public string Homeserver { get; set; }
+    public string AccessToken { get; set; }
+}