-
Notifications
You must be signed in to change notification settings - Fork 3
Add reactions #9
Comments
I really like this idea. I've been thinking about other types of responses for a while. For example opsdroid/opsdroid#195 covers sending images to chat clients. I totally agree with keeping track of the other metadata which comes with the message. Perhaps the whole response should be stored in I think I would prefer to extend the What do you think? |
I totally prefer to implement So I will start checking if the problem I detected in slacker Meanwhile, we should open an issue on opsdroid main repository explaining the Message modifications (raw + react). |
Once opsdroid/opsdroid#442 and opsdroid/opsdroid#443 are done they will need implementing in this connector. |
Reactions are a nice feature of slack, and would be great to add the capability to opsdroid slack connector to react to messages.
I investigated a lite and to archive this, we need to do some changes:
slacker
. But in order to react to a message, you need the channel and the exact timestamp of the message. Actually, opsdroidMessage
class don't save the message origin timestamp. So ats
property should be created, orcreated
property should be used for this prupose.listen
method of the slack connector, this new property should be filled with the timestamp of the message (m["ts"]
)add_reaction
method should be implemented in the slack connector, with something like:Reactions.add
when using channel and timestamp. To resolve it, I removed file and file_comment from the post call. We should try it again and if it fails as I saw, open an issue in slacker.What do you think?
The text was updated successfully, but these errors were encountered: