/// <summary> /// Initializes a new bot instance /// </summary> public static void Start() { if (!Program.Running || (Program.Bot != null && Program.Bot.Quitting)) return; Program.Bot = null; Program.Bot = new Bot(Config, host, port); }
public static void Kill() { try { _thread.Abort(); } catch { } Running = false; Bot = null; ConIO.Read("Press ENTER/RETURN to close this window..."); Environment.Exit(-1); }