Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
 public SpinningPhase(DerpyHoovesBot bot)
 {
     _bot = bot;
 }
Ejemplo n.º 3
0
 public ShootingPhase(DerpyHoovesBot bot)
 {
     _bot = bot;
 }