Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support to ignore people in channel #2

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alvivi
Copy link

@alvivi alvivi commented Jun 26, 2017

This PR adds support to ignore some people. Thanks to this, people working remotely can join the channel and they are not going to be selected for lunch.

@alvivi alvivi requested a review from gravityblast June 26, 2017 09:54
@gilacost
Copy link

👏 , LGTM 🚀

Copy link
Contributor

@odarriba odarriba left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, but please avoid hardcoded users

@default_greeting """
Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua.
Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur.
Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum
"""
@ignore_people ["hugh", "ricardo", "victor"]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This should be in env variables (or in a config file not pushed) as this is intended to be a public and easy-to-reuse tool.

Copy link
Contributor

@odarriba odarriba Jun 26, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe a comma separated string as an ENV variable read from application's config file and parsed in the config function can be a good option.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does Slack give access to each users notification preferences for a channel? maybe ignore people who have notifications turned off

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

or create a user group for people who can lunch and use that instead of all members of the channel

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I like the idea of using a user group, seems that it is possible, https://api.slack.com/methods/usergroups.list, what do you you think @pilu ?

@boudra
Copy link
Member

boudra commented Jun 26, 2017

ENV 🙌

remember to document 📚

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants