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; } } }
public BotGameController(Bot bot) { log = bot.log; _bot = bot; }