2020-12-21 00:32:39 +00:00
|
|
|
package main
|
|
|
|
|
|
|
|
func ptrStr(s string) *string { return &s }
|
|
|
|
|
|
|
|
var (
|
2021-05-12 15:47:03 +00:00
|
|
|
eventTypeJoin = ptrStr("join")
|
|
|
|
eventTypeHost = ptrStr("host")
|
2021-05-26 12:03:37 +00:00
|
|
|
eventTypePart = ptrStr("part")
|
2021-05-12 15:47:03 +00:00
|
|
|
eventTypePermit = ptrStr("permit")
|
|
|
|
eventTypeRaid = ptrStr("raid")
|
|
|
|
eventTypeResub = ptrStr("resub")
|
|
|
|
eventTypeSub = ptrStr("sub")
|
|
|
|
eventTypeSubgift = ptrStr("subgift")
|
2021-05-26 12:38:15 +00:00
|
|
|
eventTypeWhisper = ptrStr("whisper")
|
2021-09-02 15:09:30 +00:00
|
|
|
|
|
|
|
eventTypeTwitchCategoryUpdate = ptrStr("category_update")
|
|
|
|
eventTypeTwitchStreamOffline = ptrStr("stream_offline")
|
|
|
|
eventTypeTwitchStreamOnline = ptrStr("stream_online")
|
|
|
|
eventTypeTwitchTitleUpdate = ptrStr("title_update")
|
2021-09-22 13:36:45 +00:00
|
|
|
|
|
|
|
knownEvents = []*string{
|
|
|
|
eventTypeJoin,
|
|
|
|
eventTypeHost,
|
|
|
|
eventTypePart,
|
|
|
|
eventTypePermit,
|
|
|
|
eventTypeRaid,
|
|
|
|
eventTypeResub,
|
|
|
|
eventTypeSub,
|
|
|
|
eventTypeSubgift,
|
|
|
|
eventTypeWhisper,
|
|
|
|
|
|
|
|
eventTypeTwitchCategoryUpdate,
|
|
|
|
eventTypeTwitchStreamOffline,
|
|
|
|
eventTypeTwitchStreamOnline,
|
|
|
|
eventTypeTwitchTitleUpdate,
|
|
|
|
}
|
2020-12-21 00:32:39 +00:00
|
|
|
)
|