1
0

Send message only on stream start

This commit is contained in:
2020-04-30 15:07:54 +02:00
parent 2fb921f3ba
commit d7ce717797

View File

@@ -197,7 +197,7 @@ class WebhookController extends Controller
$twitchWebhook->save();
}
if ($twitchWebhook->webhookActions) {
if ($eventType === "start" && $twitchWebhook->webhookActions) {
// TODO: move this (generation of the message embed) to a separate method
$userInfo = Twitch::getUserById(intval($data["user_id"]))->data[0];
$gameInfo = null;