Skip to main content

Spinwheel Winner

  • Alert key: lumiastream-spinwheelWinner
  • Source: Lumia
  • Event list label: Raffle Stop

Default message template

Congratulations {{spinwheel_winner}} for winning {{spinwheel_item}}!

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 variableOverlay payload fieldDescription
{{spinwheel_winner}}data.extraSettings.spinwheel_winnerUsername of user who spinned the spinwheel
{{spinwheel_item}}data.extraSettings.spinwheel_itemName of the item that spinwheel landed on
{{spinwheel_item_id}}data.extraSettings.spinwheel_item_idId of the item that spinwheel landed on
{{spinwheel_item_image}}data.extraSettings.spinwheel_item_imageImage of the item that spinwheel landed on
{{spinwheel_item_quantity_remaining}}data.extraSettings.spinwheel_item_quantity_remainingQuantity remaining of the item that spinwheel landed on
{{spinwheel_item_quantity_initial}}data.extraSettings.spinwheel_item_quantity_initialInitial quantity of the item that spinwheel landed on

Example payloads

Each scenario below mirrors what Lumia emits in Overlay.on('alert', (data) => …).

Light Bulbs

{
"alert": "lumiastream-spinwheelWinner",
"dynamic": {
"value": "Light Bulbs"
},
"extraSettings": {
"spinwheel_winner": "Lumia Stream",
"spinwheel_item": "Light Bulbs",
"spinwheel_item_id": "123",
"spinwheel_item_image": "https://storage.lumiastream.com/overlays/2/946e20c5-35da-44f6-94cb-fe833c71d10b.gif",
"spinwheel_item_quantity_remaining": 2,
"spinwheel_item_quantity_initial": 4
}
}

Variation conditions

Dimensions you can branch on when configuring alert variations:

  • RANDOM
  • EQUAL_USERNAME
  • EQUAL_STRING - Item is equal to
  • EQUAL_VARIABLE