2
0
Fork 0
forked from zynk/zynk

Full mode for !gitlog/!changelog, optional pull for !rebuild. (0.38.2)

- Added optional full keyword to !gitlog and !changelog for showing
  full commit messages and changelog entries instead of just headers.
- !gitlog full uses git log (without --oneline) and strips leading
  indentation from commit blocks, collapses multiple spaces.
- !changelog full collects full entry text with bullet points and
  shows the newest entries (first N in file, not last N).
- Added optional pull argument to !rebuild: !rebuild pull runs git
  pull before make clean/make, plain !rebuild only rebuilds.
- Added collapse_spaces() call in !gitlog oneline path to remove
  double spaces in compact output.
- Changed default GITLOG_COUNT and CHANGELOG_COUNT from 5 to 1.
- Reduced GITLOG_MAX from 10 to 5.
- Updated !help text to document [full] and [pull] options.
- Updated README.md with full option for !gitlog/!changelog and
  pull option for !rebuild.
- Added CHANGELOG.md entry for v0.38.2.
This commit is contained in:
Johannes Findeisen 2026-07-21 14:08:53 +02:00
commit 52b1627d69
3 changed files with 189 additions and 73 deletions

View file

@ -102,14 +102,14 @@ make CC=clang CFLAGS="-O2 -Wall -Wextra"
### Utilities
| Command | Description |
|--------------------------|-----------------------------------------------|
| `!calc <expression>` | Evaluate math (see below) |
| `!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: 10) |
| `!changelog [count]` | Show changelog entries (default: 5, max: 10) |
| Command | Description |
|-----------------------------|---------------------------------------------------------------------------------|
| `!calc <expression>` | Evaluate math (see below) |
| `!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] [full]` | Show recent git commits (default: 1, max: 5; `full` shows full commit messages) |
| `!changelog [count] [full]` | Show changelog entries (default: 1, max: 10; `full` shows full entry text) |
#### Time (`!time`)
@ -246,12 +246,12 @@ The calculator uses `bc -l` (POSIX arbitrary-precision calculator with the math
### Admin (Ops Only)
| Command | Description |
|-----------------------|--------------------------------------------------------|
| `!reload` | Hot reload (save TLS state, fork new process) |
| `!restart` | Restart the bot |
| `!rebuild` | Git pull, rebuild, and restart (ops only, in channels) |
| `!code <instruction>` | Make AI-powered code changes |
| Command | Description |
|-----------------------|-------------------------------------------------------------------------------------|
| `!reload` | Hot reload (save TLS state, fork new process) |
| `!restart` | Restart the bot |
| `!rebuild [pull]` | Rebuild and restart (ops only, in channels; `pull` runs Git pull before rebuilding) |
| `!code <instruction>` | Make AI-powered code changes |
### Chat