public static void Main(string[] args) { ExampleClient chatc = new ExampleClient(); Console.WriteLine(); Console.WriteLine("Welcome!"); Console.WriteLine("/quit to quit, /help for help, otherwise chat with the bot"); Console.WriteLine(); Console.Write("> "); bool notQuit = true; do { string choice = Console.ReadLine(); switch (choice) { case "/quit": notQuit = false; break; case "/help": //Do that Console.WriteLine("/quit to quit, /help for help, otherwise chat with the bot"); Console.Write("> "); break; default: Console.WriteLine(chatc.SendChat(choice)); Console.Write("> "); break; } } while (notQuit); }
public static void Main(string[] args) { ExampleClient chatc = new ExampleClient(); Console.WriteLine(); Console.Write("Your First Name? > "); chatc.playerName = Console.ReadLine(); Console.WriteLine(); Console.WriteLine("Welcome!"); Console.WriteLine(helpMes); Console.WriteLine(); Console.Write("> "); bool notQuit = true; do { string choice = Console.ReadLine(); switch (choice) { case ":quit": notQuit = false; break; case ":help": //Do that Console.WriteLine(helpMes); Console.Write("> "); break; default: Console.WriteLine(chatc.SendChat(choice)); Console.Write("> "); break; } } while (notQuit); }