Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reactions #29

Open
maralorn opened this issue Nov 8, 2022 · 1 comment
Open

Reactions #29

maralorn opened this issue Nov 8, 2022 · 1 comment

Comments

@maralorn
Copy link
Contributor

maralorn commented Nov 8, 2022

Hey @TristanCacqueray, thx for the library. I am working on a matrix bot for receiving information about nixpkgs commits and merges.

One thing I would like very much would be to acknowledge user requests via reactions. Have you already had a look on how to add reactions to messages?

@TristanCacqueray
Copy link
Contributor

@maralorn you're welcome. It seems like reactions are not yet specified according to matrix-org/matrix-spec-proposals#2677 . Best would be to look at existing room events containing reactions, and add the necessary type if needed in https://github.com/softwarefactory-project/matrix-client-haskell/blob/master/matrix-client/src/Network/Matrix/Events.hs#L20 . You might be able to test that like in https://github.com/softwarefactory-project/matrix-client-haskell/blob/master/matrix-client/test/Spec.hs#L57 .

For what its worth, here is a similar bot that forwards gerrit event, though it does not read room message: https://github.com/softwarefactory-project/gerritbot-matrix .

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants