about summary refs log tree commit diff
path: root/Utilities/LibMatrix.Utilities.Bot/LibMatrixBotConfiguration.cs
blob: aa4ca4db87548058bb7ed3110fab84916e669016 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
using Microsoft.Extensions.Configuration;

namespace LibMatrix.Utilities.Bot;

public class LibMatrixBotConfiguration {
    public LibMatrixBotConfiguration(IConfiguration config) => config.GetRequiredSection("LibMatrixBot").Bind(this);
    public string Homeserver { get; set; }
    public string AccessToken { get; set; }
    public List<string> Prefixes { get; set; }
    public bool MentionPrefix { get; set; }
    public string? LogRoom { get; set; }
}