This is an old revision of the document!
Table of Contents
Waffle Iron
Waffle Iron is a raffle system designed to select an active chatter at random in order to award them in some way. The most recent incarnation is web based, and consists of up to 4 separate but connected web pages.
It is important to note that the data is not stored on the server, that the controller expects all used pages to be open before operation, and that refreshing any of these pages can result in desync or loss of data (especially the controller), though efforts have been made to sync data at important points. As such, any pages used in OBS browser sources should disable both “Shutdown source when not visible” and “Refresh browser when scene becomes active”.
Pages
Controller
The controller is what operates the raffles and handles data. If this page is refreshed, all data will be reset to it's initial state; clearing bans, silent bans, past winners, alarm settings, etc.
The basic flow of a raffle goes as follows:
- Click “Accept entries” to start accepting entries. This will also change the display text of the output page to reflect that entries are open, and that sending a chat message will enter them into the raffle. The “Accept entries” button will now display “Spin”.
- As chatters enter the raffle, their names will appear in the “Raffle entries” box. Clicking the “x” next to their name in this box will remove them from entries and put them into the “Ban” box. Additionally, the total number of entries will be shown above the “Raffle entries” box.
- After waiting an arbitrary amount of time, click the button that is now labelled “Spin”. The winner will immediately show next to the “Winner chat messages” box, but be aware that the output page will take longer to display this information, via an animation of spinning through the names to choose said winner. If you clicked “Spin” as a mistake, you can click the “Undo” button that has appeared. This will return the output page to it's slow scroll state with all entries retained.
- As soon as a winner is chosen, all chat messages from the winner will appear in the “Winner chat messages” box. This will make it easier to see their response.
- Highlighting text within the “Winner chat messages” box will populate the “Game name” text input. This text input can also be manually entered/adjusted. Clicking the “Post game name” button will push this text to the “Game name” page for display via OBS browser source.

