# giveMoney

Commands the bot to send money (L$) to a specific avatar.

```javascript
Bot.giveMoney(avatar, amount, comment);
```

```snippet playground-input-2k8u0pPON3
`avatar`  | yes      | The avatar UUID
`amount`  | yes      | The amount of money to give
`comment` | optional | Text comment for the money transaction
```

## Output

Function returns a Promise with the following data:

| Variable | Type | Description |
|----------|------|-------------|
| `success` | bool | True if command completed successfully |
| `error`  | string | Error string if command has failed |

## Examples

For a comprehensive balance management script, see the [example](/doc/80d5ce74-b212-4d61-909c-5a5f82e0835d).