From a471474d62caa79ae4afdfe02be762862e932cb8 Mon Sep 17 00:00:00 2001 From: Luxferre Date: Sun, 15 Sep 2024 10:23:17 +0300 Subject: [PATCH] Improved potential system message handling for Owncast --- src/owncast.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/owncast.go b/src/owncast.go index a6f5fde..ab81910 100644 --- a/src/owncast.go +++ b/src/owncast.go @@ -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 */