diff --git a/start.php b/start.php index d8572ec..2ebfd40 100644 --- a/start.php +++ b/start.php @@ -22,7 +22,7 @@ while(TRUE) copy($fileName, "tmp/rtmp/".$fileName); unlink($fileName); - $jsonMessage = json_decode(file_get_contents("message.json")); + $jsonMessage = json_decode(file_get_contents("message.json"), TRUE); $jsonMessage['embeds']['description'] = str_replace("%%adresse%%", $StreamURL, $jsonMessage['embeds']['description']); $jsonMessage['embeds']['image'] = "https://files.clatza.dev/tmp/rtmp/".$fileName;