status
Returns the online status of the bot.
await Bot.status();Related faster commands:
Bot.getLocation()— for a bot’s location (region and/or coordinates)Bot.isOnline()— for bot online status
Input
This command does not require any parameters.
Output
Function returns a Promise with the following data:
Variable | Type | Description |
|---|---|---|
| bool | True if command completed successfully |
| string | Error string if command has failed |
| string | Current online status of the bot (see Details) |
| string |
|
| string | Full Second Life name of the bot |
| string | Bot avatar UUID |
| string | Current bot location if the bot is online ( |
Subsequent status calls may be cached for up to 30 seconds.
Bot location
Bot.status() returns the bot’s location (location) for compatibility reasons only.
If you need real-time data, it is recommended to use:
Bot.getLocation()— to retrieve real-time bot location.Bot.isOnline()— to retrieve real-time bot online status.
Bot.status() results may be cached (see note above).
Details
The following statuses can be returned:
ONLINE— the bot is onlinePRE-CONNECTING— the bot is preparing to log in and waiting for the SL login server responseCONNECTING— the SL login server is logging the bot inLOGGED OUT— the bot has logged out gracefully (by the owner’s command)OFFLINE— the bot cannot be contacted (unexpected; usually occurs when SmartBots servers are restarting)
Example
const status = await Bot.status();
console.log("My status is:", status);