From 9ab428ef9a850bb714778b7430a8836e99215817 Mon Sep 17 00:00:00 2001 From: hanez Date: Mon, 20 Jul 2026 03:37:17 +0200 Subject: [PATCH] update README with !calc pi() docs and date requirement --- README.md | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/README.md b/README.md index 65098ca..6158aff 100644 --- a/README.md +++ b/README.md @@ -28,6 +28,7 @@ A single-file IRC bot in C. Features a key-value store backed by SQLite3, weathe - `libsqlite3` (loaded at runtime via `dlopen`) - `curl` (for weather, forecast, and stock lookups) - `bc` (for the calculator command) +- `date` (for timezone-aware time lookups) - `opencode` (for AI queries) ## Build @@ -155,6 +156,14 @@ The calculator uses `bc -l` (POSIX arbitrary-precision calculator with the math | `!calc 2^10` | `1024` | | `!calc 3^3` | `27` | +**Constants:** + +| Expression | Description | +|---|---| +| `!calc pi()` | Pi (3.14159...) | +| `!calc pi()*2` | Circumference of a unit circle | +| `!calc pi()^2` | Pi squared | + **Math library functions** (enabled by `-l`): | Expression | Description |