static void Main(string[] args) { if (ConfigHandler.FileExsits) { ConfigData config = ConfigHandler.LoadConfig(); switch (config.CheckConfig()) { case ErrorStates.Error: botRunning = false; Console.WriteLine(config.GetProblemsOfConfig()); break; case ErrorStates.Warning: Console.WriteLine(config.GetProblemsOfConfig()); RunnBotAsync(config); break; case ErrorStates.None: RunnBotAsync(config); break; } do { } while (botRunning); } else { Console.WriteLine("No Configurationfile found! Please fill out the config file."); } }