summaryrefslogtreecommitdiffstats
path: root/bridge/slack/slack.go
diff options
context:
space:
mode:
Diffstat (limited to 'bridge/slack/slack.go')
-rw-r--r--bridge/slack/slack.go11
1 files changed, 10 insertions, 1 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go
index 8c96837e..701f4769 100644
--- a/bridge/slack/slack.go
+++ b/bridge/slack/slack.go
@@ -187,7 +187,10 @@ func (b *Bslack) Reload(cfg *bridge.Config) (string, error) {
}
func (b *Bslack) Send(msg config.Message) (string, error) {
- b.Log.Debugf("=> Receiving %#v", msg)
+ // Too noisy to log like other events
+ if msg.Event != config.EVENT_USER_TYPING {
+ b.Log.Debugf("=> Receiving %#v", msg)
+ }
// Make a action /me of the message
if msg.Event == config.EVENT_USER_ACTION {
@@ -266,6 +269,12 @@ 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 b.GetBool("ShowUserTyping") {
+ b.rtm.SendMessage(b.rtm.NewTypingMessage(channelInfo.ID))
+ }
+ return "", nil
+ }
// Delete message
if msg.Event == config.EVENT_MSG_DELETE {