<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en-gb">
	<link rel="self" type="application/atom+xml" href="https://forum.eggheads.org/app.php/feed/topic/3443" />

	<title>egghelp/eggheads community</title>
	<subtitle>Discussion of eggdrop bots, shell accounts and tcl scripts.</subtitle>
	<link href="https://forum.eggheads.org/index.php" />
	<updated>2003-01-14T09:59:03-04:00</updated>

	<author><name><![CDATA[egghelp/eggheads community]]></name></author>
	<id>https://forum.eggheads.org/app.php/feed/topic/3443</id>

		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-14T09:59:03-04:00</updated>

		<published>2003-01-14T09:59:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15301#p15301</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15301#p15301"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15301#p15301"><![CDATA[
ok thanks,<br>but i need some big help to this i have try 5 hours now and that don't still work for me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br><div class="codebox"><p>Code: </p><pre><code>proc find {nick host hand chan arg} {   global findstamp   if {[string length $arg] &lt; 3} {       putquick "NOTICE $nick : oh pls n00b... use more than 2 characters ffs"       return 0   }   if {[info exists findstamp]} {      if {[expr [unixtime] - $findstamp] &lt; 10} {         puthelp "NOTICE $nick : ystem is currently busy."         return 0      }    }    putquick "NOTICE $nick 4Starting Search For 9 [lindex [split $arg] 0]  4Please wait..."     set stat [exec_players]     set stat_arr [split $stat "\n"]     set i 0     set str $stat_arr     set found 0     #    set str [lsort $stat_arr]     for {set i 0} {$i &lt; [llength $str]} {incr i} {    set j [expr $i + 1]    # Loop through all the players and save them into a list    while {[string range [lindex $str $j] 0 6] == "Player:"} {        set player [string trimleft [lindex $str $j] "Player:"]        set playername [lindex [split $player " "] 2]        set server [join [lindex [split [lindex $str $i] "] 1] " "]        if {[string first [string tolower $arg] [string tolower $playername]] != -1} then {       incr found       putquick "NOTICE $nick :$playername is on $server"        }        incr j    }    # Make sure we don't check through the players again    set i [expr $j - 1]     }     set info_str [get_number_of $found "player"]     putquick "NOTICE $nick :$info_str"     catch {unset findstamp}    return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Tue Jan 14, 2003 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-14T09:35:12-04:00</updated>

		<published>2003-01-14T09:35:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15299#p15299</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15299#p15299"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15299#p15299"><![CDATA[
<blockquote class="uncited"><div>what have i do wrong here ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> </div></blockquote>You are mudding around with tcl without attempting to understand what you are doing. In other words, you are taking random bits and pieces of the suggestions made here and insert them at more or less random places in your existing script.<br><br>If you want to modify a tcl beyond trivial string modifications (such as modifying "hello world" into "hello channel"), you must go through it step by step and understand what is happening and what you are doing.<br><br>It was suggested earlier to use two separated procs. But you continue to use one single proc.<br>One proc takes care of the trigger and the other proc takes care of the execution of the players data processing.<br><br>The reason why you get the error message is because the variable "currenttime" only gets set "if {[string length $arg] &lt; 3}". But this is not the root problem. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_evil.gif" width="15" height="15" alt=":evil:" title="Evil or Very Mad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Tue Jan 14, 2003 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-14T09:01:55-04:00</updated>

		<published>2003-01-14T09:01:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15295#p15295</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15295#p15295"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15295#p15295"><![CDATA[
what have i do wrong here ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"> <br><br><strong class="text-strong">[13:58] Tcl error [find]: can't read "currenttime": no such variable<br>[13:58] Tcl error in script for 'timer22':</strong><br><div class="codebox"><p>Code: </p><pre><code>proc find {nick host hand chan arg} { if {[string length $arg] &lt; 3} {   global findstamp   set currenttime [unixtime]   if { [info exists findstamp] } {      if { [expr $currenttime - $findstamp] &lt; 10 } {         puthelp "PRIVMSG $chan :System is currently busy."         return# they put in less than four characters.. bitch at them    putquick "NOTICE $nick : oh pls n00b... use more than 2 characters ffs"    return    } else { }     putquick "NOTICE $nick :4Starting Search For 9 [lindex [split $arg] 0]  4Please wait..."     set stat [exec_players]     set stat_arr [split $stat "\n"]     set i 0     set str $stat_arr     set found 0     #    set str [lsort $stat_arr]     for {set i 0} {$i &lt; [llength $str]} {incr i} {    set j [expr $i + 1]    # Loop through all the players and save them into a list    while {[string range [lindex $str $j] 0 6] == "Player:"} {        set player [string trimleft [lindex $str $j] "Player:"]        set playername [lindex [split $player " "] 2]        set server [join [lindex [split [lindex $str $i] ""] 1] " "]        if {[string first [string tolower $arg] [string tolower $playername]] != -1} then {       incr found       putquick "NOTICE $nick :$playername is on $server"        }        incr j    }    # Make sure we don't check through the players again    set i [expr $j - 1]     }     set info_str [get_number_of $found "player"]     putquick "NOTICE $nick :$info_str"     return 0 }   }   utimer 0 [exec_players]   puthelp "PRIVMSG $chan :Data processing has started, please wait."   set findstamp $currenttime}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Tue Jan 14, 2003 9:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-13T18:16:54-04:00</updated>

		<published>2003-01-13T18:16:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15265#p15265</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15265#p15265"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15265#p15265"><![CDATA[
hmmm privat msg  ok  wrong button <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>hmmm i am new to all this where i put this script in ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Mon Jan 13, 2003 6:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-13T18:21:43-04:00</updated>

		<published>2003-01-13T18:13:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15264#p15264</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15264#p15264"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15264#p15264"><![CDATA[
Black|man, in a private message on this forum you have asked what line has to be added and how to modify your code. This of course is left to you <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Below you will find the framework of the two procs. See if you can use it.<br><br>And for the benefit of the other users, use the forum <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><div class="codebox"><p>Code: </p><pre><code>bind pub - !find trigfindproc trigfind { nick uhost hand chan text } {   global findstamp   set currenttime [unixtime]   # Check if a timestamp exists   # Note that the existence of the "findstamp" indicates that the   # data processing is still busy. Or something went wrong   # during the data processing and the variable was never unset.   if { [info exists findstamp] } {      # It is assumed that the data processing always takes      # less than 10 seconds.  This is a sanity check.      if { [expr $currenttime - $findstamp] &lt; 10 } {         puthelp "PRIVMSG $chan :System is currently busy."         # do not proceed any further and ...         return      }   }   # trigger the stats data processing proc   utimer 0 [list execfind $chan $text]   # notify the channel: data processing has started   puthelp "PRIVMSG $chan :Data processing has started, please wait."   # reset the timestamp   set findstamp $currenttime}proc execfind { chan text } {   global findstamp   puthelp "PRIVMSG $chan :Hello $chan! ($text)."   # do stats data processing here   # ...   # ...   # ...   # end stats processing here   # unset the timestamp and eggdrop is ready for new    # requests.   if { [info exists findstamp] } { unset findstamp }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Jan 13, 2003 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2003-01-13T16:39:05-04:00</updated>

		<published>2003-01-13T16:39:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15263#p15263</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15263#p15263"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15263#p15263"><![CDATA[
<blockquote class="uncited"><div>little problem is now <strong class="text-strong">Search info system is busy, please try again in 5 seconds</strong> come after the first user have search and the bot is ready to a new search  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"></div></blockquote>Afaics, there is no real solution to the problem in this way. The proc is triggered, processes the request, gives results and is then ready for a new request. Note that all requests are processed sequentially.<br><br>The only way to have it the way you want is by having two individual and separated procs. In one proc you store the request and the timestamp. Any new requests are tested for the 5 seconds by this proc. In other words this proc is always available to process new requests.<br><br>The second proc, which may be triggered by the first proc (for example by a utimer), performs the find in the stats and outputs the result.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Mon Jan 13, 2003 4:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-13T15:09:44-04:00</updated>

		<published>2003-01-13T15:09:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15262#p15262</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15262#p15262"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15262#p15262"><![CDATA[
I am on EFnet<br><br>You can find me in #mIRC4dummies or by my nickname<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 13, 2003 3:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-13T13:59:52-04:00</updated>

		<published>2003-01-13T13:59:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15261#p15261</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15261#p15261"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15261#p15261"><![CDATA[
still the same problem, are you on irc ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Mon Jan 13, 2003 1:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-13T13:55:36-04:00</updated>

		<published>2003-01-13T13:55:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15260#p15260</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15260#p15260"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15260#p15260"><![CDATA[
Sorry<br><br>Find the line<div class="codebox"><p>Code: </p><pre><code>utimer 5 [list catch {unset findhold}]</code></pre></div>and replace with<div class="codebox"><p>Code: </p><pre><code>utimer 5 [list catch [list unset findhold]]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 13, 2003 1:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-13T13:51:32-04:00</updated>

		<published>2003-01-13T13:51:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15259#p15259</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15259#p15259"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15259#p15259"><![CDATA[
little problem is now <strong class="text-strong">Search info system is busy, please try again in 5 seconds</strong> come after the first user have search and the bot is ready to a new search  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Mon Jan 13, 2003 1:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-13T11:45:02-04:00</updated>

		<published>2003-01-13T11:45:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15247#p15247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15247#p15247"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15247#p15247"><![CDATA[
Here is the first 3 lines of your script, change them from<div class="codebox"><p>Code: </p><pre><code>proc find {nick host hand chan arg} { if {[string length $arg] &lt; 3} { # they put in less than four characters.. bitch at them </code></pre></div>and make them<br><div class="codebox"><p>Code: </p><pre><code>proc find {nick host hand chan arg} { global findholdif {[info exists findhold]} {  puthelp "PRIVMSG $nick :Search info system is busy, please try again in 5 seconds"  return}set findhold 1utimer 5 [list catch {unset findhold}]if {[string length $arg] &lt; 3} { # they put in less than four characters.. bitch at them </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Jan 13, 2003 11:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-13T11:38:50-04:00</updated>

		<published>2003-01-13T11:38:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15245#p15245</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15245#p15245"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15245#p15245"><![CDATA[
how i do that ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Mon Jan 13, 2003 11:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2003-01-12T17:19:20-04:00</updated>

		<published>2003-01-12T17:19:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15234#p15234</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15234#p15234"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15234#p15234"><![CDATA[
just add a utimer, set a variable to "1" while it is searching.. make it global, once 5 secs is gone (which you set with the utimer) you can set the variable to 0 again.. then just add a check on at the beginning of the proc which will return 0 and send te msg if the var == 1 , if not it will start a continue..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Sun Jan 12, 2003 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Black|Man]]></name></author>
		<updated>2003-01-12T13:55:58-04:00</updated>

		<published>2003-01-12T13:55:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15229#p15229</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15229#p15229"/>
		<title type="html"><![CDATA[system is busy]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15229#p15229"><![CDATA[
how to add this line in this script ? ---&gt;  <strong class="text-strong">Search info system is busy, please try again in 5 seconds</strong><br><div class="codebox"><p>Code: </p><pre><code>proc find {nick host hand chan arg} {if {[string length $arg] &lt; 3} { # they put in less than four characters.. bitch at them putquick "NOTICE $nick : oh pls n00b... use more than 2 characters ffs"return} else { }    putquick "NOTICE $nick :4Starting Search For 9 [lindex [split $arg] 0]  4Please wait..."     set stat [exec_players]    set stat_arr [split $stat "\n"]    set i 0    set str $stat_arr    set found 0    #    set str [lsort $stat_arr]    for {set i 0} {$i &lt; [llength $str]} {incr i} {set j [expr $i + 1]# Loop through all the players and save them into a listwhile {[string range [lindex $str $j] 0 6] == "Player:"} {    set player [string trimleft [lindex $str $j] "Player:"]    set playername [lindex [split $player " "] 2]    set server [join [lindex [split [lindex $str $i] ""] 1] " "]    if {[string first [string tolower $arg] [string tolower $playername]] != -1} then {incr found      putquick "NOTICE $nick :$playername is on $server"    }    incr j}# Make sure we don't check through the players againset i [expr $j - 1]    }    set info_str [get_number_of $found "player"]    putquick "NOTICE $nick :$info_str"    return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2091">Black|Man</a> — Sun Jan 12, 2003 1:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
