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.

time tcl?

Old posts that have not been replied to for several years.
Locked
g
gatus

Post by gatus »

Hello,

I was seeking for a tcl, which makes your bot say the time every X minutes, or randomly, searched the tcl library a lot but couldn't find any.. anyone have an idea of where can i get one?
S
Shocky

Post by Shocky »

here's quick code: not debugged:

bind time - "?0 * * * *" quick:time

proc quick:time {min hour day month year} {
putserv "PRIVMSG #channel :The time and date is now [clock format [clock seconds]]"
}

Relatively simple really..

Adjust however you want.

g
gatus

Post by gatus »

Um, i'm a little bit new in tcl scripting, i don't understand too much, and don't have too much free time now to read about it. Anyway, can you tell me what can/should i change in this script? specifically i don't understand this part:bind time - "?0 * * * *" quick:time
what do i replace teh stars with?


I'll appresiate your help
g
gatus

Post by gatus »

pleeaasee? :smile:
User avatar
Papillon
Owner
Posts: 724
Joined: Fri Feb 15, 2002 8:00 pm
Location: *.no

Post by Papillon »

bind time - "?0 * * * *" quick:time

proc quick:time {min hour day month year} {

"*(min) *(hour) *(day) *(month) *(year)"


see the connection :wink:

that script executes every 10th min
Elen sila lúmenn' omentielvo
g
gatus

Post by gatus »

Thanks a lot!
Locked