[eventsub] Fix wrong channel in shoutout_received event

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2023-03-29 00:13:46 +02:00
parent a680e94364
commit 11d85b6087
Signed by: luzifer
GPG key ID: D91C3E91E4CAD6F5

View file

@ -258,7 +258,7 @@ func (t *twitchWatcher) handleEventSubShoutoutReceived(m json.RawMessage) error
}
fields := plugins.FieldCollectionFromData(map[string]any{
"channel": "#" + payload.FromBroadcasterUserLogin,
"channel": "#" + payload.BroadcasterUserLogin,
"from_id": payload.FromBroadcasterUserID,
"from": payload.FromBroadcasterUserLogin,
"viewers": payload.ViewerCount,