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

	<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>2013-09-22T10:14:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2013-09-22T10:14:34-04:00</updated>

		<published>2013-09-22T10:14:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102053#p102053</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102053#p102053"/>
		<title type="html"><![CDATA[Quote of the day]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102053#p102053"><![CDATA[
I guess there are numeous ways of doing this.<br>The first that comes to mind for me though, would be to store a "quote id generation timestamp", and generate a new quote or "quote-id" if the timestamp is too old...<br><br>A simple example would look like this<div class="codebox"><p>Code: </p><pre><code>proc someproc {} {  set now [clock scan "today 00:00"]  if {![info exists ::QuoteTimestamp] || $::QuoteTimestamp &lt;= $now} {    #Generate new quote here...    set ::QuoteTimestamp $now  }  #Send the quote to the channel}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Sun Sep 22, 2013 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kaj]]></name></author>
		<updated>2013-09-22T05:14:57-04:00</updated>

		<published>2013-09-22T05:14:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102051#p102051</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102051#p102051"/>
		<title type="html"><![CDATA[Quote of the day]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102051#p102051"><![CDATA[
Hey everyone,<br><br>I've a script that's able to fetch a quote from a MySQL database, with the command !quote.<br><br>But now I'd like to have something like !quoteoftheday, which returns a quote, which will return the same quote all this day long (selected randomly ofcourse).<br><br>So that it returns a different quote everyday.<br><br>How can I do this?<br><br>~Kaj<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12278">Kaj</a> — Sun Sep 22, 2013 5:14 am</p><hr />
]]></content>
	</entry>
	</feed>
