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

	<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-10T14:02:07-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2002-11-10T14:02:07-04:00</updated>

		<published>2002-11-10T14:02:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12995#p12995</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12995#p12995"/>
		<title type="html"><![CDATA[timer prob]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12995#p12995"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {![botonchan #chan]} {return 0}</code></pre></div>The bot is obviously not on channel on one of the timer runs - maybe you should set the timer again, then return.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Nov 10, 2002 2:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-11-10T13:11:55-04:00</updated>

		<published>2002-11-10T13:11:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12992#p12992</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12992#p12992"/>
		<title type="html"><![CDATA[timer prob]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12992#p12992"><![CDATA[
it checks cycle time according to number of ppl in chan after some time timer stops working.<div class="codebox"><p>Code: </p><pre><code>if {![info exists timecheckn]} { set timecheckn [timer 5 checkn] }proc checkn {} {global cycle_timeif {![botonchan #chan]} {return 0}set nusers [llength [chanlist #chan]]if {$nusers &lt; 10} {if {$cycle_time == 360} {return 0}set cycle_time 360putlog "Cycle time set to \002360\002 seconds, \[$nusers users &lt; 10\]"} elseif {$nusers &lt; 40} {if {$cycle_time == 152} {return 0}set cycle_time 152putlog "Cycle time set to \002152\002 seconds, \[$nusers users &lt; 40\]"} elseif {$nusers &lt; 100} {if {$cycle_time == 97} {return 0}set cycle_time 97 putlog "Cycle time set to \00297\002 seconds, \[$nusers users &lt; 100\]"} elseif {$nusers &lt; 120} {if {$cycle_time == 87} {return 0}set cycle_time 87putlog "Cycle time set to \00287\002 seconds, \[$nusers users &lt; 120\]"} elseif {$nusers &lt; 150} {if {$cycle_time == 69} {return 0}set cycle_time 63putlog "Cycle time set to \00263\002 seconds, \[$nusers users &lt; 150\]"} elseif {$nusers &gt; 180} {if {$cycle_time == 63} {return 0}set cycle_time 63putlog "Cycle time set to \00263\002 seconds, \[$nusers users &gt; 180\]" }set timecheckn [timer 5 checkn]}</code></pre></div>Why does timer stops working after some time?<blockquote class="uncited"><div>.tcl info exists timecheckn<br>[18:09] (Sentinel^) Tcl: 1</div></blockquote><blockquote class="uncited"><div>.tcl timers<br>[18:10] (Sentinel^) Tcl:</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Sun Nov 10, 2002 1:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
