createNotecard
From SmartBots Developers Docs
Creates a notecard with the desired contents in the bot's inventory.
Bot.createNotecard(
"",
"My new notecard",
"This is a test notecard description",
"Hello!\nThis is a new line but also the contents of my new notecard!"
);
Reference
This command accepts the following parameters:
Variable | Required | Description
| |
---|---|---|---|
Input: | |||
folder | UUID of an inventory folder where the notecard will be created - If this parameter is left blank then the notecard will be created in the Notecards folder within your bot's inventory. | ||
name | yes | Name of the notecard | |
description | Optional description for the notecard | ||
text | yes | The contents of the notecard | |
Output: | |||
Function returns a Promise with the following data: | |||
success | bool | true if command completed successfully | |
error | string | error string if command has failed | |
uuid | string | UUID of the notecard within your bot's inventory |