[core] Log submysterygift

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2021-10-08 16:08:32 +02:00
parent 6aeb2c8706
commit 78c66214cd
Signed by: luzifer
GPG key ID: 0066F03ED215AD7D

8
irc.go
View file

@ -306,6 +306,14 @@ func (i ircHandler) handleTwitchUsernotice(m *irc.Message) {
go handleMessage(i.c, m, eventTypeSubgift, nil)
case "submysterygift":
log.WithFields(log.Fields{
"channel": i.getChannel(m),
"from": m.Tags["login"],
"number": m.Tags["msg-param-mass-gift-count"],
"plan": m.Tags["msg-param-sub-plan"],
}).Info("User gifted subs to the community")
}
}