This is the new home of the egghelp.org community forum.
All data has been migrated (including user logins/passwords) to a new phpBB version.


For more information, see this announcement post. Click the X in the top right-corner of this box to dismiss this message.

[SOLVED] How to wait few seconds ?

Help for those learning Tcl or writing their own scripts.
Post Reply
G
Globulus
Voice
Posts: 8
Joined: Fri Mar 20, 2009 12:54 pm

[SOLVED] How to wait few seconds ?

Post by Globulus »

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.
r
raider2k
Op
Posts: 140
Joined: Tue Jan 01, 2008 10:42 am

Post by raider2k »

Code: Select all

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
G
Globulus
Voice
Posts: 8
Joined: Fri Mar 20, 2009 12:54 pm

Post by Globulus »

OMG looking for hour and didn't find it :(

Many thanks for your help.
Post Reply