Improved potential system message handling for Owncast

This commit is contained in:
Luxferre
2024-09-15 10:23:17 +03:00
parent a286f5f3c9
commit a471474d62
-7
View File
@@ -60,13 +60,6 @@ func oc_api_get(endpoint string) []interface{} {
return respbody
}
/*
[{"timestamp":"2024-09-15T06:37:36.022049086Z","type":"CHAT","id":"PrBY39eSg","user":{"createdAt":"2024-09-14T11:51:52.135597747Z","id":"SmcN3l6Ig","displayName":"inspiring-joliot","previousNames":["inspiring-joliot"],"scopes":[""],"displayColor":0,"isBot":false,"authenticated":false},"body":"\u003cp\u003etest\u003c/p\u003e"},
{"timestamp":"2024-09-15T06:38:20.410448447Z","type":"CHAT","id":"lIgyqr6Sg","user":{"createdAt":"2024-09-14T11:51:52.135597747Z","id":"SmcN3l6Ig","displayName":"inspiring-joliot","previousNames":["inspiring-joliot"],"scopes":[""],"displayColor":0,"isBot":false,"authenticated":false},"body":"\u003cp\u003exlol\u003c/p\u003e"}]
*/
/* main message procesing function */
func oc_process_message(rawmsg map[string]interface{}) {
/* if the message came from a real user, this is the one we should process */