Action steps are used to sequence executions when an event is triggered. For instance, it can be used when a viewer becomes a follower, when a given command is entered, or when a viewer starts to talk in the chat.
The short example, if you have a field "onWelcome" (as in Welcome's configuration file):
"onWelcome": [
// here a list of executions
]
Longer example:
"onWelcome": [
{
"type": "sound",
"sound": "celebration"
},
{
"type": "message",
"message": "Hého !"
},
{
"type": "overlay_popup",
"image": "image/vahine.png",
"text": "Yata Yata Yata"
}
]
Execute a command on behalf of the streamer.
{
"type": "command",
"command": "!cmd permanent !#USER# #PARAMS#" // Fully-qualified command to execute
}
Play a sound that was configured in the Sound extension.
{
"type": "sound",
"sound": "celebration" // refers to the configuration of Sound extension
}
Send a message in the chat.
{
"type": "message",
"message": "Hého !"
}
Show an event in the events box of the Overlay extension.
{
"type": "overlay_event",
"text": "#USER# arrive au Coding café" // a message to show in events box of Overlay extension
}
Show image (and option message) in the center of Overlay extension.
{
"type": "overlay_popup",
"image": "image/vahine.png", // file of the image to show
"text": "Yata Yata Yata" // a optional message to show below the image
}
Tag | Description |
---|---|
#USER# | Replaced by the viewer's display name. |
#PARAMS# | Filled when triggered by a command, it contains the commands parameters. |
#PARAM-(1, 2, etc.)# | Usable when triggered by a command, it is replaced of nth parameter of the command |