diff --git a/commands.go b/commands.go index ed2f72f..2547681 100644 --- a/commands.go +++ b/commands.go @@ -298,7 +298,7 @@ func IcsCommandHandler(s *discordgo.Session, i *discordgo.InteractionCreate) err endDay := meeting.EndDay() until := time.Date(endDay.Year(), endDay.Month(), endDay.Day(), 23, 59, 59, 0, CentralTimeLocation) - summary := fmt.Sprintf("%s (CRN %s)", course.CourseTitle, meeting.CourseReferenceNumber) + summary := fmt.Sprintf("%s %s %s", course.Subject, course.CourseNumber, course.CourseTitle) description := fmt.Sprintf("Instructor: %s\nSection: %s\nCRN: %s", course.Faculty[0].DisplayName, course.SequenceNumber, meeting.CourseReferenceNumber) location := meeting.PlaceString() diff --git a/types.go b/types.go index a05599b..6d710d9 100644 --- a/types.go +++ b/types.go @@ -117,11 +117,13 @@ func (m *MeetingTimeResponse) TimeString() string { // PlaceString returns a formatted string best representing the place of the meeting time func (m *MeetingTimeResponse) PlaceString() string { - if m.MeetingTime.Room == "" { - return "???" + mt := m.MeetingTime + + if mt.Room == "" { + return "Online" } - return fmt.Sprintf("%s %s", m.MeetingTime.Building, m.MeetingTime.Room) + return fmt.Sprintf("%s | %s | %s %s", mt.CampusDescription, mt.BuildingDescription, mt.Building, mt.Room) } func (m *MeetingTimeResponse) Days() map[time.Weekday]bool {