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

	<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>2003-07-04T07:19:15-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-04T07:19:15-04:00</updated>

		<published>2003-07-04T07:19:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23020#p23020</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23020#p23020"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23020#p23020"><![CDATA[
My bot is in small IRC network an channel where it stays is 15-30 nicks in daytime and 10 in the night but this with array is good point  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>i thing i found how to search <div class="codebox"><p>Code: </p><pre><code>bind join - *      pub:speakproc pub:speak {nick host hand chan} {set fid [open "statsmod.dat" r]while {![eof $fid]} {set ln [gets $fid]if {[eof $fid]} { break }if {[string match -nocase "*$chan \@*" $ln]} { putlog [lindex $ln 2] }}close $fid} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Fri Jul 04, 2003 7:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-04T06:45:59-04:00</updated>

		<published>2003-07-04T06:45:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23017#p23017</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23017#p23017"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23017#p23017"><![CDATA[
A search through a file each time someone joins? Your bot will scream in pain during net merges <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> Why not read the file at startup and keep the value in a element of a global array? Then upon each join check if [llength [chanlist #chan]]&gt;that_value and announce + change the var if it is.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Jul 04, 2003 6:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-04T06:36:01-04:00</updated>

		<published>2003-07-04T06:36:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23015#p23015</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23015#p23015"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23015#p23015"><![CDATA[
Peak values are stored in dat file like this:<br><br>#Channel @ number<br><br>is there a command in tcl to search for pattren in text files like in C language<br><br>i think of binding 'join' and getting a channel name and search in dat file for '#chan @'<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Fri Jul 04, 2003 6:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-04T06:03:48-04:00</updated>

		<published>2003-07-04T06:03:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23008#p23008</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23008#p23008"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23008#p23008"><![CDATA[
What I'm trying to figure out is how you'll find the peak value. Will it be at a fixed position or will you have to look for it in a huge file containing lots of other crap?<br><br>I was going to suggest using a udef for storing the peak, but if the number is easily extracted from an existing file there's no point in that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Jul 04, 2003 6:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-04T05:56:18-04:00</updated>

		<published>2003-07-04T05:56:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23005#p23005</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23005#p23005"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23005#p23005"><![CDATA[
My english is not so good because i'm from Bulgaria. <br><br>I was using a tcl for channel peak and it writes a separate file for peak values. Then i start to use statsmod. Stats writes peak values in his dat file too. So i remove peak.tcl and start to think how to read peak values from statsmod.dat thats it  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> <br><br>and write my own peak procedure  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Fri Jul 04, 2003 5:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-04T05:25:35-04:00</updated>

		<published>2003-07-04T05:25:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22996#p22996</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22996#p22996"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22996#p22996"><![CDATA[
<blockquote class="uncited"><div>Statsmod takes care for writing peak values in his file.</div></blockquote>So there's a separate file just for the peak? (i've never used the module)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Fri Jul 04, 2003 5:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-04T04:20:11-04:00</updated>

		<published>2003-07-04T04:20:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22994#p22994</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22994#p22994"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22994#p22994"><![CDATA[
Ok i will get peak the way peak.tcl gets it but old peak have to be read from stats dat ot eliminate external file that peak.tcl writes. Statsmod takes care for writing peak values in his file.<br><br>Problem is how to access this peak values in statsmod.dat file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Fri Jul 04, 2003 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-03T09:50:01-04:00</updated>

		<published>2003-07-03T09:50:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22967#p22967</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22967#p22967"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22967#p22967"><![CDATA[
Detecting the peak change from the file will be much harder and much more cpu intensive than just using a separate script for keeping track of and announcing the peak.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jul 03, 2003 9:50 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-03T09:18:02-04:00</updated>

		<published>2003-07-03T09:18:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22958#p22958</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22958#p22958"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22958#p22958"><![CDATA[
it looks like this for example:<div class="codebox"><p>Code: </p><pre><code>#Arakis ! 1047997200#Arakis @ 23@ peaks #Arakis 23 16 23 23</code></pre></div>it's user peak for that channel. I'm not sure what is the meaning of this number after '!' sign.  And second how to catch when stats.mod detects peak to display it on the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Thu Jul 03, 2003 9:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2003-07-03T06:48:45-04:00</updated>

		<published>2003-07-03T06:48:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22948#p22948</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22948#p22948"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22948#p22948"><![CDATA[
What kind of peak and what does it look like in the dat file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Jul 03, 2003 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stammer]]></name></author>
		<updated>2003-07-03T06:14:31-04:00</updated>

		<published>2003-07-03T06:14:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=22943#p22943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=22943#p22943"/>
		<title type="html"><![CDATA[read from stats.mod database]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=22943#p22943"><![CDATA[
Hi there,<br>i want to write a tcl for reading a channel peak from stats.mod database and when there is a peak my bot to tell it in the channel. Can enybody tell me how to access peak in stats 'dat' file?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2835">stammer</a> — Thu Jul 03, 2003 6:14 am</p><hr />
]]></content>
	</entry>
	</feed>
