diff --git a/.editorconfig b/.editorconfig index 87cf4c9..f3313f5 100644 --- a/.editorconfig +++ b/.editorconfig @@ -109,32 +109,38 @@ dotnet_diagnostic.SA1649.severity = none # File name should match first # Expression-level preferences -dotnet_diagnostic.IDE0032.severity = suggestion # Use auto-implemented property +dotnet_diagnostic.IDE0032.severity = suggestion # Use auto-implemented property # Modifier preferences -dotnet_diagnostic.IDE0044.severity = warning # Add readonly modifier +dotnet_diagnostic.IDE0044.severity = warning # Add readonly modifier # Naming -dotnet_diagnostic.IDE1006.severity = warning # Naming rule violation +dotnet_diagnostic.IDE1006.severity = warning # Naming rule violation # Unnecessary code rules -dotnet_diagnostic.IDE0058.severity = none # Remove unnecessary expression value +dotnet_diagnostic.IDE0058.severity = none # Remove unnecessary expression value ### .NET Code-quality rules ### # Reliability -dotnet_diagnostic.CA2016.severity = warning # Forward the CancellationToken parameter to methods that take one +dotnet_diagnostic.CA2016.severity = warning # Forward the CancellationToken parameter to methods that take one # Usage -dotnet_diagnostic.CA2208.severity = warning # Instantiate argument exceptions correctly +dotnet_diagnostic.CA2208.severity = warning # Instantiate argument exceptions correctly ### C# compiler messages ### # Level 4 warning messages -dotnet_diagnostic.CS1591.severity = none # Missing XML comment for publicly visible type or member \ No newline at end of file +dotnet_diagnostic.CS1591.severity = none # Missing XML comment for publicly visible type or member + +### SYSLIB diagnostics ### + +# Source-generated code + +dotnet_diagnostic.SYSLIB1045.severity = none # Convert to 'GeneratedRegexAttribute' \ No newline at end of file diff --git a/Kattbot/BotOptions.cs b/Kattbot/BotOptions.cs index 474bbe7..8eaf7b5 100644 --- a/Kattbot/BotOptions.cs +++ b/Kattbot/BotOptions.cs @@ -2,6 +2,7 @@ namespace Kattbot; +#pragma warning disable SA1402 // File may only contain a single type public record BotOptions { public const string OptionsKey = "Kattbot"; @@ -25,5 +26,38 @@ public record KattGptOptions { public const string OptionsKey = "KattGpt"; + public string[] CoreSystemPrompts { get; set; } = Array.Empty(); + + public GuildOptions[] GuildOptions { get; set; } = Array.Empty(); + + public Template[] Templates { get; set; } = Array.Empty