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

	<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>2010-07-08T15:07:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2010-07-08T15:02:59-04:00</updated>

		<published>2010-07-08T15:02:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93480#p93480</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93480#p93480"/>
		<title type="html"><![CDATA[bind time [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93480#p93480"><![CDATA[
Thanks, you guys rock!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Thu Jul 08, 2010 3:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-07-08T10:56:23-04:00</updated>

		<published>2010-07-08T10:56:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93476#p93476</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93476#p93476"/>
		<title type="html"><![CDATA[bind time [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93476#p93476"><![CDATA[
<blockquote class="uncited"><div>With the new 1.6.20rc1, you could use bind cron instead of bind time which simplifies the job.<br><br>Example: bind cron - "00 09 * * 01,04" your_proc<br><br>This will trigger every Monday and Thursday at 9AM.</div></blockquote>Hey, hey!    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br>This is news!<br>I didn't even know there was a newer version of Eggdrop out.   You caused me to go look, and I found it was dated just yesterday.<br><br>Reminds me of this thread that I started, some time ago:<br><a href="http://forum.egghelp.org/viewtopic.php?t=17477" class="postlink">http://forum.egghelp.org/viewtopic.php?t=17477</a><br><br>Thank you for mentioning it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jul 08, 2010 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pseudo]]></name></author>
		<updated>2010-07-08T03:31:10-04:00</updated>

		<published>2010-07-08T03:31:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93474#p93474</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93474#p93474"/>
		<title type="html"><![CDATA[bind time [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93474#p93474"><![CDATA[
With the new 1.6.20rc1, you could use bind cron instead of bind time which simplifies the job.<br><br>Example: bind cron - "00 09 * * 01,04" your_proc<br><br>This will trigger every Monday and Thursday at 9AM.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10974">pseudo</a> — Thu Jul 08, 2010 3:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2010-07-08T02:15:56-04:00</updated>

		<published>2010-07-08T02:15:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93473#p93473</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93473#p93473"/>
		<title type="html"><![CDATA[Re: bind time]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93473#p93473"><![CDATA[
<blockquote class="uncited"><div>Need help with bind time, trying to get the bot to say something every monday and thursday at 9am.<br><br>day is a zero padded two digit integer 01 through 31 representing day of the month. <br><br>Does this mean I need to make a proc for every month since the days aren't the same for each month? Like the 15th could be monday for one month then next month it could be tuesday. Not an issue if I have to, just wonder if there is a short way?<br><br>Thanks</div></blockquote>How about using bind time to run a proc every day at 9:00, and within that proc check to see if today is Monday or Thursday?<br><br>Something like this:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "* 09 * * *" time_demoproc time_demo {min hour day month year} {  if {"[strftime %A]"=="Monday"} {##  commands to say what you want to say on Monday go here}  if {"[strftime %A]"=="Thursday"} {#commands to say what you want to say on Thursday go here}}</code></pre></div><br>References:<br><a href="http://www.baschny.de/eggdrop/faq/faq-f.html" class="postlink">http://www.baschny.de/eggdrop/faq/faq-f.html</a><br>and find the section on  bind time<br><br>tcl-commands.doc   for   strftime  command,  and also:<br><a href="http://linux.about.com/library/cmd/blcmdl3_strftime.htm" class="postlink">http://linux.about.com/library/cmd/blcmdl3_strftime.htm</a><br>for a nice list of the formats.<br><br>I'm half asleep...  I hope I got it right.    With some quick testing, as best I could, ... it worked. <br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Jul 08, 2010 2:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cache]]></name></author>
		<updated>2010-07-08T15:07:34-04:00</updated>

		<published>2010-07-07T15:04:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93470#p93470</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93470#p93470"/>
		<title type="html"><![CDATA[bind time [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93470#p93470"><![CDATA[
Need help with bind time, trying to get the bot to say something every monday and thursday at 9am.<br><br>day is a zero padded two digit integer 01 through 31 representing day of the month. <br><br>Does this mean I need to make a proc for every month since the days aren't the same for each month? Like the 15th could be monday for one month then next month it could be tuesday. Not an issue if I have to, just wonder if there is a short way?<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7220">cache</a> — Wed Jul 07, 2010 3:04 pm</p><hr />
]]></content>
	</entry>
	</feed>
