mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-12-30 00:21:16 +00:00
[eventsub] Add status
field to poll_end
event
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
620a44282a
commit
217545fc68
1 changed files with 1 additions and 0 deletions
|
@ -279,6 +279,7 @@ func (t *twitchWatcher) handleEventSubChannelPollChange(event *string) func(json
|
||||||
logger.Info("Poll started")
|
logger.Info("Poll started")
|
||||||
|
|
||||||
case eventTypePollEnd:
|
case eventTypePollEnd:
|
||||||
|
fields.Set("status", payload.Status)
|
||||||
logger.WithField("status", payload.Status).Info("Poll ended")
|
logger.WithField("status", payload.Status).Info("Poll ended")
|
||||||
|
|
||||||
case eventTypePollProgress:
|
case eventTypePollProgress:
|
||||||
|
|
Loading…
Reference in a new issue