Update BetterAtHome.cs

Hard login errors no longer kill the bot, now it will wait 5 mins before trying again
This commit is contained in:
Madpeterz 2021-06-14 10:32:59 +01:00
parent 0ad74a5b4f
commit bc8ea73b41

View file

@ -296,7 +296,9 @@ namespace BetterSecondbot.BetterAtHome
{
if (whyfailed.Contains("presence") == false)
{
SetBetterAtHomeAction("[DC] Unable to continue: " + whyfailed);
LastLoginEvent = helpers.UnixTimeNow() + (5 * 60);
SetBetterAtHomeAction("[DC] Hard login error: " + whyfailed+ " Waiting 5 mins to retry - If your using a VPN please check it!");
LoginFailed = false;
return;
}
else