export IRC messages to a html page using the ircv3 draft/chathistory extension.
| colours.go | initial | |
| config.go | don't make config file mandatory | |
| go.mod | fix up some stuff | |
| go.sum | fix up some stuff | |
| main.go | use html/template | |
| README.md | update readme for config | |
| template.html | use spans not custom tags | |
irc2html
use draft/chathistory to create pretty webpages from your IRC chats.
currently only supports IRC over TLS
usage
create a config file at $XDG_CONFIG/irc2html/config.toml with the structure:
server = "irc.example.com:6697"
password = "hunter2"
nick = "zer0cool"
or set the following environment variables:
- IRC2HTML_NICK - your nickname
- IRC2HTML_PASSWORD - your IRC password (I still need to work out sasl auth)
- IRC2HTML_SERVER - irc.example.com:6697 (port is important)
env vars override config values
for soju bouncers, set your nickname to "nick/network" like you would on a client that doesn't support the bouncer-networks spec
go build
./irc2html "#channel" 100 # where 100 is the max number of lines prior to latest