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

	<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>2002-10-10T05:16:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sirkrunch]]></name></author>
		<updated>2002-10-10T05:16:13-04:00</updated>

		<published>2002-10-10T05:16:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11860#p11860</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11860#p11860"/>
		<title type="html"><![CDATA[a little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11860#p11860"><![CDATA[
thanx alot <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>cleared that all up<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2010">sirkrunch</a> — Thu Oct 10, 2002 5:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2002-10-09T23:38:29-04:00</updated>

		<published>2002-10-09T23:38:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11854#p11854</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11854#p11854"/>
		<title type="html"><![CDATA[Procs]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11854#p11854"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind PUB - test script:pubproc script:pub {nick uhost hand chan text} {</code></pre></div>In this cause with a trigger of PUB the proc will automaticly pick up the $nick $uhost $hand $chan $text. In this case:<br> $nick = person that triggered the command<br> $uhost = the host of the person that triggered the command<br> $hand = (if the next is on user file) the scripts will make the $hand the nick that is used in the user file) eg: I triggered with nick <strong class="text-strong">ThePop</strong> bot the bot knows I am <strong class="text-strong">ThePope</strong> from the user file so it sets $hand <strong class="text-strong">ThePope</strong><br> $chan = the channels where the command is triggered<br> $test = anything after the wrote <strong class="text-strong">test <a href="http://www.eggdrop.org" class="postlink">www.eggdrop.org</a></strong> would set $text to <strong class="text-strong"><a href="http://www.egghelp.org" class="postlink">www.egghelp.org</a></strong><br><div class="codebox"><p>Code: </p><pre><code>bind MSG - test script:msgproc script:msg {nick uhost hand text} {</code></pre></div>In this case there is no $chan set in the proc, for that the bot dont know what chan it came from cause it was a msg and not a pubil command<br> $nick = person the triggered the command<br> $uhost = the host of the person that triggered the command<br> $hand = (if the next is on user file) the scripts will make the $hand the nick that is used in the user file) eg: I triggered with nick <strong class="text-strong">ThePop</strong> bot the bot knows I am <strong class="text-strong">ThePope</strong> from the user file so it sets $hand <strong class="text-strong">ThePope</strong><br>  $test = anything after the wrote <strong class="text-strong">test <a href="http://www.eggdrop.org" class="postlink">www.eggdrop.org</a></strong> would set $text to <strong class="text-strong"><a href="http://www.egghelp.org" class="postlink">www.egghelp.org</a></strong><br><br>Hope that helps you out.. Also aways look at tcl-command.doc that is located in you /eggdrop/docs.<br>------------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Wed Oct 09, 2002 11:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sirkrunch]]></name></author>
		<updated>2002-10-09T20:05:26-04:00</updated>

		<published>2002-10-09T20:05:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11852#p11852</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11852#p11852"/>
		<title type="html"><![CDATA[a little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11852#p11852"><![CDATA[
another question<br>why <br>{ nick host hand text }<br>whats it mean and why do you need it?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2010">sirkrunch</a> — Wed Oct 09, 2002 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-09T06:24:26-04:00</updated>

		<published>2002-10-09T06:24:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11830#p11830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11830#p11830"/>
		<title type="html"><![CDATA[a little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11830#p11830"><![CDATA[
$text is the text that comes after the !info command... (i.e !info this is just a little note)<br><br>u have to make the $filename variable global<br>also maybe u have to set the $filename to the dir to where u are storing the file... i.e set filename "/home/eggdrop/text/NewInformation.info"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Oct 09, 2002 6:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sirkrunch]]></name></author>
		<updated>2002-10-09T05:04:06-04:00</updated>

		<published>2002-10-09T05:04:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11829#p11829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11829#p11829"/>
		<title type="html"><![CDATA[a little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11829#p11829"><![CDATA[
don't i need to set $text?<br><br>and does the rest of the code look fine?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2010">sirkrunch</a> — Wed Oct 09, 2002 5:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2002-10-09T04:17:44-04:00</updated>

		<published>2002-10-09T04:17:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11828#p11828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11828#p11828"/>
		<title type="html"><![CDATA[a little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11828#p11828"><![CDATA[
1.<div class="codebox"><p>Code: </p><pre><code>proc writefile { &lt;not sure what to have here&gt; } { </code></pre></div>here u should have<div class="codebox"><p>Code: </p><pre><code>proc writefile {nick host hand text} {</code></pre></div>2.<div class="codebox"><p>Code: </p><pre><code>puts $WriteFile "&lt;not sure how to but the text after !note in here&gt;" </code></pre></div>put in what u want, in your case u should have<div class="codebox"><p>Code: </p><pre><code>puts $WriteFile $text</code></pre></div>I suggest u take a look at the tcl-commands.doc in the /doc dir of your eggdrop...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Wed Oct 09, 2002 4:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sirkrunch]]></name></author>
		<updated>2002-10-09T02:41:53-04:00</updated>

		<published>2002-10-09T02:41:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=11827#p11827</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=11827#p11827"/>
		<title type="html"><![CDATA[a little help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=11827#p11827"><![CDATA[
i'm wanting to write info to a file<br>this is what I have so far<br><br>set filename NewInformation.info<br><br>bind msg - "!info*" writefile<br><br>proc writefile { &lt;not sure what to have here&gt; } {<br>set WriteFile [open $filename w]<br>puts $WriteFile "&lt;not sure how to but the text after !note in here&gt;"<br>close $WriteFile<br>}<br><br>can some1 help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2010">sirkrunch</a> — Wed Oct 09, 2002 2:41 am</p><hr />
]]></content>
	</entry>
	</feed>
