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

	<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>2001-12-04T13:13:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-04T13:13:00-04:00</updated>

		<published>2001-12-04T13:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2436#p2436</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2436#p2436"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2436#p2436"><![CDATA[
ok, i private messaged you the real purpose for the script :/<br>sorry <p>Statistics: Posted by Guest — Tue Dec 04, 2001 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-04T11:12:00-04:00</updated>

		<published>2001-12-04T11:12:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2424#p2424</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2424#p2424"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2424#p2424"><![CDATA[
I pasted that last example in, because I knew I was gonna get a reply like this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":sad:" title="Sad"><br><br>Out of all the posts you have made, there has been consistant string out text to extract, and no consistant text to leave behind.<br><br>Tcl is only as smart as you program it, as has no AI abilities, which looking at your needs, it would need to.<br><br>If I fail to see a post letting me know a real life example, rather that "this is a test" crap, I am goign to ignore it from now on, because this thread is going nowhere without such information.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Dec 04, 2001 11:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-04T08:23:00-04:00</updated>

		<published>2001-12-04T08:23:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2417#p2417</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2417#p2417"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2417#p2417"><![CDATA[
Thanks pslim.<br>but i know how to that. That script would echo all text said by someone.<br>e.g haha good-test yes<br>it echos that all.<br>i want to remove words haha and yes.<br>ofcourse good-test is still a chaning variable.<br>sorry to bother again =/<p>Statistics: Posted by Guest — Tue Dec 04, 2001 8:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-03T18:16:00-04:00</updated>

		<published>2001-12-03T18:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2397#p2397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2397#p2397"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2397#p2397"><![CDATA[
