From a5dc5dc09c445e82657a6f3644c9fcaa718489cc Mon Sep 17 00:00:00 2001 From: Chomp Date: Wed, 1 Sep 2021 17:40:03 +0100 Subject: [PATCH] save file name as lowercase --- Generator/JsonWriter.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Generator/JsonWriter.cs b/Generator/JsonWriter.cs index 34c62ef..b9466d9 100644 --- a/Generator/JsonWriter.cs +++ b/Generator/JsonWriter.cs @@ -32,10 +32,9 @@ namespace Generator } var output = JsonConvert.SerializeObject(bot, Formatting.Indented); 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}"); } - } } }