-
Schimon_
emus, the RSS Bot is (almost) ready for production, thanks to Laura (especially), Link Mauve, Ramiro Romani and friends https://gitgud.io/sjehuda/slixfeed
-
Kris
can it also post to a MUC?
-
Kris
or only 1:1✎ -
Kris
or only 1:1? ✏
-
TheCoffeMaker
Schimon_: it will fail eventually on server disconnection ... checkout hiw I've solved it (it is also an RSS to XMPP bot) https://codeberg.org/TheCoffeMaker/Morbot✎ -
TheCoffeMaker
Schimon_: it will fail eventually on server disconnection ... checkout how I've solved it (it is also an RSS to XMPP bot) https://codeberg.org/TheCoffeMaker/Morbot ✏
-
TheCoffeMaker
adding a callback to the disconnected event only is not enough
-
Link Mauve
TheCoffeMaker, why do you call xmpp.process(forever=False) and then do the forever=True the next line?
-
Link Mauve
(271-272)
-
TheCoffeMaker
Link Mauve, xmpp.process() is deprecated... the forever goes to the asyncio event loop
-
Link Mauve
Correct, but then you can just not use it at all and run the asyncio loop yourself.
-
Link Mauve
Basically remove line 271.
-
TheCoffeMaker
thx
-
TheCoffeMaker
will do
-
TheCoffeMaker
Link Mauve, in Morbot check the keep_alive method ... it's who does the actual disconnection handling magic
-
Link Mauve
I’d love to fix reconnection someday.
-
Link Mauve
In the library.
-
Link Mauve
Instead of relying on the user having to implement such workarounds all the time.
-
TheCoffeMaker
I would prefer to have it well documented instead of blindly delegating it to the library
-
Link Mauve
No I mean, slixmpp’s role as a library is to make XMPP usable, and reconnecting is part of it.
-
TheCoffeMaker
I understand your point
-
Link Mauve
The library is the best place to know when stanzas got sent, received, didn’t get a reply and so on.
-
Link Mauve
TheCoffeMaker, “ elif type(fut.exception()) is iqError:”, I think you meant IqError, with an uppercase I.
-
TheCoffeMaker
thx
-
Link Mauve
Static analysers could help you find this kind of error, for instance pylint or cython.
-
TheCoffeMaker
yeah 😅
-
Link Mauve
mypy as well I think.
-
cal0pteryx
I can recommend ruff+pyright