I am very new to irssi (and IRC in general), and I have the need to log only the last N number of lines from irssi to a text file, but I can't find any information on how to do something like that - be it with built in features or a script.
What I want to do is overlay the last 10 or so lines of chat on a video in real time. To do this I can use and ffmpeg filter which updates when a text file is changed on disk. Therefore what I want to do is continuously write the most recent 10 lines from an active irssi session to a text file.
How could I do that?