mirror of
https://github.com/cwinfo/matterbridge.git
synced 2024-11-22 18:40:25 +00:00
Allow bot tokens for now without warning (slack). Closes #140
This commit is contained in:
parent
4a25e66c00
commit
f935c573e9
@ -73,6 +73,10 @@ func (b *Bslack) Disconnect() error {
|
|||||||
func (b *Bslack) JoinChannel(channel string) error {
|
func (b *Bslack) JoinChannel(channel string) error {
|
||||||
// we can only join channels using the API
|
// we can only join channels using the API
|
||||||
if b.Config.UseAPI {
|
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)
|
_, err := b.sc.JoinChannel(channel)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
|
Loading…
Reference in New Issue
Block a user