コード例 #1
0
        private static void Main(string[] args)
        {
            XmlConfigurator.Configure();

            #if HARDCODE_LOGIN
            string username = "******";
            string password = "******";
            #else
            Console.Write("Enter a username: "******"Enter a password: ");
            string password = Console.ReadLine();
            #endif

            Bot bot = new Bot(new SteamUser.LogOnDetails() {Username = username, Password = password});
            bot.Start();

            while (bot.State != State.SignedOff)
            {
                try
                {
                    Thread.Sleep(500);
                }
                catch (Exception ex)
                {
                    break;
                }
            }
        }
コード例 #2
0
 public BotGameController(Bot bot)
 {
     log = bot.log;
     _bot = bot;
 }