Difference between revisions of "Bot Playground/Events/after login"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:after_login}} <onlyinclude>Fires when bot successfully logged to Second Life.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("after_login", function(...")
 
 
Line 19: Line 19:
  
 
<syntaxhighlight lang="javascript">
 
<syntaxhighlight lang="javascript">
Bot.on("before_login", function(event) {
+
Bot.on("after_login", function(event) {
console.log("Bot is going to login. Lets see if password is right!");
+
console.log("Bot is successfully logged in!");
 
});
 
});
 
</syntaxhighlight>
 
</syntaxhighlight>

Latest revision as of 13:03, 11 October 2022

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("after_login", function(event) {
	console.log("Bot is successfully logged in!");
});

More complex example can be found here: Logging out and back in