2
0
Fork 0
forked from zynk/zynk

v0.35.0: add !calc, !time, !seen, !tell commands

New IRC commands:
- !calc <expr>: evaluate math via bc -l (arithmetic, powers, trig, log, vars)
- !time [tz]: show current time in any IANA timezone
- !seen <nick>: track/query last-seen activity (auto-updated on speak/part/quit)
- !tell <nick> <msg>: leave offline messages, delivered when target speaks

Database:
- Added 'seen' table for user activity tracking (nick, timestamp, channel, action)
- Added 'tell' table for pending offline messages

Other changes:
- Updated !help to list all new commands
- Updated README.md with detailed docs for all commands including !calc
  expression syntax and !time timezone examples
- Bumped version to 0.35.0
This commit is contained in:
Johannes Findeisen 2026-07-20 02:43:21 +02:00
commit c554ed60d9
3 changed files with 395 additions and 28 deletions

View file

@ -1,3 +1,14 @@
2026.07.20 – Calculator, time, seen, and tell commands.
- Added `!calc <expression>` command: evaluate math expressions via `bc -l` (supports arithmetic, powers, trigonometry, logarithms, variables, and multi-statement expressions).
- Added `!time [timezone]` command: display current time in any IANA timezone (e.g. `!time US/Pacific`, `!time Europe/Berlin`).
- Added `!seen <nick>` command: track and query when users were last seen (auto-updated on PRIVMSG, PART, and QUIT).
- Added `!tell <nick> <message>` command: leave offline messages for users, delivered automatically when they next speak.
- Added `seen` and `tell` tables to the SQLite database for persistent user tracking and message storage.
- Updated `!help` to list all new commands.
- Updated README.md with detailed documentation for all commands, including `!calc` expression syntax and `!time` timezone examples.
- Version bumped to 0.35.0.
2026.07.20 – Disabled stripping feature from 0.34.4 because it needs more testing.
- Disabled `strip_opencode_header()` (introduced in 0.34.4) as it requires further testing.