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 New /events Listener and Endpoint for #introduce-yourself Channel #17

Open
BethanyG opened this issue Feb 27, 2018 · 0 comments
Open

Comments

@BethanyG
Copy link
Member

Thinking it would be nice to have our greetbot do a listen for channel_join in #introduce-yourself, and respond with a welcome and a prompt to talk about where the user is from, and what they're learning/doing.

Something along the lines of:

Hi @user - We're glad you're here. :dancing-penguin: Tell us a little about yourself: What you are working on, & what are you learning? We'd love to hear about it!

Steps Needed:
(ask an admin if you don't have access to the Slack API for staging...or use your own Slack team /account)

  1. Subscribe to the member_joined_channel event in the Slack API
  2. Add a Bot User Event member_joined_channel for the #introduce-yourself channel
  3. Add a generic method under routes/events that parses out which event is incoming (initial welcome vs channel_join vs something else), & passes the call to the destination method.
  4. Change index.js to point to the generic method for routes/events
  5. Add method under routes/events to handle the member_joined_channel event that will compose and send the appropriate message for member_joined_channel #introduce-yourself
  6. Add message for the #introduce-yourself response
  7. Make sure that the generic method to parse /events knows about the initalWelcome event, and will route that event accurately.
  8. Add tests for the above
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants