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.

timed actions

Old posts that have not been replied to for several years.
Locked
m
meks
Voice
Posts: 16
Joined: Mon Jun 09, 2003 3:16 pm

timed actions

Post by meks »

hi!

is it possible to do different actions at different times?
for example do a configuration rehash at midnight?

the only way i can imagine is to check the time with a pubm-binding. so if someone says something the pubm-binding triggers.
but what i want to do is a 'bit' different.
i want to build a script that posts every day at 12pm a message to a channel...no matter if there are users in the channel or not.

so - how could i do this?

tia
m
mortician
Voice
Posts: 37
Joined: Sun Sep 22, 2002 6:35 pm
Location: Tsjakamaka
Contact:

Post by mortician »

you need a time binding, it's in the tcl-commands doc:
bind time - <mask> <proc>
proc-name <min> <hour> <day> <month> <year>

allows you to schedule procedure calls at certain times, mask matches 5 space seperated integers of the form: "min hour day month year"
It is a mistake to think you can solve any major problems just with potatoes.
Locked