DPB1Class · Bots, plugins and tasks

BotManager

Discover installed bots, inspect the selected bot and observe or control its lifecycle.

Namespace: DreamPoeBot.Loki.Bot

public static class BotManager
Reference: DPB1 0.3.29.56Compare the DPB2 reference → Check signatures and usage notes separately; a matching type is not a compatibility guarantee.

Use this API

Class usage example: Check the selected bot →

Members and overloads

29 declared here

PostStart

EventLink ↗
public static BotManager.BotEvent BotManager.PostStart

Raised for post start. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PostStop

EventLink ↗
public static BotManager.BotEvent BotManager.PostStop

Raised for post stop. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PostTick

EventLink ↗
public static BotManager.BotEvent BotManager.PostTick

Raised for post tick. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PreStart

EventLink ↗
public static BotManager.BotEvent BotManager.PreStart

Raised for pre start. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PreStop

EventLink ↗
public static BotManager.BotEvent BotManager.PreStop

Raised for pre stop. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

PreTick

EventLink ↗
public static BotManager.BotEvent BotManager.PreTick

Raised for pre tick. Subscribe with the callback type shown in the signature.

Event handler type: staticNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

AutoReloadPathfinde

FieldLink ↗
public static bool BotManager.AutoReloadPathfinde

Reads or assigns auto reload pathfinde on BotManager as bool. The exact type and accessors are shown below.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

LogVariableChange

FieldLink ↗
public static bool BotManager.LogVariableChange

Reads or assigns log variable change on BotManager as bool. The exact type and accessors are shown below.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

TotalExceptionRuntime

FieldLink ↗
public static int BotManager.TotalExceptionRuntime

Return the Total number of exceptions the botmanager registered since the botmanager was created.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

_bots

FieldLink ↗
public static List<IBot> BotManager._bots

Return a list of loaded IBots

Value type: List<IBot>
Explore IBot → members & methods

Contract for a complete bot. Follow the inherited lifecycle, task and configuration contracts when implementing your bot.

Start

MethodLink ↗
public static bool BotManager.Start()

Starts this component's lifecycle.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Returns: A Boolean result. The member description explains the condition being checked.

Stop

MethodLink ↗
public static bool BotManager.Stop(StopReasonData reason, bool force = false)

Stops this component's lifecycle.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

reason
Parameter type: StopReasonData

Specifies reason.

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies force. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

Stop

MethodLink ↗
public static bool BotManager.Stop(bool force = false)

Stops this component's lifecycle.

Return type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Parameters

force
Parameter type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Specifies force. Optional; the default is shown in the signature.

Returns: A Boolean result. The member description explains the condition being checked.

BotThread

PropertyLink ↗
public static Thread BotManager.BotThread { get; private set; }

Reads or assigns bot thread on BotManager as Thread. The exact type and accessors are shown below.

Value type: ThreadNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Bots

PropertyLink ↗
public static IReadOnlyList<IBot> BotManager.Bots { get; }

Gets the bots collection. Its element types are linked below.

Value type: IReadOnlyList<IBot>
Explore IBot → members & methods

Contract for a complete bot. Follow the inherited lifecycle, task and configuration contracts when implementing your bot.

ClientFrozen

PropertyLink ↗
public static bool BotManager.ClientFrozen { get; }

Reads client frozen on BotManager as bool. The exact type and accessors are shown below.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Current

PropertyLink ↗
public static IBot BotManager.Current { get; set; }

Reads or assigns current on BotManager as IBot. Open the value type below for its members and accepted values.

Value type: IBot
Explore IBot → members & methods

Contract for a complete bot. Follow the inherited lifecycle, task and configuration contracts when implementing your bot.

ExceptionCount

PropertyLink ↗
public static int BotManager.ExceptionCount { get; }

Reads exception count on BotManager as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Exceptions

PropertyLink ↗
public static IReadOnlyList<Tuple<Exception, DateTime>> BotManager.Exceptions { get; }

Gets the exceptions collection. Its element types are linked below.

Value type: IReadOnlyList<Tuple<Exception, DateTime>>No current DPB page is linked for this built-in, external, generic or compatibility-only type.

IsRunning

PropertyLink ↗
public static bool BotManager.IsRunning { get; }

Whether this bot manager is running.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

IsStopping

PropertyLink ↗
public static bool BotManager.IsStopping { get; }

Whether this bot manager is stopping.

Value type: boolNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

MsBeforeNextTick

PropertyLink ↗
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.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

MsBetweenTicks

PropertyLink ↗
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.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

StopBotAfterXExceptionsBeforeTickCompletes

PropertyLink ↗
public static int BotManager.StopBotAfterXExceptionsBeforeTickCompletes { get; set; }

Reads or assigns stop bot after xexceptions before tick completes on BotManager as int. The exact type and accessors are shown below.

Value type: intNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

StopReason

PropertyLink ↗
public static StopReasonData BotManager.StopReason { get; }

Reads stop reason on BotManager as StopReasonData. Open the value type below for its members and accepted values.

Value type: StopReasonData
Explore StopReasonData → members & methods

Provides stop reason data data and the operations listed below. Related types link to the values this API consumes or returns.

TimeOfLastTick

PropertyLink ↗
public static DateTime BotManager.TimeOfLastTick { get; }

Reads time of last tick on BotManager as DateTime. The exact type and accessors are shown below.

Value type: DateTimeNo current DPB page is linked for this built-in, external, generic or compatibility-only type.

Class usage examples

These examples demonstrate the class, not every member listed above. Each example links the declarations it teaches.

Imports used by these examples
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;

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.

Guides using this class

See how these APIs fit together. Labs include complete source; the FollowBot walkthrough teaches you to build your own bot from selected fragments and checkpoints.

DPB1 0.3.29.56 · Reference reviewed 2026-10-30. Descriptions use source summaries where available, otherwise concise signature-based descriptions. Examples illustrate usage; they are not a live-game test.