4
0
mirror of https://github.com/cwinfo/matterbridge.git synced 2025-06-26 12:09:22 +00:00

Add extra debug option (slack)

This commit is contained in:
Wim
2019-02-22 19:36:50 +01:00
parent a7dd033c3b
commit 1f1634ea59
2 changed files with 5 additions and 1 deletions

View File

@ -121,7 +121,7 @@ func (b *Bslack) Connect() error {
// If we have a token we use the Slack websocket-based RTM for both sending and receiving.
if token := b.GetString(tokenConfig); token != "" {
b.Log.Info("Connecting using token")
b.sc = slack.New(token)
b.sc = slack.New(token, slack.OptionDebug(b.GetBool("Debug")))
b.rtm = b.sc.NewRTM()
go b.rtm.ManageConnection()
go b.handleSlack()