simple-slack-api
simple-slack-api copied to clipboard
add a listener for users joining / leaving channels
Is there a way to have the bot leave a channel or deny channel invites?
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