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

	<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>2011-03-26T13:35:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Amr]]></name></author>
		<updated>2011-03-26T13:35:04-04:00</updated>

		<published>2011-03-26T13:35:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96552#p96552</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96552#p96552"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96552#p96552"><![CDATA[
What about adding more , for example !shoot it will be "bot shoots $who"<br>!kill ..etc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9309">Amr</a> — Sat Mar 26, 2011 1:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2011-01-20T19:01:04-04:00</updated>

		<published>2011-01-20T19:01:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95744#p95744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95744#p95744"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95744#p95744"><![CDATA[
lol was <a href="http://www.reddit.com/search?q=close+enough" class="postlink">close enough</a> arg today, arg<strong class="text-strong">s</strong> tomorrow maybe <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Jan 20, 2011 7:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[speechles]]></name></author>
		<updated>2011-01-20T18:42:26-04:00</updated>

		<published>2011-01-20T18:42:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95743#p95743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95743#p95743"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95743#p95743"><![CDATA[
Actually, arg is fine. It's the word  "A R G S" or args, which has special meaning. Just to clarify that part. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8138">speechles</a> — Thu Jan 20, 2011 6:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2011-01-20T18:24:36-04:00</updated>

		<published>2011-01-20T18:24:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95742#p95742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95742#p95742"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95742#p95742"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub_water {nick uhost hand channel arg} { </code></pre></div> should be <div class="codebox"><p>Code: </p><pre><code>proc pub_water {nick uhost hand channel text} { </code></pre></div> <strong class="text-strong">arg</strong> is special. and remenber to use <div class="codebox"><p>Code: </p><pre><code>[lindex [split $text] 0]</code></pre></div> <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=8130">TCL_no_TK</a> — Thu Jan 20, 2011 6:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Melkimo]]></name></author>
		<updated>2011-01-19T20:03:05-04:00</updated>

		<published>2011-01-19T20:03:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95735#p95735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95735#p95735"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95735#p95735"><![CDATA[
Yea that works ! Thanks<br><br>Is it possible to make the same !command in private with the bot but sending the output to a specified channel?<br><br>Like<br><br><em class="text-italics">/msg &lt;bot&gt; !beer Nadine #channel<br>And it responds in<br>#channel &lt;botnick&gt; /me gives Nadine a beer</em><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11506">Melkimo</a> — Wed Jan 19, 2011 8:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[doggo]]></name></author>
		<updated>2011-01-19T14:11:50-04:00</updated>

		<published>2011-01-19T14:11:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95734#p95734</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95734#p95734"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95734#p95734"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !water pub_waterproc pub_water {nick uhost hand channel arg} { set who [lindex $arg 0]if {$who == ""} {set who $nick}putserv "PRIVMSG $channel :\001ACTION gives $who a bottle of water\001" }[05:58pm] &lt;doggo&gt; !water[05:58pm] * [spunky] gives doggo a bottle of water[05:58pm] &lt;doggo&gt; !water [spunky][05:58pm] * [spunky] gives [spunky] a bottle of water[06:00pm] &lt;doggo&gt; !water nadine[06:00pm] * [spunky] gives nadine a bottle of water</code></pre></div><div class="codebox"><p>Code: </p><pre><code>set who [lindex $arg 0]sets the VAR who to the nick you want to give water to</code></pre></div><div class="codebox"><p>Code: </p><pre><code>if {$who == ""} {set who $nick}if who is empty then your nick or whoever triggered the cmd will be used</code></pre></div><br>hope this helped<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11046">doggo</a> — Wed Jan 19, 2011 2:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Melkimo]]></name></author>
		<updated>2011-01-19T12:25:27-04:00</updated>

		<published>2011-01-19T12:25:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95732#p95732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95732#p95732"/>
		<title type="html"><![CDATA[how to make a bot respond to !&lt;something&gt;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95732#p95732"><![CDATA[
<em class="text-italics"> @Melkimo&gt; !beer nadine<br> * +SecsyDiva gives a beer to nadine</em><br><br>atm it says:  <em class="text-italics">* +SecsyDiva gives a beer to Melkimo</em><br><br>I am looking for how to make the bot respond to !(something) &lt;nick refered too) message<br>But at this point I got to where it responds to the nick saying the !something (and ignores the $nick it should respond too)<br><div class="codebox"><p>Code: </p><pre><code>proc pub_water {nick uhost hand channel arg} { global botnick putserv "PRIVMSG $channel :\001ACTION gives $nick a bottle of water\001" return 0 }bind pub - !water pub_water</code></pre></div>What should I change or add to make this work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>It should be easy, but uhmm yea, I am looking over it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11506">Melkimo</a> — Wed Jan 19, 2011 12:25 pm</p><hr />
]]></content>
	</entry>
	</feed>
