Difference between revisions of "Bot Playground/Commands/sendNotice"

From SmartBots Developers Docs
Jump to: navigation, search
(Created page with "{{DISPLAYTITLE:{{SUBPAGENAME}}}} <onlyinclude>Sends a notice to the group.</onlyinclude> <syntaxhighlight lang="javascript"> Bot.sendNotice(groupuuid, subject, text, attachme...")
 
 
Line 19: Line 19:
  
 
{{API Variables Table End}}
 
{{API Variables Table End}}
 +
 +
== Comments ==
 +
 +
# This command does not return FAIL if your bot has no "Send Group Notice" ability. Pay attention to bot's group permissions while using this command.
 +
# The notice delivery is guaranteed even if the bot is offline (the invitation will be sent after bot comes online)
 +
 +
== Attachments ==
 +
 +
The notice attachment can be taken from the bot's inventory. To make an attachment, proceed with the following steps:
 +
 +
# Set copy+transfer permissions to the object (so bot can give it with notice)
 +
# Drop object to the bot in Second Life
 +
# Open SmartBots account, click "manage bot":[[Image:Notice attachment 1.jpg|link=|border|center]]
 +
# Open bot's inventory browser:[[Image:Notice attachment 2.jpg|link=|border|center]]
 +
# Copy the "inventory UUID" of the required inventory item.
  
 
{{NavMenu}}
 
{{NavMenu}}
 
__NOTOC__
 
__NOTOC__

Latest revision as of 21:15, 2 July 2016

Sends a notice to the group.

Bot.sendNotice(groupuuid, subject, text, attachment);

Reference

This command accepts the following parameters:

Variable Required Description


Input:
groupuuid yes the UUID of the group
subject yes the subject of the notice (can't contain international characters)
text yes the text of the notice (can contain international characters)
attachment optional inventory UUID of the attachment (see below)
Output:
Function returns a Promise with the following data:
success bool true if command completed successfully
error string error string if command has failed

Comments

  1. This command does not return FAIL if your bot has no "Send Group Notice" ability. Pay attention to bot's group permissions while using this command.
  2. The notice delivery is guaranteed even if the bot is offline (the invitation will be sent after bot comes online)

Attachments

The notice attachment can be taken from the bot's inventory. To make an attachment, proceed with the following steps:

  1. Set copy+transfer permissions to the object (so bot can give it with notice)
  2. Drop object to the bot in Second Life
  3. Open SmartBots account, click "manage bot":
  4. Open bot's inventory browser:
  5. Copy the "inventory UUID" of the required inventory item.