Difference between revisions of "Bot Playground/Commands"
From SmartBots Developers Docs
Line 12: | Line 12: | ||
{{API_Group|Special}} | {{API_Group|Special}} | ||
{{API_Entry|HTTP Bot Command|console.log}} | {{API_Entry|HTTP Bot Command|console.log}} | ||
+ | |||
+ | {{API_Group|System}} | ||
+ | {{API_Entry|HTTP Bot Command|name2key}} | ||
+ | {{API_Entry|HTTP Bot Command|key2name}} | ||
{{API_Group|Messaging}} | {{API_Group|Messaging}} |
Revision as of 06:49, 29 June 2016
Commands are being sent to the bot by calling the javascript method of Bot:
Bot.im("Glaznah Gassner", "Hello there!");
Commands reference
Command | Description | |
---|---|---|
Special | ||
console.log | Logs data to the runtime log. | |
System | ||
name2key | Returns the UUID of the given resident by name. | |
key2name | Returns avatar Second Life name by UUID. | |
Messaging | ||
say | Says message over a specific chat channel. | |
im | Sends Instant Message to specific avatar. | |
imUuid | Bot Playground/Commands/imUuid | |
offerTeleport | Sends a teleport offer to the resident. | |
offerFriendship | Offers friendship to a resident. | |
Group Messaging | ||
groupIM | Bot Playground/Commands/groupIM | |
groupNotice | Bot Playground/Commands/groupNotice | |
Group Management | ||
groupInvite | Bot Playground/Commands/groupInvite | |
groupEject | Bot Playground/Commands/groupEject | |
setGroupRole | Puts member of a group in a specific role. | |
Inventory | ||
giveInventory | Commands bot to send an inventory item or folder to specific avatar. | |
giveMoney | Commands bot to send money (L$) to specific avatar. | |
World | ||
teleport | Teleports bot to specific location. | |
walk | Bot Playground/Commands/walk | |
fly | Starts or stops flying. | |
touch | Bot Playground/Commands/touch |