1 2 3 4 5 6 7 8 9 10 11
using Microsoft.Extensions.Configuration; namespace MatrixRoomUtils.Bot; public class MRUBotConfiguration { public MRUBotConfiguration(IConfiguration config) { config.GetRequiredSection("Bot").Bind(this); } public string Homeserver { get; set; } = ""; public string AccessToken { get; set; } = ""; }