wait 5 seconds before running an older version of bot

This commit is contained in:
2024-05-10 15:44:10 +03:00
parent d5f78c831e
commit 413d465d7f
2 changed files with 4 additions and 3 deletions

View File

@@ -7,9 +7,9 @@
<StartupObject />
<SignAssembly>False</SignAssembly>
<IsPublishable>True</IsPublishable>
<AssemblyVersion>1.0.4.0</AssemblyVersion>
<AssemblyVersion>1.0.2.0</AssemblyVersion>
<PublishAot>False</PublishAot>
<FileVersion>1.0.4.0</FileVersion>
<FileVersion>1.0.2.0</FileVersion>
</PropertyGroup>
<PropertyGroup Condition="'$(Configuration)|$(Platform)'=='Debug|AnyCPU'">
<DebugType>none</DebugType>

View File

@@ -118,7 +118,8 @@ public class Program
Console.WriteLine($"Download link: {update.UpdateUrl}");
Console.WriteLine($"Update notes: {update.UpdateNotes}\n\n");
Environment.Exit(0);
Console.WriteLine("Waiting 5 seconds ...");
await Task.Delay(5000);
}
Logger.OnLog += (sender, logMessage) =>