about summary refs log tree commit diff
path: root/Bot/AccountData/BotData.cs
diff options
context:
space:
mode:
authorTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
committerTheArcaneBrony <myrainbowdash949@gmail.com>2023-09-15 09:50:45 +0200
commitc2e8f573f5ee5803bf18e6068d801dfe5bb71a79 (patch)
treec201f76a2f82c16538a4e4fc1edc203b1ca6c901 /Bot/AccountData/BotData.cs
downloadPluralContactBotPoC-c2e8f573f5ee5803bf18e6068d801dfe5bb71a79.tar.xz
Some refactoring
Diffstat (limited to 'Bot/AccountData/BotData.cs')
-rw-r--r--Bot/AccountData/BotData.cs16
1 files changed, 16 insertions, 0 deletions
diff --git a/Bot/AccountData/BotData.cs b/Bot/AccountData/BotData.cs
new file mode 100644

index 0000000..9477488 --- /dev/null +++ b/Bot/AccountData/BotData.cs
@@ -0,0 +1,16 @@ +using System.Text.Json.Serialization; +using LibMatrix.Helpers; +using LibMatrix.Interfaces; + +namespace PluralContactBotPoC.Bot.AccountData; +[MatrixEvent(EventName = "gay.rory.plural_contact_bot.bot_config")] +public class BotData : EventContent { + [JsonPropertyName("control_room")] + public string ControlRoom { get; set; } = ""; + + [JsonPropertyName("log_room")] + public string? LogRoom { get; set; } = ""; + + [JsonPropertyName("policy_room")] + public string? PolicyRoom { get; set; } = ""; +}