about summary refs log tree commit diff
path: root/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-10-10 21:24:28 +0200
committerEmma [it/its]@Rory& <root@rory.gay>2023-10-10 21:44:30 +0200
commit06be7bed0c640c21503f75ce834a6fde2fc905ba (patch)
treeeff4ef92267dd79ce308ec2df348ae6ef50e8ecc /OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs
downloadOsuFederatedBeatmapApi-06be7bed0c640c21503f75ce834a6fde2fc905ba.tar.xz
Initial commit
Diffstat (limited to 'OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs')
-rw-r--r--OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs b/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs
new file mode 100644
index 0000000..b77cd75
--- /dev/null
+++ b/OsuFederatedBeatmapApi/Services/FederatedBeatmapApiBotConfiguration.cs
@@ -0,0 +1,8 @@
+namespace OsuFederatedBeatmapApi.Services;
+
+public class FederatedBeatmapApiBotConfiguration {
+    public FederatedBeatmapApiBotConfiguration(IConfiguration config) => config.GetRequiredSection("BeatmapApiBot").Bind(this);
+
+    public List<string> Admins { get; set; } = new();
+    public bool DemoMode { get; set; } = false;
+}