after_login

From SmartBots Developers Docs
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