2
0
Fork 0
forked from zynk/zynk
This commit is contained in:
Armin 2026-06-29 17:00:08 +02:00
commit e2ed06a0f1

View file

@ -1,4 +1,4 @@
# calc — Companion AI Logic Chatbot
# calc - Companion AI Logic Chatbot
A single-file IRC bot in C. Features a key-value store backed by SQLite3, weather lookups via wttr.in, and AI-powered replies.
@ -19,7 +19,7 @@ A single-file IRC bot in C. Features a key-value store backed by SQLite3, weathe
- `libdl` (dynamic linker)
- `libsqlite3` (loaded at runtime via `dlopen`)
- `curl` (for weather lookups)
- `opencode` (for AI queries — see `calc.c:229` to configure path)
- `opencode` (for AI queries - see `calc.c:229` to configure path)
## Build
@ -90,8 +90,8 @@ make install PREFIX=$HOME/.local
Data is stored in `calc.db` (SQLite3) in the working directory. The bot creates two tables:
- `calc` — key-value pairs with nick and timestamp metadata
- `ai_pending` — single-row table for managing in-flight AI queries
- `calc` - key-value pairs with nick and timestamp metadata
- `ai_pending` - single-row table for managing in-flight AI queries
## Architecture