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

	<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-06-22T01:50:48-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-06-21T19:15:29-04:00</updated>

		<published>2006-06-21T19:15:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64256#p64256</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64256#p64256"/>
		<title type="html"><![CDATA[random line from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64256#p64256"><![CDATA[
And don't forget to close the file.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jun 21, 2006 7:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SaPrOuZy]]></name></author>
		<updated>2006-06-22T01:50:48-04:00</updated>

		<published>2006-06-21T14:49:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64252#p64252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64252#p64252"/>
		<title type="html"><![CDATA[random line from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64252#p64252"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - !foo barproc bar {nick uhost hand chan rest} {    set file [open "txt_file_path" r]     set data [split [read $file] "\n"]    set line [lindex $data [rand [llength $data]]]    putserv "privmsg $chan : $line"    close $file}</code></pre></div>EDIT: Code fixed, thx Sir_Fz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4727">SaPrOuZy</a> — Wed Jun 21, 2006 2:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[whittinghamj]]></name></author>
		<updated>2006-06-20T01:34:03-04:00</updated>

		<published>2006-06-20T01:34:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=64214#p64214</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=64214#p64214"/>
		<title type="html"><![CDATA[random line from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=64214#p64214"><![CDATA[
Hey guys. I have a script request. I just looked over the forums but could not put my hands on a post that covers this already.<br><br>Anyways. I have a text file which is formatted like this.<br><div class="codebox"><p>Code: </p><pre><code>Name: info URL: www.url.com[quote]What i need is someone to type say !sites and the script goes off and picks randomy a line from the txt file and pastes it to the channel.No security needed and I am adding the sites already by trigger.Any help would be great.Thanks[/quote]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7783">whittinghamj</a> — Tue Jun 20, 2006 1:34 am</p><hr />
]]></content>
	</entry>
	</feed>
