diff options
author | Wim <wim@42.be> | 2018-11-18 17:14:47 +0100 |
---|---|---|
committer | Wim <wim@42.be> | 2018-11-18 17:14:47 +0100 |
commit | 32f57b7c26bdd8701587faf5c8bb3bef133d34b1 (patch) | |
tree | 6afce0cb2490e35e0359678b647a9a38e0c221b2 | |
parent | 455a0fc2394ea52955ed386663ded9a9dceab83f (diff) | |
download | matterbridge-msglm-32f57b7c26bdd8701587faf5c8bb3bef133d34b1.tar.gz matterbridge-msglm-32f57b7c26bdd8701587faf5c8bb3bef133d34b1.tar.bz2 matterbridge-msglm-32f57b7c26bdd8701587faf5c8bb3bef133d34b1.zip |
Add links to slack bot and legacy config in error message (slack)
-rw-r--r-- | bridge/slack/slack.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 0a5d824f..c4689cbc 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -78,7 +78,10 @@ func New(cfg *bridge.Config) bridge.Bridger { if token != "" && !strings.HasPrefix(token, "xoxb") { cfg.Log.Error("Non-bot token detected. It is STRONGLY recommended to use a proper bot-token instead.") cfg.Log.Error("Legacy tokens may be deprecated by Slack at short notice. See the Matterbridge GitHub wiki for a migration guide.") + cfg.Log.Error("See https://github.com/42wim/matterbridge/wiki/Slack-bot-setup") + cfg.Log.Error("") cfg.Log.Error("To continue using a legacy token please move your configuration to a \"slack-legacy\" bridge instead.") + cfg.Log.Error("See https://github.com/42wim/matterbridge/wiki/Section-Slack-(basic)#legacy-configuration)") cfg.Log.Error("Delaying start of bridge by 30 seconds. Future Matterbridge release will fail here unless you use a \"slack-legacy\" bridge.") time.Sleep(30 * time.Second) return NewLegacy(cfg) |