Difference between revisions of "Bot Playground/Commands"

From SmartBots Developers Docs
Jump to: navigation, search
Line 14: Line 14:
  
 
{{API_Group|Messaging}}
 
{{API_Group|Messaging}}
 +
{{API_Entry|HTTP Bot Command|say}}
 
{{API_Entry|HTTP Bot Command|im}}
 
{{API_Entry|HTTP Bot Command|im}}
 +
{{API_Entry|HTTP Bot Command|imUuid}}
 +
{{API_Entry|HTTP Bot Command|offerTeleport}}
 +
{{API_Entry|HTTP Bot Command|offerFriendship}}
 +
 +
{{API_Group|Group Messaging}}
 +
{{API_Entry|HTTP Bot Command|groupIM}}
 +
{{API_Entry|HTTP Bot Command|groupNotice}}
 +
 +
{{API_Group|Group Management}}
 +
{{API_Entry|HTTP Bot Command|groupInvite}}
 +
{{API_Entry|HTTP Bot Command|groupEject}}
 +
{{API_Entry|HTTP Bot Command|setGroupRole}}
 +
 +
{{API_Group|Inventory}}
 +
{{API_Entry|HTTP Bot Command|giveInventory}}
 +
{{API_Entry|HTTP Bot Command|giveMoney}}
 +
 +
{{API_Group|World}}
 +
{{API_Entry|HTTP Bot Command|teleport}}
 +
{{API_Entry|HTTP Bot Command|walk}}
 +
{{API_Entry|HTTP Bot Command|fly}}
 +
{{API_Entry|HTTP Bot Command|touch}}
  
 
{{API_Table_end}}
 
{{API_Table_end}}
  
 
{{NavMenu}}
 
{{NavMenu}}

Revision as of 16:53, 28 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.

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