mirror of
https://github.com/Luzifer/twitch-bot.git
synced 2024-11-09 16:50:01 +00:00
37 lines
939 B
Go
37 lines
939 B
Go
package main
|
|
|
|
func ptrStr(s string) *string { return &s }
|
|
|
|
var (
|
|
eventTypeJoin = ptrStr("join")
|
|
eventTypeHost = ptrStr("host")
|
|
eventTypePart = ptrStr("part")
|
|
eventTypePermit = ptrStr("permit")
|
|
eventTypeRaid = ptrStr("raid")
|
|
eventTypeResub = ptrStr("resub")
|
|
eventTypeSub = ptrStr("sub")
|
|
eventTypeSubgift = ptrStr("subgift")
|
|
eventTypeWhisper = ptrStr("whisper")
|
|
|
|
eventTypeTwitchCategoryUpdate = ptrStr("category_update")
|
|
eventTypeTwitchStreamOffline = ptrStr("stream_offline")
|
|
eventTypeTwitchStreamOnline = ptrStr("stream_online")
|
|
eventTypeTwitchTitleUpdate = ptrStr("title_update")
|
|
|
|
knownEvents = []*string{
|
|
eventTypeJoin,
|
|
eventTypeHost,
|
|
eventTypePart,
|
|
eventTypePermit,
|
|
eventTypeRaid,
|
|
eventTypeResub,
|
|
eventTypeSub,
|
|
eventTypeSubgift,
|
|
eventTypeWhisper,
|
|
|
|
eventTypeTwitchCategoryUpdate,
|
|
eventTypeTwitchStreamOffline,
|
|
eventTypeTwitchStreamOnline,
|
|
eventTypeTwitchTitleUpdate,
|
|
}
|
|
)
|