-
Notifications
You must be signed in to change notification settings - Fork 2
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
Some improvements that I need & collaboration. #1
Comments
BTW. Please run |
Hi @dpc , thanks for sharing your ideas! I was a bit busy yesterday, so that I just managed to skim your changes and accept the pull request for rustfmt. I will have more time this weekend. My plan is to enhance the documentation a little bit and then publish a version 0.0.4 to crates.io (for my purposes), first. After that, I'm completely open for changes. :) |
Hey @dpc, I've finally had a chance to look at the changes you're proposing. Thank a lot for working on this, I appreciate your effort! I've got some general points where I would propose some slight changes. I hope I'm not beeing too conservative, here.
But I see that it will be necessary for most people to get information about the sender of a message. I could also imagine that the timestamp of messages is a useful information. Maybe we can incorporate a very simple API for the enduser with the complete serde types for the matrix api you wrote. That would probably be very convenient. Alternatively, it could make sense to split the whole low level serde types and comunication with the server into a module (or even a crate? think I'm not really sure which approach is best. I'd like to hear your opinion before proceding in any way. |
Hi & Cześć!
So I have a need for a simple matrix bot. I've fired the example, looked at the code and it worked for me.
I think I'll need to extend it a little bit so I wanted to ask how should I go about it. Maybe you could set up a gitter channel where I could ping you directly? Or would prefer Github issues?
First thing I need is more meta information about received messages (at least the sender).
I see that right now you're parsing Json
Value
inget_new_messages
which is not very scalable. I would just write a type based on https://matrix.org/docs/api/client-server/#!/Room32participation/sync , starting small, and adding interesting sub-types, fields and enums with time.What do you think?
The text was updated successfully, but these errors were encountered: