Difference between revisions of "Bot Playground/Commands"

From SmartBots Developers Docs
Jump to: navigation, search
Line 16: Line 16:
 
{{API_Entry|HTTP Bot Command|Timer control}}
 
{{API_Entry|HTTP Bot Command|Timer control}}
  
 
+
{{API_Group|Online status}}
{{API_Group|System}}
+
 
{{API_Entry|HTTP Bot Command|login}}
 
{{API_Entry|HTTP Bot Command|login}}
 
{{API_Entry|HTTP Bot Command|logout}}
 
{{API_Entry|HTTP Bot Command|logout}}
{{API_Entry|HTTP Bot Command|name2key}}
 
{{API_Entry|HTTP Bot Command|key2name}}
 
  
 
{{API_Group|Messaging}}
 
{{API_Group|Messaging}}
Line 27: Line 24:
 
{{API_Entry|HTTP Bot Command|im}}
 
{{API_Entry|HTTP Bot Command|im}}
 
{{API_Entry|HTTP Bot Command|imUuid}}
 
{{API_Entry|HTTP Bot Command|imUuid}}
{{API_Entry|HTTP Bot Command|offerTeleport}}
 
{{API_Entry|HTTP Bot Command|offerFriendship}}
 
 
{{API_Entry|HTTP Bot Command|replyDialog}}
 
{{API_Entry|HTTP Bot Command|replyDialog}}
  
{{API_Group|Group Messaging}}
+
{{API_Group|Inventory}}
{{API_Entry|HTTP Bot Command|sendGroupIM}}
+
{{API_Entry|HTTP Bot Command|giveInventory}}
{{API_Entry|HTTP Bot Command|sendNotice}}
+
 
 +
{{API_Group|Appearance}}
 +
{{API_Entry|HTTP Bot Command|takeoff}}
 +
{{API_Entry|HTTP Bot Command|wear}}
  
 
{{API_Group|Group Management}}
 
{{API_Group|Group Management}}
Line 43: Line 41:
 
{{API_Entry|HTTP Bot Command|setGroupRole}}
 
{{API_Entry|HTTP Bot Command|setGroupRole}}
  
{{API_Group|Inventory}}
+
{{API_Group|Group Messaging}}
{{API_Entry|HTTP Bot Command|giveInventory}}
+
{{API_Entry|HTTP Bot Command|sendGroupIM}}
{{API_Entry|HTTP Bot Command|giveMoney}}
+
{{API_Entry|HTTP Bot Command|sendNotice}}
  
{{API_Group|Appearance}}
+
{{API_Group|Avatars}}
{{API_Entry|HTTP Bot Command|takeoff}}
+
{{API_Entry|HTTP Bot Command|giveMoney}}
{{API_Entry|HTTP Bot Command|wear}}
+
{{API_Entry|HTTP Bot Command|key2name}}
 +
{{API_Entry|HTTP Bot Command|name2key}}
 +
{{API_Entry|HTTP Bot Command|offerTeleport}}
 +
{{API_Entry|HTTP Bot Command|offerFriendship}}
  
 
{{API_Group|World}}
 
{{API_Group|World}}

Revision as of 18:39, 13 July 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

Program flow

console.log Logs data to the runtime log.
console.error Logs data to the error log.
exit Bot Playground/Commands/exit
Timer control Standard timer control routines of JavaScript: setTimeout, setInterval etc.

Online status

login Initiates bot login sequence.
logout Initiates bot logout sequence.

Messaging

say Says message over a specific chat channel.
im Sends Instant Message to specific avatar.
imUuid Bot Playground/Commands/imUuid
replyDialog Virtually "presses" a pop-up dialog button (which was displayed by an in-world script).

Inventory

giveInventory Commands bot to send an inventory item or folder to specific avatar.

Appearance

takeoff Removes a clothing item, body part or attachment (the opposite of the wear command).
wear Commands bot to wear a clothing item, body part or attach an object.

Group Management

activateGroup Activates a specific group (for example, to get build rights on the parcel).
joinGroup Tries to join a group by UUID.
leaveGroup Commands bot to leave the group specified by a UUID.
inviteGroup Sends a group invitation to a specific resident.
ejectGroupMember Ejects residents from the group.
setGroupRole Puts member of a group in a specific role.

Group Messaging

sendGroupIM Sends a message to group chat.
sendNotice Sends a notice to the group.

Avatars

giveMoney Commands bot to send money (L$) to specific avatar.
key2name Returns avatar Second Life name by UUID.
name2key Returns the UUID of the given resident by name.
offerTeleport Sends a teleport offer to the resident.
offerFriendship Offers friendship to a resident.

World

teleport Teleports bot to specific location.
walk Bot Playground/Commands/walk
fly Starts or stops flying.
touch Bot Playground/Commands/touch