mirror of
https://github.com/42wim/matterbridge.git
synced 2024-12-18 17:12:37 +01:00
Use RTM only on API (slack). Fix #56
This commit is contained in:
parent
b7c918a195
commit
e7107cf782
@ -56,10 +56,10 @@ func (b *Bslack) Connect() error {
|
|||||||
matterhook.Config{BindAddress: b.Config.BindAddress})
|
matterhook.Config{BindAddress: b.Config.BindAddress})
|
||||||
} else {
|
} else {
|
||||||
b.sc = slack.New(b.Config.Token)
|
b.sc = slack.New(b.Config.Token)
|
||||||
|
b.rtm = b.sc.NewRTM()
|
||||||
|
go b.rtm.ManageConnection()
|
||||||
}
|
}
|
||||||
flog.Info("Connection succeeded")
|
flog.Info("Connection succeeded")
|
||||||
b.rtm = b.sc.NewRTM()
|
|
||||||
go b.rtm.ManageConnection()
|
|
||||||
go b.handleSlack()
|
go b.handleSlack()
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user