hubot-fb icon indicating copy to clipboard operation
hubot-fb copied to clipboard

Allow users to emit messages

Open nsand opened this issue 8 years ago • 1 comments

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!

nsand avatar Sep 07 '16 14:09 nsand

oh good idea! I'll review this this weekend

chen-ye avatar Sep 15 '16 15:09 chen-ye