1 files changed, 6 insertions, 2 deletions
diff --git a/AccountData/BotData.cs b/AccountData/BotData.cs
index ab680c2..de52679 100644
--- a/AccountData/BotData.cs
+++ b/AccountData/BotData.cs
@@ -1,14 +1,18 @@
using System.Text.Json.Serialization;
+using LibMatrix.EventTypes;
namespace ModerationBot.AccountData;
+[MatrixEvent(EventName = EventId)]
public class BotData {
+ public const string EventId = "gay.rory.moderation_bot_data";
+
[JsonPropertyName("control_room")]
- public string ControlRoom { get; set; } = "";
+ public string? ControlRoom { get; set; } = "";
[JsonPropertyName("log_room")]
public string? LogRoom { get; set; } = "";
[JsonPropertyName("default_policy_room")]
public string? DefaultPolicyRoom { get; set; }
-}
+}
\ No newline at end of file
|