Browse Source

documentation

master
David Haukeness 5 years ago
parent
commit
eebc610720
No known key found for this signature in database
GPG Key ID: 54F2372DDB7F9462
  1. 2
      commands.go

2
commands.go

@ -76,6 +76,7 @@ func (b *bot) handleFeedback(m chat1.MsgSummary) { @@ -76,6 +76,7 @@ func (b *bot) handleFeedback(m chat1.MsgSummary) {
}
}
// handleSetCommand processes all settings SET calls
func (b *bot) handleSetCommand(m chat1.MsgSummary) {
// first normalize the text and extract the arguments
args := strings.Fields(strings.ToLower(m.Content.Text.Body))
@ -126,6 +127,7 @@ func (b *bot) handleSetCommand(m chat1.MsgSummary) { @@ -126,6 +127,7 @@ func (b *bot) handleSetCommand(m chat1.MsgSummary) {
}
}
// handleListCommand lists settings for the conversation
func (b *bot) handleListCommand(m chat1.MsgSummary) {
// first normalize the text and extract the arguments
args := strings.Fields(strings.ToLower(m.Content.Text.Body))

Loading…
Cancel
Save