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

Allow users to emit messages #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Conversation

nsand
Copy link
Contributor

@nsand nsand commented Sep 7, 2016

The slack adapter has a convenient way of posting attachments using the robot emitter. I thought this might be nice for hubot-fb to have something similar for posting richer messages. Following this pattern, I added an event listener for fb.message, which requires a payload with an envelope field (corresponding to the response envelope) and the message, which could be an object with an attachment. I've updated the README with usage information.

Let me know what you think. Thanks!

@chen-ye
Copy link
Owner

chen-ye commented Sep 15, 2016

oh good idea! I'll review this this weekend

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.

2 participants