convert json file to array
This commit is contained in:
parent
c9e73c71f2
commit
4b92b1b08d
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue