| View previous topic :: View next topic |
| Author |
Message |
RowdyOne Voice
Joined: 24 Aug 2009 Posts: 3
|
Posted: Mon Aug 24, 2009 3:25 am Post subject: Procedure to start, stop or continue a procedure |
|
|
Hello! Hoping to get some help.
I am trying to cobble together a procedure which I can prepend to a small quote script I am using.
I need it to check the time of the day and allow the procedure to start or continue between 12am and 8am, for example.
I also need it to stop the procedure from starting or continuing outside those times
While I have some experience managing an eggdrop and using different scripts this is the first time I have tried to make a significant modification to one.
Thank you in advance for anything you can help me with here! |
|
| Back to top |
|
 |
Sir_Fz Revered One

Joined: 27 Apr 2003 Posts: 3793 Location: Lebanon
|
Posted: Mon Aug 24, 2009 10:56 am Post subject: |
|
|
| Code: | set t [strftime %H]
if {$t >= 8 and $t < 12} {
# proc does not trigger between 8 am and 12 am
return
} |
_________________ Follow me on GitHub
- Opposing
Public Tcl scripts |
|
| Back to top |
|
 |
RowdyOne Voice
Joined: 24 Aug 2009 Posts: 3
|
Posted: Mon Aug 24, 2009 2:00 pm Post subject: |
|
|
| You sooooo rock! |
|
| Back to top |
|
 |
|