fly
Starts or stops flying.
Bot.fly(enableFlying);Input
Variable | Required | Description |
|---|---|---|
| yes | Boolean — |
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 |
Examples
// Start flying
Bot.fly(true);
// Wait 5s
await process.sleep(5_000);
// Stop flying
Bot.fly(false);
// Gracefully exit the test script
process.exit();