Exemplo n.º 1
0
 /// <summary>
 ///     Stop the currently Active Bot
 /// </summary>
 public static void StopActiveBot()
 {
     if (ActiveBot != null && ActiveBot.IsRunning())
     {
         ActiveBot.StopBot();
     }
 }
Exemplo n.º 2
0
 /// <summary>
 ///     Calls <see cref="IBot.Settings()" /> for the currently ActiveBot
 /// </summary>
 public static void Settings()
 {
     try
     {
         if (ActiveBot != null)
         {
             ActiveBot.Settings();
         }
     }
     catch (Exception ex)
     {
         Logger.Error("Exception thrown while trying to modify bot settings", ex);
     }
 }
Exemplo n.º 3
0
 /// <summary>
 ///     Start the currently Active Bot
 /// </summary>
 public static void StartActiveBot()
 {
     if (WasCut)
     {
         return;
     }
     if (IsReadyToBot)
     {
         ActiveBot.StartBot();
     }
     else
     {
         Logging.Write(Resources.BotIsNotReadyError);
     }
 }
Exemplo n.º 4
0
 /// <summary>
 ///     Stop the currently Active Bot
 /// </summary>
 public static void StopActiveBot()
 {
     try
     {
         if (ActiveBot != null && ActiveBot.IsRunning)
         {
             Logger.Info("Stopping bot...");
             ActiveBot.StopBot();
         }
     }
     catch (Exception ex)
     {
         Logger.Error("Exception thrown while trying to stop the bot", ex);
     }
 }