regionRestart

From SmartBots Developers Docs
Bot PlaygroundCommands
Revision as of 18:07, 6 October 2022 by Gg (Talk | contribs)

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

Queries to restart current region of the bot

Bot.regionRestart(delay);

Reference

This command accepts the following parameters:

Variable Required Description


Input:
delay optional optional delay before restart, seconds. Default 120, minimum 30, maximum 240.
Output:
Function returns a Promise with the following data:
success bool true if command completed successfully
error string error string if command has failed

Permissions

The bot has to be an Estate Manager of the current region.

Examples

See a complex region restart script in Examples.