You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm migrating our will bot over to Slack and have been fumbling with some difficulties regarding mixins. They presently don't exist for slack which means that channel and handle lookups prove to be a bit difficult and I'm currently relying on looking them up via the storage backend like so:
So, great question, and I'm really glad to see things like this coming up. Broadly, I'd say I see this happening two ways:
With a mixin, similar to how it was, so we'd see self.people in the WillPlugin methods, or
Exposing the lookup through the message object message.backend.people.
Since we're now living in a world where a given message might come from multiple backends (and trying to encourage plugin patterns that allow people to switch messaging backends with as little cost as possible), I'm inclined toward something in the vein of #2.
I'm migrating our will bot over to Slack and have been fumbling with some difficulties regarding mixins. They presently don't exist for slack which means that channel and handle lookups prove to be a bit difficult and I'm currently relying on looking them up via the storage backend like so:
I'm happy to contribute towards one but it's not immediately clear to me on how I should go about implementing a Slack mixin.
The text was updated successfully, but these errors were encountered: