$botName,
"avatar_url" => $botAvatar,
"content" => $discordMessage
));
$options = array(
'http' => array(
'header' => "Content-Type: application/json\r\n",
'method' => 'POST',
'content' => $payload
)
);
$context = stream_context_create($options);
$result = file_get_contents($webhookURL, false, $context);
if ($result !== false) {
echo '';
} else {
echo '';
}
}
?>