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

	<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>2007-04-10T12:29:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[prassel]]></name></author>
		<updated>2007-04-09T19:54:22-04:00</updated>

		<published>2007-04-09T19:54:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71967#p71967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71967#p71967"/>
		<title type="html"><![CDATA[[solved] catch a word in a sentance and /me command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71967#p71967"><![CDATA[
sry but i dont understand at all  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br><br>i've figured it out now, thx<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - "*&lt;word&gt;*" &lt;procname&gt;proc &lt;procname&gt; {nick host hand chan text} { putserv "privmsg $chan :\001ACTION slaps $nick \001"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8894">prassel</a> — Mon Apr 09, 2007 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-04-09T19:42:32-04:00</updated>

		<published>2007-04-09T19:42:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71966#p71966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71966#p71966"/>
		<title type="html"><![CDATA[[solved] catch a word in a sentance and /me command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71966#p71966"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind ctcp - "ACTION" action_procproc action_bind { nick uhost hand dest keyword text } {      if {[string index $dest 0] != "#"} { return 0 }  }</code></pre></div></div></blockquote>The condition checks if the first character of $dest is '#' (meaning if it is a channel name). $text is the text you want to match from, so you can use something like<div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase "*dogs*" $text]} { # dogs is in $text}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Apr 09, 2007 7:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prassel]]></name></author>
		<updated>2007-04-09T18:43:06-04:00</updated>

		<published>2007-04-09T18:43:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71965#p71965</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71965#p71965"/>
		<title type="html"><![CDATA[[solved] catch a word in a sentance and /me command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71965#p71965"><![CDATA[
i didnt get any wiser by reading tcl-commands.doc about ctcp :/<br>but i did get the other thing to find the words and reply, thx.<br><br>but what should the ACTION be? the text i write in the channel or something else? im lost  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"><br><br><br>hmm i think im getting close now, found this after googling<br><a href="http://www.baschny.de/eggdrop/faq/faq-f.html" class="postlink">http://www.baschny.de/eggdrop/faq/faq-f.html</a><br><div class="codebox"><p>Code: </p><pre><code>bind ctcp - "ACTION" action_procproc action_bind { nick uhost hand dest keyword text } {       if {[string index $dest 0] != "#"} { return 0 }  }</code></pre></div>$dest should be $chan, that i know.<br><br>what is the reply text and what is the trigger text?<br>and what is the "#" for?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8894">prassel</a> — Mon Apr 09, 2007 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-04-09T17:43:36-04:00</updated>

		<published>2007-04-09T17:43:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71964#p71964</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71964#p71964"/>
		<title type="html"><![CDATA[[solved] catch a word in a sentance and /me command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71964#p71964"><![CDATA[
You need yo use the pubm bind and not pub bind. Read Tcl-commands.doc about both binds (pub does not accept wildcards in its mask).<br><br>As for actions, actions are CTCPs so you should use a bind like<div class="codebox"><p>Code: </p><pre><code>bind ctcp - ACTION yourporc</code></pre></div>Read about the ctcp bind in Tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Apr 09, 2007 5:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[prassel]]></name></author>
		<updated>2007-04-10T12:29:35-04:00</updated>

		<published>2007-04-09T13:01:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=71961#p71961</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=71961#p71961"/>
		<title type="html"><![CDATA[[solved] catch a word in a sentance and /me command]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=71961#p71961"><![CDATA[
i cant get the bot to catch a word with my script. someone know what im doing wrong?<br><br>function: catch the word 'dogs' and send "dogs?! WHERE?!" to the channel that 'fubu' was written in.<br><div class="codebox"><p>Code: </p><pre><code>bind pub - "% *dogs*" askDogsproc askDogs {nick host hand chan text} { putserv "privmsg $chan :dogs?! WHERE?!"}  </code></pre></div>also could someone tell me what the /me command is in tcl?<br>cant find it anywhere, or im searching on the wrong words :/<br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8894">prassel</a> — Mon Apr 09, 2007 1:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
