Just wget the file below, set the variables nick
,channel
and server
and run it (config
doesn't need to be changed). Output is send to stdout. You probably want to send it to a file. To do so, I recommend one of these structures:
If you don't want to see the output in a terminal:
irclogscript.sh >> logs.txt
If you do want to see the output in a terminal:
irclogscript.sh | tee -a logs.txt
Both of these commands are non-destructive; Data is always appended to the file.
The default nick is $$
which is the pID for the script when you run it.
Best run in a tmux
window.