Add helpful !help command.

master
Icedream 2018-06-14 00:27:38 +02:00
parent 47fa897aed
commit ded03116cc
Signed by: icedream
GPG Key ID: 1573F6D8EFE4D0CF
1 changed files with 5 additions and 0 deletions

View File

@ -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()