save file name as lowercase

This commit is contained in:
Chomp 2021-09-01 17:40:03 +01:00
parent e407393392
commit a5dc5dc09c

View File

@ -32,10 +32,9 @@ namespace Generator
} }
var output = JsonConvert.SerializeObject(bot, Formatting.Indented); var output = JsonConvert.SerializeObject(bot, Formatting.Indented);
Console.WriteLine($"Writing json file {bot.botType} to {outputPath}"); Console.WriteLine($"Writing json file {bot.botType} to {outputPath}");
File.WriteAllText($"{outputPath}\\{bot.botType}.json", output); File.WriteAllText($"{outputPath}\\{bot.botType.ToString().ToLower()}.json", output);
Console.WriteLine($"file {bot.botType} written to {outputPath}"); Console.WriteLine($"file {bot.botType} written to {outputPath}");
} }
} }
} }
} }