Add helpful !help command.
parent
47fa897aed
commit
ded03116cc
5
main.go
5
main.go
|
@ -430,6 +430,11 @@ func main() {
|
|||
case !isChannel && strings.EqualFold(cmd.Name, "updatetopics"):
|
||||
updateTopicsChan <- nil
|
||||
|
||||
case strings.EqualFold(cmd.Name, "!help"):
|
||||
conn.Noticef(sender, "\x02!group <group name>\x02 - Displays group table, for example \x02!group a\x02 would show the group A table.")
|
||||
conn.Noticef(sender, "\x02!country <country name>\x02 or \x02!team <country name>\x02 - Displays upcoming matches and results of past matches of a playing country, for example \x02!country germany\x02.")
|
||||
conn.Noticef(sender, "\x02!next\x02 - Originally meant to tell you what's the next match, this command really just tells you to look at \x02/topic\x02.")
|
||||
|
||||
case strings.EqualFold(cmd.Name, "!country"),
|
||||
strings.EqualFold(cmd.Name, "!team"):
|
||||
teamList, err := footballData.TeamsOfCompetition(Competition).Do()
|
||||
|
|
Loading…
Reference in New Issue