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

	<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>2005-05-08T12:27:02-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2005-05-08T12:27:02-04:00</updated>

		<published>2005-05-08T12:27:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49208#p49208</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49208#p49208"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49208#p49208"><![CDATA[
[quote="De Kus"<br>if { [clock format [unixtime] -format %a] != "Sun" } { return }<br><br>sounds much shorter, easier and faster to me ^-^.[/quote]<br><br>Two things... first he said "monday or tuesday" so maybe he wants to expand it to be if {$day != "Mon" &amp;&amp; $day != "Tue"} return, which I think is easier when you provide him with a nice little variable called $day. Second... shorter and faster... surely you're not trying to optimize a single line of code that takes less than 1/100000 of a second and only runs once a day!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun May 08, 2005 12:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2005-05-08T11:51:04-04:00</updated>

		<published>2005-05-08T11:51:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49204#p49204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49204#p49204"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49204#p49204"><![CDATA[
strftime to the rescue<div class="codebox"><p>Code: </p><pre><code>if ![string match [strftime %a] "Sun"] return</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Sun May 08, 2005 11:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-05-08T05:14:36-04:00</updated>

		<published>2005-05-08T05:14:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49192#p49192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49192#p49192"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49192#p49192"><![CDATA[
<blockquote class="uncited"><div>set day [lindex [split [clock format [clock seconds]]] 0]<br>if {$day != "Sun"} return </div></blockquote>if { [clock format [unixtime] -format %a] != "Sun" } { return }<br><br>sounds much shorter, easier and faster to me ^-^.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun May 08, 2005 5:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-05-08T04:53:52-04:00</updated>

		<published>2005-05-08T04:53:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49190#p49190</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49190#p49190"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49190#p49190"><![CDATA[
perfect thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Sun May 08, 2005 4:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2005-05-08T00:46:19-04:00</updated>

		<published>2005-05-08T00:46:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49185#p49185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49185#p49185"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49185#p49185"><![CDATA[
No but you can bind to a specific time like 2am every day, then at the top of your proc put:<br><br>set day [lindex [split [clock format [clock seconds]]] 0]<br>if {$day != "Sun"} return<br><br>$day will be Sun, Mon, Tue, Wed, Thu, Fri, Sat so you can easily check to see if it's not the right day.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sun May 08, 2005 12:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-05-07T21:23:39-04:00</updated>

		<published>2005-05-07T21:23:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=49183#p49183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=49183#p49183"/>
		<title type="html"><![CDATA[bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=49183#p49183"><![CDATA[
Can you make it so that with bind time that it executes every monday or tuesday or well you get the point.<br><br>-Erik<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Sat May 07, 2005 9:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
