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)
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:

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: