Class: BotManager

BotManager

new BotManager()

Creates a new BotManager instance.
Source:

Methods

chooseRandomBot(botAccountCallback)

Choose a random bot
Parameters:
Name Type Description
botAccountCallback botAccountCallback A callback to run
Source:

enableTwoFactor(botAccount)

Start the two-factor-authentication process using the GUI
Parameters:
Name Type Description
botAccount BotAccount The bot chosen to enable two-factor authentication for.
Source:

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:

saveAccounts(errorCallback)

Save bot accounts into json file
Parameters:
Name Type Description
errorCallback errorCallback A callback returned with possible errors
Source:

successDebug(message)

Post/log a success-type message
Parameters:
Name Type Description
message String Success message to log
Source:

unregisterAccount(botAccount, errorCallback)

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