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

	<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>2012-03-12T14:54:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2012-03-12T14:54:01-04:00</updated>

		<published>2012-03-12T14:54:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99011#p99011</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99011#p99011"/>
		<title type="html"><![CDATA[On Text Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99011#p99011"><![CDATA[
yeah that worked, cheers username and caesar! appreciate it very much!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Mon Mar 12, 2012 2:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-03-12T09:00:02-04:00</updated>

		<published>2012-03-12T09:00:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99008#p99008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99008#p99008"/>
		<title type="html"><![CDATA[On Text Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99008#p99008"><![CDATA[
replace:<div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan +monitorText]} { </code></pre></div>with:<div class="codebox"><p>Code: </p><pre><code>if {![channel get $chan monitorText]} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Mar 12, 2012 9:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2012-03-12T06:57:49-04:00</updated>

		<published>2012-03-12T06:57:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99007#p99007</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99007#p99007"/>
		<title type="html"><![CDATA[On Text Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99007#p99007"><![CDATA[
Oh and I did get this error<br><br><div class="codebox"><p>Code: </p><pre><code>[11:52:01] Tcl error [monitorProc]: Unknown channel setting.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Mon Mar 12, 2012 6:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2012-03-12T06:47:32-04:00</updated>

		<published>2012-03-12T06:47:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99006#p99006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99006#p99006"/>
		<title type="html"><![CDATA[On Text Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99006#p99006"><![CDATA[
hey username,<br><br>Thanks for the reply and the effort &amp; time.<br><br>I've tested the script, once with a sentences using 10 times " , "<br><br>once with a line containing two times " ; "<br><br>and once with a sentence using " XI "<br><br><br>I've set the flag +monitorText on the channel I wanted it to monitor #World<br><br>I've set the sub channel as #Staff<br><br>And it didn't relay anything from #world to #staff<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Mon Mar 12, 2012 6:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2012-03-12T06:18:34-04:00</updated>

		<published>2012-03-12T06:18:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99004#p99004</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99004#p99004"/>
		<title type="html"><![CDATA[On Text Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99004#p99004"><![CDATA[
Try it:<div class="codebox"><p>Code: </p><pre><code># Channel flag.setudef flag monitorText# Subchannel.set subchannel #subchannel# Bind all text in all channels.bind pubm - * monitorProcproc monitorProc {nick uhost hand chan text} {global subchannel    # Check channel flag.    if {![channel get $chan +monitorText]} {        return 0    }    # Check text for matching values.    if {[string match "*,*,*,*,*,*,*,*,*,*,*" $text] || [string match "*;*;*" $text] || [string match "*XI*" $text]} {        # Send matching text to subchannel.        putserv "PRIVMSG $subchannel :$text"    }}</code></pre></div>I didnt text this code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Mon Mar 12, 2012 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2012-03-11T04:25:00-04:00</updated>

		<published>2012-03-11T04:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=98999#p98999</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=98999#p98999"/>
		<title type="html"><![CDATA[On Text Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=98999#p98999"><![CDATA[
Hey, I need a rather simple script (I think its simple).<br><br>I need a script that will be set on certain channels via flag (lets say .chanset #channel +monitorText)<br><br>The script will 'monitor' that channel (a main channel) and will look for:<br><br>A Line that contains 10 commas<br>example:<br><br>Alan, Howard, Toni, Joe, Robert, Laurent, Michael, Ronnie, Mounty, Spark, Yellow<br><br>AND / OR<br><br>A line that contains two ';'<br><br>example:<br><br>Joe; Robert; Tony<br><br>AND / OR<br><br>a line that contains the phrase 'XI':<br><br>Example: my top XI movies are: Matrix, Harry Potter...<br><br>And if it matches one of these conditions, the bot will auto-message that line matching one or more of these conditions to a sub channel, lets say '#subchannel'<br><br><br>Please help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Sun Mar 11, 2012 4:25 am</p><hr />
]]></content>
	</entry>
	</feed>
