public static void SaveSettings() { BotUtils.WriteToJson(Settings, DataFileNames.GeneralConfigFile); KLog.Info("Settings Saved."); }
/// <summary> /// This method saves the current BotSettings object to the JSON file. /// Not static because it is to be called on the newest instance. /// </summary> public void SaveJson() { BotUtils.WriteToJson(this, DataFileNames.GeneralConfigFile); }