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

	<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-04-17T10:04:49-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2005-04-17T10:04:49-04:00</updated>

		<published>2005-04-17T10:04:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48192#p48192</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48192#p48192"/>
		<title type="html"><![CDATA[Timer Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48192#p48192"><![CDATA[
Type: <strong class="text-strong">.tcl timers</strong> in partyline. <br><br>Make sure your dcc:tcl unbind is commented with an '#' infront in the bots .conf file, so the '.tcl' trigger in dcc works.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Apr 17, 2005 10:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-17T09:59:03-04:00</updated>

		<published>2005-04-17T09:59:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48191#p48191</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48191#p48191"/>
		<title type="html"><![CDATA[Timer Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48191#p48191"><![CDATA[
I left alot out because it is a lot of code and I don't have it all at work with me. The main part that I am concerned with is that the initial timer is being run each time I rehash my bot creating multiple instances which gets annoying because it messages the channel, so if I rehash the bot instead of getting a message every 30 minutes I might get one every 15 minutees depending on how long the previous timer has been running.<br><br>Does that make sense?<br><br>What is an easy way to see all timers that are active and running?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Sun Apr 17, 2005 9:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-17T09:54:57-04:00</updated>

		<published>2005-04-17T09:54:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48188#p48188</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48188#p48188"/>
		<title type="html"><![CDATA[Timer Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48188#p48188"><![CDATA[
Your proc doesn't seem to be correct, what's $var ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Apr 17, 2005 9:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-17T09:38:32-04:00</updated>

		<published>2005-04-17T09:38:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48185#p48185</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48185#p48185"/>
		<title type="html"><![CDATA[Timer Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48185#p48185"><![CDATA[
So put that code in instead of the first if statement and that does a search for a prexisting timer associated with start right? And if it doesn't find out then executes code where the comment is?<br><br>-Erik<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Sun Apr 17, 2005 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2005-04-17T08:49:59-04:00</updated>

		<published>2005-04-17T08:49:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48180#p48180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48180#p48180"/>
		<title type="html"><![CDATA[Timer Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48180#p48180"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>foreach timer [timers] { if {![string equal -nocase "start" [lindex [split $timer] 1]]} {  #there is no timer for proc start. }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Apr 17, 2005 8:49 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Esoteric]]></name></author>
		<updated>2005-04-17T08:33:17-04:00</updated>

		<published>2005-04-17T08:33:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=48179#p48179</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=48179#p48179"/>
		<title type="html"><![CDATA[Timer Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=48179#p48179"><![CDATA[
I seem to be having an issue with <strong class="text-strong">.rehash</strong> and my script that I have that uses timers. I read somewhere, not sure where, that by doing the first if statement that it would keep the initial timer from being started again upon a rehash. What happens is that every time I rehash I get a new instance so I get my message printing to a channel more then every thirty minutes if $var = 1. I will get it like 3 times every 30 minutes.<br><br>Please help.<br><div class="codebox"><p>Code: </p><pre><code>if {![info exists $running]} {  timer 05 start  set running 1}proc timer:start { } { #proc code here if {$var == 1} {   timer 30 start   putserv "PRIVMSG #channel : Message" } else {   timer 05 start }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6093">Esoteric</a> — Sun Apr 17, 2005 8:33 am</p><hr />
]]></content>
	</entry>
	</feed>
