about summary refs log tree commit diff
path: root/ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-06 18:29:15 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-06 18:29:15 +0200
commite5591eef3850a9796cc87386128651a828b70697 (patch)
tree7e501ec749229a3d96838265289266bb6f6ce208 /ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs
parentUnit tests, small refactors (diff)
downloadLibMatrix-e5591eef3850a9796cc87386128651a828b70697.tar.xz
Small refactors
Diffstat (limited to 'ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs')
-rw-r--r--ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs10
1 files changed, 10 insertions, 0 deletions
diff --git a/ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs b/ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs
new file mode 100644
index 0000000..cb5b596
--- /dev/null
+++ b/ExampleBots/MediaModeratorPoC/MediaModBotConfiguration.cs
@@ -0,0 +1,10 @@
+using Microsoft.Extensions.Configuration;
+
+namespace MediaModeratorPoC;
+
+public class MediaModBotConfiguration {
+    public MediaModBotConfiguration(IConfiguration config) => config.GetRequiredSection("MediaMod").Bind(this);
+
+    public List<string> Admins { get; set; } = new();
+    public bool DemoMode { get; set; } = false;
+}