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

	<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>2006-01-29T19:29:06-04:00</updated>

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

		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-29T19:29:06-04:00</updated>

		<published>2006-01-29T19:29:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59916#p59916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59916#p59916"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59916#p59916"><![CDATA[
Argh, sure. Now its working. Thanks a lot.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Jan 29, 2006 7:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-29T19:13:27-04:00</updated>

		<published>2006-01-29T19:13:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59915#p59915</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59915#p59915"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59915#p59915"><![CDATA[
You need to match on <strong class="text-strong">$n</strong> instead of <strong class="text-strong">$nick</strong>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 29, 2006 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-29T19:08:59-04:00</updated>

		<published>2006-01-29T19:08:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59914#p59914</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59914#p59914"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59914#p59914"><![CDATA[
But now I want that the bot only reacts when the BRenBot write "wtf".<blockquote class="uncited"><div>(@BRenBot) darton: wtf<br>(%Bot) darton got ownt.</div></blockquote><blockquote class="uncited"><div>(@Darton) darton: wtf<br>(%Bot) darton got ownt.</div></blockquote>Here the bot shouldn't react. <br>Why does this script not work?<div class="codebox"><p>Code: </p><pre><code>bind pubm - * owntproc ownt {n u h c a} { set nick [lindex [split $a] 0] set word [lindex [split $a] 1] set nick [stripcodes bcruag $nick] if {[string equal -nocase "BRenBot" $nick]} { if {[string equal -nocase wtf $word]} {  puthelp "privmsg $c :!msg [string trimright $nick :] got ownt." } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Jan 29, 2006 7:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-29T11:08:11-04:00</updated>

		<published>2006-01-29T11:08:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59905#p59905</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59905#p59905"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59905#p59905"><![CDATA[
I changed it to this and its working now<div class="codebox"><p>Code: </p><pre><code>bind pubm - * owntproc ownt {n u h c a} { set nick [lindex [split $a] 0] set word [lindex [split $a] 1] set nick [stripcodes bcruag $nick] if {[string equal -nocase wtf $word]} {  puthelp "privmsg $c :!msg [string trimright $nick :] got ownt." }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Jan 29, 2006 11:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-29T10:34:43-04:00</updated>

		<published>2006-01-29T10:34:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59903#p59903</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59903#p59903"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59903#p59903"><![CDATA[
Read Tcl-commands.doc about the [stripcodes] command.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 29, 2006 10:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-29T09:46:42-04:00</updated>

		<published>2006-01-29T09:46:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59901#p59901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59901#p59901"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59901#p59901"><![CDATA[
With Sir_Fz's Script it looks like this:<blockquote class="uncited"><div>(@BRenBot) <span style="color:red">darton</span>: wtf<br>(%Bot) <span style="color:red">darton </span>got ownt.</div></blockquote>But it should look like this:<blockquote class="uncited"><div>(@BRenBot) <span style="color:red">darton</span>: wtf<br>(%Bot) darton got ownt.</div></blockquote>What do I have to change?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Jan 29, 2006 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-29T08:11:45-04:00</updated>

		<published>2006-01-29T08:11:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59899#p59899</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59899#p59899"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59899#p59899"><![CDATA[
Hey its really working. But there is a problem. As my channel is connected with a game and I want that the message will be displayed in the game too I must change the script to: "!msg [string trimright $nick :] got ownt". The message is also displayed in game but it is displayed as: "⁭⁭⁭[]08[]Darton[][] got ownt. <br>I think the bot transfer my nick with the formatting because the players are displayed in channel in yellow or in red colour.<br>So is it possible to change the script so that the bot doesn't transfer the formatting?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sun Jan 29, 2006 8:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-28T21:13:44-04:00</updated>

		<published>2006-01-28T21:13:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59879#p59879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59879#p59879"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59879#p59879"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pubm - * owntproc ownt {n u h c a} { set nick [lindex [split $a] 0] set word [lindex [split $a] 1] if {[string equal -nocase wtf $word]} {  puthelp "privmsg $c :[string trimright $nick :] got ownt" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 28, 2006 9:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-28T19:29:18-04:00</updated>

		<published>2006-01-28T19:29:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59869#p59869</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59869#p59869"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59869#p59869"><![CDATA[
<blockquote class="uncited"><div>(@BRenBot) darton: wtf<br>(%Bot) darton got ownt.</div></blockquote>Thats the way the channel displays the users. And with your script the bot wouldnt say "darton got ownt".<br><blockquote class="uncited"><div>(@darton) wtf<br>(%Bot) darton got ownt.</div></blockquote>Here your script works. But it should work in the first case.<br>It must look like this:<div class="codebox"><p>Code: </p><pre><code>bind pubm - *$read: wtf" wtfproc wtf {nick host hand chan rest} {  puthelp "privmsg $chan :$read got ownt."}</code></pre></div>But the $read is wrong. I look for a command that makes the bot look what is written before a colon and repeat it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sat Jan 28, 2006 7:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-01-28T19:13:46-04:00</updated>

		<published>2006-01-28T19:13:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59863#p59863</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59863#p59863"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59863#p59863"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - wtf owntproc ownt {n u h c a} { puthelp "privmsg $c :$n got ownt"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jan 28, 2006 7:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darton]]></name></author>
		<updated>2006-01-28T18:28:37-04:00</updated>

		<published>2006-01-28T18:28:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=59855#p59855</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=59855#p59855"/>
		<title type="html"><![CDATA[Bot should read and repeat something]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=59855#p59855"><![CDATA[
Hello!<blockquote class="uncited"><div>BreakFstO: WTF</div></blockquote>When this appears in mIRC my bot should answer for example: "BreakFstO got ownt." But the name isnt always the same. So my bot must read every name before a colon and repeat the same name in its answer. Is that possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7270">darton</a> — Sat Jan 28, 2006 6:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
