Add Redeems: channel points, built-in rewards and bits Power-ups
- reward_variations (src/db.js in the wiring commit): each trigger has variations, one is picked at random weighted by rarity (Common 50 / Uncommon 25 / Rare 12 / Ultra Rare 3), like Twitch alert variations. - /redeems page: rewards listed live from Twitch, plus Power-ups and built-in rewards; per variation name, rarity (with % chance), sound + volume, show cassette or sound only, caption, sticker, on/off, play/test/two-click delete. - Special styles: Gigantify -> giant emote, Celebration -> bouncing emotes, Highlight my message / Message Effect -> big taped note. - redeems-seed.json: first-run defaults rebuilt from the Twitch alert setup (96 variations, 21 triggers); only loaded when the table is empty. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
1766e37336
commit
553cc35b9e
4 changed files with 372 additions and 0 deletions
41
src/redeems-seed.json
Normal file
41
src/redeems-seed.json
Normal file
|
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"_comment": "Example first-run defaults for the Redeems page: one silent variation per Twitch built-in reward / Power-up. A channel's own seed goes in src/redeems-seed.json (not in git; used instead of this file when present). Loaded only when the reward_variations table is empty; after that the dashboard is the source of truth. sound = URL under /public ('' = silent), art = cassette sticker URL ('' = the theme's default sticker).",
|
||||
"variations": [
|
||||
{
|
||||
"kind": "auto_reward",
|
||||
"key": "send_highlighted_message",
|
||||
"title": "Highlight my message",
|
||||
"name": "Highlighted",
|
||||
"rarity": "common",
|
||||
"sound": "",
|
||||
"art": ""
|
||||
},
|
||||
{
|
||||
"kind": "power_up",
|
||||
"key": "message_effect",
|
||||
"title": "Power-up: Message Effect",
|
||||
"name": "Message effect",
|
||||
"rarity": "common",
|
||||
"sound": "",
|
||||
"art": ""
|
||||
},
|
||||
{
|
||||
"kind": "power_up",
|
||||
"key": "celebration",
|
||||
"title": "Power-up: On-Screen Celebration",
|
||||
"name": "Celebration",
|
||||
"rarity": "common",
|
||||
"sound": "",
|
||||
"art": ""
|
||||
},
|
||||
{
|
||||
"kind": "power_up",
|
||||
"key": "gigantify_an_emote",
|
||||
"title": "Power-up: Gigantify an Emote",
|
||||
"name": "Giant emote",
|
||||
"rarity": "common",
|
||||
"sound": "",
|
||||
"art": ""
|
||||
}
|
||||
]
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue