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

	<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>2004-11-24T16:55:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-24T16:55:10-04:00</updated>

		<published>2004-11-24T16:55:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43090#p43090</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43090#p43090"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43090#p43090"><![CDATA[
I did not wrote the script, but I editted it to use it with my own rss feed.<p>Statistics: Posted by Guest — Wed Nov 24, 2004 4:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-11-24T12:26:15-04:00</updated>

		<published>2004-11-24T12:26:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43072#p43072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43072#p43072"/>
		<title type="html"><![CDATA[Weird]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43072#p43072"><![CDATA[
You wrote the script, but fail to make minor changes to it? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_surprised.gif" width="15" height="15" alt=":o" title="Surprised"><br>Something smells fishy...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Nov 24, 2004 12:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-24T12:02:50-04:00</updated>

		<published>2004-11-24T12:02:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43071#p43071</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43071#p43071"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43071#p43071"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Hehe, you should have noticed that I'm a newb when it's about TCL scripting.</div></blockquote>yes... but i didn't notice that you are a newb when it's about reading as well <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"></div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_redface.gif" width="15" height="15" alt=":oops:" title="Embarassed"> oops!<br><br>However... I've changed several things but everything is resulting in errors. If you know the solution to my problem, can you please give it to me?<br><br>Greetz<p>Statistics: Posted by Guest — Wed Nov 24, 2004 12:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-11-23T11:37:50-04:00</updated>

		<published>2004-11-23T11:37:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=43032#p43032</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=43032#p43032"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=43032#p43032"><![CDATA[
<blockquote class="uncited"><div>Hehe, you should have noticed that I'm a newb when it's about TCL scripting.</div></blockquote>yes... but i didn't notice that you are a newb when it's about reading as well <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Tue Nov 23, 2004 11:37 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-22T07:07:44-04:00</updated>

		<published>2004-11-22T07:07:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42970#p42970</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42970#p42970"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42970#p42970"><![CDATA[
Hehe, you should have noticed that I'm a newb when it's about TCL scripting.<br>Ah well, I will try some things to make it work!<br><br>You will probably hear from me <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by Guest — Mon Nov 22, 2004 7:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arcane]]></name></author>
		<updated>2004-11-22T05:17:40-04:00</updated>

		<published>2004-11-22T05:17:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42966#p42966</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42966#p42966"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42966#p42966"><![CDATA[
well... user's code wasn't meant to show anything - it was just an example on how to do it yourself <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><br><blockquote class="uncited"><div># valid item - extract title + link and incr your counter </div></blockquote>you should read what you are supposed to do <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2617">arcane</a> — Mon Nov 22, 2004 5:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-22T03:45:33-04:00</updated>

		<published>2004-11-22T03:45:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42962#p42962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42962#p42962"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42962#p42962"><![CDATA[
Correct me if i'm wrong, but the loop resulted in no reply of the bot.<br>I've changed this code:<div class="codebox"><p>Code: </p><pre><code>  foreach line [split $data \n] {    regsub -all "\\&amp;" $line "\\\\&amp;" line    if {[regexp "&lt;item&gt;" $line]} { set item 1 }    if {[regexp "&lt;/item&gt;" $line]} { set item 0 }    if {$item == 1} {      regexp "&lt;title&gt;(.*)&lt;/title&gt;" $line trash eboozdata(titel,$count)      if {[regexp "&lt;link&gt;(.*)&lt;/link&gt;" $line trash eboozdata(link,$count)]} { incr count }    }  }</code></pre></div>Into this:<div class="codebox"><p>Code: </p><pre><code>foreach item [regexp -all -inline {&lt;item.*?&lt;/item&gt;} $data] {   if {[string match "*&lt;title&gt;*&lt;/title&gt;*&lt;link&gt;*&lt;/link&gt;*" $item]} {      # valid item - extract title + link and incr your counter   }}</code></pre></div>The bot sees the trigger, but isn't displaying anything on the channel. Also when I do first the closing check it has the same problem.<br><br>Any other suggestions?<p>Statistics: Posted by Guest — Mon Nov 22, 2004 3:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2004-11-19T11:03:27-04:00</updated>

		<published>2004-11-19T11:03:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42887#p42887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42887#p42887"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42887#p42887"><![CDATA[
in your xml you have "&lt;/item&gt;&lt;item&gt;" and you do:<blockquote class="uncited"><div>if {[regexp "&lt;item&gt;" $line]} { set item 1 }<br>if {[regexp "&lt;/item&gt;" $line]} { set item 0 }</div></blockquote>Either add a linebreak between the closing/opening item tags in the xml or do the closing check first in your tcl.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><br>...or you could avoid the whole problem by doing the loop like this instead:<div class="codebox"><p>Code: </p><pre><code>foreach item [regexp -all -inline {&lt;item.*?&lt;/item&gt;} $data] {if {[string match "*&lt;title&gt;*&lt;/title&gt;*&lt;link&gt;*&lt;/link&gt;*" $item]} {# valid item - extract title + link and incr your counter}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Nov 19, 2004 11:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2004-11-19T10:20:49-04:00</updated>

		<published>2004-11-19T10:20:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=42885#p42885</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=42885#p42885"/>
		<title type="html"><![CDATA[Bot is not showing more than one headline]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=42885#p42885"><![CDATA[
Hello people,<br><br>I'm trying to set up my own IRC bot. Usually that's no problem but currently I've some problems with my own script.<br><br>I would like to set up the bot so it will post a title and a link of new news posts on my website to IRC.<br><br>I'm using this RSS Feed: <a href="http://www.ebooz.nl/rss.php" class="postlink">http://www.ebooz.nl/rss.php</a> <br>and this TCL script: <a href="http://www.ebooz.nl/ebooz_tcl.txt" class="postlink">http://www.ebooz.nl/ebooz_tcl.txt</a> (on my server with the tcl extension ofcourse).<br><br>The main problem I have is that the bot isn't displaying more than one headline when someone uses a trigger. Even if I set "ebooz(headlines)" to 3.<br><br>I don't get any errors in the console of the eggdrop.<br><br>Can somebody help me with this problem? Thanks in advance <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by Guest — Fri Nov 19, 2004 10:20 am</p><hr />
]]></content>
	</entry>
	</feed>
