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 

[SOLVED] How to wait few seconds ?

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


Joined: 20 Mar 2009
Posts: 8

PostPosted: Thu Apr 08, 2010 9:21 pm    Post subject: [SOLVED] How to wait few seconds ? Reply with quote

I need to wait few seconds after sending a msg to another BOT to read his answer but I didn't find a good solution.

After and vwait hang eggdrop and bind time wasn't good has I need to wait only few seconds.
Trying with a loop (while) but this is using 100% of cpu during waiting, so not good.

Maybe I missed an easy way to do it so help will be appreciated.


Thanks.


Last edited by Globulus on Fri Apr 09, 2010 6:54 am; edited 1 time in total
Back to top
View user's profile Send private message
raider2k
Op


Joined: 01 Jan 2008
Posts: 140

PostPosted: Fri Apr 09, 2010 12:47 am    Post subject: Reply with quote

Code:

utimer 60 [list putbot botname "!mytrigger $var1 $var2 (...)"


utimer 60 waits 60 seconds, you could also use timer which counts in minutes and use 1 (minute) instead of 60, same result. hope that fits your needs
Back to top
View user's profile Send private message
Globulus
Voice


Joined: 20 Mar 2009
Posts: 8

PostPosted: Fri Apr 09, 2010 6:54 am    Post subject: Reply with quote

OMG looking for hour and didn't find it Sad

Many thanks for your help.
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