Players and answers
View as MarkdownEvery 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.
Player
Section titled “Player”| 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 |
Answer metadata
Section titled “Answer metadata”| 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 |
Answer text
Section titled “Answer text”The text is a string with matching built in: text.matches(answers) and text.isClose(answers). See Matching answers.