Thumbnail

rani/matterbridge.git

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

commit 24a49d568572f78089529acc8469a252f146c9c4 Author: Wim <wim@42.be> Date: Mon Mar 27 20:15:05 2017 +0000 Allow bot tokens for now without warning (slack). Closes #140 diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 7d8c781..5de6cf9 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -736 +7310 @@ func (b *Bslack) Disconnect() error {  func (b *Bslack) JoinChannel(channel string) error {   // we can only join channels using the API   if b.Config.UseAPI { + if strings.HasPrefix(b.Config.Token, "xoxb") { + // TODO check if bot has already joined channel + return nil + }   _, err := b.sc.JoinChannel(channel)   if err != nil {   return err