예제 #1
0
 /// <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);
 }
예제 #2
0
 public static void Kill()
 {
     try
     {
         _thread.Abort();
     }
     catch { }
     Running = false;
     Bot = null;
     ConIO.Read("Press ENTER/RETURN to close this window...");
     Environment.Exit(-1);
 }