mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 10:30:26 +00:00
Add extra debug option (slack)
This commit is contained in:
parent
a7dd033c3b
commit
1f1634ea59
@ -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 we have a token we use the Slack websocket-based RTM for both sending and receiving.
|
||||||
if token := b.GetString(tokenConfig); token != "" {
|
if token := b.GetString(tokenConfig); token != "" {
|
||||||
b.Log.Info("Connecting using 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()
|
b.rtm = b.sc.NewRTM()
|
||||||
go b.rtm.ManageConnection()
|
go b.rtm.ManageConnection()
|
||||||
go b.handleSlack()
|
go b.handleSlack()
|
||||||
|
@ -562,6 +562,10 @@ ShowTopicChange=false
|
|||||||
#REQUIRED (when not using webhooks)
|
#REQUIRED (when not using webhooks)
|
||||||
Token="yourslacktoken"
|
Token="yourslacktoken"
|
||||||
|
|
||||||
|
#Extra slack specific debug info, warning this generates a lot of output.
|
||||||
|
#OPTIONAL (default false)
|
||||||
|
Debug="false"
|
||||||
|
|
||||||
#### Settings for webhook matterbridge.
|
#### Settings for webhook matterbridge.
|
||||||
#NOT RECOMMENDED TO USE INCOMING/OUTGOING WEBHOOK. USE SLACK API
|
#NOT RECOMMENDED TO USE INCOMING/OUTGOING WEBHOOK. USE SLACK API
|
||||||
#AND DEDICATED BOT USER WHEN POSSIBLE!
|
#AND DEDICATED BOT USER WHEN POSSIBLE!
|
||||||
|
Loading…
Reference in New Issue
Block a user