after_login

From SmartBots Developers Docs
Bot PlaygroundEvents
Revision as of 19:31, 15 July 2016 by Gg (Talk | contribs) (Created page with "{{DISPLAYTITLE:after_login}} <onlyinclude>Fires when bot successfully logged to Second Life.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("after_login", function(...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Fires when bot successfully logged to Second Life.

Bot.on("after_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 after bot logged into Second Life. This is a pair for a before_login event.

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