antiantiswearingbot/Jetsparrow.Aasb/Config.cs
2023-03-26 22:40:44 +03:00

29 lines
653 B
C#

using System.ComponentModel.DataAnnotations;
namespace Jetsparrow.Aasb;
public class UnbleeperSettings
{
public string LegalWordsRegex { get; set; }
public string BleepedSwearsRegex { get; set; }
public int MinAmbiguousWordLength { get; set; }
public int MinWordLength { get; set; }
}
public class SearchDictionarySettings
{
public string DictionaryPath { get; set; }
[Range(typeof(TimeSpan), "00:00:10", "01:00:00")]
public TimeSpan AutosavePeriod { get; set; }
}
public class TelegramSettings
{
public string ApiKey { get; set; }
}
public class AccessSettings
{
public string[] AllowedChats { get; set; }
}