Documentation ¶
Index ¶
- func CreateSchoolMenu(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)
- func GenerateSubjectCodeCompletion(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)
- func GeneratewebPageURL(sess *discordgo.Session, i *discordgo.InteractionCreate) string
- func GetStringInBetween(str string, start string, end string) (result string)
- type CourseInfo
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateSchoolMenu ¶
TODO: unable to get school information. Skipping for now
func GenerateSubjectCodeCompletion ¶
func GenerateSubjectCodeCompletion(sess *discordgo.Session, i *discordgo.InteractionCreate) (string, error)
GenerateSubjectCodeCompletion get the subject codes to fill in for autocompletion based on current user input
func GeneratewebPageURL ¶
func GeneratewebPageURL(sess *discordgo.Session, i *discordgo.InteractionCreate) string
GeneratewebPageURL constructs a url that leads to the course outline page for the selected course. return: url to the webpage containing course outline
Types ¶
type CourseInfo ¶
type CourseInfo struct { // title of course Title string // course description Description string URL string }
func GetCourseInfo ¶
func GetCourseInfo(url string) CourseInfo
GetCourseInfo scrapes the url passed in to get course information url: the course outline to scrape. return: CourseInfo struct containing the title and description of the course.
Click to show internal directories.
Click to hide internal directories.