before_login
From SmartBots Developers Docs
Revision as of 19:27, 15 July 2016 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE:before_login}} <onlyinclude>Fires when bot is going to login to Second Life.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("before_login", function(...")
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