before_logout

Fires when the bot is going offline.

Bot.on("before_logout", function(event) { ... });

Reference

This event has no properties.

Comments

This event fires right before the bot goes offline.
The logout process starts immediately, so you cannot interact with Second Life (e.g. send IMs) within this event.
However, you can still use console.log() and all Bots Playground functionality.

Example


Bot.on("before_logout", function(event) {
  console.log("I'm going offline. See you later.");
});