Server implementation is here: plusreed/tabellarius-api
updateTimings
- Seeds Tabellarius clients with merch message backlog, queue length, live duration (how long WAN has been going on), whether the queue is paused or not, the marquee text and whether it should be displayed or not, queue duration and next merch message timing.
sponsorList
- Updates all Tabellarius clients with a sponsor list.
- Body is of type Sponsor[].
broadcastMessage
- Shows a message on the banner. See BroadcastMessage.
createSponsor
- Adds a new sponsor to the list.
- Body is of type Sponsor.
deleteSponsor
- By
id
, deletes a sponsor from the list.
- By
displaySponsor
- Pauses queue and changes banner to sponsor view
resumeQueue
- Resumes the queue after it has been paused
toggleMessageToServer
- Emits
broadcastMessage
to client.
- Emits
ascendMessage
- Curates merch message
unAscendMessage
- If message is ascended, removes it from curated list.
togglePotentialToServer
- Moves the message to a "potential" merch message queue.
demoAlertToServer
- Emits a demo
broadcastMessage
to client.
- Emits a demo
clearMessages
- Deletes all messages from the queue
updateMarqueeShow
- Toggles whether the marquee text should be shown on the banner
updateMarqueeText
- Updates the text to be shown on the marquee on the banner
respondToMessage
- Based on merch message ID, adds a response to the message and broadcasts the message
removeMessage
- Sets
deleted
property on merch message totrue
- Sets
unRemoveMessage
- Does the inverse of
removeMessage
, setsdeleted
property tofalse
.
- Does the inverse of
purgeMessage
- Removes a message from the backlog. Seems to be a hard delete compared to
removeMessage
.
- Removes a message from the backlog. Seems to be a hard delete compared to
switchOutro
- Unknown at this time.
updateDiscountShow
- Whether or not to show a discount code.
updateDiscountText
- Updates the text related to the discount code.
broadcastMessages seem to have a few things which determine how it is shown:
- if
show
is defined and istrue
, the message comes from a user. - if
response
is defined and istrue
, the message is a reply. - if
discount
is defined and istrue
, the message is announcing a LTTStore discount.
One of default
, purple
, blue
, green
, orange
.
WIP
Property | Type | Description |
---|---|---|
id | number | Sponsor ID |
title | string | Sponsor name |
blurb | string | Sponsor blurb |
color | LTTColor | Color to display sponsor in |
Property | Type | Description |
---|---|---|
quantity | number | Number of item purchased |
title | string | Item name |
Property | Type | Description |
---|---|---|
alertMessage | string | The merch message if a merch message was defined. Otherwise just the default text. |
alertColour | LTTColor | The color of the alert. Seemingly random (or could be based on order total?) |
name | string | Customer name |
response | boolean | Is this broadcast message a response to a merch message? |
show | boolean | Whether this should be shown (I think...?) |
timing | number | Dunno, sorry. |
item | ShopifyItem | Item purchased |
discount | boolean | Determines if the message is supposed to show a discount code for LTTStore. |