From 8579db2c9099630b6a268015d586db73435032f0 Mon Sep 17 00:00:00 2001 From: Rory& Date: Fri, 23 Feb 2024 12:31:43 +0100 Subject: Changes --- AccountData/BotData.cs | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'AccountData/BotData.cs') 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 -- cgit 1.5.1