Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F25450895
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
1 KB
Referenced Files
None
Subscribers
None
View Options
diff --git a/TC2/Time.tcl b/TC2/Time.tcl
index f839492..69f0b90 100644
--- a/TC2/Time.tcl
+++ b/TC2/Time.tcl
@@ -1,45 +1,49 @@
-#utimer 90 onload
+utimer 5 onload
bind cron - "* * * * *" cron:minute
bind cron - "*/5 * * * *" cron:often
bind cron - "0 * * * *" cron:hourly
bind cron - "0 4 * * *" cron:daily
proc onload {} {
+ sqlconnect sql7
+}
+
+proc launch {} {
#This proc, called on startup, causes the eggdrop
#to die on "unloadmodule server"
- #.tcl onload manually will work
+ #.tcl launch manually will work
#Drops IRC support
unloadmodule irc
unloadmodule ctcp
unloadmodule channels
unloadmodule server
#Links to master bot
link Daeghrefn
}
#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
Details
Attached
Mime Type
text/x-diff
Expires
Thu, Apr 16, 04:50 (1 d, 2 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
3625335
Default Alt Text
(1 KB)
Attached To
Mode
rVIPER ViperServ scripts
Attached
Detach File
Event Timeline
Log In to Comment