The bot now checks for update

This commit is contained in:
2024-04-01 01:33:45 +03:00
parent 5d4fa6fba7
commit 4dc5819c4e
11 changed files with 281 additions and 45 deletions

View File

@@ -107,9 +107,8 @@ public class Boot
if (arg.Message.Contains("401"))
{
Config.AppSettings.Remove("token");
Config.Logger.Log("The token is invalid. Please restart the bot and enter a valid token.", typeof(Boot), LogType.CRITICAL);
Config.Logger.Log("The token is invalid. Please restart the bot and follow the instructions", typeof(Boot), LogType.CRITICAL);
await Config.AppSettings.SaveToFile();
await Task.Delay(4000);
Environment.Exit(0);
}
}
@@ -123,7 +122,6 @@ public class Boot
private Task Ready()
{
IsReady = true;
// UxHandler.ShowNotification("SethBot", "Seth Discord Bot is now up and running !").Wait();
return Task.CompletedTask;
}