From ded03116cce1123530736742cb015ec67eec9811 Mon Sep 17 00:00:00 2001 From: Carl Kittelberger Date: Thu, 14 Jun 2018 00:27:38 +0200 Subject: [PATCH] Add helpful !help command. --- main.go | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/main.go b/main.go index 88aae83..b1fd707 100644 --- a/main.go +++ b/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 \x02 - Displays group table, for example \x02!group a\x02 would show the group A table.") + conn.Noticef(sender, "\x02!country \x02 or \x02!team \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()