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

	<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-03-10T20:42:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-10T20:42:58-04:00</updated>

		<published>2004-03-10T20:42:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34437#p34437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34437#p34437"/>
		<title type="html"><![CDATA[a little help...to make my bot do an action]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34437#p34437"><![CDATA[
&lt;target&gt; is where you specify where you want the bot to do the action, be it a nickname, or a channel... However, don't include the &lt;&gt;'s...<br><br>And no, your if statement is not correct... you have not declared the variable "word" in the local scope of the procedure.. and there is no variable "hand" in your procedure either.<br><br>For a Tcl tutorial, concentrating on eggdrop scripting in particular, go to <a href="http://www.suninet.nl/tclguide" class="postlink">http://www.suninet.nl/tclguide</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Mar 10, 2004 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hwjchim]]></name></author>
		<updated>2004-03-10T20:29:26-04:00</updated>

		<published>2004-03-10T20:29:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34434#p34434</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34434#p34434"/>
		<title type="html"><![CDATA[a little help...to make my bot do an action]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34434#p34434"><![CDATA[
set word "dedicates"<br><br>bind notc - "*dedicates*" dance:notc<br><br>proc dance:notc {nick uhost handle text dest} {<br>#putlog "$nick $hand $chan $host $rest"<br><br>if { $hand == $word } {<br>    putserv "PRIVMSG &lt;i.put.my.channel.in.here&gt; :\001ACTION dances\001"<br>   }<br>}<br><br>putlog "- scottie's dancing script... loaded."<br><br>still no luck....<br>Strikelight, you said to put &lt;target&gt;<br>target = the channel  or the nick ?<br>And do I have this right?  if { $hand == $word } <br>or should it be if { $handle equal $word }   ?<br><br>Thanks<br>I changed it to this, still no luck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4674">hwjchim</a> — Wed Mar 10, 2004 8:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-03-10T20:03:41-04:00</updated>

		<published>2004-03-10T20:03:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34432#p34432</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34432#p34432"/>
		<title type="html"><![CDATA[a little help...to make my bot do an action]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34432#p34432"><![CDATA[
An Action on IRC is actually a CTCP, which in turn is just a PRIVMSG...<br><div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG &lt;target&gt; :\001ACTION dances\001"</code></pre></div>\001 is a character that signifies the start of a ctcp.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Wed Mar 10, 2004 8:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hwjchim]]></name></author>
		<updated>2004-03-10T14:54:36-04:00</updated>

		<published>2004-03-10T14:54:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=34420#p34420</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=34420#p34420"/>
		<title type="html"><![CDATA[a little help...to make my bot do an action]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=34420#p34420"><![CDATA[
Hey guys/gals.<br>I have a problem/question.<br>I'm trying to make my bot do a certain action.<br>I would like it to do /me starts dancing in the room<br>I want it to do that action whenever it sees the word "dedicates"<br><br>I have been trying and this is what i got (not working)<br><br>set word "dedicates"<br><br>bind notc - "*dedicates*" dance:notc<br><br>proc dance:notc {nick host hand chan rest} {<br>#putlog "$nick $hand $chan $host $rest"<br><br>if { $hand == $word } {<br>    putserv "USAGE /me starts dancing"<br>   }<br>}<br><br>putlog "- scottie's dancing script... loaded."<br><br>Thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4674">hwjchim</a> — Wed Mar 10, 2004 2:54 pm</p><hr />
]]></content>
	</entry>
	</feed>
