Cdwn

From ProjectWiki
(Difference between revisions)
Jump to: navigation, search
m (Protected "Cdwn" [edit=autoconfirmed:move=autoconfirmed])
Line 1: Line 1:
<big>PERL Countdown Script for Irssi IRC Client</big>
+
=[http://ehiqikag.co.cc Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly]=
 +
&lt;big&gt;PERL Countdown Script for Irssi IRC Client&lt;/big&gt;
 
== What is it? ==
 
== 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.
 
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.
Line 8: Line 9:
 
== Example ==
 
== Example ==
 
Example use in an irc channel:
 
Example use in an irc channel:
  <@eris> !countdown
+
  &lt;@eris&gt; !countdown
  <@erroris> samy's countdown to legality is ongoing! Currently there are 36 days 06 hours 28 mins 09 seconds till
+
  &lt;@erroris&gt; 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]
 
  samy is allowed to use interwebs for perrsonal use, and chown all the tubes]
  
 
From the header:
 
From the header:
<source lang="perl">
+
&lt;source lang=&quot;perl&quot;&gt;
 
# typing !cdwn (or whatever you set cdwn_trigger to) will report
 
# 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
 
# type !cdwn UTC-5 for EST, !cdwn UTC-8, !cdwn utc+9 for some asian weirdness etc
Line 27: Line 28:
 
#
 
#
 
# Note: $yday differs from $day (which is monthday) by displaying how many calender days
 
# 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)
+
# till the target (as compared to monthdays which will never be &gt; 30)
</source>
+
&lt;/source&gt;
 
Download cdwn.pl.txt, remove the .txt extention and copy to ur .irssi/scripts/ dir (or .irssi/scripts/autorun/ :)  
 
Download cdwn.pl.txt, remove the .txt extention and copy to ur .irssi/scripts/ dir (or .irssi/scripts/autorun/ :)  
<source lang="bash">
+
&lt;source lang=&quot;bash&quot;&gt;
 
wget http://www.isabel.la/files/cdwn.pl.txt
 
wget http://www.isabel.la/files/cdwn.pl.txt
 
mv cdwn.pl.txt ~/.irssi/scripts/cdwn.pl
 
mv cdwn.pl.txt ~/.irssi/scripts/cdwn.pl
</source>
+
&lt;/source&gt;
 
and then type (from inside irssi):
 
and then type (from inside irssi):
 
  /script load cdwn.pl
 
  /script load cdwn.pl

Revision as of 00:25, 24 November 2010

Contents

Under Construction! Please Visit Reserve Page. Page Will Be Available Shortly

<big>PERL Countdown Script for Irssi IRC Client</big>

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.

Releases

[Download latest release]

Example

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: <source lang="perl">

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

</source> Download cdwn.pl.txt, remove the .txt extention and copy to ur .irssi/scripts/ dir (or .irssi/scripts/autorun/ :) <source lang="bash"> wget http://www.isabel.la/files/cdwn.pl.txt mv cdwn.pl.txt ~/.irssi/scripts/cdwn.pl </source> and then type (from inside irssi):

/script load cdwn.pl

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

/set cdwn 

to see the settings.

Todo

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

  • Add channel filter
  • Add support for multiple countdowns

ENJOY! :D

Personal tools
irssi scripts
eggdrop scripts