Thumbnail

rani/matterbridge.git

Clone URL: https://git.buni.party/rani/matterbridge.git

commit 54510f3d816fd55009b18483683d37055da4d496 Author: Wim <wim@42.be> Date: Fri Feb 22 19:36:50 2019 +0000 Add extra debug option (slack) diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 1685c4f..6ab70a1 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -1217 +1217 @@ 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() diff --git a/matterbridge.toml.sample b/matterbridge.toml.sample index 33aebea..453bc1b 100644 --- a/matterbridge.toml.sample +++ b/matterbridge.toml.sample @@ -5626 +56210 @@ ShowTopicChange=false  #REQUIRED (when not using webhooks)  Token="yourslacktoken"   +#Extra slack specific debug info, warning this generates a lot of output. +#OPTIONAL (default false) +Debug="false" +  #### Settings for webhook matterbridge.  #NOT RECOMMENDED TO USE INCOMING/OUTGOING WEBHOOK. USE SLACK API  #AND DEDICATED BOT USER WHEN POSSIBLE!