Send message only on stream start
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user