Exemple #1
0
 public static void SaveSettings()
 {
     BotUtils.WriteToJson(Settings, DataFileNames.GeneralConfigFile);
     KLog.Info("Settings Saved.");
 }
Exemple #2
0
 /// <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);
 }