Skip to content

Players and answers

View as Markdown

Every answer reaches your game in one shape, from any chat or phone: a player, the text, and metadata about when it was sent. You write the game once.

Field What it is
platform youtube, twitch, kick, rumble, phone or house
id An id for this player
name Display name, already safety-filtered
avatar Image URL, or null
points Current score
isHouse, isPhone True for the house player and phone players
score(points) Adds or removes points
correct(points) Correct this round: scores once and shows "got it" on stream. False if already correct
Field What it is
at Seconds since this viewer saw the round start, corrected for stream delay
platform Where the answer came from
secret True for phone answers, which never show before the reveal

The text is a string with matching built in: text.matches(answers) and text.isClose(answers). See Matching answers.