Implement everything that now requires the typed fields

This commit is contained in:
Daniel_I_Am 2020-10-16 16:50:21 +02:00
parent 194d025660
commit 2a468f1a95
No known key found for this signature in database
GPG Key ID: 80C428FCC9743E84

View File

@ -12,7 +12,26 @@ namespace ChaosBot
private static readonly Dictionary<string, Type> ConfigurationFlags = new Dictionary<string, Type> private static readonly Dictionary<string, Type> ConfigurationFlags = new Dictionary<string, Type>
{ {
{"LevelUp:Enabled", typeof(bool)}, {"Bot:Name", typeof(string)},
{"Bot:Version", typeof(string)},
{"WebServer:Port", typeof(int)},
{"WebServer:Debug", typeof(bool)},
{"Discord:Prefix", typeof(string)},
{"Discord:Token", typeof(string)},
{"Discord:BaseUri", typeof(string)},
{"Discord:ClientId", typeof(string)},
{"Discord:ClientSecret", typeof(string)},
{"Lodestone:ChaosBotApi:ApiToken", typeof(string)},
{"Lodestone:ChaosBotApi:Url", typeof(string)},
{"Database:Host", typeof(string)},
{"Database:Port", typeof(int)},
{"Database:User", typeof(string)},
{"Database:Pass", typeof(string)},
{"Database:Name", typeof(string)},
}; };
public Configuration() public Configuration()