From bc8ea73b41f036b58d5c025bf7cc2ac9e11ac505 Mon Sep 17 00:00:00 2001 From: Madpeterz <57852827+Madpeterz@users.noreply.github.com> Date: Mon, 14 Jun 2021 10:32:59 +0100 Subject: [PATCH] Update BetterAtHome.cs Hard login errors no longer kill the bot, now it will wait 5 mins before trying again --- BetterSecondbot/BetterAtHome/BetterAtHome.cs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/BetterSecondbot/BetterAtHome/BetterAtHome.cs b/BetterSecondbot/BetterAtHome/BetterAtHome.cs index d1b9df6..f182a7b 100644 --- a/BetterSecondbot/BetterAtHome/BetterAtHome.cs +++ b/BetterSecondbot/BetterAtHome/BetterAtHome.cs @@ -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