From ecda7b17dfd83d787bc12d7194103d20cd4a8354 Mon Sep 17 00:00:00 2001 From: "Emma [it/its]@Rory&" Date: Wed, 24 Jan 2024 02:28:54 +0100 Subject: MessageBuilder extensions --- Bot/RMUBotConfiguration.cs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 Bot/RMUBotConfiguration.cs (limited to 'Bot/RMUBotConfiguration.cs') diff --git a/Bot/RMUBotConfiguration.cs b/Bot/RMUBotConfiguration.cs new file mode 100644 index 0000000..9edc4bd --- /dev/null +++ b/Bot/RMUBotConfiguration.cs @@ -0,0 +1,12 @@ +using Microsoft.Extensions.Configuration; + +namespace LibMatrix.ExampleBot.Bot; + +public class RMUBotConfiguration { + public RMUBotConfiguration(IConfiguration config) { + config.GetRequiredSection("Bot").Bind(this); + } + public string Homeserver { get; set; } = ""; + public string AccessToken { get; set; } = ""; + public string Prefix { get; set; } +} -- cgit 1.5.1