# before_logout

Fires when the bot is going offline.

```javascript
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()](/doc/a2372eae-6817-4aa0-8c18-0ed9638efe57) and all Bots Playground functionality.

## Example

```javascript

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