Update call with attached method

This commit is contained in:
Duco van Amstel
2018-11-26 09:21:20 +00:00
committed by GitHub
parent 8441076784
commit 70247e0b64

View File

@@ -324,7 +324,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) {
func (b *Bslack) updateTopicOrPurpose(msg *config.Message, channelInfo *slack.Channel) (bool, error) {
var updateFunc func(channelID string, value string) (*slack.Channel, error)
incomingChangeType, text := extractTopicOrPurpose(msg.Text)
incomingChangeType, text := b.extractTopicOrPurpose(msg.Text)
switch incomingChangeType {
case "topic":
updateFunc = b.rtm.SetTopicOfConversation