Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AddRoomConfig ¶
func AddRoomConfig(id string)
func RoomConfigInitialUpdate ¶
RoomConfigInitialUpdate updates all RoomConfig entries to set activity and create blank configs
func SetRoomConfigActive ¶
SetRoomConfigActive updates the active state for a given room
Types ¶
type RoomConfig ¶
type RoomConfig struct { // SubscribedLeagues are leagues for which new matches should be auto-posted SubscribedLeagues []string `yaml:"leagues"` // Active tells if the bot is active in this room (Set to false on leave/kick/ban) Active bool `yaml:"active"` // Language for the bot messages in this room, this has to exist Language string `yaml:"lang"` }
RoomConfig is the configuration attached to every joined room
func GetRoomConfig ¶
func GetRoomConfig(id string) RoomConfig
GetRoomConfig returns the RoomConfig linked to the specified ID
type RoomConfigTree ¶
type RoomConfigTree map[string]RoomConfig
RoomConfigTree is a map from string to RoomConfig
Click to show internal directories.
Click to hide internal directories.