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

	<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-02-04T06:36:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2011-02-04T06:36:11-04:00</updated>

		<published>2011-02-04T06:36:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95945#p95945</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95945#p95945"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95945#p95945"><![CDATA[
<blockquote class="uncited"><div>How do I set it to relay the whole line in case my trigger is "*Hello*"?<br>I only got it to relay from that word and on, and not the whole sentence</div></blockquote><div class="codebox"><p>Code: </p><pre><code>"*add word here*|*|notice #channelnamehere :Relay: &lt;%n %c&gt;%i %2"</code></pre></div>All you need to do is add %2 shows in code above<br><br>Look at this part of the script<div class="codebox"><p>Code: </p><pre><code># add as little, or as many as you want but you # MUST use the format described above! # You also have a few variables to use # %b - will be replaced with $::botnick (bots current nickname) # %n - will be replaced with $nick (person triggering) # %c - will be replaced with $chan (channel triggered in) # %u - will be replaced with $uhost (person triggering unique host) # %h - will be replaced with $hand (person triggering handle) # %i - will be replaced with user $input (entire thing) # %i1 - will be replaced with user $input (just the first word) # %i2 - will be replaced with user $input (second to last words) # below are merely some examples. </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Fri Feb 04, 2011 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2011-02-04T05:56:20-04:00</updated>

		<published>2011-02-04T05:56:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95944#p95944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95944#p95944"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95944#p95944"><![CDATA[
How do I set it to relay the whole line in case my trigger is "*Hello*"?<br>I only got it to relay from that word and on, and not the whole sentence<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Fri Feb 04, 2011 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blake]]></name></author>
		<updated>2011-02-03T19:43:26-04:00</updated>

		<published>2011-02-03T19:43:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95939#p95939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95939#p95939"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95939#p95939"><![CDATA[
Ther is a script that will do this it was written by speechless action missile script relays set words to a channel containing the whole sentence<br><br><div class="codebox"><p>Code: </p><pre><code># Multi-Bind Messaging (the easy way to do this) # AKA, PutServ-O-Matic v1.0 # by speechles (w/help from egghelp! yay!) # Construct your triggers|channel|message # here using the format below: # "TRIGGER|#CHANNEL|METHOD AND MESSAGE" # add as little, or as many as you want but you # MUST use the format described above! # You also have a few variables to use # %b - will be replaced with $::botnick (bots current nickname) # %n - will be replaced with $nick (person triggering) # %c - will be replaced with $chan (channel triggered in) # %u - will be replaced with $uhost (person triggering unique host) # %h - will be replaced with $hand (person triggering handle) # %i - will be replaced with user $input (entire thing) # %i1 - will be replaced with user $input (just the first word) # %i2 - will be replaced with user $input (second to last words) # below are merely some examples. variable mycommands {   "*add word here*|*|notice #channelnamehere :Relay: &lt;%n %c&gt;%i"   "*add word here*|*|notice #channelnamehere :Relay: &lt;%n %c&gt;%i"   } # Script begins - change nothing below here bind pubm -|- "*" mycommands_proc proc mycommands_proc {nick uhand hand chan input} {    foreach item $::mycommands {       set trig [lindex [split $item \|] 0]       regsub -all -nocase {%b} $trig $::botnick trig       regsub -all -nocase {%n} $trig $nick trig       regsub -all -nocase {%c} $trig $chan trig       regsub -all -nocase {%u} $trig $uhand trig       regsub -all -nocase {%h} $trig $hand trig       regsub -all -nocase {%i1} $trig [lindex [split $input] 1] trig       regsub -all -nocase {%i2} $trig [join [lrange [split $input] 2 end]]] trig       regsub -all -nocase {%i} $trig [join [lrange [split $input] 1 end]]] trig       if {[string match -nocase $trig $input]} {          if {[string match -nocase [lindex [split $item \|] 1] $chan]} {             set message [join [lrange [split $item \|] 2 end]]             regsub -all -nocase {%b} $message $::botnick message             regsub -all -nocase {%n} $message $nick message             regsub -all -nocase {%c} $message $chan message             regsub -all -nocase {%u} $message $uhand message             regsub -all -nocase {%h} $message $hand message             regsub -all -nocase {%i1} $message [lindex [split $input] 1] message             regsub -all -nocase {%i2} $message [join [lrange [split $input] 2 end]]] message             regsub -all -nocase {%i} $message [join [lrange [split $input] 1 end]]] message             putserv "$message"          }       }    } } putlog "Multi-bind messaging with action missles script loaded." </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10512">blake</a> — Thu Feb 03, 2011 7:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2011-02-03T11:25:36-04:00</updated>

		<published>2011-02-03T11:25:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95936#p95936</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95936#p95936"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95936#p95936"><![CDATA[
How is that done?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Thu Feb 03, 2011 11:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2011-02-03T06:29:22-04:00</updated>

		<published>2011-02-03T06:29:22-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95931#p95931</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95931#p95931"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95931#p95931"><![CDATA[
No you need to copy the entire code then change 'hello' in every spot then edit the waves hello to $nick. to what you want the word to say.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Thu Feb 03, 2011 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2011-02-03T03:47:07-04:00</updated>

		<published>2011-02-03T03:47:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95930#p95930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95930#p95930"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95930#p95930"><![CDATA[
hey cache, thanks for the reply<br>Three questions:<br><br>A. If I want to add other words, do I just add the following lines?<div class="codebox"><p>Code: </p><pre><code>bind pubm - "word1" pub_word1 bind pubm - "word*" pub_word2 </code></pre></div>B. The second question is, I want it to relay the whole sentence that matches the certain text.<br><br>like &lt;User&gt; oh hello there!<br>PRIVMSG $channel : "oh hello there"<br><br>how is that done?<div class="codebox"><p>Code: </p><pre><code>putquick "PRIVMSG $channel :\001ACTION waves hello to $nick.\001"</code></pre></div>C. Third question, I want it to match text that are written only in a specific channel called #BigToe, otherwise it won't relay it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Thu Feb 03, 2011 3:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2011-02-02T15:39:02-04:00</updated>

		<published>2011-02-02T15:39:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95916#p95916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95916#p95916"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95916#p95916"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc pub_hello {nick uhost hand channel arg} {  global botnick  putquick "PRIVMSG $channel :\001ACTION waves hello to $nick.\001"  return 0}bind pubm - "*hello*" pub_hello</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Wed Feb 02, 2011 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2011-02-02T15:12:31-04:00</updated>

		<published>2011-02-02T15:12:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95914#p95914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95914#p95914"/>
		<title type="html"><![CDATA[Relay Script - On certain text matches]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95914#p95914"><![CDATA[
Hi I looked through the TCL archieve, found a few relay scripts, however couldn't find a relay script that only relays specific text match messages what you can set a list of text matches like "Hello" or "*school*" and it will only relay the match text lines.<br><br>Anyone up to it please?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Wed Feb 02, 2011 3:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
