PixFray

Set up PixFray on your Twitch channel

Viewers pick a pixel fighter on this site and duel each other with chat commands. The fights play out on your stream through an OBS browser source.

The overlay as it looks on stream, with demo fighters. On your stream it's transparent, over your game.

Setup takes about 10 minutes, after one Twitch sign-in

PixFray is free. You need OBS. The PixFray bot answers the duel commands in your chat, so there is no other chat bot to set up. After you sign in, the Stream setup page checks off each step as it starts working.

  1. Add the overlay to OBS Make it a Browser Source at 1920×1080 and 30 FPS, with “Shutdown source when not visible” off. The setup page gives you the link. Add &demo=1 to it to watch demo fighters duel before you go live.
  2. Add the PixFray bot One click on the setup page lets the bot read your chat and answer as itself, never as you. Make it a moderator so it can answer more than one command a second.
  3. Try the commands in chat The bot answers duels (!challenge, !fight, !decline, !rematch), ranks (!elo, !ranks), help (!fray, !look) and coins and pets (!checkin, !wallet, !pay, !pet). If StreamElements is in your chat, turn off its Duel module.
  4. Let your moderators help Optional They can manage fighters, ranks and settings.

PixFray asks Twitch for two permissions: your moderator list and its bot in your chat

What PixFray reads

  • Your public Twitch name, from sign-in
  • Your moderator list (moderation:read), so your mods can open mod controls
  • Your chat, through the PixFray bot's own account (channel:bot), so it can answer duel commands

What PixFray never does

  • Post in chat as you
  • Change your channel, title or settings
  • See your email or stream key

You can turn PixFray off at any time from the Stream setup page. Fighters and ranks are kept, so turning it back on picks up where you left off. Up to 200 channels can have PixFray on at once; if it's full, this page says so.

PixFray is open source

The overlay, the site and the server are MIT-licensed, and the character art is CC0. Read the code, report a bug, or run your own copy on a Cloudflare account.

Open the code on GitHub

Your chat gets its own arena after one sign-in

Sign in with the Twitch account you stream on, and the Stream setup page walks you through the four steps above.