I made a bot for delta chat

i have a personal problem where i have burnout and tech discussions are hard on me

so now there's a forum just for all our tech needs
programming
devops
T3H CYBERZ
hardware

bare your metals, let them air out
Post Reply
User avatar
canteen
Posts: 16
Joined: 01 May 2024, 10:40

I made a bot for delta chat

Post 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/
User avatar
canteen
Posts: 16
Joined: 01 May 2024, 10:40

Re: I made a bot for delta chat

Post 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
User avatar
canteen
Posts: 16
Joined: 01 May 2024, 10:40

Re: I made a bot for delta chat

Post 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.
Post Reply