move
Starts or stops bot movement and rotation.
Bot.move(instruction, state);Input
Variable | Required | Description |
|---|---|---|
| yes | The movement instruction. One of the following: |
| yes | The control state of the instruction: |
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 |
Details
This function allows direct control over the bot’s movement.
It may be slightly laggy — for more precise movement, use Bot.walkTo() instead.
For tracking movement updates, use the self_position event, which reports bot position changes.
Examples
Bot.move("FORWARD", "START");
// Walk forward for 2 seconds
await process.sleep(2_000);
Bot.move("FORWARD", "STOP");