5 ms·
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 mess
by bkanuka 4y 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".
- DandyDev 4y agoThat 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 4y agoYes a webhook could work!