Difference between revisions of "Bot Playground/Events/before login"
From SmartBots Developers Docs
(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(...") |
|||
Line 14: | Line 14: | ||
== Comments == | == 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). | + | This event fires right before bot tries to login to Second Life. This is a pair for [[Bot_Playground/Events/after_login|after_login]] event, but they are not the same: remember that login procedure may fail (for example, because of wrong password). |
== Example == | == Example == |
Latest revision as of 19:31, 15 July 2016
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