Ixitxachitl's Stream Tools

Duel

A water-pistol showdown for chat. When someone types !duel name, a little pixel-art Old West town grows in along the bottom of your stream against a sunset. The two of them walk out of the saloon's swinging doors, stand back to back, take five paces, turn and draw. The winner soaks the loser, whose pistol only dribbles, and knocks their hat clean off. Nobody gets hurt. Then the whole town shrinks away, the sun sets, and there's nothing on screen until the next duel.

Live demo

The real overlay with pretend chatters challenging each other every few seconds (muted here; in OBS you hear the sound effects). On stream the background is transparent, so only the street shows, and only while a duel is on.

Setup guide

Get it on stream

  1. Add a Browser source In OBS click + under Sources → Browser. Paste https://duel.ixitxachitl.com/ as the URL and set it to your full canvas size, usually 1920 × 1080. The background is transparent automatically, and the town pops up in a small box at the bottom centre (or across the whole screen, if you'd rather: see Where it shows).
  2. Connect your chat Right-click the source → Interact, move your mouse over the overlay and click the yellow gear in the bottom-right corner. Type your Twitch and/or Kick channel name, add TikTok or YouTube if you stream there, and press Save & apply.
  3. Try it Test duel in the settings starts one between you and a pretend cowboy. The boxes next to the gear duel any two names you type, and Stop ends a duel early.
  4. Let chat duel Someone types !duel name. After the duel there's a cooldown (a minute by default) before the next one.
The settings window and the buttons show on stream while you're using them. Set things up before you go live.

Chat commands

  • !duel name: duels name (@name works too). They have to have chatted in the last 10 minutes, so nobody gets dragged into a duel when they're not around.
  • !duel on its own picks someone at random from the people who chatted in the last 10 minutes.
  • Everyone can start one by default. Who can start one in the settings changes that to mods and VIPs, mods, or just you, and you can let particular people too.
  • The cooldown starts when a duel ends. You skip it, and so can mods if you turn that on. While a duel is on, other !duels are ignored.

Chat sources

Twitch & Kick

Just type the channel name. Chat is read anonymously, so there's no login, bot account or app to set up. Each cowboy's shirt is their chat color, and mods and VIPs are recognised by their badges.

TikTok

TikTok needs a bridge app running on your PC. If you use TikFinity, just type 1 in the TikTok box. Otherwise, paste your bridge's ws://… address.

YouTube

Paste your live stream's video ID or link, plus a YouTube Data API v3 key from the Google Cloud Console. You can also give a bridge ws://… address instead.

What you'll see

  • A low-res pixel-art town against a sunset: a saloon with horses tied up out front, a jail, a bank, a hotel and a general store. Everything is a full 3D voxel model seen flat on, so it looks like 2D pixel art, with just the see-through ground showing some depth. It all twists and grows in, and shrinks back out at the end.
  • Two little cowboys or cowgirls in their chat colors. The same chatter always gets the same hat, hair and water pistol. Twitch chatters who have set their pronouns with the Chat Pronouns extension get a cowboy for he/him and a cowgirl for she/her; everyone else gets either.
  • Back to back, five paces (counted on screen), a turn, a tumbleweed, then DRAW!
  • A clear winner: one full stream of water, a soaked loser with their hat in the dirt and a puddle at their feet, and the winner's name in lights. No blood, nobody hurt.
  • Little sound effects (footsteps, a bell, the squirt and the splash), made on the fly. Turn them down or off in the settings.

All settings

Setting URL parameter Default What it does
Chat
Twitch channelchannel—Read anonymously, no login needed.
Kick channelkick—Read anonymously, no login needed.
TikTok bridgetiktok—1 uses TikFinity on this PC, or give a ws://… bridge address.
YouTube liveyoutube—Live video ID or link (needs the API key), or a bridge address.
YouTube API keyytkey—A YouTube Data API v3 key from the Google Cloud Console.
YouTube check every (s)ytpoll6Lower is snappier, but uses the daily API quota faster.
Demo chatdemooffPretend chatters duel every few seconds, for trying it out.
Filtering
Show first-time chattersfirsttimeoffTwitch flags these; spam bots usually show up this way.
Hide known botsbotlistonUses the public TwitchInsights bot list.
Always hide these usersignorethe usual botsComma or line separated. Starts with Nightbot, StreamElements, Streamlabs, Moobot, Fossabot, WizeBot, SoundAlerts, Sery_Bot, Ko-fi Stream Bot, BotRix and CommanderRoot.
Duels
Duel commandcmd!duelFollowed by a name: !duel somebody. On its own it picks someone who chatted recently. Either way, only people who chatted in the last 10 minutes can be duelled.
Cooldown (s)cooldown60After a duel, how long until the next one can start. The broadcaster skips it.
Mods skip the cooldownmodskipoffLets mods start a duel during the cooldown too.
Who can start onewhoeveryoneeveryone, vips mods and VIPs, mods, or owner only you. The broadcaster always can.
These people can tooallow—Names that can start a duel whatever who says, comma separated.
Cowboys or cowgirls by pronounspronounsonLooks up Twitch chatters' pronouns from the Chat Pronouns extension (pronouns.alejo.io): she/her gets a cowgirl, he/him a cowboy, anyone else either.
Look
Where it showslayoutboxbox: in a small box along the bottom of the screen, in the middle, with everything kept inside it. wide: the whole screen, with the sky and lights going right up to the top.
Box width (% of the screen)boxsize40How wide the small box is.
Pixel sizepixel0Screen pixels per art pixel: bigger is chunkier and fills more of the screen. 0 picks one to fill the small box, or from the source's height on the whole screen (7 at 1080p).
Show the duelers' namesnamesonTheir names over their hats, in their chat colors.
Winner stays up for (s)hold4How long the result stays before everything shrinks away.
Sound effects volumevolume500 to 100; 0 is silent.
Background (testing)bgautoIn a normal browser the overlay shows a dark background so you can see it. bg=none makes it transparent anyway, or give a color like bg=black. In OBS it's always transparent unless you set a color.
Streamer.bot or another tool can start one too: window.duel.start("challenger", "opponent", { winner: 1 }) (leave out winner for a coin flip), and window.duel.stop(). These skip the cooldown and the 10-minute rule.