Difference between revisions of "Bot Playground/Events/after logout"
From SmartBots Developers Docs
(Created page with "{{DISPLAYTITLE:after_logout}} <onlyinclude>Fires after bot goes offline.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.on("after_logout", function(event) { ... }); </...") |
|||
Line 1: | Line 1: | ||
{{DISPLAYTITLE:after_logout}} | {{DISPLAYTITLE:after_logout}} | ||
− | <onlyinclude>Fires after bot goes offline.</onlyinclude> | + | <onlyinclude>Fires after bot goes offline. {{NotAvailableForQB}}</onlyinclude> |
<syntaxhighlight lang="javascript"> | <syntaxhighlight lang="javascript"> |
Latest revision as of 20:44, 12 October 2022
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