change json to array
This commit is contained in:
parent
7fc9cf56e0
commit
c9e73c71f2
|
@ -24,8 +24,8 @@ while(TRUE)
|
|||
|
||||
$jsonMessage = json_decode(file_get_contents("message.json"));
|
||||
|
||||
$jsonMessage->embeds->description = str_replace("%%adresse%%", $StreamURL, $jsonMessage->embeds->description);
|
||||
$jsonMessage->embeds->image = "https://files.clatza.dev/tmp/rtmp/".$fileName;
|
||||
$jsonMessage['embeds']['description'] = str_replace("%%adresse%%", $StreamURL, $jsonMessage['embeds']['description']);
|
||||
$jsonMessage['embeds']['image'] = "https://files.clatza.dev/tmp/rtmp/".$fileName;
|
||||
|
||||
$options = [
|
||||
'http' => [
|
||||
|
|
Loading…
Reference in New Issue