about summary refs log tree commit diff
path: root/AccountData/BotData.cs
diff options
context:
space:
mode:
authorRory& <root@rory.gay>2024-02-23 12:31:43 +0100
committerRory& <root@rory.gay>2024-02-23 12:31:43 +0100
commit8579db2c9099630b6a268015d586db73435032f0 (patch)
tree6b16adca592da2069943b9cbc518fc55d01713d7 /AccountData/BotData.cs
parentAdd gitignore, license, editorconfig (diff)
downloadModerationBot-8579db2c9099630b6a268015d586db73435032f0.tar.xz
Changes
Diffstat (limited to 'AccountData/BotData.cs')
-rw-r--r--AccountData/BotData.cs8
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