Versions in this module Expand all Collapse all v0 v0.0.14 Sep 8, 2020 v0.0.13 Sep 5, 2020 Changes in this version + const UTCFormat + func TimeStamp() string + func TimeStampFmt(format string) string + type ChannelData struct + AdminKey string + Bearer string + Commands []CommandStruct + ControlChannel bool + ExtraStrings string + HasLeft bool + JoinTime time.Time + Name string + TwitchUserID string + VideoCache []SingsVideoStruct + VideoCacheUpdated time.Time + type CommandStruct struct + CommandName CommandType + KeyWord string + type CommandType string + const AgingSinger + const AgingSong + const RandomPrompt + const RandomSinger + const RandomSong + func (ct CommandType) IsValid() error + type ConfigStruct struct + AppOAuthPath string + DataPath string + DatabaseSVC string + ExternalURL string + InitialChannels []string + IrcOAuthPath string + StringPath string + type GlobalData struct + ChannelData map[string]ChannelData + Config ConfigStruct + ControlChannel string + Database redis.Conn + func (gd *GlobalData) ConnectDatabase() + func (gd *GlobalData) ReadChannelData() error + func (gd *GlobalData) ReadOrCreateChannelKey(channel string) string + func (gd *GlobalData) UpdateBearerToken(user string, token string) + func (gd *GlobalData) UpdateChannelKey(user string, channelKey string) + func (gd *GlobalData) UpdateChannelName(user string, newName string) + func (gd *GlobalData) UpdateJoined(user string, invert bool) + func (gd *GlobalData) UpdateTwitchUserID(user string, userid string) + func (gd *GlobalData) UpdateVideoCache(user string, videos []SingsVideoStruct) + type SingsVideoStruct struct + Date time.Time + Duet bool + FullTitle string + LastSungSinger time.Time + LastSungSong time.Time + OtherSinger string + SongTitle string + VideoURL string