diff options
author | Duco van Amstel <duco.vanamstel@gmail.com> | 2018-11-15 19:43:43 +0000 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-15 20:43:43 +0100 |
commit | ce21ba154585395e792c059ac156299071405247 (patch) | |
tree | f76f4617cc2c099a9a2e97bc85fce28cf04010b1 /bridge/slack/slack.go | |
parent | c89085bf44333b4decd75e30cec5849dca859938 (diff) | |
download | matterbridge-msglm-ce21ba154585395e792c059ac156299071405247.tar.gz matterbridge-msglm-ce21ba154585395e792c059ac156299071405247.tar.bz2 matterbridge-msglm-ce21ba154585395e792c059ac156299071405247.zip |
Fix golint linter issues and enable it in CI (#593)
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r-- | bridge/slack/slack.go | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 1f51de95..0a5d824f 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -185,12 +185,12 @@ func (b *Bslack) Reload(cfg *bridge.Config) (string, error) { func (b *Bslack) Send(msg config.Message) (string, error) { // Too noisy to log like other events - if msg.Event != config.EVENT_USER_TYPING { + if msg.Event != config.EventUserTyping { b.Log.Debugf("=> Receiving %#v", msg) } // Make a action /me of the message - if msg.Event == config.EVENT_USER_ACTION { + if msg.Event == config.EventUserAction { msg.Text = "_" + msg.Text + "_" } @@ -270,7 +270,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) { if err != nil { return "", fmt.Errorf("could not send message: %v", err) } - if msg.Event == config.EVENT_USER_TYPING { + if msg.Event == config.EventUserTyping { if b.GetBool("ShowUserTyping") { b.rtm.SendMessage(b.rtm.NewTypingMessage(channelInfo.ID)) } @@ -312,7 +312,7 @@ func (b *Bslack) sendRTM(msg config.Message) (string, error) { } func (b *Bslack) deleteMessage(msg *config.Message, channelInfo *slack.Channel) (bool, error) { - if msg.Event != config.EVENT_MSG_DELETE { + if msg.Event != config.EventMsgDelete { return false, nil } |