<?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/6218" />

	<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-12-03T02:56:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Souperman]]></name></author>
		<updated>2003-12-03T02:56:57-04:00</updated>

		<published>2003-12-03T02:56:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31012#p31012</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31012#p31012"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31012#p31012"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>switch [string tolower $args] {</code></pre></div></div></blockquote>Try and get out of that habit before it causes your problems.  $args is a list, 'string' is for strings. Read <a href="http://www.peterre.com/characters.html" class="postlink">http://www.peterre.com/characters.html</a> as many times as it takes to understand it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=801">Souperman</a> — Wed Dec 03, 2003 2:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-02T05:02:20-04:00</updated>

		<published>2003-12-02T05:02:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30968#p30968</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30968#p30968"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30968#p30968"><![CDATA[
<blockquote class="uncited"><div>lack of knowledge <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>but thanx I'll try that.</div></blockquote>A lack isn't a real trouble, if you try improve your knowledges <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Just a small example for you:<div class="codebox"><p>Code: </p><pre><code>switch [string tolower $args] {   "physik" {      fileserv $nick $args   }   "chemie" {      fileserv $nick $args   }.....   default {      putquick "PRIVMSG $nick :\0039,1 \[BORG\] Techtree interface .... \003"      putquick "PRIVMSG $nick :\0039,1 Connecting ... \003"      putquick "PRIVMSG $nick :\0039,1 Choose Subsection : physik, chemie, biologie, mechanik, architektur, wirtschaft, taktik \003"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Tue Dec 02, 2003 5:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-02T04:55:52-04:00</updated>

		<published>2003-12-02T04:55:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30967#p30967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30967#p30967"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30967#p30967"><![CDATA[
<blockquote class="uncited"><div>Just a small and stupid question:<br>why do you use all this if {...} and not a select switch?<br>It may be easier to read <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>lack of knowledge <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>but thanx I'll try that.<p>Statistics: Posted by Guest — Tue Dec 02, 2003 4:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-01T11:30:42-04:00</updated>

		<published>2003-12-01T11:30:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30938#p30938</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30938#p30938"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30938#p30938"><![CDATA[
Just a small and stupid question:<br>why do you use all this if {...} and not a select switch?<br>It may be easier to read <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Dec 01, 2003 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-12-01T07:19:43-04:00</updated>

		<published>2003-12-01T07:19:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30929#p30929</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30929#p30929"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30929#p30929"><![CDATA[
thx man,<br><br>that really helped a lot.<br><br>now i only have to find a way to rewrite the fileserv proc, because this is still blocked as long as its running.<br>but i think that would need some very good skills with tcl.<br><br>im trying, but if anyone has an easy idea or tutorial about this i would be very pleased.<p>Statistics: Posted by Guest — Mon Dec 01, 2003 7:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-11-27T13:26:33-04:00</updated>

		<published>2003-11-27T13:26:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30780#p30780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30780#p30780"/>
		<title type="html"><![CDATA[Re: tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30780#p30780"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>::fileutil::foreachLine line $basedir$section.txt {putquick "PRIVMSG $nick :\0039,1 $line \003"}</code></pre></div></div></blockquote>Use a different queue if you want those messages to have a lower priority. (puthelp or putserv)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Nov 27, 2003 1:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-26T18:39:55-04:00</updated>

		<published>2003-11-26T18:39:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30746#p30746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30746#p30746"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30746#p30746"><![CDATA[
its no lagg, after the script finished the bots respond  normal again.<p>Statistics: Posted by Guest — Wed Nov 26, 2003 6:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2003-11-26T10:10:46-04:00</updated>

		<published>2003-11-26T10:10:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30719#p30719</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30719#p30719"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30719#p30719"><![CDATA[
Maybe it goes to lagg?I had same problem, but not with this scipr, then after few days (i didnt do nothing) bot started to work well, like now...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Wed Nov 26, 2003 10:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-26T08:35:12-04:00</updated>

		<published>2003-11-26T08:35:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30713#p30713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30713#p30713"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30713#p30713"><![CDATA[
sorry to raise this topic again, but im searching for an solution for days now and i cant find anything helpful. <br>Is this behavior normal for an eggdrop?<br>perhaps someone could give me an hint where i can find out more about it.<p>Statistics: Posted by Guest — Wed Nov 26, 2003 8:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2003-11-24T22:43:45-04:00</updated>

		<published>2003-11-24T22:43:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30653#p30653</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30653#p30653"/>
		<title type="html"><![CDATA[tclscript blocks bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30653#p30653"><![CDATA[
the code:<div class="codebox"><p>Code: </p><pre><code>package require fileutilbind pub o|o !techtree techtreeset basedir /home/mutombo/eggdrop/scripts/tt/proc techtree {nick uhost hand chan args} {global basedirif {[string match physik [string tolower $args]]} {fileserv $nick $args}  if {[string match chemie [string tolower $args]]} {fileserv $nick $args}     if {[string match biologie [string tolower $args]]} {fileserv $nick $args}         if {[string match mechanik [string tolower $args]]} {fileserv $nick $args}            if {[string match architektur [string tolower $args]]} {fileserv $nick $args}               if {[string match wirtschaft [string tolower $args]]} {fileserv $nick $args}                  if {[string match taktik [string tolower $args]]} {fileserv $nick $args} else {                    putquick "PRIVMSG $nick :\0039,1 \[BORG\] Techtree interface .... \003"                    putquick "PRIVMSG $nick :\0039,1 Connecting ... \003"                    putquick "PRIVMSG $nick :\0039,1 Choose Subsection : physik, chemie, biologie, mechanik, architektur, wirtschaft, taktik \003"}}proc fileserv {nick section} {global basedir::fileutil::foreachLine line $basedir$section.txt {putquick "PRIVMSG $nick :\0039,1 $line \003"}}</code></pre></div>this little script reacts on a trigger with a special argument an then give out a file as private msg.<br><br>this is working, but as long as the bot puts out the file(sometimes over 20 lines) it doesnt respond to anything else.<br> No ping or dcc is working, but i can see that the bot gets the pingrequest in time, but he starts first answering when the tclscript is finished.<br><br>could someone give me some advice here waht im doing wrong ?<br><br>greetings mutombo<p>Statistics: Posted by Guest — Mon Nov 24, 2003 10:43 pm</p><hr />
]]></content>
	</entry>
	</feed>
