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

	<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>2004-10-09T08:49:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2004-10-09T08:49:48-04:00</updated>

		<published>2004-10-09T08:49:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41700#p41700</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41700#p41700"/>
		<title type="html"><![CDATA[Re: Help with a chat script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41700#p41700"><![CDATA[
<blockquote class="uncited"><div>lol, ok, different question, since i solved my last one, lets say i have this bot in two different channels, how could i make it ONLY talk in #chat, and not in #trivia?, is there a thing like mirc where if ( $chan == #chat )? if so let me know, and if not help me out please</div></blockquote>It can be:<br>if {([string equal -nocase "#chat" $chan])} { # do stuff }<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Oct 09, 2004 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-10-09T01:10:16-04:00</updated>

		<published>2004-10-09T01:10:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41694#p41694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41694#p41694"/>
		<title type="html"><![CDATA[Help with a chat script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41694#p41694"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set pubchan "#mychan"proc PublicMSG {nick uhost hand chan rest} {global botnick commandpath initfile pubchan  if {[string tolower $nick] == [string tolower $botnick]} {return 0}  elseif ($chan == $chan(one) {  regsub -all {\"} $rest {} rest  set f [open "|$commandpath -i $initfile -s name $nick -u $nick \"$rest\"" "r"]  putchan $pubchan $nick [gets $f]  while {[eof $f] != 1} { putchan $pubchan [gets $f] }  }  close $f}</code></pre></div>I didn't test the code for syntax or error, but using some basic structure rules in your procedures helps alot.  If you haven't read <a href="http://www.suninet.nl/tclguide/" class="postlink">this tclguide</a> yet, you're missin out  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Sat Oct 09, 2004 1:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mark]]></name></author>
		<updated>2004-10-08T13:25:51-04:00</updated>

		<published>2004-10-08T13:25:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41687#p41687</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41687#p41687"/>
		<title type="html"><![CDATA[Help with a chat script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41687#p41687"><![CDATA[
can ya help me with this? i thought i got it, but it didnt work.<br><div class="codebox"><p>Code: </p><pre><code>proc PublicMSG {nick uhost hand chan rest} {global botnickglobal commandpathglobal initfile#make sure the bot doesn't talk to himself.  if {[string tolower $nick] == [string tolower $botnick]} {    return 0  }  elseif ($chan == $chan(one) {  regsub -all {\"} $rest {} rest  set f [open "|$commandpath -i $initfile -s name $nick -u $nick \"$rest\"" "r"]  putchann $chan $nick [gets $f]  while {[eof $f] != 1} {    putchan $chan [gets $f]  }  }  close $f}</code></pre></div>any idea's?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5519">Mark</a> — Fri Oct 08, 2004 1:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2004-10-08T11:27:19-04:00</updated>

		<published>2004-10-08T11:27:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41682#p41682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41682#p41682"/>
		<title type="html"><![CDATA[Help with a chat script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41682#p41682"><![CDATA[
tcl makes creating variables simplistic.<div class="codebox"><p>Code: </p><pre><code>set chatchan "#channel1"</code></pre></div>It would be more helpful to direct you to the <a href="http://www.suninet.nl/tclguide/index.php?chap=5&amp;pg=1" class="postlink">suninet tclguide</a>, an invaluable beginner's resource.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Fri Oct 08, 2004 11:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Mark]]></name></author>
		<updated>2004-10-08T09:48:40-04:00</updated>

		<published>2004-10-08T09:48:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=41672#p41672</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=41672#p41672"/>
		<title type="html"><![CDATA[Help with a chat script plz]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=41672#p41672"><![CDATA[
lol, ok, different question, since i solved my last one, lets say i have this bot in two different channels, how could i make it ONLY talk in #chat, and not in #trivia?, is there a thing like mirc where if ( $chan == #chat )? if so let me know, and if not help me out please<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5519">Mark</a> — Fri Oct 08, 2004 9:48 am</p><hr />
]]></content>
	</entry>
	</feed>
