1
0
Fork 0

convert json file to array

This commit is contained in:
Christopher Latza 2020-06-07 18:37:40 +02:00
parent c9e73c71f2
commit 4b92b1b08d
1 changed files with 1 additions and 1 deletions

View File

@ -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;