regionRestart
Queries to restart the current region of the bot.
Bot.regionRestart(delay);Input
Variable | Required | Description |
|---|---|---|
| optional | Delay before restart in seconds. Default is 120, minimum is 30, maximum is 240. |
Output
Function returns a Promise with the following data:
Variable | Type | Description |
|---|---|---|
| bool | True if command completed successfully |
| string | Error string if command has failed |
Permissions
The bot must be an Estate Manager of the current region.
Examples
See the complex Region Restart script in the Examples section.