about summary refs log tree commit diff
path: root/ModerationBotConfiguration.cs
diff options
context:
space:
mode:
authorEmma [it/its]@Rory& <root@rory.gay>2023-11-23 05:42:33 +0100
committerEmma [it/its]@Rory& <root@rory.gay>2023-11-23 05:42:33 +0100
commit41316bb445790e7df34f55b7e2b1cfeae04f2adc (patch)
treef4970983f43baf209966c494242e9f56c42a37de /ModerationBotConfiguration.cs
downloadModerationBot-41316bb445790e7df34f55b7e2b1cfeae04f2adc.tar.xz
Moderation bot work
Diffstat (limited to 'ModerationBotConfiguration.cs')
-rw-r--r--ModerationBotConfiguration.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ModerationBotConfiguration.cs b/ModerationBotConfiguration.cs
new file mode 100644
index 0000000..415b581
--- /dev/null
+++ b/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 List<string> Admins { get; set; } = new();
+    public bool DemoMode { get; set; } = false;
+}