region_restart_cancelled

From SmartBots Developers Docs
Bot PlaygroundEvents
Revision as of 07:53, 12 October 2022 by Gg (Talk | contribs)

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

Fires when bot receives a region restart cancellation notification. Not available for QubicBot yet (?)

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

Reference

This event comes with the following event object:

Variable Required Description
event object properties:
name The name of the event in this case region_restart_cancelled
bot_uuid The UUID of the bot which receives the notification.
message The message of the region_restart_cancelled
region_name The name of the region.

Example

console.log(`${process.name} started`);

Bot.on("region_restart_cancelled", (event) => {
    console.log(`Region restart cancelled:`, event);
});

Also see complex region restart script.