Utente:Buccia/Irssi Scripts/smshilights.pl

Da LinuxVar, il LUG della provincia di Varese.

You're an IRC addict, aren't you? So am I, but I'm actually trying to get off from it. The time wasted on IRC and IM could be far better spent.. in dozens of other ways.. The problem is that sometimes one idles on IRC just because he/she is waiting for something to come up; the truth is that almost never anything relevant comes up.


smshilights.pl
Linguaggio: Perl irssi script
Licenza:
Requisiti:
Autore: Utente:Buccia
Mail: buccia@f0.ath.cx
Homepage: http://linuxvar.it/
TODO:
  • message ratio limit specific to each nickname
  • submit script to scripts.irssi.org
Download: Media:Smshilights.gz



Being an irssi user, I have a way to detach from the cyber-world, and be notified when some topic that can interest me is raised.

If you find this interesting, you may find also Utente:Buccia/Irssi_Scripts/mailhilights.pl a cool script to try out.

Contenuti

Features

The smshilights.pl script sends an sms when the user is away, and an hilight is triggered. It supports:

  • custom program to launch for sending the message out
  • ignore pattern for undesired messages
  • sms ratio limit (to avoid being buried by messages)

Usage

In your irssi, type:

/hilight add some_interesting_pattern
/script load smshilights.pl
/set smshilights_delay_min 360
/set smshilights_ignore_pattern IdleRPGBot
/set smshilights_command /home/user/bin/my_sms_send_script arg1 arg2

Settings

  • smshilights_delay_min is the minimum amount of seconds which the script will wait after sending a message, before sending out another one.
  • smshilights_ignore_pattern is a regular expression that messages must NOT match in order to be sent
  • smshilights_command is the command which will be launched to send the sms. See the Program Interface section below.

Program Interface

The script will invoke the program specified in the smshilights_command setting, and write the message into its standard input. If you are a Vodafone Italia customer, have an account on http://190.it/, and you want to use that to send the messages, you most likely want to look at the perl_smssend.pl script to send out messages. That script interface is compatible with this irssi script. For example, i use them together in this way:

(in irssi) /set smshilights_command ~/bin/perl_smssend.pl 12345567889
Strumenti personali