Raffle Winner
- Alert key:
lumiastream-raffleWinner - Source: Lumia
- Event list label: Raffle Winner
Default message template
Congratulations {{raffle_winner}} for being selected in this raffle!
Template variables
Use any of these in alert text, TTS, or chat templates. The same names appear under data.extraSettings.* when you subscribe via Overlay.on('alert').
| Template variable | Overlay payload field | Description |
|---|---|---|
{{raffle_title}} | data.extraSettings.raffle_title | Title of the raffle |
{{raffle_description}} | data.extraSettings.raffle_description | Description of the raffle |
{{raffle_type}} | data.extraSettings.raffle_type | Type of raffle |
{{raffle_winner}} | data.extraSettings.raffle_winner | Username of user who won the raffle |
{{raffle_winner_avatar}} | data.extraSettings.raffle_winner_avatar | Avatar of user who won the raffle |
{{raffle_winners}} | data.extraSettings.raffle_winners | All of the usernames of users who won the raffle (Comma separated) |
{{raffle_entry_command}} | data.extraSettings.raffle_entry_command | Command that enters a user into the raffle |
{{duration}} | data.extraSettings.duration | No description available yet. |
{{raffle_generated_number}} | data.extraSettings.raffle_generated_number | The number that has been selected for the raffle |
{{username}} | data.extraSettings.username | The username of the sender |
{{platform}} | data.extraSettings.platform | The streaming platform this message is coming from |
Example payloads
Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).
My bright raffle
{
"alert": "lumiastream-raffleWinner",
"dynamic": {
"value": "My bright raffle"
},
"extraSettings": {
"title": "My bright raffle",
"description": "Raffle only for the brightest streamers",
"type": "userList",
"raffle_entry_command": "!join",
"raffle_winner": "lumiastream",
"raffle_winners": "lumiastream,lumiacove,lumiatwitch",
"raffle_title": "",
"raffle_description": "",
"raffle_type": "",
"raffle_winner_avatar": "",
"duration": "",
"raffle_generated_number": "",
"username": "",
"platform": ""
}
}
Variation conditions
Dimensions you can branch on when configuring alert variations:
RANDOMEQUAL_USERNAMEEQUAL_VARIABLE
Related
- Alert Explorer - live preview of every alert
- Overlay Type Definitions - full
AlertEventTypeScript type