elseif ($cmd == 'comment') {
$text = $values[0];
if ($text !== "") {
$ig->live->comment($broadcastId, $text);
Utils::log("Commented on stream!");
} else {
Utils::log("Comments may not be empty!");
}
}Yukarıdaki kod düzgünce çalışıyor ama aşağıdaki kodu çalıştırdığımda hata alıyorum. Catch olmasına rağmen hata mesajı yazmıyor. Wave komutunda hata alıyorum wave komutunu yazınca 541. satırda hata var diyor ve 541. satırdaki kod bu:
elseif ($cmd == 'wave') {
$viewerId = $values[0];
try {
$ig->live->wave($broadcastId, $viewerId);
Utils::log("Waved at a user!");
} catch (Exception $waveError) {
Utils::log("Could not wave at user! Make sure you're waving at people who are in the stream. Additionally, you can only wave at a person once per stream!");
Utils::dump($waveError->getMessage());
}
}Yardımcı olabilecek varsa çok sevinirim.