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

	<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>2002-11-28T19:01:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-28T19:01:09-04:00</updated>

		<published>2002-11-28T19:01:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13749#p13749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13749#p13749"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13749#p13749"><![CDATA[
Tcl-commands.doc states quite clearly how this bind works.<br><br>You state the exact time fo day, or a mask of when it should be called.<br><br>However, using basic math, and a if-elseif-else statement, you can control more precily what time it is triggered.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Thu Nov 28, 2002 7:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-11-28T16:50:33-04:00</updated>

		<published>2002-11-28T16:50:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13745#p13745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13745#p13745"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13745#p13745"><![CDATA[
Ok, how would i use the time bind to make it execute the script every minute, or 2 minutes?<br><br>using proc-name min hour day month year,<br><br>would 2 0 0 0 0 make it execute every 2 minutes, or everytime the clock hit 2 minutes past whatever?<br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Thu Nov 28, 2002 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-25T19:54:45-04:00</updated>

		<published>2002-11-25T19:54:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13610#p13610</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13610#p13610"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13610#p13610"><![CDATA[
If you make timers or stacking binds in your script, you should do something like this:<br><div class="codebox"><p>Code: </p><pre><code>if {![info exists yourscript_loaded]} {  set yourscript_loaded 1  utimer 5 someproc  bind pubm - * blah}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Nov 25, 2002 7:54 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Zsac]]></name></author>
		<updated>2002-11-25T18:41:05-04:00</updated>

		<published>2002-11-25T18:41:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13609#p13609</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13609#p13609"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13609#p13609"><![CDATA[
don't you guys want to watch for spawning extra timers on a rehash? the script bits i'm seeing would all spawn extra timers. :^/<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2209">Zsac</a> — Mon Nov 25, 2002 6:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-24T11:31:14-04:00</updated>

		<published>2002-11-24T11:31:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13549#p13549</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13549#p13549"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13549#p13549"><![CDATA[
I think you would be better off using the time bind.<br><br>This will prvent the duplication fo timers.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Nov 24, 2002 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-11-23T12:28:49-04:00</updated>

		<published>2002-11-23T12:28:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=13516#p13516</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=13516#p13516"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=13516#p13516"><![CDATA[
