From ProjectWiki
Revision as of 14:49, 7 November 2011 by Wikisysop (Talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

PERL Countdown Script for Irssi IRC Client


What is it?

Very configurable countdown till target date/time script for irssi originally ment to countdown to newyears... Among other things, it features multiple time zone support and ability to customize how the countdown is displayed.


[Download latest release]


Example use in an irc channel:

<@eris> !countdown
<@erroris> samy's countdown to legality is ongoing! Currently there are 36 days 06 hours 28 mins 09 seconds till
samy is allowed to use interwebs for perrsonal use, and chown all the tubes]

From the header:

# typing !cdwn (or whatever you set cdwn_trigger to) will report
# type !cdwn UTC-5 for EST, !cdwn UTC-8, !cdwn utc+9 for some asian weirdness etc
# Settings (default values shown):
# cdwn_target = 2007/1/1 00:00:00 // time/date to count down to USE THIS FORMAT!!!
# cdwn_dly = 1 // time between calls (prevents flooding)
# cdwn_utc = -5 // this computer's timezone in utc format MUST SET THIS!!
# cdwn_trigger = !cdwn // trigger to use in channels
# // These define what to say before and after the target date (can add colors or remove year etc etc)
# cdwn_til_str = $year years $mon months $day days til $tyear/$tmon/$tday $thour:$tmin:$tsec ($utc)
# cdwn_past_str =$year years $mon months $day days past $tyear/$tmon/$tday $thour:$tmin:$tsec ($utc)
# Note: $yday differs from $day (which is monthday) by displaying how many calender days
# till the target (as compared to monthdays which will never be > 30)

Download, remove the .txt extention and copy to ur .irssi/scripts/ dir (or .irssi/scripts/autorun/ :)

mv ~/.irssi/scripts/

and then type (from inside irssi):

/script load

to load the script (unless you placed it in /autorun) and then type:

/set cdwn 

to see the settings.


(please do if u want!! ^_^)

  • Add channel filter
  • Add support for multiple countdowns


Personal tools
irssi scripts
eggdrop scripts