示例#1
0
 /// <summary>
 ///     Stop the currently Active Bot
 /// </summary>
 public static void StopActiveBot()
 {
     if (ActiveBot != null && ActiveBot.IsRunning())
     {
         ActiveBot.StopBot();
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }
示例#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);
     }
 }