Page 1 of 1

I made a bot for delta chat

Posted: 01 Sep 2025, 22:09
by canteen
It's been 19 years but I built another bot! This one I'll eventually use for home automation stuff also, but for now it just takes notes into an org file - so that I can take them at work and process them when I get home (kind of like an inbox file). The codebase is very gross, but then I also wrote it in not so much time. I'll probably end up cleaning it up and putting hot reloading, queue-based processing of messages in a dedicated thread and nicer event handling (I'm pretty sure this is an underwater event loop with thread pools mixed in. It's a nightmare). Eventually. But it works! And that's important. It's got no readme! Very few comments! Real good.

I'm absolutely loving uv as a python package manager - no more horsing around finding the right system python version and hoping nothing conflicts. It's a nice venv all the way down. Big recommend.

Edit: I wrote up some background on it on my blog! https://blog.birbgreml.in/delta-chat-bot/

Re: I made a bot for delta chat

Posted: 11 Oct 2025, 17:17
by canteen
I learned ocaml because that seemed a reasonable response to the resource restraints of my tinkerboard (which I've finally got up and running). So I'll probably rewrite this in that once I plow through the cffi stuff

Re: I made a bot for delta chat

Posted: 11 Oct 2025, 17:25
by canteen
It's nice to do this kind of stuff (things just for me that don't have a real point), because with how burned out I am at work I'm sometimes a little nervous I can't do this at all anymore! But really it's just as it always was, as long as it's fun or interesting.