Check the selected bot
var bot = BotManager.Current;
if (bot == null || !BotManager.IsRunning)
return;
var botName = bot.Name;Observe the current selection without starting or stopping it.
Discover installed bots, inspect the selected bot and observe or control its lifecycle.
Namespace: DreamPoeBot.Loki.Bot
public static class BotManagerView DPB2 version →using System;
using System.Linq;
using DreamPoeBot.Loki.Game;
using DreamPoeBot.Loki.Game.Objects;
using DreamPoeBot.Loki.Bot;
using DreamPoeBot.Loki.Bot.Pathfinding;
using DreamPoeBot.Loki.Common;var bot = BotManager.Current;
if (bot == null || !BotManager.IsRunning)
return;
var botName = bot.Name;Observe the current selection without starting or stopping it.
public static EventHandler<BotChangedEventArgs> BotManager.OnBotChanged
Raised for on bot changed. Subscribe with the callback type shown in the signature.
public static EventHandler<BotTickExceptionEventArgs> BotManager.OnBotTickException
Raised for on bot tick exception. Subscribe with the callback type shown in the signature.
public static EventHandler<ClientFrozenEventArgs> BotManager.OnClientFrozen
Raised for on client frozen. Subscribe with the callback type shown in the signature.
public static BotManager.BotEvent BotManager.PostStart
Raised for post start. Subscribe with the callback type shown in the signature.
public static BotManager.BotEvent BotManager.PostStop
Raised for post stop. Subscribe with the callback type shown in the signature.
public static BotManager.BotEvent BotManager.PostTick
Raised for post tick. Subscribe with the callback type shown in the signature.
public static BotManager.BotEvent BotManager.PreStart
Raised for pre start. Subscribe with the callback type shown in the signature.
public static BotManager.BotEvent BotManager.PreStop
Raised for pre stop. Subscribe with the callback type shown in the signature.
public static BotManager.BotEvent BotManager.PreTick
Raised for pre tick. Subscribe with the callback type shown in the signature.
public static bool BotManager.AutoReloadPathfinde
Gets or sets auto reload pathfinde for BotManager.
public static bool BotManager.LogVariableChange
Gets or sets log variable change for BotManager.
public static int BotManager.TotalExceptionRuntime
Return the Total number of exceptions the botmanager registered since the botmanager was created.
public static List<IBot> BotManager._bots
Return a list of loaded IBots
public static bool BotManager.Start()
Starts this component's lifecycle.
Returns: A Boolean result. The member description explains the condition being checked.
public static bool BotManager.Stop(StopReasonData reason, bool force = false)
Stops this component's lifecycle.
reasonStopReasonDataforceboolReturns: A Boolean result. The member description explains the condition being checked.
public static bool BotManager.Stop(bool force = false)
Stops this component's lifecycle.
forceboolReturns: A Boolean result. The member description explains the condition being checked.
public static Thread BotManager.BotThread { get; private set; }
Gets bot thread for BotManager.
public static IReadOnlyList<IBot> BotManager.Bots { get; }
Gets the bots collection. Its element types are linked below.
public static bool BotManager.ClientFrozen { get; }
Gets client frozen for BotManager.
public static IBot BotManager.Current { get; set; }
Gets or sets current for BotManager.
public static int BotManager.ExceptionCount { get; }
Gets exception count for BotManager.
public static IReadOnlyList<Tuple<Exception, DateTime>> BotManager.Exceptions { get; }
Gets the exceptions collection. Its element types are linked below.
public static bool BotManager.IsRunning { get; }
Whether this bot manager is running.
public static bool BotManager.IsStopping { get; }
Whether this bot manager is stopping.
public static int BotManager.MsBeforeNextTick { get; set; }
Gets the remaining delay published for the current cycle, or zero when not waiting. Setting this property configures the minimum total cycle duration in milliseconds; it does not add a separate delay. The configured minimum is readable through MsBetweenTicks.
public static int BotManager.MsBetweenTicks { get; set; }
Gets or sets the minimum total cycle duration in milliseconds. This compatibility property controls the same budget as the MsBeforeNextTick setter, not an additional post-tick sleep. Negative values are treated as zero.
public static int BotManager.StopBotAfterXExceptionsBeforeTickCompletes { get; set; }
Gets or sets stop bot after x exceptions before tick completes for BotManager.
public static StopReasonData BotManager.StopReason { get; }
Gets stop reason for BotManager.
public static DateTime BotManager.TimeOfLastTick { get; }
Gets time of last tick for BotManager.
DPB1 0.3.29.47 · Reference reviewed 2026-10-02. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.