A HTML Twitch Overlay that reads chat of a Twitch account and displays chat's single words as votes recorded in the last five minutes.
https://jamesbroadberry.github.io/TwitchPoll/
- Upon load, the page anonymously connects to the user's twitch chat
- It keeps track of each user's latest message which was just a single word (their vote)
- Every time the UI refreshes, every user's votes are grouped and then ordered from highest to lowest, discarding any which are older than 5 minutes and displayed on the page.
Doing it like this allows chatters to change their vote by sending another message of just a single word but doesn't stop them chatting by not overriding their votes when sentences appear.
Add a browser/HTML source in your streaming software and add the URL you need and configure as necessary.
Using the URL, modify the query parameters to your needs:
- twitch (required)
- The Twitch Channel to monitor for responses
- interval (not required, defaults to 250)
- How often the UI refreshes in milliseconds - data is always constantly processed when each message is received
- show (not required, defaults to 5)
- How many items to show in the list of responses
- fontSize (not required, defaults to 48)
- If you need a custom font size, leave as an integer in pixels
- fontColour (not required, defaults to black)
- Change the font colour to something that better matches your stream (if using a hex colour, you'll need to URL encode the '#' e.g. %23AAAAAA for #AAAAAA)
- fontStrokeColour (not required, defaults to black)
- Change the font outline colour (if using a hex colour, you'll need to URL encode the '#' e.g. %23AAAAAA for #AAAAAA)
- fontStrokeWidth (not required, defaults to 1px)
- Change the font outline width
- ignore (not required, defaults to empty)
- Comma seperated list of words to ignore when displaying the UI
An example built URL would be: https://jamesbroadberry.github.io/TwitchPoll/?twitch=thejrm_&fontColour=white&fontStrokeColour=black&fontStrokeWidth=1&ignore=hello,world