started Kick support

This commit is contained in:
Luxferre
2024-09-15 14:40:39 +03:00
parent a471474d62
commit 430d67913b
13 changed files with 305 additions and 24 deletions
+2 -2
View File
@@ -126,7 +126,7 @@ func oc_process_message(rawmsg map[string]interface{}) {
func owncast_run(config map[string]interface{}) {
token_path := "auth/oc-token.txt"
token, err := ioutil.ReadFile(token_path)
token_err_msg := "No Owncast token file provided or it is empty. "
token_err_msg := "[owncast] No Owncast token file provided or it is empty. "
token_err_msg += "Please generate a token in your Owncast admin panel "
token_err_msg += "and paste it into the auth/oc-token.txt file!"
if err != nil {
@@ -146,7 +146,7 @@ func owncast_run(config map[string]interface{}) {
if _, ok := config["oc_server"]; ok {
OC_API_ROOT = config["oc_server"].(string)
} else {
log.Fatal("Owncast server missing in config!")
log.Fatal("[owncast] Owncast server missing in config!")
}
if _, ok := config["oc_api_poll_timeout"]; ok {