after_logout

From SmartBots Developers Docs
Bot PlaygroundEvents
Revision as of 20:44, 12 October 2022 by NealB (Talk | contribs)

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

Fires after bot goes offline. Not available for QubicBot yet (?)

Bot.on("after_logout", 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 a bot goes offline.

Example

Bot.on("after_logout", function(event) {
	console.log("I went offline. See you later.");
});

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