[{"data":1,"prerenderedAt":465},["ShallowReactive",2],{"navigation_docs":3,"-reference-ports-and-env":146,"-reference-ports-and-env-surround":460},[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":127,"body":148,"description":453,"extension":454,"links":455,"meta":456,"navigation":457,"path":128,"seo":458,"stem":129,"__hash__":459},"docs\u002F6.reference\u002F1.ports-and-env.md",{"type":149,"value":150,"toc":446},"minimark",[151,156,207,211,215,222,251,258,264,267,352,363,380,384,387,433,442],[152,153,155],"h2",{"id":154},"the-three-ports","The three ports",[157,158,159,172],"table",{},[160,161,162],"thead",{},[163,164,165,169],"tr",{},[166,167,168],"th",{},"Port",[166,170,171],{},"What is on it",[173,174,175,187,197],"tbody",{},[163,176,177,184],{},[178,179,180],"td",{},[181,182,183],"code",{},"3001",[178,185,186],{},"The widget, which is your OBS browser source URL",[163,188,189,194],{},[178,190,191],{},[181,192,193],{},"3002",[178,195,196],{},"The dashboard",[163,198,199,204],{},[178,200,201],{},[181,202,203],{},"3000",[178,205,206],{},"The Canvas video helper",[208,209,210],"p",{},"If the widget's or the Canvas API's port is taken, queueify names it and stops. Usually that\nmeans queueify is already running in another window. A dashboard already serving on its port is\nreused.",[152,212,214],{"id":213},"changing-them","Changing them",[208,216,217,218,221],{},"The dashboard is served on one of these ports, so it cannot change them. Put them in ",[181,219,220],{},".env"," if\nthe defaults clash with something else:",[223,224,229],"pre",{"className":225,"code":226,"filename":220,"language":227,"meta":228,"style":228},"language-ini shiki shiki-themes material-theme-lighter material-theme material-theme-palenight","SETUP_PORT=3002            # the dashboard\nQUEUEIFY_WIDGET_PORT=3001  # the widget, i.e. your OBS browser source URL\nQUEUEIFY_CANVAS_PORT=3000  # the Canvas video helper\n","ini","",[181,230,231,239,245],{"__ignoreMap":228},[232,233,236],"span",{"class":234,"line":235},"line",1,[232,237,238],{},"SETUP_PORT=3002            # the dashboard\n",[232,240,242],{"class":234,"line":241},2,[232,243,244],{},"QUEUEIFY_WIDGET_PORT=3001  # the widget, i.e. your OBS browser source URL\n",[232,246,248],{"class":234,"line":247},3,[232,249,250],{},"QUEUEIFY_CANVAS_PORT=3000  # the Canvas video helper\n",[208,252,253,254,257],{},"The dashboard link printed at startup, and the address queueify puts in chat messages, both\nfollow ",[181,255,256],{},"SETUP_PORT",".",[152,259,261,262],{"id":260},"what-else-is-in-env","What else is in ",[181,263,220],{},[208,265,266],{},"The dashboard fills this in. It is listed here so you know what is on disk.",[223,268,270],{"className":225,"code":269,"filename":220,"language":227,"meta":228,"style":228},"TWITCH_BROADCASTER_USERNAME=\nTWITCH_BOT_USERNAME=\n\nSPOTIFY_CLIENT_ID=\nSPOTIFY_CLIENT_SECRET=\nSPOTIFY_REDIRECT_URI=http:\u002F\u002F127.0.0.1:8000\u002Fcallback\n\nOBS_WEBSOCKET_PASSWORD=\nOBS_WEBSOCKET_PORT=4455\nOBS_WEBSOCKET_IP=127.0.0.1\nOBS_SCENE=\nOBS_SOURCE=\n\nSP_DC=\n",[181,271,272,277,282,288,294,300,306,311,317,323,329,335,341,346],{"__ignoreMap":228},[232,273,274],{"class":234,"line":235},[232,275,276],{},"TWITCH_BROADCASTER_USERNAME=\n",[232,278,279],{"class":234,"line":241},[232,280,281],{},"TWITCH_BOT_USERNAME=\n",[232,283,284],{"class":234,"line":247},[232,285,287],{"emptyLinePlaceholder":286},true,"\n",[232,289,291],{"class":234,"line":290},4,[232,292,293],{},"SPOTIFY_CLIENT_ID=\n",[232,295,297],{"class":234,"line":296},5,[232,298,299],{},"SPOTIFY_CLIENT_SECRET=\n",[232,301,303],{"class":234,"line":302},6,[232,304,305],{},"SPOTIFY_REDIRECT_URI=http:\u002F\u002F127.0.0.1:8000\u002Fcallback\n",[232,307,309],{"class":234,"line":308},7,[232,310,287],{"emptyLinePlaceholder":286},[232,312,314],{"class":234,"line":313},8,[232,315,316],{},"OBS_WEBSOCKET_PASSWORD=\n",[232,318,320],{"class":234,"line":319},9,[232,321,322],{},"OBS_WEBSOCKET_PORT=4455\n",[232,324,326],{"class":234,"line":325},10,[232,327,328],{},"OBS_WEBSOCKET_IP=127.0.0.1\n",[232,330,332],{"class":234,"line":331},11,[232,333,334],{},"OBS_SCENE=\n",[232,336,338],{"class":234,"line":337},12,[232,339,340],{},"OBS_SOURCE=\n",[232,342,344],{"class":234,"line":343},13,[232,345,287],{"emptyLinePlaceholder":286},[232,347,349],{"class":234,"line":348},14,[232,350,351],{},"SP_DC=\n",[353,354,355,358,359,362],"note",{},[181,356,357],{},"OBS_*"," and ",[181,360,361],{},"SP_DC"," are re-read while the bot runs, so a change here, or on the dashboard, takes\neffect on the next command.",[364,365,366,358,369,372,373,358,376,379],"warning",{},[181,367,368],{},"OBS_SCENE",[181,370,371],{},"OBS_SOURCE"," have to match the names in OBS exactly. Typing them by hand is the\nmost common reason ",[181,374,375],{},"!tr",[181,377,378],{},"!bc"," fail; pick them from the dashboard dropdowns instead.",[152,381,383],{"id":382},"overrides-for-contributors","Overrides for contributors",[208,385,386],{},"Every path queueify writes to can be pointed somewhere else, which is how the test suite runs\nwithout touching real data:",[208,388,389,392,393,392,396,399,400,392,403,392,406,399,409,392,412,392,415,399,418,392,421,392,424,399,427,392,430],{},[181,390,391],{},"QUEUEIFY_DATA_DIR",", ",[181,394,395],{},"QUEUEIFY_THEMES_DIR",[181,397,398],{},"QUEUEIFY_SETTINGS_FILE",",\n",[181,401,402],{},"QUEUEIFY_USER_SETTINGS_FILE",[181,404,405],{},"QUEUEIFY_WIDGET_CONFIG_FILE",[181,407,408],{},"QUEUEIFY_SCENE_THEMES_FILE",[181,410,411],{},"QUEUEIFY_HISTORY_FILE",[181,413,414],{},"QUEUEIFY_ALIASES_FILE",[181,416,417],{},"QUEUEIFY_MESSAGES_FILE",[181,419,420],{},"QUEUEIFY_COMMANDS_DIR",[181,422,423],{},"QUEUEIFY_CHANGELOG_FILE",[181,425,426],{},"QUEUEIFY_LUCIDE_DIR",[181,428,429],{},"QUEUEIFY_ENV_FILE",[181,431,432],{},"QUEUEIFY_WIDGET_URL",[434,435,436,437,441],"caution",{},"These are read when a module is first loaded, so they have to be set ",[438,439,440],"strong",{},"before"," the module is\nrequired. Setting one after the fact writes to your real project.",[443,444,445],"style",{},"html .light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html.light .shiki span {color: var(--shiki-light);background: var(--shiki-light-bg);font-style: var(--shiki-light-font-style);font-weight: var(--shiki-light-font-weight);text-decoration: var(--shiki-light-text-decoration);}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}html.dark .shiki span {color: var(--shiki-dark);background: var(--shiki-dark-bg);font-style: var(--shiki-dark-font-style);font-weight: var(--shiki-dark-font-weight);text-decoration: var(--shiki-dark-text-decoration);}",{"title":228,"searchDepth":241,"depth":241,"links":447},[448,449,450,452],{"id":154,"depth":241,"text":155},{"id":213,"depth":241,"text":214},{"id":260,"depth":241,"text":451},"What else is in .env",{"id":382,"depth":241,"text":383},"The three local ports and every value in .env.","md",null,{},{"icon":130},{"title":127,"description":453},"bV1XQFrA49XR2jmUd2-EGnXYQokEZZa-JOD9TCDcHiE",[461,463],{"title":116,"path":117,"stem":118,"description":462,"icon":119,"children":-1},"The widget celebrates viewers when a song they requested starts.",{"title":132,"path":133,"stem":134,"description":464,"icon":135,"children":-1},"What queueify stores on disk.",1793653502310]