<blockquote class="uncited"><div>bind pubm - "*-TEST" test<br>proc test {nick uh hand chan arg} {<br>  puthelp "PRIVMSG $chan :${arg}"<br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Dec 03, 2001 6:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-03T17:51:00-04:00</updated>

		<published>2001-12-03T17:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2396#p2396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2396#p2396"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2396#p2396"><![CDATA[
sry if i dident make myself clear.<br>yes i know how to extract words that are known. extract a word that is chaning but has only one not chaning part.<br>in this case -TEST<br>like if. i.am-test.<br>it would need to echo i.am.test<br>i can make it echo that but i.am is a chaning variable. So would *-test output it?<p>Statistics: Posted by Guest — Mon Dec 03, 2001 5:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-03T16:27:00-04:00</updated>

		<published>2001-12-03T16:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2389#p2389</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2389#p2389"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2389#p2389"><![CDATA[
I am afraid I can't help with this script, as I still fail to see exactly what I need to extract.<br><br>1 min we are asked to extract certain words from one sentace, then the next another sentace, then back top the original sentace, not to montion your attitude.<br><br>Besides, the code allready pasted has the ability to axtract the words you need.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Mon Dec 03, 2001 4:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-03T08:25:00-04:00</updated>

		<published>2001-12-03T08:25:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2372#p2372</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2372#p2372"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2372#p2372"><![CDATA[
stdragon, ppslim?<br>please?<br><p>Statistics: Posted by Guest — Mon Dec 03, 2001 8:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-02T07:04:00-04:00</updated>

		<published>2001-12-02T07:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2314#p2314</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2314#p2314"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2314#p2314"><![CDATA[
<blockquote class="uncited"><div>On 2001-12-01 19:42, stdragon wrote:<br>The problem with your examples is that in the first one, you wanted only the word that contains the trigger. In the second one, you wanted the trigger, plus the two preceding words. With the information you have given, the computer can't know whether to extract 1, 2, 3, or more words.<br><br>So, you need to provide more information to the script, namely a "header" and a "trailer" for it to look for. "I NEED " would be your header, and "-TEST" would be your trailer.<br><div class="codebox"><p>Code: </p><pre><code>set header "I NEED "set trailer "-TEST"set text "I NEED HELP.HERE-TEST"set start [string first $header $text]if {$start &lt; 0} {return 0}set end [string first $trailer $text]if {$end &lt; 0} {return 0}incr start [string length $header]incr end -1if {$start &gt; $end} {return 0}set match [string range $text $start $end]</code></pre></div></div></blockquote><br>BUT <strong class="text-strong">I NEED</strong> HELP.HERE<strong class="text-strong">-TEST</strong><br>those that are bolded are NOT channing words, but HELP.HERE is an chaning part, so thats why i put it to trigger of from *-TEST<br>And i dont want it to output I NEED <br>thanks in advice<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: gnomes on 2001-12-02 04:08 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Sun Dec 02, 2001 7:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-12-01T22:42:00-04:00</updated>

		<published>2001-12-01T22:42:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2302#p2302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2302#p2302"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2302#p2302"><![CDATA[
The problem with your examples is that in the first one, you wanted only the word that contains the trigger. In the second one, you wanted the trigger, plus the two preceding words. With the information you have given, the computer can't know whether to extract 1, 2, 3, or more words.<br><br>So, you need to provide more information to the script, namely a "header" and a "trailer" for it to look for. "I NEED " would be your header, and "-TEST" would be your trailer.<br><div class="codebox"><p>Code: </p><pre><code>set header "I NEED "set trailer "-TEST"set text "I NEED HELP.HERE-TEST"set start [string first $header $text]if {$start &lt; 0} {return 0}set end [string first $trailer $text]if {$end &lt; 0} {return 0}incr start [string length $header]incr end -1if {$start &gt; $end} {return 0}set match [string range $text $start $end]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Dec 01, 2001 10:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-01T14:27:00-04:00</updated>

		<published>2001-12-01T14:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2293#p2293</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2293#p2293"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2293#p2293"><![CDATA[
ppslim;<br>well i cant tell the exact purpose for the script on public here.<br>the 'I NEED' IS same all the time(bot announce)<br>example:<br>user/bot announces: i am oh so nice that i will go to <strong class="text-strong">Mtv music awards</strong> at 1.1.2002 oh yes.<br><br>now i want the bot to cut all other expect <strong class="text-strong">Mtv music awards</strong> and output it to the channel. 'Mtv music awards' is a changing part expect for the last word(awards). In this case it is 'awards' so this explains why i putted ' set trigger "*-TEST" ' on the orignal code, in this case it would be: set trigger "*-awards"<br><br>thanks again<p>Statistics: Posted by Guest — Sat Dec 01, 2001 2:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-01T14:03:00-04:00</updated>

		<published>2001-12-01T14:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2291#p2291</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2291#p2291"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2291#p2291"><![CDATA[
But the "I NEED" is part of the text before "-TEST".<br><br>How do you know that it is gonna be "I NEED" every time?<br><br>Do you just want to strip the first 2 words?<br><br>What is some1 types "I NEED TO GET SOME HELP.HERE-TEST"?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Dec 01, 2001 2:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-01T13:13:00-04:00</updated>

		<published>2001-12-01T13:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2289#p2289</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2289#p2289"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2289#p2289"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set trigger "*-TEST"bind pubm - * checkproc check {nick uhost hand chan text} {    global trigger     if {[validuser $hand]} {                        if {[string match -nocase $trigger $text]} {            putchan $chan "$text"</code></pre></div>This script echos if some says like:<br>I NEED HELP.HERE-TEST<br>it echos that, BUT i want to cut <br>'I NEED' away from the echo! so that it echo's all text before -TEST as HELP.HERE-TEST.<br><br>Thanks in advice<br><br><p>Statistics: Posted by Guest — Sat Dec 01, 2001 1:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-01T13:00:00-04:00</updated>

		<published>2001-12-01T13:00:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2287#p2287</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2287#p2287"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2287#p2287"><![CDATA[
It would be better if you pasted you code here, as it would help understand what you are trying to do.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sat Dec 01, 2001 1:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-01T12:14:00-04:00</updated>

		<published>2001-12-01T12:14:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2285#p2285</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2285#p2285"/>
		<title type="html"><![CDATA[TCL script help :)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2285#p2285"><![CDATA[
Well i have been making a script that does this: <br>example: <br>Gnome says: I am cool<br>bot echoes: cool<br><br>the thing is that i want it to only echo one string of a line. the string will chance tho.<br>i managed to get it echo all fine but i havnt found a way to filter 'I am' away!<br><br>Any suggestions?<p>Statistics: Posted by Guest — Sat Dec 01, 2001 12:14 pm</p><hr />
]]></content>
	</entry>
	</feed>
