static async Task <int> Main(string[] args) { if (args.Length < 1) { Console.Error.WriteLine("ShootR.Bots.DerpyHooves [ShootR Server URL]"); return(1); } var url = args[0]; var token = CreateConsoleCancellationToken(); var bot = new DerpyHoovesBot(url); try { await bot.RunAsync(token); } catch (Exception ex) { Console.Error.WriteLine("An error occurred:"); Console.Error.WriteLine(ex.ToString()); return(1); } return(0); }
public SpinningPhase(DerpyHoovesBot bot) { _bot = bot; }
public ShootingPhase(DerpyHoovesBot bot) { _bot = bot; }