/// <summary> /// Stop the currently Active Bot /// </summary> public static void StopActiveBot() { if (ActiveBot != null && ActiveBot.IsRunning()) { ActiveBot.StopBot(); } }
/// <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); } }
/// <summary> /// Start the currently Active Bot /// </summary> public static void StartActiveBot() { if (WasCut) { return; } if (IsReadyToBot) { ActiveBot.StartBot(); } else { Logging.Write(Resources.BotIsNotReadyError); } }
/// <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); } }