before_login
From SmartBots Developers Docs
Jump to: navigation, search
Fires when bot is going to login to Second Life.
Bot.on("before_login", function(event) { ... });
Reference
This event comes with the following event object:
Variable | Required | Description | |
---|---|---|---|
event object properties: | |||
-- none -- | Event has no properties |
Comments
This event fires right before bot tries to login to Second Life. This is a pair for after_login event, but they are not the same: remember that login procedure may fail (for example, because of wrong password).
Example
Bot.on("before_login", function(event) {
console.log("Bot is going to login. Lets see if password is right!");
});
More complex example can be found here: Logging out and back in
- before login