This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

Announce: TCD - Topic Count Down Script

Support & discussion of released scripts, and announcements of new releases.
Post Reply
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Announce: TCD - Topic Count Down Script

Post by rosc2112 »

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.
User avatar
Domin
Halfop
Posts: 72
Joined: Sat Jun 10, 2006 9:10 am

Post by Domin »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Change all instances of maxyears to tcdmaxyears..Guess I overlooked those vars.

I'll upload a fixed copy as well.
User avatar
Domin
Halfop
Posts: 72
Joined: Sat Jun 10, 2006 9:10 am

Post by Domin »

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
User avatar
rosc2112
Revered One
Posts: 1454
Joined: Sun Feb 19, 2006 8:36 pm
Location: Northeast Pennsylvania

Post by rosc2112 »

Use the date.tcl script I made for the 1st.. And the 2nd, no.
User avatar
Domin
Halfop
Posts: 72
Joined: Sat Jun 10, 2006 9:10 am

Post by Domin »

Thanks for pointing out the date.tcl does exactly what i want ;-)
Regards
Domin @ efnet
Post Reply