about summary refs log tree commit diff
path: root/ExampleBots/MediaModeratorPoC/Bot/MediaModBotConfiguration.cs
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--ExampleBots/MediaModeratorPoC/Bot/MediaModBotConfiguration.cs13
1 files changed, 13 insertions, 0 deletions
diff --git a/ExampleBots/MediaModeratorPoC/Bot/MediaModBotConfiguration.cs b/ExampleBots/MediaModeratorPoC/Bot/MediaModBotConfiguration.cs
new file mode 100644
index 0000000..c441e2a
--- /dev/null
+++ b/ExampleBots/MediaModeratorPoC/Bot/MediaModBotConfiguration.cs
@@ -0,0 +1,13 @@
+using Microsoft.Extensions.Configuration;
+
+namespace MediaModeratorPoC.Bot;
+
+public class MediaModBotConfiguration {
+    public MediaModBotConfiguration(IConfiguration config) {
+        config.GetRequiredSection("MediaMod").Bind(this);
+    }
+    public string Homeserver { get; set; } = "";
+    public string AccessToken { get; set; } = "";
+    public string Prefix { get; set; }
+    public List<string> Admins { get; set; } = new();
+}