Class: BotManager

BotManager

new BotManager()

Creates a new BotManager instance.
Source:

Methods

addEndpoint(method, url, callback)

Add an API Endpoint (via webserver) at chosen location.
Parameters:
Name Type Description
method
url
callback
Source:

apiEndpoint(method, url, callback)

Add an API Endpoint (via webserver) at chosen location.
Parameters:
Name Type Description
method
url
callback
Deprecated:
  • Yes
Source:

chooseRandomBot() → {*}

Choose a random bot (not checked if online)
Deprecated:
  • Yes
Source:
Returns:
Type
*

errorDebug(message)

Post/log an error-type message
Parameters:
Name Type Description
message string Error message to log
Source:

getAccounts() → {Array}

Retrieve accounts registered within the instance
Source:
Returns:
- Array of BotAccount objects
Type
Array

infoDebug(message)

Post/log an informational message.
Parameters:
Name Type Description
message string Informational message to log
Source:

logDebug(message)

Post/log an informational message.
Parameters:
Name Type Description
message string Informational message to log
Source:

randomBot() → {*}

Choose a random bot - with filters Will simple loop until it find a bot that meets all filters - otherwise it will just randomly choose one. Make sure to set filters based on your use-case. filters: in array of Strings 'canTrade' - Bot can access the API and can trade
Source:
Returns:
Type
*

registerAccount(username, password, options, callback)

Register an account for use with the steam-bot-manager
Parameters:
Name Type Description
username
password
options
callback
Source:

removeEndpoint(method, url, callback)

Remove an API Endpoint (via webserver) at chosen location.
Parameters:
Name Type Description
method
url
callback
Source:

unregisterAccount(botAccount, unregisterCallback)

Parameters:
Name Type Description
botAccount BotAccount The bot chosen as part of the random choice
unregisterCallback callback A callback returned with possible errors
Source: