Documentation ¶
Index ¶
- Variables
- func CurrentlyPLaying(p Performance) bool
- func GetDayChoices() []*discordgo.ApplicationCommandOptionChoice
- func GetLiveStreams(YTList *[]YTVideo)
- func GetStageChoices() []*discordgo.ApplicationCommandOptionChoice
- func GetStages(date string) map[string][]Performance
- func GetTimetableImage(date string) (*bytes.Reader, error)
- func LoadPerformances() error
- type Date
- type Performance
- type YTVideo
Constants ¶
This section is empty.
Variables ¶
View Source
var DayNameMap = map[string]string{
"2024-07-19": "WEEK 1 | FRI 19 JUL",
"2024-07-20": "WEEK 1 | SAT 20 JUL",
"2024-07-21": "WEEK 1 | SUN 21 JUL",
"2024-07-26": "WEEK 2 | FRI 26 JUL",
"2024-07-27": "WEEK 2 | SAT 27 JUL",
"2024-07-28": "WEEK 2 | SUN 28 JUL",
}
Functions ¶
func CurrentlyPLaying ¶
func CurrentlyPLaying(p Performance) bool
func GetDayChoices ¶
func GetDayChoices() []*discordgo.ApplicationCommandOptionChoice
func GetLiveStreams ¶
func GetLiveStreams(YTList *[]YTVideo)
func GetStageChoices ¶
func GetStageChoices() []*discordgo.ApplicationCommandOptionChoice
func GetStages ¶
func GetStages(date string) map[string][]Performance
func LoadPerformances ¶
func LoadPerformances() error
Types ¶
type Date ¶
func (*Date) UnmarshalJSON ¶
type Performance ¶
type Performance struct { ArtistName string `json:"name,omitempty"` Stage struct { Name string `json:"name,omitempty"` } `json:"stage,omitempty"` Date string `json:"date,omitempty"` Day string `json:"day,omitempty"` StartTime Date `json:"startTime,omitempty"` EndTime Date `json:"endTime,omitempty"` }
func GetPerformances ¶
func GetPerformances(date string, stage string) []Performance
type YTVideo ¶
type YTVideo struct { ID string `json:"id,omitempty"` Title string `json:"fulltitle,omitempty"` ThumbnailURL string `json:"thumbnail,omitempty"` ChannelTitle string `json:"channel,omitempty"` ChannelURL string `json:"channel_url,omitempty"` URL string `json:"original_url,omitempty"` ManifestURL string `json:"url,omitempty"` Live bool `json:"is_live,omitempty"` }
Click to show internal directories.
Click to hide internal directories.