- 18 May, 2022 5 commits
-
-
Gigadoc 2 authored
-
Gigadoc 2 authored
-
Gigadoc 2 authored
I forgot this field, and it is pretty important.
-
Gigadoc 2 authored
Evil, but thanks to shlex it kind of works. Please don't use this.
-
Gigadoc 2 authored
With this you can subscribe to the persistent state messages introduced earlier. It is lower-level than even msg watchers, not enforcing and dissecting the actual message format, as there may be many types of state messages in the future yet few apps actively receiving them.
-
- 17 May, 2022 2 commits
-
-
Gigadoc 2 authored
The compatible versions will be determined at a later point.
-
Gigadoc 2 authored
This makes use of retained messages and LWT to implement simple discovery of available commands. The offline messages being retained as well is actually not a feature I want, it's just that the LWT has to be a retained message as well to overwrite the previous retained message. Clearing would require a retained null message, but we only get one LWT, so we can't both announce the disconnection in a non-retained way and then clear the retained message :(
-
- 21 Jul, 2021 2 commits
-
-
Gigadoc 2 authored
Seems more sensible if our transport format is JSON anyway. The previous behaviour is kept for EDI compat of course.
-
Gigadoc 2 authored
paho seems to not really support multiple callbacks per topic, it does not error but only the last registered callback ever gets the messages. We could multiplex for the user, but since the case of actually wanting multiple handlers for the same topic is probably low, just throw an error for now.
-
- 18 Jul, 2021 1 commit
-
-
Gigadoc 2 authored
-
- 16 Jul, 2021 5 commits
-
-
Gigadoc 2 authored
Turns out "inspect" could do this all along. The error messages might be slightly less helpful now, but the matching is more reliable now (it would sometimes not count kwargs before).
-
Gigadoc 2 authored
This was not necessary when the callback was called from within the try-block, but since it has been moved out of that block (so that we don't handle exceptions thrown by the callback _itself_), the library would continue to call the callback even when it shouldn't.
-
Gigadoc 2 authored
-
Gigadoc 2 authored
Otherwise if some command returns a number it will also be put as a number type in the JSON. Funnily enough the matrix-bot _accepts_ non-strings as a message and passes them on to the matrix server without error, at which point the server just throws the message away.
-
Gigadoc 2 authored
While this library is explicitly meant to be usable _without_ a virtual environment of any kind, I use one to test it against python 3.6.
-
- 15 Jul, 2021 3 commits
- 06 Dec, 2018 1 commit
-
-
Gigadoc 2 authored
-