| View previous topic :: View next topic |
| Author |
Message |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Sat Aug 15, 2009 5:36 pm Post subject: Bin time to secondes |
|
|
It is possible to launch a "bind time" every 15 seconds?
| Code: | bind time - * Auto:scan
proc Auto:scan {minute hour day month year} {
foreach chan [channels] {
putserv "PRIVMSG $chan :test"
}
}
|
then it is that triggers every minute |
|
| Back to top |
|
 |
arfer Master

Joined: 26 Nov 2004 Posts: 436 Location: Manchester, UK
|
Posted: Sat Aug 15, 2009 6:40 pm Post subject: |
|
|
No there isn't. Time binds deal only with minutes, hours, days, months and years.
You would have to use a utimer to call a proc recursively, perhaps first started when the bot joins a network.
| Code: |
bind EVNT - init-server pTimerStart
proc pTimerStart {type} {
utimer 15 pTimerOutput
return 0
}
proc pTimerOutput {} {
foreach chan [channels] {
if {[botonchan $chan]} {
putquick "PRIVMSG $chan :test"
}
}
utimer 15 pTimerOutput
return 0
}
|
_________________ I must have had nothing to do |
|
| Back to top |
|
 |
neoclust Halfop
Joined: 14 Aug 2009 Posts: 55
|
Posted: Sat Aug 15, 2009 8:54 pm Post subject: |
|
|
Oh thanks arfer very glad  |
|
| Back to top |
|
 |
|