diff --git a/Config/Config.cs b/Config/ConfigManager.cs similarity index 75% rename from Config/Config.cs rename to Config/ConfigManager.cs index afb23e1..c0718aa 100644 --- a/Config/Config.cs +++ b/Config/ConfigManager.cs @@ -51,16 +51,3 @@ private static void ValidateConfig(object config) } } -public sealed class DiscordConfig -{ - public const string ConfigurationSectionName = "DiscordConfig"; - - // TODO: Move the Token to user secrets at some point - - [Required] - [RegularExpression(@"^([MN][\w-]{23,25})\.([\w-]{6})\.([\w-]{27,39})$", ErrorMessage = "Invalid token format")] - public required string Token { get; set; } - public ActivityType StatusType { get; set; } - public string? Status { get; set; } - public bool Debug { get; set; } -} diff --git a/Config/DiscordConfig.cs b/Config/DiscordConfig.cs new file mode 100644 index 0000000..ab15e29 --- /dev/null +++ b/Config/DiscordConfig.cs @@ -0,0 +1,18 @@ +using System.ComponentModel.DataAnnotations; +using Discord; + +namespace QuickEdit.Config; + +public sealed class DiscordConfig +{ + public const string ConfigurationSectionName = "DiscordConfig"; + + // TODO: Move the Token to user secrets at some point + + [Required] + [RegularExpression(@"^([MN][\w-]{23,25})\.([\w-]{6})\.([\w-]{27,39})$", ErrorMessage = "Invalid token format")] + public required string Token { get; set; } + public ActivityType StatusType { get; set; } + public string? Status { get; set; } + public bool Debug { get; set; } +}