simple-slack-api icon indicating copy to clipboard operation
simple-slack-api copied to clipboard

add a listener for users joining / leaving channels

Open bcorne opened this issue 8 years ago • 2 comments

bcorne avatar Aug 24 '16 15:08 bcorne

Is there a way to have the bot leave a channel or deny channel invites?

BobbyJohansen avatar Jan 25 '17 21:01 BobbyJohansen

you can use SlackSession.leaveChannel(SlackChannel channel) to leave a channel. To deny an invite, I fear you'll have to manually listen to SlackChannelJoined events and leave the channel if it doesn't suit to the bot

bcorne avatar Jan 26 '17 17:01 bcorne