delta chat bot
phtalate
delta.chat
I've been looking for a new chat application that works and isn't annoying (read: has weird edge cases like messages not syncing). The first one that really worked for me was delta.chat. It's cool, definitely give it a try.
bot
It's something of a tradition for me to try to make a bot for platforms I use to communicate. I've used so many where it is hard or kinda dumb, but this one has a pretty okay library!
As long as you stay with the cffi library it's clean and fast.
The newer RPC stuff has a wrapper that's probably better (at least according to the author :) ) but it really wants you to work with how they imagine a CLI is made. And I hated it. Not using that bit means rewriting a shitload of it and plumbing the rest of whatever eldritch nightmare could be lurking in there.
The cffi bindings are a bit basic, but I think I will eventually end up using only the raw cffi events (and not any of the decorator based message bindings that are provided), because those event types are very well documented. So they're nice to use and very complete. You can hook into that or you can write your own parsing logic. I probably will just use that bit of the event loop.
Python 3.14 has a fit for purpose free threading build (no GIL! Threading has a point now!), so I'm using this as an excuse to explore it.
the code
It's here: https://git.sr.ht/~canteen/phtalate
I'll tinker a bit more with this to clean it up. It's the result of a lot of rapid prototyping and you can really tell. I'm pretty fast at it and at refactoring for new features and then I tend to have a somewhat lacklustre follow through. Maybe that's pretty usual. And I guess it could be worse :)