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

	<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>2014-07-19T13:13:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-07-19T13:13:52-04:00</updated>

		<published>2014-07-19T13:13:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103018#p103018</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103018#p103018"/>
		<title type="html"><![CDATA[How to ignore channel messages with a specific phrase?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103018#p103018"><![CDATA[
Or maybe more like this, cleaned up a little...<div class="codebox"><p>Code: </p><pre><code>set goodchan "#daigo"bind pubm - * good:msgproc good:msg {nick host hand chan txt} {  set txt [string tolower $txt]  if {$chan ne $::goodchan || $nick eq "daigo" || $txt eq "good morning!"} {    return 0  }  if {[string match "*good morning*" $txt]} {     puthelp "PRIVMSG $chan :the sun is up"   }   return 0 }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jul 19, 2014 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-19T11:29:22-04:00</updated>

		<published>2014-07-19T11:29:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103017#p103017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103017#p103017"/>
		<title type="html"><![CDATA[How to ignore channel messages with a specific phrase?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103017#p103017"><![CDATA[
Oops  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> Thank you Spike<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Sat Jul 19, 2014 11:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-07-19T11:23:55-04:00</updated>

		<published>2014-07-19T11:23:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103016#p103016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103016#p103016"/>
		<title type="html"><![CDATA[How to ignore channel messages with a specific phrase?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103016#p103016"><![CDATA[
Because you did not change the var name to fit into your proc:)<br><div class="codebox"><p>Code: </p><pre><code>set goodchan "#daigo" bind pubm - * good:msg proc good:msg {nick host hand chan arg} { global goodchan  if {[string tolower $arg] eq "good morning!"} {  return 0  } if {[string match -nocase "*good morning*" $arg] &amp;&amp; $chan == $goodchan &amp;&amp; $nick != "daigo"} {  puthelp "PRIVMSG $goodchan :the sun is up"  return 0  } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jul 19, 2014 11:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-19T11:17:12-04:00</updated>

		<published>2014-07-19T11:17:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103015#p103015</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103015#p103015"/>
		<title type="html"><![CDATA[How to ignore channel messages with a specific phrase?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103015#p103015"><![CDATA[
I get a TCL error:<blockquote class="uncited"><div>Tcl error [good:msg]: can't read "txt": no such variable</div></blockquote>This is the code I am using:<br><div class="codebox"><p>Code: </p><pre><code>set goodchan "#daigo"bind pubm - * good:msgproc good:msg {nick host hand chan arg} {global goodchan if {[string match -nocase "*good morning*" $arg] &amp;&amp; $chan == $goodchan &amp;&amp; $nick != "daigo"} { puthelp "PRIVMSG $goodchan :the sun is up" return 0 }}</code></pre></div><blockquote class="uncited"><div></div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Sat Jul 19, 2014 11:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2014-07-19T11:07:23-04:00</updated>

		<published>2014-07-19T11:07:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103014#p103014</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103014#p103014"/>
		<title type="html"><![CDATA[How to ignore channel messages with a specific phrase?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103014#p103014"><![CDATA[
Put something like this into the proc that does the replying...<div class="codebox"><p>Code: </p><pre><code>if {$txt eq "good morning!"} {  return 0  }</code></pre></div>Then do the channel reply after this line.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jul 19, 2014 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[daigo]]></name></author>
		<updated>2014-07-19T04:54:35-04:00</updated>

		<published>2014-07-19T04:54:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103013#p103013</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103013#p103013"/>
		<title type="html"><![CDATA[How to ignore channel messages with a specific phrase?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103013#p103013"><![CDATA[
My bot responds to any phrase with "good morning" in it said by a user in a channel with "the sun is up" (so if a user said in the channel, "today is a good morning" my bot would still respond with "the sun is up").<br><br>How would I make it so that if a user says "good morning!" (with an exclamation point after the letter 'g'), my bot doesn't respond to this message and just ignores it?<br><br>I would like to know how to do this in general with any phrase.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12410">daigo</a> — Sat Jul 19, 2014 4:54 am</p><hr />
]]></content>
	</entry>
	</feed>