I have finally got this working, i dont know why i was being so thick before. Anyway, i just wanted to know if this script would need anything in it to stop it creating more timers during a rehash. Ive seen a post about it before but i wasnt sure if it would apply in this case, and if it would, how do i deal with it?<br><br>ty<br><br>Simon<br><blockquote class="uncited"><div>proc nickbell {} {<br> if { [onchan bell #InfinitY] == 1 } {<br>  file copy -force irconline.jpg /home/simonbell/www/html/irc/infinity/peopleonline/bellircdisplay.jpg<br>  }<br> if { [onchan bell #InfinitY] == 0 } {<br>  file copy -force ircoffline.jpg /home/simonbell/www/html/irc/infinity/peopleonline/bellircdisplay.jpg<br>  }<br> timer 1 nickbell<br>}<br>utimer 5 nickbell</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Sat Nov 23, 2002 12:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-06T14:17:21-04:00</updated>

		<published>2002-11-06T14:17:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12896#p12896</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12896#p12896"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12896#p12896"><![CDATA[
I am guessing he is trying to automate this process.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 06, 2002 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[darko``]]></name></author>
		<updated>2002-11-06T14:06:23-04:00</updated>

		<published>2002-11-06T14:06:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12894#p12894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12894#p12894"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12894#p12894"><![CDATA[
One fine day about 8 years ago 'weed' saw the light of the day.<br><br>tclsh scripts/weed<br><br>and check the options. ( +n - not seen n number of days )<br><br>&gt;:&gt; muahahah<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1881">darko``</a> — Wed Nov 06, 2002 2:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-06T05:56:24-04:00</updated>

		<published>2002-11-06T05:56:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12884#p12884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12884#p12884"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12884#p12884"><![CDATA[
Damn - In plain english, you can't get any simpler.<br><br>Working with timers, is no different to normal Tcl. There is nothing strange about the command.<br><br>Instructions for doing this.<br><br>Create your proc as normal, which will call other procs, collect data from files and whatever else. Do not do anything with timers yet.<br><br>Next, you need to call the proc once, outside of this proc, so that it get it's first start. Without doing this, you have a proc sitting there doing nothing.<br><br>Next, inside the proc, the last line should become a call the the proc again, just like the starting line, but this time, it should be insode the timer command, so it's triggered after time, and not right away.<br><br>This being said. You said in a prvious reply "do I replace 'call code' with  this". In a way yes. Keeping the same format as I posted, you simply need only change the 'call code' line with your commands.<br><br>Beyond codeing it for you, which I have allready done, there is nothing more we can say.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Wed Nov 06, 2002 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-11-05T20:47:48-04:00</updated>

		<published>2002-11-05T20:47:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12875#p12875</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12875#p12875"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12875#p12875"><![CDATA[
to be honest, i am now completely confused.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Tue Nov 05, 2002 8:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-05T20:34:37-04:00</updated>

		<published>2002-11-05T20:34:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12873#p12873</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12873#p12873"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12873#p12873"><![CDATA[
No, you have to call "timer_test" in the timer.<br><br>Look it's very simple:<br><br>set timer for timer_test<br>timer_test called by timer: send notice, set timer for timer_test<br>timer_test called by timer: send notice, set timer for timer_test<br>timer_test called by timer: send notice, set timer for timer_test<br>...<br><br>see?<br><br>The key is you have to call a function, and the function has to create a timer to call itself, not put the command in the utimer.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Nov 05, 2002 8:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-11-05T20:22:32-04:00</updated>

		<published>2002-11-05T20:22:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12872#p12872</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12872#p12872"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12872#p12872"><![CDATA[
Thats what ive been doing, it was in my script in the first post.<br><blockquote class="uncited"><div>proc timer_test {type} {<br> utimer 10 {<br>  putnotc bell "test"<br>  }<br> utimer 1 timer_test<br>}</div></blockquote>The first timer works and outputs the notice 10 seconds after the bot has finished loading. The second timer which i took from the script above doesnt appear to work though<br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Tue Nov 05, 2002 8:22 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-11-05T16:35:03-04:00</updated>

		<published>2002-11-05T16:35:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12867#p12867</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12867#p12867"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12867#p12867"><![CDATA[
You have to "jump start" the loop by setting the first timer yourself. Otherwise, the proc will never be called and therefore it can't create the next timer.<br><br>Another method would be to call the proc once, rather than create a timer to call it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Tue Nov 05, 2002 4:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[simonbell]]></name></author>
		<updated>2002-11-05T16:33:12-04:00</updated>

		<published>2002-11-05T16:33:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12866#p12866</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12866#p12866"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12866#p12866"><![CDATA[
So.<br><br>call code just means run code? so that would be the putnotc part?<br><br>then 10 seconds later run the proc again?<br><br>then the proc is closed<br><br>and there is another timer command outside of the process, that is what i didnt quite get, as in, what is actually going to trigger it and why is it there if utimer 10 test1 calls the script again itself?<br><br>Simon<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1696">simonbell</a> — Tue Nov 05, 2002 4:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-05T16:17:43-04:00</updated>

		<published>2002-11-05T16:17:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12864#p12864</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12864#p12864"/>
		<title type="html"><![CDATA[repeating timers]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12864#p12864"><![CDATA[
You could use my code as, is, by simply changing one line.<br><br>Re-read my post, the answer is there. Simply read back the code to yoruself, translating it to some form of text, that you could read to some1 as instructions.<br><br>When looking at my code, think how it will operate. Will there be some form of loop (*HINT*)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Tue Nov 05, 2002 4:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
