login
From SmartBots Developers Docs
Revision as of 15:50, 1 July 2016 by Phil (Talk | contribs) (Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Initiates bot login sequence.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.login(location); </syntaxhighlight> {{API C...")
Initiates bot login sequence.
Bot.login(location);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
location | optional | The initial location to login. Leave blank for previous location.
Format: Region name/X/Y/Z Use HOME instead of location to send the bot home (see examples below). | |
Output: | |||
Function returns a Promise with the following data: | |||
success | bool | true if command completed successfully | |
error | string | error string if command has failed |
Examples
Bot.login("DuoLife/206/36/94");