[{"data":1,"prerenderedAt":522},["ShallowReactive",2],{"navigation_docs":3,"-dashboard-viewer-rewards":146,"-dashboard-viewer-rewards-surround":517},[4,31,52,78,94,120],{"title":5,"icon":6,"path":7,"stem":8,"children":9,"page":30},"Getting started","i-lucide-rocket","\u002Fgetting-started","1.getting-started",[10,15,20,25],{"title":11,"path":12,"stem":13,"icon":14},"Introduction","\u002Fgetting-started\u002Fintroduction","1.getting-started\u002F1.introduction","i-lucide-house",{"title":16,"path":17,"stem":18,"icon":19},"Installation","\u002Fgetting-started\u002Finstallation","1.getting-started\u002F2.installation","i-lucide-download",{"title":21,"path":22,"stem":23,"icon":24},"Connect accounts","\u002Fgetting-started\u002Fconnect-accounts","1.getting-started\u002F3.connect-accounts","i-lucide-plug",{"title":26,"path":27,"stem":28,"icon":29},"Updating","\u002Fgetting-started\u002Fupdating","1.getting-started\u002F4.updating","i-lucide-arrow-up-circle",false,{"title":32,"icon":33,"path":34,"stem":35,"children":36,"page":30},"OBS","i-lucide-monitor","\u002Fobs","2.obs",[37,42,47],{"title":38,"path":39,"stem":40,"icon":41},"Browser source","\u002Fobs\u002Fbrowser-source","2.obs\u002F1.browser-source","i-lucide-app-window",{"title":43,"path":44,"stem":45,"icon":46},"Moving the widget","\u002Fobs\u002Fmoving-the-widget","2.obs\u002F2.moving-the-widget","i-lucide-move",{"title":48,"path":49,"stem":50,"icon":51},"A theme per scene","\u002Fobs\u002Fscene-themes","2.obs\u002F3.scene-themes","i-lucide-layers",{"title":53,"icon":54,"path":55,"stem":56,"children":57,"page":30},"Themes","i-lucide-palette","\u002Fthemes","3.themes",[58,63,68,73],{"title":59,"path":60,"stem":61,"icon":62},"Built-in themes","\u002Fthemes\u002Fbuilt-in-themes","3.themes\u002F1.built-in-themes","i-lucide-image",{"title":64,"path":65,"stem":66,"icon":67},"Premade themes","\u002Fthemes\u002Fpremade-themes","3.themes\u002F2.premade-themes","i-lucide-layout-template",{"title":69,"path":70,"stem":71,"icon":72},"Theme editor","\u002Fthemes\u002Ftheme-editor","3.themes\u002F3.theme-editor","i-lucide-pencil-ruler",{"title":74,"path":75,"stem":76,"icon":77},"Sharing themes","\u002Fthemes\u002Fsharing-themes","3.themes\u002F4.sharing-themes","i-lucide-share-2",{"title":79,"icon":80,"path":81,"stem":82,"children":83,"page":30},"Commands","i-lucide-terminal","\u002Fcommands","4.commands",[84,89],{"title":85,"path":86,"stem":87,"icon":88},"Chat commands","\u002Fcommands\u002Fchat-commands","4.commands\u002F1.chat-commands","i-lucide-message-square",{"title":90,"path":91,"stem":92,"icon":93},"Aliases and cooldowns","\u002Fcommands\u002Faliases-and-cooldowns","4.commands\u002F2.aliases-and-cooldowns","i-lucide-sliders-horizontal",{"title":95,"icon":96,"path":97,"stem":98,"children":99,"page":30},"Dashboard","i-lucide-layout-dashboard","\u002Fdashboard","5.dashboard",[100,105,110,115],{"title":101,"path":102,"stem":103,"icon":104},"Overview","\u002Fdashboard\u002Foverview","5.dashboard\u002F1.overview","i-lucide-home",{"title":106,"path":107,"stem":108,"icon":109},"Admin panel","\u002Fdashboard\u002Fadmin-panel","5.dashboard\u002F2.admin-panel","i-lucide-shield",{"title":111,"path":112,"stem":113,"icon":114},"Stats","\u002Fdashboard\u002Fstats","5.dashboard\u002F3.stats","i-lucide-bar-chart-3",{"title":116,"path":117,"stem":118,"icon":119},"Viewer rewards","\u002Fdashboard\u002Fviewer-rewards","5.dashboard\u002F4.viewer-rewards","i-lucide-sparkles",{"title":121,"icon":122,"path":123,"stem":124,"children":125,"page":30},"Reference","i-lucide-book-open","\u002Freference","6.reference",[126,131,136,141],{"title":127,"path":128,"stem":129,"icon":130},"Ports and environment","\u002Freference\u002Fports-and-env","6.reference\u002F1.ports-and-env","i-lucide-network",{"title":132,"path":133,"stem":134,"icon":135},"Files and data","\u002Freference\u002Ffiles-and-data","6.reference\u002F2.files-and-data","i-lucide-folder",{"title":137,"path":138,"stem":139,"icon":140},"Troubleshooting","\u002Freference\u002Ftroubleshooting","6.reference\u002F3.troubleshooting","i-lucide-life-buoy",{"title":142,"path":143,"stem":144,"icon":145},"Credits and license","\u002Freference\u002Fcredits","6.reference\u002F4.credits","i-lucide-heart",{"id":147,"title":116,"body":148,"description":510,"extension":511,"links":512,"meta":513,"navigation":514,"path":117,"seo":515,"stem":118,"__hash__":516},"docs\u002F5.dashboard\u002F4.viewer-rewards.md",{"type":149,"value":150,"toc":496},"minimark",[151,155,164,169,193,196,200,203,238,241,245,252,261,295,306,310,338,346,352,355,358,365,369,375,410,415,421,424,428,452,456],[152,153,154],"p",{},"When a song a viewer requested comes on, the widget celebrates them. The more songs they've\nrequested, the bigger it gets. It works as it comes, so there's nothing you have to set up.",[152,156,157],{},[158,159],"img",{"alt":160,"className":161,"src":163},"A 100th song request taking the widget over, with a burst of stars",[162],"rounded-xl","\u002Fimg\u002Fperks-milestone.png",[165,166,168],"h2",{"id":167},"what-your-viewers-get","What your viewers get",[170,171,172,178,188],"field-group",{},[173,174,177],"field",{"name":175,"type":176},"An effect","for regulars","Once a viewer has requested enough songs, each of their songs starts with an effect. Out of the\nbox that's Sparkles from 10 songs, Stars from 50, and Embers from 100.",[173,179,182,183,187],{"name":180,"type":181},"Their own pick","for subs","Subs choose the effect their songs start with, and its colors, in chat with ",[184,185,186],"code",{},"!fx",". Until they\ndo, it's Sparkles for Tier 1, Scatter for Tier 2, and Lightning for Tier 3. You can save some\neffects for Tier 2 or Tier 3 subs.",[173,189,192],{"name":190,"type":191},"A milestone","now and then","On a viewer's 10th song, their 25th, their 100th, and so on, the widget steps aside for a few\nseconds and celebrates them by name, with the number counting up. Then it comes back.",[152,194,195],{},"Only songs that went in count, from chat or channel points. Nothing plays when the request is\nmade, only when the song actually starts.",[165,197,199],{"id":198},"the-effects","The effects",[152,201,202],{},"There are 48, in five kinds:",[204,205,206,214,220,226,232],"ul",{},[207,208,209,213],"li",{},[210,211,212],"strong",{},"Bursts",": Sparkles, Stars, Confetti, Hearts, Notes, Fireworks, Pixels, Coins, Embers,\nBubbles, and Petals, spread across the whole widget",[207,215,216,219],{},[210,217,218],{},"The widget itself",": Scatter, Wave, Jelly, Glitch, Heartbeat, and Spotlight move or change\nthe widget's own parts, then put every one of them back exactly where it was",[207,221,222,225],{},[210,223,224],{},"Light shows",": Comet, Neon trace, Warp, Aurora, Scanline, Lightning, Supernova, and Vortex,\ndrawn over and around it",[207,227,228,231],{},[210,229,230],{},"Glow",": Bokeh, Glimmer, Fairy dust, Mist, Shine, Lens flare, Halo, Glitter, Wisps, Love,\nStarfall, Fountain, and Bloom, soft light that blends into the widget",[207,233,234,237],{},[210,235,236],{},"Magic",": Ripple, Rune, Blaze, Meteors, Swirl, Portal, Poof, Crackle, Slash, and Impact,\nspells cast across it",[152,239,240],{},"Each takes its colors from the album art of the song playing, unless it's set to Rainbow, Gold,\nSilver, Ice, Fire, Candy, Neon, or Sunset.",[165,242,244],{"id":243},"changing-them","Changing them",[152,246,247,248,251],{},"Open ",[210,249,250],{},"Admin Panel → Viewer rewards",". Saving applies to the next song that starts.",[152,253,254],{},[158,255],{"alt":256,"className":257,"src":260},"The Viewer rewards tab in the admin panel",[162,258,259],"border","border-default","\u002Fimg\u002Fperks-admin.png",[204,262,263,277,283,289],{},[207,264,265,268,269,272,273,276],{},[210,266,267],{},"Reward effects"," and ",[210,270,271],{},"Milestones",": a switch each, so you can have one without the other.\nIf some of your themes have them off, ",[210,274,275],{},"Turn on in every theme"," switches them on in all of them",[207,278,279,282],{},[210,280,281],{},"Try them",": watch every effect, and a milestone, on a sample widget",[207,284,285,288],{},[210,286,287],{},"Tiers",": rename them, change how many songs each needs and its effect, add up to six",[207,290,291,294],{},[210,292,293],{},"Subscribers",": what Tier 1 (and Prime), Tier 2, and Tier 3 subs each start with before they\npick their own",[152,296,297,298,301,302,305],{},"The rest waits under ",[210,299,300],{},"More settings",", folded, for when you want it: the milestone counts, how\neach effect looks, and ",[210,303,304],{},"What subs can pick",". That last one sets, for each effect, who can pick\nit: every sub, Tier 2 and up, Tier 3 only, or nobody. Every effect starts open to every sub,\nand so does any effect added in an update. Set them all to nobody and the picker page says\nthere's nothing to pick.",[165,307,309],{"id":308},"how-subs-pick-their-effect","How subs pick their effect",[311,312,313,319,322,332],"ol",{},[207,314,315,316,318],{},"A viewer types ",[184,317,186],{}," in chat",[207,320,321],{},"The bot replies with a link to a page that plays every effect you allow",[207,323,324,325,328,329],{},"They pick one, and colors if they like, and tap ",[210,326,327],{},"Copy",". That copies a command like\n",[184,330,331],{},"!fx glitch gold",[207,333,334,335],{},"They paste it in chat, and their songs start with it from then on. The color can come first,\nlike ",[184,336,337],{},"!fx gold glitch",[152,339,340],{},[158,341],{"alt":342,"className":343,"src":344,"width":345},"The effect picker on a phone",[162],"\u002Fimg\u002Fperks-picker.png",300,[152,347,348,351],{},[184,349,350],{},"!fx off"," goes back to the default. Only subs can pick. Anyone else who tries is sent the link\nto look. An effect saved for a higher tier is marked with that tier on the page, and a sub below\nit who tries it in chat is told which tier it needs.",[152,353,354],{},"A sub's tier comes from the sub badge Twitch shows on their chat messages. Prime subs and\nfounders count as Tier 1. If a sub drops to a lower tier, their songs go back to that tier's\ndefault until they pick something it allows.",[152,356,357],{},"A Tier 3 sub's effect always plays at its biggest.",[359,360,361,362,364],"note",{},"The picker page is on this docs site, because viewers can't reach your computer. The link the\nbot gives out tells it which effects you allow and what your command is called, so a renamed\n",[184,363,186],{}," still copies the right thing.",[165,366,368],{"id":367},"in-your-theme","In your theme",[152,370,371,372,374],{},"In the theme editor, under ",[210,373,116],{},":",[204,376,377,390,396],{},[207,378,379,268,381,383,384,386,387,389],{},[210,380,267],{},[210,382,271],{}," turn each half on for that theme. A slim banner theme\nmight keep the effects and leave milestones off. New themes and the premades have both on.\nThemes you made before rewards existed have both off, so nothing changes on your stream until\nyou tick them. To tick them in all your themes at once, press ",[210,385,275],{}," in\n",[210,388,250],{},". It only shows while a theme has them off",[207,391,392,395],{},[210,393,394],{},"Show them for"," is how many seconds a milestone takes the widget over",[207,397,398,401,402,405,406,409],{},[210,399,400],{},"Try them on this theme"," is only a preview, and nothing in it is saved. Press ",[210,403,404],{},"Play effect","\nor ",[210,407,408],{},"Play a milestone"," to see how any effect looks on that theme",[411,412,414],"h3",{"id":413},"ambience","Ambience",[152,416,417,418,420],{},"Also in the editor, a theme can have an ",[210,419,414],{}," drifting quietly across the widget while\nmusic plays: embers, snow, petals, bokeh, fireflies, dust motes, fog, or starlight. It's off unless you pick one.",[152,422,423],{},"It never bursts or flashes, so viewers' rewards stay special. It fades out while one plays, and\nstops when the music does.",[165,425,427],{"id":426},"details","Details",[429,430,432,440,443,446,449],"collapsible",{"name":431},"how rewards are counted and played",[152,433,434,435,439],{},"Counts come from the request log the ",[436,437,438],"a",{"href":112},"stats page"," reads, so requests from\nbefore rewards existed count too. A viewer who changes their Twitch name keeps their count.",[152,441,442],{},"Each request is numbered when it goes in. A viewer with three songs in the queue gets their\n100th milestone on the right one, whichever order they play in.",[152,444,445],{},"A reward plays once, as the song starts. Reloading the widget, or switching scenes, part way\nthrough a song doesn't play it again.",[152,447,448],{},"Whether a viewer subscribes is read from their chat messages. A channel point redeem doesn't\nsay, so a sub's own effect on a redeemed song needs them to have chatted since the bot started.",[152,450,451],{},"Effects are drawn over the widget and removed when they finish. Nothing is drawn outside the\nbrowser source.",[165,453,455],{"id":454},"where-its-stored","Where it's stored",[457,458,459,472],"table",{},[460,461,462],"thead",{},[463,464,465,469],"tr",{},[466,467,468],"th",{},"File",[466,470,471],{},"What it holds",[473,474,475,486],"tbody",{},[463,476,477,483],{},[478,479,480],"td",{},[184,481,482],{},"queue-settings.json",[478,484,485],{},"Tiers, milestones, effect looks, and which effects subs can pick",[463,487,488,493],{},[478,489,490],{},[184,491,492],{},"viewer-effects.json",[478,494,495],{},"The effect, and colors, each sub picked",{"title":497,"searchDepth":498,"depth":498,"links":499},"",2,[500,501,502,503,504,508,509],{"id":167,"depth":498,"text":168},{"id":198,"depth":498,"text":199},{"id":243,"depth":498,"text":244},{"id":308,"depth":498,"text":309},{"id":367,"depth":498,"text":368,"children":505},[506],{"id":413,"depth":507,"text":414},3,{"id":426,"depth":498,"text":427},{"id":454,"depth":498,"text":455},"The widget celebrates viewers when a song they requested starts.","md",null,{},{"icon":119},{"title":116,"description":510},"UH56TFP0-HbcNHoV6tIyiqWg_Glit4HVqHWFUKGeAQM",[518,520],{"title":111,"path":112,"stem":113,"description":519,"icon":114,"children":-1},"What the stats page counts.",{"title":127,"path":128,"stem":129,"description":521,"icon":130,"children":-1},"The three local ports and every value in .env.",1793653500977]