When to use it
It shows two teams' scores and the match status above the chat room. When a score changes, it is highlighted for a moment.
Your external server sends values through the uchat API, and this plugin draws them. Turn on the plugin, get a key from the API menu on the admin page, and put it on your server.
How to send
Send a JSON body with the Authorization: Bearer {API key} header to POST https://api.uchat.io/v2/rooms/{API room ID}/events. plugin is scoreboard.
curl -X POST https://api.uchat.io/v2/rooms/room_xxxxxxxxxxxxxxxx/events \
-H "Authorization: Bearer uchat_..." \
-H "Content-Type: application/json" \
-d '{"plugin":"scoreboard","save":true,"data":["Seoul","3","Busan","1","2nd half 35'"]}'
dataorder: team 1, score 1, team 2, score 2, match status (optional)- Save all values again each time a score changes.
- With
"save": true, the last value is saved, so people who join later get it when they enter. To take it down, save"data":[]. - It draws only values from the server API, and shows them as plain text.