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

	<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-10-31T21:17:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-10-31T21:17:00-04:00</updated>

		<published>2002-10-31T21:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12657#p12657</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12657#p12657"/>
		<title type="html"><![CDATA[timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12657#p12657"><![CDATA[
I'm not sure (it doesn't look like the complete script) but I'm guessing the error is in<br><br>utimer [expr $cycle_time * 1 - 0.5] reset_recent_cycle ..<br><br>The old code was cutting off 30 seconds from cycle_time. You're cutting off .5 seconds, which is the same as 0 seconds. So there's something weird going on there, maybe sometimes the timer is being called too late.<br><br>Change that line back to the same way it was before and see if the error persists.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Oct 31, 2002 9:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Nexus6]]></name></author>
		<updated>2002-10-31T12:02:44-04:00</updated>

		<published>2002-10-31T12:02:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=12639#p12639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=12639#p12639"/>
		<title type="html"><![CDATA[timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=12639#p12639"><![CDATA[
Lo i've changed one tcl, I changed timer because I wanted bot to cycle more often. <br><br>it used to cycle in every 3 mins, <br>Original code:<div class="codebox"><p>Code: </p><pre><code>set cycle_time 3 if {![info exists spam_timer]} { set spam_timer [timer $cycle_time cycle_chans] } set recent_cycle 0proc cycle_chans { } {  global cycle_time spam_timer recent_cycle   set cycle_chan "#channel"  foreach chan [channels] {    if {![string match *cycle* $chan]} { set cycle_chan "$cycle_chan,$chan" }  }  putserv "part $cycle_chan"  putserv "join $cycle_chan"  set spam_timer [timer $cycle_time cycle_chans]  set recent_cycle 1  utimer [expr $cycle_time * 60 - 30]  reset_recent_cycle ....</code></pre></div>and I wanted it to cycle every 53 secs, (yes a werird value;))<br><br>changed code, cycles every 53 secs but sometimes stays outta chan<div class="codebox"><p>Code: </p><pre><code>set cycle_time 53if {![info exists spam_timer]} { set spam_timer [utimer $cycle_time cycle_chans] } set recent_cycle 0proc cycle_chans { } {  global cycle_time spam_timer recent_cycle   set cycle_chan "#channel"  foreach chan [channels] {    if {![string match *cycle* $chan]} { set cycle_chan "$cycle_chan" }  }  putserv "part $cycle_chan"  putserv "join $cycle_chan"  set spam_timer [utimer $cycle_time cycle_chans]  set recent_cycle 1  utimer [expr $cycle_time * 1 - 0.5] reset_recent_cycle ..</code></pre></div>and it works but after sometime bot stays outta channel, it's not banned, and chan isn't +i or +k, even .dump join #channel didn't make bot rejoin.<blockquote class="uncited"><div>[14:46] (acc0rd) [14:46] Server says I'm not on channel: #channel<br>[14:46] (N6) .tcl utimers<br>[14:46] (acc0rd) TCL: {46 cycle_chans timer1500} {40 reset_recent_cycle timer1501}</div></blockquote>I find it every odd and I don't know what can cause that, thx for any help<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1850">Nexus6</a> — Thu Oct 31, 2002 12:02 pm</p><hr />
]]></content>
	</entry>
	</feed>
