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

	<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>2022-06-25T15:55:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2022-06-25T15:55:34-04:00</updated>

		<published>2022-06-25T15:55:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111181#p111181</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111181#p111181"/>
		<title type="html"><![CDATA[Re: Read random file line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111181#p111181"><![CDATA[
<blockquote class="uncited"><div>From <a href="http://forum.egghelp.org/viewtopic.php?t=20572" class="postlink">http://forum.egghelp.org/viewtopic.php?t=20572</a> (Thanks willyw:)</div></blockquote>Wow ...  I sure recognized the style!    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">     But I'd totally forgotten it.   <br><br>Thank YOU for posting it and the link to that thread.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Jun 25, 2022 3:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2022-06-25T13:08:59-04:00</updated>

		<published>2022-06-25T13:08:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111180#p111180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111180#p111180"/>
		<title type="html"><![CDATA[Read random file line]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111180#p111180"><![CDATA[
Here's something quite basic to work with...<br><br>From <a href="http://forum.egghelp.org/viewtopic.php?t=20572" class="postlink">http://forum.egghelp.org/viewtopic.php?t=20572</a> (Thanks willyw:)<div class="codebox"><p>Code: </p><pre><code># Jan 11, 2019# http://forum.egghelp.org/viewtopic.php?t=20572## Real simple... just want any user to be able to type !topic making the bot pull a random line from the topic.txt file and post to the channel# with "Your topic is..." preceding the line.#######################################################################  config   #### set the path/filename to the topic.txt fileset topicfile "scripts/added/experiment_for_somebody/random_line_from_file/topic.txt"### end config ###bind pub - "!topic" random_line#####proc random_line {nick uhost handle chan text} {global topicfile        if {![file exists $topicfile]} {                putserv "privmsg $chan :Sorry $nick, but $topicfile doesn't exist"                return 0        }        # reference : http://forum.egghelp.org/viewtopic.php?t=6885        set fp [open $topicfile "r"]        set data [read -nonewline $fp]        close $fp        set lines [split $data "\n"]        set numlines [llength $lines]        set num [rand $numlines]        set randline [lindex $lines $num]        putserv "privmsg $chan :Your topic is: $randline"}#####</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat Jun 25, 2022 1:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2022-06-25T07:31:46-04:00</updated>

		<published>2022-06-25T07:31:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111179#p111179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111179#p111179"/>
		<title type="html"><![CDATA[Re: Markov Chain'ish Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111179#p111179"><![CDATA[
Anything here that will do what you want?<br><br><a href="http://tclarchive.org/search.php?Quote" class="postlink">http://tclarchive.org/search.php?Quote</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Jun 25, 2022 7:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Rash]]></name></author>
		<updated>2022-06-24T20:22:51-04:00</updated>

		<published>2022-06-24T20:22:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=111178#p111178</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=111178#p111178"/>
		<title type="html"><![CDATA[Markov Chain'ish Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=111178#p111178"><![CDATA[
A longtime IRC Friend recently died and I would love to honor his memory by having a bot that spouts out a sentence or two based off of what he previously has said.<br><br>I am sure this already exists.  I was thinking of a trigger such as Andrew?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12956">Rash</a> — Fri Jun 24, 2022 8:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
