Page MenuHomeDevCentral

Time.tcl
No OneTemporary

Time.tcl

#utimer 90 onload
bind cron - "* * * * *" cron:minute
bind cron - "*/5 * * * *" cron:often
bind cron - "0 * * * *" cron:hourly
bind cron - "0 4 * * *" cron:daily
proc onload {} {
#This proc, called on startup, causes the eggdrop
#to die on "unloadmodule server"
#.tcl onload manually will work
#Drops IRC support
unloadmodule irc
unloadmodule ctcp
unloadmodule channels
unloadmodule server
#Links to Nasqueron
link Nasqueron
}
#Every minute
proc cron:minute {minute hour day month weekday} {
}
#Every 5 minutes
proc cron:often {minute hour day month weekday} {
#Reconnects to sql, sql2
sqlrehash
#Sends a dummy command to keep sql7 alive
if [catch {
sql7 "SELECT 666"
}] {
putcmdlog "Warning: not connected to sql7 - mysql won't work."
}
}
#Every hour
proc cron:hourly {minute hour day month weekday} {
}
#Every day, at 4am
proc cron:daily {minute hour day month weekday} {
}

File Metadata

Mime Type
text/plain
Expires
Thu, Dec 26, 01:22 (5 h, 6 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2314119
Default Alt Text
Time.tcl (904 B)

Event Timeline