feat: add !gitlog command to display recent git commits
Add !gitlog [count] IRC command that runs 'git log --oneline' and sends each commit as a separate PRIVMSG. Defaults to GITLOG_COUNT (5) commits when no argument is provided; accepts 1-20 as count. - Fork/exec pattern consistent with existing !calc command - Rate-limited per-nick like all other commands - Listed in !help output - Added git to README.md requirements - Documented in README.md utilities section - Added changelog entry for v0.36.0
This commit is contained in:
parent
cce110f7f5
commit
01a51c17e5
3 changed files with 71 additions and 2 deletions
|
|
@ -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)
|
||||
- `git` (for the gitlog command)
|
||||
- `date` (for timezone-aware time lookups)
|
||||
- `tzdata` (optional — without it, `!time` falls back to 45 built-in timezones)
|
||||
- `opencode` (for AI queries)
|
||||
|
|
@ -107,6 +108,7 @@ make CC=clang CFLAGS="-O2 -Wall -Wextra"
|
|||
| `!time [timezone]` | Show current time (see below) |
|
||||
| `!seen <nick>` | Check when a user was last seen |
|
||||
| `!tell <nick> <message>` | Leave a message for an offline user |
|
||||
| `!gitlog [count]` | Show recent git commits (default: 5, max: 20) |
|
||||
|
||||
#### Time (`!time`)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue