IRC nick or keyword mention notification by mail for Bip IRC proxy
I loathe Facebook and its repressive user-hostile policy that provides no value to the rest of the Web. But like that old IRC channel known by some of you, I keep an account there because some people I like & love are only there. I seldom go to Facebook unless some event, such as a comment on one of the posts that I post there through Pixelpipe, triggers a notification by mail. I would like to treat IRC that way: keeping an IRC application open and connected is difficult when mobile or when using the stupid locked-down mandatory corporate Windows workstation, and I’m keen to eliminate that attention-hogging stream from my environment – especially when an average of two people post a dozen lines a day, most of which are greetings and mealtimes notifications. But when a discussion flares up there, it is excellent discussion… And you never know when that will happen – so you need to keep an eye on the channel. Let’s delegate the watching to some automation !
So let me introduce to you to my latest short script : bipIRCnickmailnotify.sh – it sends IRC log lines by mail when a specific string is mentioned by other users. Of course in the present use case I set it up to watch for occurrences of my nickname, but I could have set it to watch any other string. The IRC logging is done by the bip IRC proxy that among other things keeps me permanently present on my IRC channels of choice and provides me with the full backlog whenever I join with a regular IRC client.
This Unix shell script also uses ‘since’ – a Unix utility similar to ‘tail’ that unlike ‘tail’ only shows the lines appended since the last execution. I’m sure that ‘since’ will come handy in the future !
So there… I no longer have to monitor IRC – bipIRCnickmailnotify.sh does it for me.
With trivial modification and the right library it could soon do XMPP notifications too – send me an instant message if my presence is ‘available’ and mail otherwise. See you next version !
2 responses to “IRC nick or keyword mention notification by mail for Bip IRC proxy”
Leave a Reply
You must be logged in to post a comment.
Interesting, thanks for the script.
Have you considered running an IRC screen session? I have such a setup with irssi running inside screen. irssi is then connected to my networks of choice and minbif an IM proxy that talks to jabber/msn/icq. This way I have nothing popping up and distracting me.
Most of my friends use screen to run their favorite IRC client… But I prefer to use an IRC proxy because it lets me run several clients simultaneously (console, graphical, mobile etc.) among other advantages.