Difference between revisions of "Bot Playground/Commands"

From SmartBots Developers Docs
Jump to: navigation, search
Line 46: Line 46:
 
{{API_Entry|HTTP Bot Command|sendNotice}}
 
{{API_Entry|HTTP Bot Command|sendNotice}}
  
{{API_Group|Avatars}}
+
{{API_Group|Movement}}
 +
{{API_Entry|HTTP Bot Command|fly}}
 +
{{API_Entry|HTTP Bot Command|sit}}
 +
{{API_Entry|HTTP Bot Command|teleport}}
 +
{{API_Entry|HTTP Bot Command|walk}}
 +
 
 +
{{API_Group|Other avatars interaction}}
 
{{API_Entry|HTTP Bot Command|avatarInfo}}
 
{{API_Entry|HTTP Bot Command|avatarInfo}}
 
{{API_Entry|HTTP Bot Command|key2name}}
 
{{API_Entry|HTTP Bot Command|key2name}}
Line 53: Line 59:
 
{{API_Entry|HTTP Bot Command|offerFriendship}}
 
{{API_Entry|HTTP Bot Command|offerFriendship}}
  
{{API_Group|World}}
+
{{API_Group|World interaction}}
{{API_Entry|HTTP Bot Command|fly}}
+
{{API_Entry|HTTP Bot Command|sit}}
+
{{API_Entry|HTTP Bot Command|teleport}}
+
 
{{API_Entry|HTTP Bot Command|touchAttachment}}
 
{{API_Entry|HTTP Bot Command|touchAttachment}}
 
{{API_Entry|HTTP Bot Command|touchPrim}}
 
{{API_Entry|HTTP Bot Command|touchPrim}}
{{API_Entry|HTTP Bot Command|walk}}
 
  
 
{{API_Table_end}}
 
{{API_Table_end}}

Revision as of 16:23, 6 October 2022

Commands are being sent to the bot by calling the javascript method of Bot:

Bot.im("Glaznah Gassner", "Hello there!");

Commands reference

Command Description

Online status

status Returns the online status of the bot.
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.
replyDialog Virtually "presses" a pop-up dialog button (which was displayed by an in-world script).

Inventory

listInventory Returns a list of the Second Life groups the bot is member of.
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.

Money

getBalance Retrieves the current bot's L$ balance.
giveMoney Commands bot to send money (L$) to specific avatar.

Group Management

activateGroup Activates a specific group (for example, to get build rights on the parcel).
ejectGroupMember Ejects residents from the group.
groupInfo Returns the Second Life group details.
inviteGroup Sends a group invitation to a specific resident.
joinGroup Tries to join a group by UUID.
leaveGroup Commands bot to leave the group specified by a UUID.
listGroups Returns a list of the Second Life groups the bot is member of.
setGroupRole Puts member of a group in a specific role.
revokeGroupRole Removes a group member from a specific role.

Group Messaging

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

Movement

fly Starts or stops flying.
sit Commands bot to sit on a specific prim. Allows saving this object as a permanent location.
teleport Teleports bot to specific location.
walk Bot Playground/Commands/walk

Other avatars interaction

avatarInfo Returns the Second Life avatar details.
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 interaction

touchAttachment Touches an attachment of the bot (HUD or wearable object)
touchPrim Touches an in-world object (prim) by its UUID

If you already using SmartBots HTTP API

If you already using SmartBots HTTP API, you may notice that these commands roughly correspond to HTTP API bot commands.