Difference between revisions of "Bot Playground/Commands/im"
From SmartBots Developers Docs
| Line 1: | Line 1: | ||
{{DISPLAYTITLE:{{SUBPAGENAME}}}} | {{DISPLAYTITLE:{{SUBPAGENAME}}}} | ||
<onlyinclude>Sends Instant Message to specific avatar.</onlyinclude> | <onlyinclude>Sends Instant Message to specific avatar.</onlyinclude> | ||
| + | |||
| + | <syntaxhighlight lang="javascript"> | ||
| + | Bot.im( firstName, message ); | ||
| + | </syntaxhighlight> | ||
{{API Command Table}} | {{API Command Table}} | ||
| Line 6: | Line 10: | ||
{{API Variable Group|Input}} | {{API Variable Group|Input}} | ||
| − | {{API Variable| | + | {{API Variable|firstName|yes}}The name of the avatar |
| − | + | {{API Variable|message |yes}}The message to send | |
| − | + | ||
| − | + | ||
| − | + | ||
| − | + | ||
{{API Variable Group|Output}} | {{API Variable Group|Output}} | ||
{{API Return value}} | {{API Return value}} | ||
Revision as of 13:59, 28 June 2016
Sends Instant Message to specific avatar.
Bot.im( firstName, message );
Reference
This command accepts the following parameters:
| Variable | Required | Description
| |
|---|---|---|---|
| Input: | |||
| firstName | yes | The name of the avatar | |
| message | yes | The message to send | |
| Output: | |||
| result | Promise | ||