[{"data":1,"prerenderedAt":480},["ShallowReactive",2],{"navigation_docs":3,"-getting-started-connect-accounts":146,"-getting-started-connect-accounts-surround":475},[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":21,"body":148,"description":468,"extension":469,"links":470,"meta":471,"navigation":472,"path":22,"seo":473,"stem":23,"__hash__":474},"docs\u002F1.getting-started\u002F3.connect-accounts.md",{"type":149,"value":150,"toc":455},"minimark",[151,164,173,176,265,268,272,276,279,326,334,337,340,346,349,368,379,382,385,394,422,430,433,444,448,452],[152,153,154,155,159,160,163],"p",{},"Every step below happens on the dashboard that ",[156,157,158],"code",{},"npm start"," opens at ",[156,161,162],{},"http:\u002F\u002F127.0.0.1:3002",".\nNothing here is typed into a terminal or a config file: each step is a panel on that page, it\nwrites the files queueify needs, and a tick appears beside the ones that are done.",[152,165,166],{},[167,168],"img",{"alt":169,"src":170,"className":171},"The dashboard, with Twitch connected","\u002Fimg\u002Fdashboard.png",[172],"rounded-xl",[152,174,175],{},"The same page holds everything else you would otherwise be editing by hand: widget themes, the\nadmin panel, the command list, the stats page, and what changed in the version you are running.",[177,178,179,195],"table",{},[180,181,182],"thead",{},[183,184,185,189,192],"tr",{},[186,187,188],"th",{},"Step",[186,190,191],{},"What it does",[186,193,194],{},"Required",[196,197,198,213,225,238,249],"tbody",{},[183,199,200,207,210],{},[201,202,203],"td",{},[204,205,206],"strong",{},"Twitch",[201,208,209],{},"Approve queueify on Twitch. Nothing to copy or paste",[201,211,212],{},"Yes",[183,214,215,220,223],{},[201,216,217],{},[204,218,219],{},"Spotify",[201,221,222],{},"Paste a Client ID and Secret, then connect",[201,224,212],{},[183,226,227,232,235],{},[201,228,229],{},[204,230,231],{},"Channel points",[201,233,234],{},"Creates the reward viewers redeem to request a song",[201,236,237],{},"No",[183,239,240,244,247],{},[201,241,242],{},[204,243,32],{},[201,245,246],{},"Pick your scene and widget source from lists that come from OBS",[201,248,237],{},[183,250,251,256,263],{},[201,252,253],{},[204,254,255],{},"Canvas videos",[201,257,258,259,262],{},"Paste the ",[156,260,261],{},"sp_dc"," cookie for Spotify's looping clips",[201,264,237],{},[152,266,267],{},"The page stays up for as long as the bot runs. Go back to it to reconnect an account, change\nyour OBS scene or source, or paste a new Spotify cookie. Changes apply on the next command,\nwithout stopping the bot.",[269,270,271],"warning",{},"Whichever Twitch account you approve with is the account the bot chats as. It must be your\nbroadcaster account or a moderator on your channel, or channel point redemptions will not work.\nThe panel says so too, next to the channel name.",[273,274,219],"h2",{"id":275},"spotify",[152,277,278],{},"Spotify caps a shared app at 5 users, so you create your own. The dashboard links to it.",[280,281,283,288,299,303,313,316,320],"steps",{"level":282},"3",[284,285,287],"h3",{"id":286},"create-an-app","Create an app",[152,289,290,291,298],{},"In the ",[292,293,297],"a",{"href":294,"rel":295},"https:\u002F\u002Fdeveloper.spotify.com\u002Fdashboard",[296],"nofollow","Spotify developer dashboard",", create an app.\nThe name and description do not matter.",[284,300,302],{"id":301},"set-the-redirect-uri","Set the Redirect URI",[304,305,310],"pre",{"className":306,"code":308,"language":309},[307],"language-text","http:\u002F\u002F127.0.0.1:8000\u002Fcallback\n","text",[156,311,308],{"__ignoreMap":312},"",[152,314,315],{},"This has to match exactly, including the port.",[284,317,319],{"id":318},"paste-the-client-id-and-secret","Paste the Client ID and Secret",[152,321,322,323,325],{},"Both are on the app's settings page. Paste them into the ",[204,324,219],{}," step and connect.",[327,328,330],"collapsible",{"name":329},"a filled-in example",[167,331],{"alt":332,"src":333},"A correctly filled in Spotify app","\u002Fimg\u002Fspotify-app-example.png",[152,335,336],{},"queueify manages the access and refresh tokens from then on.",[273,338,231],{"id":339},"channel-points",[152,341,342,343,345],{},"Optional, and only possible on Affiliate and Partner channels. The ",[204,344,231],{}," step\ncreates the reward viewers redeem to request a song, and queueify handles redemptions over\nTwitch EventSub in real time.",[152,347,348],{},"Redemptions are refunded automatically when the request cannot be honoured:",[350,351,352,356,359,362,365],"ul",{},[353,354,355],"li",{},"the user is on cooldown",[353,357,358],{},"the same-song repeat block is active",[353,360,361],{},"the song is longer than the configured maximum",[353,363,364],{},"the user is on the deny list, or the song or artist is blocked",[353,366,367],{},"the queue is closed",[152,369,370,371,374,375,378],{},"Turn the reward on and off from chat with ",[156,372,373],{},"!rewardon"," and ",[156,376,377],{},"!rewardoff",".",[273,380,255],{"id":381},"canvas-videos",[152,383,384],{},"Spotify ships a short looping clip for many tracks, and the widget can play it instead of the\nalbum cover. It needs one cookie and nothing installed.",[152,386,387,388,390,391,393],{},"Paste your ",[156,389,261],{}," cookie into the ",[204,392,255],{}," step. queueify checks it against Spotify\nimmediately, so an expired cookie is rejected on the page instead of failing later.",[327,395,397,416],{"name":396},"where to find the sp_dc value",[152,398,399,400,404,405,408,409,412,413,415],{},"Open Spotify in a browser, press ",[401,402],"kbd",{"value":403},"Shift"," + ",[401,406],{"value":407},"F9"," to open the ",[204,410,411],{},"Storage","\ntab, and copy the ",[156,414,261],{}," cookie.",[152,417,418],{},[167,419],{"alt":420,"src":421},"Where the sp_dc cookie lives","\u002Fimg\u002Fsp-dc-cookie.png",[423,424,425,426,429],"note",{},"Skip this and the widget shows album art. To turn the clips off for one theme, set ",[204,427,428],{},"Album\nart"," to \"Album cover only\" in the theme editor.",[273,431,32],{"id":432},"obs",[152,434,435,436,439,440,443],{},"Needed for ",[156,437,438],{},"!tr"," \u002F ",[156,441,442],{},"!bc"," and for a theme that follows your OBS scene. The widget itself works\nwithout it.",[445,446,447],"tip",{"to":44},"Connecting OBS WebSocket, and who is allowed to move the widget.",[273,449,451],{"id":450},"using-your-own-twitch-application","Using your own Twitch application",[152,453,454],{},"If you set queueify up with your own Twitch application, it keeps working. The dashboard offers\na one-click switch to the built-in one, which needs no client ID or secret and renews logins\nitself. Switching means reconnecting Twitch and recreating the channel point reward once.",{"title":312,"searchDepth":456,"depth":456,"links":457},2,[458,464,465,466,467],{"id":275,"depth":456,"text":219,"children":459},[460,462,463],{"id":286,"depth":461,"text":287},3,{"id":301,"depth":461,"text":302},{"id":318,"depth":461,"text":319},{"id":339,"depth":456,"text":231},{"id":381,"depth":456,"text":255},{"id":432,"depth":456,"text":32},{"id":450,"depth":456,"text":451},"Twitch, Spotify, channel points, OBS, and the Canvas cookie.","md",null,{},{"icon":24},{"title":21,"description":468},"YGAw3rawSZpHBCJ2vCdCwcIMHwfhCa7-jSTFYrxfw68",[476,478],{"title":16,"path":17,"stem":18,"description":477,"icon":19,"children":-1},"Clone the repo, install the dependencies, start the bot.",{"title":26,"path":27,"stem":28,"description":479,"icon":29,"children":-1},"How to update, and what changes on the first run afterwards.",1793653501086]