Documentation
¶
Index ¶
- func AcceptRE(text string, re *regexp.Regexp) bool
- func MatchRE(text string, re *regexp.Regexp) ([]string, bool)
- func SetTest(test_key string)
- func StartBot(bot Bot, wg *sync.WaitGroup)
- func TimeTableKeyName(userid string) string
- type Anzu
- type BaseBot
- type Bot
- type BusInfo
- type ByStartTime
- type Meu
- type Subject
- type TimeTable
- type TimeTableDay
- type TimeTableDetailResponse
- type TimeTableEvent
- type TimeTableInfo
- type TimeTableResponse
- type TimeTableResponseBase
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TimeTableKeyName ¶
Types ¶
type BaseBot ¶
func (*BaseBot) IsBeginWithMention ¶
func (bot *BaseBot) IsBeginWithMention(e *slack.MessageEvent) bool
func (*BaseBot) IsMentioned ¶
func (bot *BaseBot) IsMentioned(e *slack.MessageEvent) bool
func (*BaseBot) MentionStr ¶
func (*BaseBot) PostMessage ¶
type ByStartTime ¶
type ByStartTime []TimeTableEvent
func (ByStartTime) Len ¶
func (a ByStartTime) Len() int
func (ByStartTime) Less ¶
func (a ByStartTime) Less(i, j int) bool
func (ByStartTime) Swap ¶
func (a ByStartTime) Swap(i, j int)
type TimeTable ¶
type TimeTable struct {
Year int
Semester int
Days []TimeTableDay
Subjects []Subject
}
type TimeTableDay ¶
type TimeTableDay struct {
Events []TimeTableEvent
}
type TimeTableDetailResponse ¶
type TimeTableDetailResponse struct {
XMLName xml.Name `xml:"response"`
TimeTableResponseBase
Subjects []struct {
Name struct {
Value string `xml:"value,attr"`
} `xml:"name"`
Professor struct {
Value string `xml:"value,attr"`
} `xml:"professor"`
Times []struct {
Place string `xml:"place,attr"`
EndTime int `xml:"endtime,attr"`
StartTime int `xml:"starttime,attr"`
Day int `xml:"day,attr"`
} `xml:"time>data"`
} `xml:"subject"`
}
type TimeTableInfo ¶
type TimeTableResponse ¶
type TimeTableResponse struct {
XMLName xml.Name `xml:"response"`
Tables []TimeTableResponseBase `xml:"table"`
}
type TimeTableResponseBase ¶
Click to show internal directories.
Click to hide internal directories.