# Roulette Alpha Build weighted wheel, reel, card, and last-one-standing draws, connect the OBS overlay, and automate spins with AST commands. Source: https://docs.domdimabot.com/roulette/ Language: en Documentation index: https://docs.domdimabot.com/llms.txt Roulette Alpha gives you a saved library of prize draws, an interactive stage preview, and a read-only OBS browser source—ready for giveaways, punishments, or game picks. It's available on **Free**, Premium, and Pro. During Alpha, the channel owner and full-access channel admins can manage the channel's roulettes. ## Create your first roulette 1. Sign in as the channel owner or a full-access channel admin. 2. Open your channel dashboard and go to **Modules → Roulette**. 3. Click **New roulette**, name it, and choose a style. The **Command ID** (alias) fills in automatically from the name (like `giveaways`), and you can customize it. Each channel can store up to 20 roulettes. You'll use the alias inside AST commands—it must start with a letter and can include lowercase letters, numbers, underscores, and hyphens. If your alias contains a hyphen, wrap it in quotes inside AST expressions. ## Add prizes and balance the odds Click **Add prize** and fill in the prize label, **Slots**, and **Weight**: * **Slots** (the multiplier) place that many individual copies on the wheel, reel, or board. * **Weight** boosts each copy's odds of being picked without adding extra slices on screen. For instance, 3 slots with weight 2 equals six weighted tickets—your prize's win chance is its tickets divided by the roulette's total tickets. The editor shows the resulting chance before you save, and every row shows its live win chance. [![Roulette dashboard with a sample giveaway wheel, OBS overlay status and chat commands.](https://docs.domdimabot.com/guides/alerts/roulette-en.png)](https://docs.domdimabot.com/guides/alerts/roulette-en.png) *Roulette dashboard showing DemoStreamer's Friday giveaways wheel, OBS overlay strip, and chat commands.* Under **After each draw → More options**, decide how newly added copies behave: * **New slots go:** **At the end** appends them to the list; **In random spots** scatters each new copy randomly. * **Adding a name that already exists:** **Adds a new prize** creates a separate entry, while **Adds slots to it** merges copies into the existing prize (weights and commands must match to merge). Each style has its own copy capacity: a wheel handles up to 10,000 copies, a reel handles 60, last one standing supports 100, and cards support 50, 75, or 100 copies depending on whether you pick large, medium, or small cards. Check the **Prizes** section to see how many slots you've used. Remember that weight changes odds only—not how big a slice looks. ## Import a list or CSV Need to load a long list of entries? Click **Import** in **Prizes**, then paste text or upload a `.txt` or `.csv` file (on desktop you can drag and drop the file straight onto the modal). * **List of names:** separate items with commas or line breaks. Each name becomes one slot at weight 1, and repeating a name stacks slots—`Prize 1, Prize 1, Prize 2` adds Prize 1 with 2 slots and Prize 2 with 1. * **Name, weight, count (CSV):** one prize per row. Weight and count are optional (defaulting to 1), and an optional fourth column defines an AST command to run when that prize wins. A header row like `name,weight,count,action` (or `nombre,peso,cantidad,accion`) is ignored automatically and can order the columns however you like. Commas, semicolons, and tabs are all valid delimiters; wrap a name in quotes if it contains one. ```text name,weight,count VIP for a day,5,2 Choose the game,1,3 ``` The importer auto-detects the format, and you can toggle it manually anytime. Before committing, the preview shows every prize's resulting odds, total slots after import, and any skipped rows with explanations. Duplicate names follow your **Adding a name that already exists** setting—if you chose **Adds slots to it**, rows whose weight or command conflicts with an existing prize are flagged so you can fix them first. Imports save atomically: if anything is refused, nothing is added, and retrying after a connection drop never adds the list twice. Enable **Replace the current prizes** to swap the entire list rather than appending (replacements wait for any active spin to wrap up). If you prefer editing in a spreadsheet, click **Download CSV** inside the import modal, make your edits, and re-import with **Replace**. A single import supports up to 10,000 prizes from a file up to 2 MB, within your style's slot cap. Convert Excel spreadsheets (`.xlsx`) to CSV first. ## Style and run a draw Under **Look**, pick how the draw plays out on stream: * **Wheel:** classic spinning wheel slowing down under the pointer. * **Reel:** a fast horizontal strip of cards decelerating onto the winner. * **Cards:** a spotlight hopping across a card grid before landing on one (card size applies here only). * **Last one standing:** knocks entries out one by one until a single winner survives—great for viewer giveaways. Pick a color preset or customize up to 12 colors, and set spin duration using the slider (1–60 seconds) or type up to 120 seconds directly. Unsaved visual tweaks preview live on the stage; click **Save** in the bottom bar to keep them, or **Discard** to revert. Under **After each draw**, choose what happens to **The winning prize**: **Stays in**, **Loses one slot** (drops only the winning copy), or **Leaves the draw** (removes the prize entirely). You can also auto-show the overlay on spin start, auto-hide it a set number of seconds after the reveal, and—under **More options**—shuffle before every draw. The server locks in and stores the winner the instant a draw starts. Your OBS overlay plays that exact saved result, so refreshing or reconnecting mid-spin won't change the outcome. Only one draw runs per channel at a time—wait for an active draw to finish before starting another or switching roulettes. Hiding the overlay doesn't cancel a running draw. Whenever at least one prize has a winner command, a **Draw for** input appears above **Start draw**. Enter a Twitch username to act as the target for a manual dashboard draw (leave it blank to target yourself). A winning prize's optional AST script runs once after the draw ends, regardless of slot count. Inside that script, `$(user)` resolves to the chosen target, and you can read draw metadata via `%(roulette_id)`, `%(roulette_draw_id)`, `%(roulette_item_id)`, and `%(roulette_item)`. Only attach AST actions you're comfortable running with the channel owner's permissions. ## Add the overlay to OBS 1. In the Roulette dashboard, locate the **OBS overlay** strip and click **Create overlay link** (or **Replace overlay links** and confirm if you already have one). 2. Add that URL to OBS as a **Browser Source** and keep it active in your scene. 3. Click **Copy** or **Open** in the strip whenever you need the link again. That URL holds a private, read-only token—treat it like a password, since anyone who has it can view your roulette overlay. The link is saved for the channel, so the streamer and authorized admins use the same link. Replacing it revokes the old link and disconnects existing OBS sources, meaning you'll need to paste the fresh URL into OBS. Changing roulette settings does not invalidate the link, and the token cannot modify settings. You can test draws in the dashboard preview without OBS, though OBS is required to display them live. Only the currently active roulette appears on the overlay, not your whole saved library. ## Automate Roulette with AST All Roulette AST functions work in custom commands and other AST scripts across Free, Premium, and Pro. Here's a quick example using the alias `giveaways`: ```text $(roulette.add giveaways "VIP for a day" 3 10) $(roulette.start giveaways) $(roulette.result giveaways) ``` Available functions: `roulette.create`, `roulette.delete`, `roulette.clear`, `roulette.fill`, `roulette.add`, `roulette.remove`, `roulette.update`, `roulette.shuffle`, `roulette.switch`, `roulette.show`, `roulette.hide`, `roulette.start`, and `roulette.result`. * `add` takes an alias, a quoted prize label, an optional multiplier, and an optional weight. * `remove` and `update` take the alias and a prize's item ID (copy it from the prize editor). * `start` can omit the alias to spin whichever roulette is active. * `result` returns the latest completed winner label, or empty text if no draw has finished yet. The **Run it from chat** panel lists each function with this roulette's alias and a copy button, while `create` and `delete` are under **Create or delete a roulette**. See [Roulette functions](https://docs.domdimabot.com/commands/advanced/functions/index.txt#roulette-functions) for the full reference. For a winning-prize script, something like `$(timer 300 $(user), you can speak again.)` sends a delayed chat reminder to the target viewer. Keep in mind that a timer reminder doesn't apply a timeout by itself—if you also want a timeout, include the moderation action separately. ## Break a poll tie Want a wheel to settle tied Twitch polls automatically? Check the [poll results recipe](https://docs.domdimabot.com/commands/advanced/recipes/index.txt#poll-results) and wire it into [Chat Events](https://docs.domdimabot.com/chat-events/index.txt#poll-and-prediction-ended). ## Limits and troubleshooting * **Roulette is unavailable:** verify you're logged in as the channel owner or a full-access channel admin, and that your overlay link is up to date. * **A draw won't start:** make sure there's at least one prize, check your style's slot cap, and wait for any active spin to finish. * **OBS stays blank:** confirm the generated URL is loaded in OBS, the overlay is toggled visible, and update OBS if you recently rotated the link. * **A winner action didn't fire:** actions run once the draw finishes, with at most one execution attempt. If the backend restarts right after claiming the action, it won't retry.