login_error
From SmartBots Developers Docs
Jump to: navigation, search
Fires when bot is unable to login to Second Life. Not available for QubicBot yet (?)
Bot.on("login_error", function(event) { ... });
Reference
This event comes with the following event object:
Variable | Required | Description | |
---|---|---|---|
event object properties: | |||
reason | The login error text from Second Life servers |
Comments
If bot logs in for the first time (or because of some other reasons) the bot_uuid field may have zero UUID.
Example
Bot.on("login_error", (event) => {
console.log("Error logging in:", event.reason);
});
Bot.on("after_login", (event) => {
console.log("Bot is successfully logged in!");
});
console.log("Waiting for bot to log in");
- login error