diff options
Diffstat (limited to 'bridge')
-rw-r--r-- | bridge/slack/slack.go | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/bridge/slack/slack.go b/bridge/slack/slack.go index 7d8c7812..5de6cf9b 100644 --- a/bridge/slack/slack.go +++ b/bridge/slack/slack.go @@ -73,6 +73,10 @@ 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 |