feat(chatlog): public-channel logger with HTTP playback for the web chat #3
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "feat/chatlog"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Adds
chatlog/, a small Go service that provides playback for https://ircforever.org/chat/ (ngircd and the websocket gateway keep no history)./msg ChatLog nolog #chan(deletes stored lines, persisted);log #chanre-enables.GET /history/{channel}?since=&limit=→{"channel","messages":[{time,kind,nick,text}]}, CORS for configured origins,/healthz.Already deployed on irc.ircforever.org (rcctl
chatlog, relayd route added, backup at /etc/relayd.conf.bak-pre-chatlog).go vetandgo test -racepass; builds for openbsd/amd64 with CGO off.🤖 Generated with Claude Code
A Go bot (ChatLog) that sits in public IRCForever channels on ngircd, stores channel PRIVMSG/ACTION/NOTICE in SQLite (pure Go, no cgo) for 7 days, and serves GET /history/{channel} as JSON for ircforever.org/chat. - LIST every 10m, joins busiest channels first at <=1 JOIN/s, capped below ngircd MaxJoins; nothing is logged until MODE confirms the channel is not +s/+p/+k, and it parts and deletes data if such a mode appears later - private messages are never stored - channel ops can /msg ChatLog nolog|log #chan (persisted opt-out) - hourly retention purge; CORS limited to configured origins - README with OpenBSD build, rc.d script, relayd snippet and MaxJoins note Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>