internal static async void ValidateReqs() { if (string.IsNullOrWhiteSpace(Program.Config.BotToken)) { UI.AskForBotToken(); Config.SaveConfig(); } else if (!await BotClient.VerifyToken(Program.Config.BotToken)) { Console.WriteLine("Saved token is invalid, please enter a new one!"); UI.AskForBotToken(); Config.SaveConfig(); } else { Console.WriteLine("Token valid, moving on"); } ValidateMangoAppearanceMinimum(); }
private static async Task <bool> VerifyEntered(string input) { return(await BotClient.VerifyToken(input)); }