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

	<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>2007-06-12T14:08:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[retan]]></name></author>
		<updated>2007-06-12T14:08:30-04:00</updated>

		<published>2007-06-12T14:08:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73494#p73494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73494#p73494"/>
		<title type="html"><![CDATA[Timer Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73494#p73494"><![CDATA[
I dont understand you.<br>Each eggdrop is running on another server, so the uptime of every eggdrop is different.<br>I just want all three uptimes summed up.<br><br>The script just has to search for the string "&lt;Bot1&gt;" and sum the letter after it (<strong class="text-strong">12</strong>) up with the other days (13 and 14).<br>The total uptime for me is: 39 days in my example.<br><br>So the method I thought about, is to make a timer, that the script wait for 5 secs after !uptime is typed. After the 5 seconds it searches the string between "&lt;Bot1&gt;" and "days up" (for all three bots). Then the script just has to sum the three uptimes up and puts it to the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9056">retan</a> — Tue Jun 12, 2007 2:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-12T05:27:48-04:00</updated>

		<published>2007-06-12T05:27:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73467#p73467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73467#p73467"/>
		<title type="html"><![CDATA[Timer Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73467#p73467"><![CDATA[
The sum of the uptimes isn't the total uptime. Actually, in your case you can't calculate a total uptime, each is independent. You should either consider the lowest uptime as the total uptime or the highest uptime (I guess the latter is better).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jun 12, 2007 5:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[retan]]></name></author>
		<updated>2007-06-11T23:23:06-04:00</updated>

		<published>2007-06-11T23:23:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73460#p73460</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73460#p73460"/>
		<title type="html"><![CDATA[Timer Script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73460#p73460"><![CDATA[
hello,<br>I've got three eggdrops and when I type !uptime, every eggdrop is posting his serveruptime since he was started.<br>It looks like this:<br>&lt;Bot1&gt; 12 days up<br>&lt;Bot2&gt; 13 days up<br>&lt;Bot3&gt; 14 days up<br><br>Now I need a script which shows me the total uptime of all servers. (it has to sum up 12,13 and 14)<br>So when I type !uptime, it has to come this:<br><br>&lt;Bot1&gt; 12 days up<br>&lt;Bot2&gt; 13 days up<br>&lt;Bot3&gt; 14 days up<br>&lt;anotherBot&gt; The total uptime of all servers: 39 days<br><br>How can I manage this?<br><br>What about a Timer?<br><br>My suggestion: When I type !uptime, the script should wait 5 seconds (until all three Bots posted there server uptime) and then the script sums up the total uptime. -&gt; the problem is now how to read the specified strings. probably with reg expr?<br><br>Which tcl commands will I need or how has the code to look like?<br>Thank you all!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9056">retan</a> — Mon Jun 11, 2007 11:23 pm</p><hr />
]]></content>
	</entry>
	</feed>
