Methods
chooseRandomBot(botAccountCallback)
Choose a random bot
Parameters:
Name | Type | Description |
---|---|---|
botAccountCallback |
botAccountCallback | A callback to run |
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. |
errorDebug(message)
Post/log an error-type message
Parameters:
Name | Type | Description |
---|---|---|
message |
string | Error message to log |
getAccounts() → {Array}
Retrieve accounts registered within the instance
Returns:
- Array of BotAccount objects
- Type
- Array
infoDebug(message)
Post/log an informational message.
Parameters:
Name | Type | Description |
---|---|---|
message |
string | Informational message to log |
saveAccounts(errorCallback)
Save bot accounts into json file
Parameters:
Name | Type | Description |
---|---|---|
errorCallback |
errorCallback | A callback returned with possible errors |
successDebug(message)
Post/log a success-type message
Parameters:
Name | Type | Description |
---|---|---|
message |
String | Success message to log |
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 |