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

	<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>2002-03-30T10:03:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-30T10:03:00-04:00</updated>

		<published>2002-03-30T10:03:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5788#p5788</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5788#p5788"/>
		<title type="html"><![CDATA[Random line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5788#p5788"><![CDATA[
That works perfectly...<br><br>Many thanks to you.<br><p>Statistics: Posted by Guest — Sat Mar 30, 2002 10:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-29T12:45:00-04:00</updated>

		<published>2002-03-29T12:45:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5774#p5774</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5774#p5774"/>
		<title type="html"><![CDATA[Random line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5774#p5774"><![CDATA[
Not dead sure if this is what you can use, but it works for me. If its just grabbing a random line (for say an 8ball or something) you can use this.  You can put the lines you want to pick from into the tcl and let this do the rest. hope it works for ya.<br><br><br>bind pub - !randomc pub_random<br><br>proc pub_random {nick mask hand channel args} {<br>   global blah<br>   puthelp "PRIVMSG $channel :[lindex $blah [rand [llength $blah]]]"<br>   }<br><br>set blah {<br>"text1 blah blah"<br>"text2 blahdeblah"<br>"text3 thingymabob"<br>}<br><br>&lt;font size=-1&gt;[ This Message was edited by: thetorpor on 2002-03-29 09:45 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Fri Mar 29, 2002 12:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-29T01:04:00-04:00</updated>

		<published>2002-03-29T01:04:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5767#p5767</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5767#p5767"/>
		<title type="html"><![CDATA[Random line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5767#p5767"><![CDATA[
im wondering that too.. i have the code to read a random line from a file here, but its locating the file im having trouble with.<br>its in my botdir in the text folder. how'd i access that if it was say text.txt?<br><br>thanks..<br><p>Statistics: Posted by Guest — Fri Mar 29, 2002 1:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-28T09:35:00-04:00</updated>

		<published>2002-03-28T09:35:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5746#p5746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5746#p5746"/>
		<title type="html"><![CDATA[Random line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5746#p5746"><![CDATA[
Is there a script that when triggered by a certain word in the channel, the bot will read a random line from a text file and say it in the channel?<br><br>Thanks<p>Statistics: Posted by Guest — Thu Mar 28, 2002 9:35 am</p><hr />
]]></content>
	</entry>
	</feed>
