egghelp.org community Forum Index
[ egghelp.org home | forum home ]
egghelp.org community
Discussion of eggdrop bots, shell accounts and tcl scripts.
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Procedure to start, stop or continue a procedure

 
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help
View previous topic :: View next topic  
Author Message
RowdyOne
Voice


Joined: 24 Aug 2009
Posts: 3

PostPosted: Mon Aug 24, 2009 3:25 am    Post subject: Procedure to start, stop or continue a procedure Reply with quote

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
View user's profile Send private message
Sir_Fz
Revered One


Joined: 27 Apr 2003
Posts: 3793
Location: Lebanon

PostPosted: Mon Aug 24, 2009 10:56 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
RowdyOne
Voice


Joined: 24 Aug 2009
Posts: 3

PostPosted: Mon Aug 24, 2009 2:00 pm    Post subject: Reply with quote

You sooooo rock!
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    egghelp.org community Forum Index -> Scripting Help All times are GMT - 4 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Forum hosting provided by Reverse.net

Powered by phpBB © 2001, 2005 phpBB Group
subGreen style by ktauber