top | item 32868503

(no title)

bkanuka | 3 years ago

I really like the API and decorators! What I don't see in the documentation is how to respond to events from outside Slack Machine. For example an external message queue.

I suppose I could look into writing a coroutine that listens for messages on a queue and then runs the `emit()` from SM - just not clear to me if that's the "right way".

discuss

order

DandyDev|3 years ago

That is an interesting use case! The solution you propose, could work.

I've also been meaning to add support for webhooks as well, so you could trigger plugin functions by calling an HTTP endpoint. It's a small step from having messages on a queue and triggering webhooks from them.

bkanuka|3 years ago

Yes a webhook could work!