You are browsing as a guest. Sign up (or log in) to start making projects!

Open comments for this post

1h 13m 21s logged

Devlog 2
Turns out one AI provider isn’t enough — so I added OpenAI support to the /summarize command via the -model flag.

The interesting part wasn’t the API call itself. It was realising that Gemini and OpenAI have completely different request formats — different URLs, different auth methods, different JSON body structures. So I had to refactor the whole AI section: pulled the Gemini logic into its own askGemini() function, then built an askOpenAI() twin next to it. Also learned the hard way that OpenAI’s free tier doesn’t exist for developers. Got a clean 429 back .

Finally SSHed into Hack Club’s server, set the bot up as a systemd service, and now it just… runs. 24/7.

0
2

Comments 0

No comments yet. Be the first!