mirror of
https://github.com/lyx0/nourybot.git
synced 2024-11-13 19:49:55 +01:00
add comments
This commit is contained in:
parent
a0a4632b22
commit
3846d28565
1 changed files with 2 additions and 4 deletions
|
@ -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.
|
||||
|
|
Loading…
Reference in a new issue