[core] Make number of subscribed months available for subgift

Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
Knut Ahlers 2022-07-31 14:06:43 +02:00
parent 9e2628c6e3
commit c0545d1d87
Signed by: luzifer
GPG Key ID: 0066F03ED215AD7D
2 changed files with 9 additions and 7 deletions

1
irc.go
View File

@ -469,6 +469,7 @@ func (i ircHandler) handleTwitchUsernotice(m *irc.Message) {
"multi_month": i.tagToNumeric(m, "msg-param-multimonth-duration", 0),
"origin_id": m.Tags["msg-param-origin-id"],
"plan": m.Tags["msg-param-sub-plan"],
"subscribed_months": i.tagToNumeric(m, "msg-param-months", 0),
"to": m.Tags["msg-param-recipient-user-name"],
"total_gifted": i.tagToNumeric(m, "msg-param-sender-count", 0),
})

View File

@ -174,6 +174,7 @@ Fields:
- `gifted_months` - Number of months the user gifted
- `origin_id` - ID unique to the gift-event (can be used to match `subgift` events to corresponding `submysterygift` event)
- `plan` - The sub-plan they are using (`1000` = T1, `2000` = T2, `3000` = T3, `Prime`)
- `subscribed_months` - How long the recipient has been subscribed
- `to` - The user who received the sub
- `username` - The login-name of the user who gifted the subscription