mirror of
https://github.com/JustArchiNET/ArchiSteamFarm.git
synced 2026-01-01 22:20:52 +00:00
Add support for AccountLoginDeniedThrottle
Same as RateLimitExceeded
This commit is contained in:
@@ -2045,6 +2045,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
||||
break;
|
||||
case EResult.AccessDenied: // Usually means refresh token is no longer authorized to use, otherwise just try again
|
||||
case EResult.AccountLoginDeniedNeedTwoFactor:
|
||||
case EResult.AccountLoginDeniedThrottle:
|
||||
case EResult.DuplicateRequest: // This will happen if user reacts to popup and tries to use the code afterwards, we have the code saved in ASF, we just need to try again
|
||||
case EResult.FileNotFound: // User denied approval despite telling us that he accepted it, just try again
|
||||
case EResult.InvalidPassword:
|
||||
@@ -2596,6 +2597,7 @@ public sealed class Bot : IAsyncDisposable, IDisposable {
|
||||
|
||||
break;
|
||||
case EResult.AccessDenied:
|
||||
case EResult.AccountLoginDeniedThrottle:
|
||||
case EResult.RateLimitExceeded:
|
||||
ArchiLogger.LogGenericInfo(string.Format(CultureInfo.CurrentCulture, Strings.BotRateLimitExceeded, TimeSpan.FromMinutes(LoginCooldownInMinutes).ToHumanReadable()));
|
||||
|
||||
|
||||
Reference in New Issue
Block a user