using Newtonsoft.Json; internal class ConfigFile { static ConfigFile() => Reload(); public static void Reload() => Instance = JsonConvert.DeserializeObject(File.ReadAllText(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "config.json"))); public static ConfigFile Instance { get; private set; } public string ListenPrefix { get; set; } public IReadOnlyCollection AliasPrefix { get; set; } public IReadOnlyDictionary Modules { get; set; } public string Title { get; set; } public string AdminPassword { get; set; } public int HistoryMessageLength { get; set; } }