Difference between revisions of "Bot Playground/Commands/giveMoney"
From SmartBots Developers Docs
| Line 17: | Line 17: | ||
{{API Variables Table End}} | {{API Variables Table End}} | ||
| − | |||
| − | |||
| − | |||
| − | |||
{{NavMenu}} | {{NavMenu}} | ||
__NOTOC__ | __NOTOC__ | ||
Revision as of 04:29, 2 November 2016
Commands bot to send money (L$) to specific avatar.
Bot.giveMoney(avatar, amount, comment);
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| giveMoney: | |||
| 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: | |||
| success | bool | true if command completed successfully | |
| error | string | error string if command has failed | |