Exit with status code 0 on graceful shutdowns

This commit is contained in:
Kaoticz
2025-01-14 03:10:12 +00:00
committed by Kwoth
parent ccae1c59e9
commit f42afa7eae
4 changed files with 6 additions and 6 deletions

View File

@@ -218,12 +218,12 @@ public sealed class Bot : IBot
catch (HttpException ex)
{
LoginErrorHandler.Handle(ex);
Helpers.ReadErrorAndExit(3);
Helpers.ReadErrorAndExit(101);
}
catch (Exception ex)
{
LoginErrorHandler.Handle(ex);
Helpers.ReadErrorAndExit(4);
Helpers.ReadErrorAndExit(5);
}
await clientReady.Task.ConfigureAwait(false);
@@ -275,7 +275,7 @@ public sealed class Bot : IBot
catch (Exception ex)
{
Log.Error(ex, "Error adding services");
Helpers.ReadErrorAndExit(9);
Helpers.ReadErrorAndExit(103);
}
Log.Information("Shard {ShardId} connected in {Elapsed:F2}s",