| View previous topic :: View next topic |
| Author |
Message |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Mon Nov 20, 2006 2:58 pm Post subject: Announce: TCD - Topic Count Down Script |
|
|
Another new script, this one stores events and sets channel topics and/or makes announcements on channels every xx minutes to show a countdown of when <event> will occur.
This script is loosely based on the date.tcl script I (re)did, but this one is specifically for doing countdowns.
...............................................................................................................................................................................
To set an event:
.tcd event <eventname> <MON> <DD> <YYYY> <HR:MN> <#chan:announce|topic|both> <event-description>
The date format is: JAN 01 2007 21:12 (time is in 24hr format)
The option for <#chan:announce|topic|both> means:
#channelname:make public announcements OR set topic OR do both
If you want to have the same event announced on multiple channels, simply enter the same event data with a DIFFERENT <eventname> and <#channelname:option>
Example:
.tcd event geddysbday jul 29 2007 21:12 #mychannel:both Geddy Lee's 53rd Birthday Party!
Script is available here:
http://members.dandy.net/~fbn/tcd.tcl.txt
I'll post it to the archive after a few days if no problems are found. |
|
| Back to top |
|
 |
Domin Halfop

Joined: 10 Jun 2006 Posts: 72
|
Posted: Thu Nov 23, 2006 6:28 pm Post subject: |
|
|
I get this error every time i execute the command
[21:27] Tcl error [tcdpub_date]: can't read "maxyears": no such variable _________________ Regards
Domin @ efnet |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Thu Nov 23, 2006 7:24 pm Post subject: |
|
|
Change all instances of maxyears to tcdmaxyears..Guess I overlooked those vars.
I'll upload a fixed copy as well. |
|
| Back to top |
|
 |
Domin Halfop

Joined: 10 Jun 2006 Posts: 72
|
Posted: Fri Nov 24, 2006 1:04 pm Post subject: |
|
|
I got a few feature requestes, if thats ok
The bot shouldt announce event is now at the set time.
(i got it set to announce every 10 min, but when the event arrives, it dont announce, since its in the middel of the 10 min timer)
Ability to revert to old topic when event is over if that is possible ??
Thanks for a nice script  _________________ Regards
Domin @ efnet |
|
| Back to top |
|
 |
rosc2112 Revered One

Joined: 19 Feb 2006 Posts: 1454 Location: Northeast Pennsylvania
|
Posted: Fri Nov 24, 2006 3:58 pm Post subject: |
|
|
| Use the date.tcl script I made for the 1st.. And the 2nd, no. |
|
| Back to top |
|
 |
Domin Halfop

Joined: 10 Jun 2006 Posts: 72
|
Posted: Sat Nov 25, 2006 5:49 am Post subject: |
|
|
Thanks for pointing out the date.tcl does exactly what i want  _________________ Regards
Domin @ efnet |
|
| Back to top |
|
 |
|