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

	<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>2010-04-11T16:15:21-04:00</updated>

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

		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-04-11T16:15:21-04:00</updated>

		<published>2010-04-11T16:15:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92805#p92805</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92805#p92805"/>
		<title type="html"><![CDATA[read file randomly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92805#p92805"><![CDATA[
i'm using this proc <div class="codebox"><p>Code: </p><pre><code>proc readfile {min hour day month year} {    global filenews    foreach chan [channels] {    if {[channel get $chan randnews]} {    set file [open $filenews r]    set data [read $file]    close $file    set lines [split $data \n]    set randline [lindex $lines [rand [llength $lines]]]     putserv "PRIVMSG $chan :$randline"     }    } }</code></pre></div>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Sun Apr 11, 2010 4:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-04-11T12:42:24-04:00</updated>

		<published>2010-04-11T12:42:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92802#p92802</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92802#p92802"/>
		<title type="html"><![CDATA[read file randomly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92802#p92802"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_arrow.gif" width="15" height="15" alt=":arrow:" title="Arrow"> try Search feature. or just look at the other forums  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_idea.gif" width="15" height="15" alt=":idea:" title="Idea"> <br><br> The post your after is here <a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">http://forum.egghelp.org/viewtopic.php?t=6885</a> under TCL Help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Apr 11, 2010 12:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[raider2k]]></name></author>
		<updated>2010-04-11T12:41:55-04:00</updated>

		<published>2010-04-11T12:41:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92801#p92801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92801#p92801"/>
		<title type="html"><![CDATA[read file randomly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92801#p92801"><![CDATA[
after you read all of a files content into a list:<br><div class="codebox"><p>Code: </p><pre><code>set output [lindex $filecontent [rand [llength $filecontent]]]putserv "PRIVMSG $channel :$output"</code></pre></div>should do the trick, at least did it for me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9589">raider2k</a> — Sun Apr 11, 2010 12:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[neoclust]]></name></author>
		<updated>2010-04-11T10:52:32-04:00</updated>

		<published>2010-04-11T10:52:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=92799#p92799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=92799#p92799"/>
		<title type="html"><![CDATA[read file randomly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=92799#p92799"><![CDATA[
I have a file called bd.dat containing "x" lines, how to read a one line of randomly thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10812">neoclust</a> — Sun Apr 11, 2010 10:52 am</p><hr />
]]></content>
	</entry>
	</feed>
