Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3769864
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 69f0b90..46bc8ae 100644
--- a/TC2/Time.tcl
+++ b/TC2/Time.tcl
@@ -1,49 +1,49 @@
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 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
+ #Sends a no-op 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
Mon, Nov 25, 17:29 (8 h, 45 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2260645
Default Alt Text
(1 KB)
Attached To
Mode
rVIPER ViperServ scripts
Attached
Detach File
Event Timeline
Log In to Comment