{"action":"created","issue":{"url":"https://api.github.com/repos/litaio/lita-slack/issues/91","repository_url":"https://api.github.com/repos/litaio/lita-slack","labels_url":"https://api.github.com/repos/litaio/lita-slack/issues/91/labels{/name}","comments_url":"https://api.github.com/repos/litaio/lita-slack/issues/91/comments","events_url":"https://api.github.com/repos/litaio/lita-slack/issues/91/events","html_url":"https://github.com/litaio/lita-slack/issues/91","id":156128164,"number":91,"title":"Feature request: Channel whitelist","user":{"login":"otterley","id":95141,"avatar_url":"https://avatars.githubusercontent.com/u/95141?v=3","gravatar_id":"","url":"https://api.github.com/users/otterley","html_url":"https://github.com/otterley","followers_url":"https://api.github.com/users/otterley/followers","following_url":"https://api.github.com/users/otterley/following{/other_user}","gists_url":"https://api.github.com/users/otterley/gists{/gist_id}","starred_url":"https://api.github.com/users/otterley/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/otterley/subscriptions","organizations_url":"https://api.github.com/users/otterley/orgs","repos_url":"https://api.github.com/users/otterley/repos","events_url":"https://api.github.com/users/otterley/events{/privacy}","received_events_url":"https://api.github.com/users/otterley/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/litaio/lita-slack/labels/effort/normal","name":"effort/normal","color":"bfe5bf"},{"url":"https://api.github.com/repos/litaio/lita-slack/labels/status/accepted","name":"status/accepted","color":"fef2c0"},{"url":"https://api.github.com/repos/litaio/lita-slack/labels/type/feature","name":"type/feature","color":"f7c6c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-05-22T00:27:14Z","updated_at":"2016-05-23T04:06:27Z","closed_at":null,"body":"By default, anyone can invite Lita into any Slack channel.  In certain environments this may be undesirable. For example, one might want to extend Lita to perform dangerous operations and the people who can tell her to do those things should be restricted.  While one can use Lita's authorization groups feature to implement this, it is sometimes easier to keep her open but only accessible via a restricted channel.\r\n\r\nMake it possible to specify a Slack channel whitelist for Lita.  If specified, and Lita is invited to a channel in which she doesn't belong, optionally say something, and leave immediately."},"comment":{"url":"https://api.github.com/repos/litaio/lita-slack/issues/comments/220883505","html_url":"https://github.com/litaio/lita-slack/issues/91#issuecomment-220883505","issue_url":"https://api.github.com/repos/litaio/lita-slack/issues/91","id":220883505,"user":{"login":"mfischer-zd","id":984199,"avatar_url":"https://avatars.githubusercontent.com/u/984199?v=3","gravatar_id":"","url":"https://api.github.com/users/mfischer-zd","html_url":"https://github.com/mfischer-zd","followers_url":"https://api.github.com/users/mfischer-zd/followers","following_url":"https://api.github.com/users/mfischer-zd/following{/other_user}","gists_url":"https://api.github.com/users/mfischer-zd/gists{/gist_id}","starred_url":"https://api.github.com/users/mfischer-zd/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfischer-zd/subscriptions","organizations_url":"https://api.github.com/users/mfischer-zd/orgs","repos_url":"https://api.github.com/users/mfischer-zd/repos","events_url":"https://api.github.com/users/mfischer-zd/events{/privacy}","received_events_url":"https://api.github.com/users/mfischer-zd/received_events","type":"User","site_admin":false},"created_at":"2016-05-23T04:06:26Z","updated_at":"2016-05-23T04:06:26Z","body":"Here's what Slack support said:\r\n\r\n> ... opening up the *.leave methods for bots is something that is under consideration at the moment. Currently the only alternative is to /kick the bot from the channel after they are added. This could also be done via the API using the channels.kick method (which requires the channels:write permission scope). Doing it this way would potentially allow your bot to check it's 'channel whitelist' then trigger a call to the channels.kick method if the check fails. "}}
{"actor":{"display_login":"mfischer-zd"}}