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

	<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-12-07T18:47:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-12-07T18:47:27-04:00</updated>

		<published>2005-12-07T18:47:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58057#p58057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58057#p58057"/>
		<title type="html"><![CDATA[bind time all 4 h]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58057#p58057"><![CDATA[
No need to trim and no need to use expr inside the if statement.<blockquote class="uncited"><div>.tcl if {04%4 == 0} { putlog yes }<br>[23:50] yes</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 07, 2005 6:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-12-07T17:49:45-04:00</updated>

		<published>2005-12-07T17:49:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58055#p58055</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58055#p58055"/>
		<title type="html"><![CDATA[bind time all 4 h]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58055#p58055"><![CDATA[
<blockquote class="uncited"><div>You probably mean something like that?! Use your brain, all your hours have a remainder of 0 if you divide them by 4 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<div class="codebox"><p>Code: </p><pre><code>bind time - "00 *" myprocproc myproc {min h d m y} {   if {[expr {$h % 4}] == 0} {      ...   }}</code></pre></div></div></blockquote>Yes,thx De Kus.<br>I use my brain and i see your error  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"> <br><br>The good code is <br><div class="codebox"><p>Code: </p><pre><code>if {[expr {[string trimleft $h 0] % 4}] == 0} {      ...   }</code></pre></div>thx  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Wed Dec 07, 2005 5:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-12-07T16:24:53-04:00</updated>

		<published>2005-12-07T16:24:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58050#p58050</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58050#p58050"/>
		<title type="html"><![CDATA[bind time all 4 h]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58050#p58050"><![CDATA[
You probably mean something like that?! Use your brain, all your hours have a remainder of 0 if you divide them by 4 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">.<div class="codebox"><p>Code: </p><pre><code>bind time - "00 *" myprocproc myproc {min h d m y} {   if {[expr {$h % 4}] == 0} {      ...   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Dec 07, 2005 4:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-12-07T15:51:00-04:00</updated>

		<published>2005-12-07T15:51:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58048#p58048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58048#p58048"/>
		<title type="html"><![CDATA[bind time all 4 h]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58048#p58048"><![CDATA[
timer ? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Wed Dec 07, 2005 3:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ranny]]></name></author>
		<updated>2005-12-07T15:08:12-04:00</updated>

		<published>2005-12-07T15:08:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=58047#p58047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=58047#p58047"/>
		<title type="html"><![CDATA[bind time all 4 h]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=58047#p58047"><![CDATA[
Hello,<br><br>I want to send a message in a channel all 4 hours.<br><br>I have this code<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 00 *" myprocbind time - "00 04 *" myprocbind time - "00 08 *" myprocbind time - "00 12 *" myprocbind time - "00 16 *" myprocbind time - "00 20 *" myproc</code></pre></div>There's a more simple solution, shorter  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question"> <br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6386">ranny</a> — Wed Dec 07, 2005 3:08 pm</p><hr />
]]></content>
	</entry>
	</feed>
