From 3846d28565aca6f5158613754c91df03b3d3902c Mon Sep 17 00:00:00 2001 From: lyx0 Date: Thu, 21 Oct 2021 00:08:09 +0200 Subject: [PATCH] add comments --- pkg/handlers/command.go | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/pkg/handlers/command.go b/pkg/handlers/command.go index 9cbd5f9..a7cec34 100644 --- a/pkg/handlers/command.go +++ b/pkg/handlers/command.go @@ -21,10 +21,8 @@ func Command(message twitch.PrivateMessage, nb *bot.Bot) { commandName := strings.ToLower(strings.SplitN(message.Message, " ", 3)[0][2:]) // cmdParams are additional command inputs. - // example: - // weather san antonio - // is - // commandName cmdParams[0] cmdParams[1] + // example: "weather san antonion + // is: commandName cmdParams[0] cmdParams[1] cmdParams := strings.SplitN(message.Message, " ", 500) // msgLen is the amount of words in the message without the prefix.