sendNotice
Sends a notice to a group.
Bot.sendNotice(groupuuid, subject, text, attachment);Input
Variable | Required | Description |
|---|---|---|
| yes | The UUID of the group. |
| yes | The subject of the notice (cannot contain international characters). |
| yes | The text of the notice (can contain international characters). |
| optional | The inventory UUID of the attachment (see Attachments below). |
Output
Function returns a Promise with the following data:
Variable | Type | Description |
|---|---|---|
| bool | True if command completed successfully |
| string | Error string if command has failed |
Comments
This command does not return
FAILif your bot lacks the “Send Group Notice” ability. Make sure the bot has the required group permissions before using this command.The notice delivery is guaranteed even if the bot is offline (the notice will be sent once the bot comes online).
Attachments
The notice attachment can be taken from the bot’s inventory. To create an attachment, follow these steps:
Set copy + transfer permissions on the object (so the bot can give it with the notice).
Drop the object onto the bot in Second Life.
Open your SmartBots account, click “Manage Bot.”
Open the bot’s inventory browser.
Copy the inventory UUID of the desired inventory item.