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

	<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>2011-03-09T15:38:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2011-03-09T15:38:35-04:00</updated>

		<published>2011-03-09T15:38:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96427#p96427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96427#p96427"/>
		<title type="html"><![CDATA[Quakenet chanstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96427#p96427"><![CDATA[
Hi, current onput is:<br><br>Statistics for #channel:<br>Date added: 11/02/09 18:47 GMT<br>Since 11/02/09 18:47 GMT: maximum size 22, 9197 joins (12.2 joins/day).<br>Since 11/02/09 18:47 GMT: maximum size 22, 9197 joins (12.2 joins/day).<br><br>Can someone modify the code that will A. paste only one 'since' and B. add an option to rewrite the sentences<br><br>for example instead of<br><br>"Date added" - "Founded on:"...<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Wed Mar 09, 2011 3:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[r0t3n]]></name></author>
		<updated>2010-11-27T09:35:05-04:00</updated>

		<published>2010-11-27T09:35:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95199#p95199</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95199#p95199"/>
		<title type="html"><![CDATA[Quakenet chanstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95199#p95199"><![CDATA[
Just use regexp to grab out the data you want to display, also the chanstat has two Since lines, the second line is a trip counter which can be reset, so it depends which Since line you want to use/display (or both).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6300">r0t3n</a> — Sat Nov 27, 2010 9:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-11-21T08:00:57-04:00</updated>

		<published>2010-11-21T08:00:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95155#p95155</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95155#p95155"/>
		<title type="html"><![CDATA[Quakenet chanstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95155#p95155"><![CDATA[
<img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_exclaim.gif" width="15" height="15" alt=":!:" title="Exclamation"> sorry for late reply *work*<br><br>I wouldn't be able to say for sure, its really a case of <div class="codebox"><p>Code: </p><pre><code># ignoring compatibility, change if you use an old version of eggdropproc notc:qchanstats {nick uhost hand text dest} { global qsc  if {([info exists qsc(request)])&amp;&amp;([validchan $qsc(request)])} {   # send the notice text to the channel   set full_line [join [lrange [split $text] 0 end]]   # first line depending on what we recive it could be:   # "Statistics", "Date" or "Since"   set line_1 [lindex $text 0]   # second line, could be:   # "for", "added" or "04/06/10 20:13 GMT" (the date + time + timezone)   set line_2 [lindex $text 1]   # ...etc   puthelp "PRIVMSG $qsc(request) :[join [lrange [split $text] 0 end]]"  }}</code></pre></div> or easyer option would be just to split them up in to sep. binds,<br>so when <div class="codebox"><p>Code: </p><pre><code>bind notc -|- "Statistics for*" notc:qcs:first</code></pre></div> would go to a a proc named notc:qcs:first, and do that so you know what you will get from each one, sud make it easyer to change the text from each. So they dont all go to the same proc and you have to do alot of work.<br><br>Hopefully, that makes sense. if you need me to write a few more examples or piece together more of a script for it let me know.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Sun Nov 21, 2010 8:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-11-19T10:25:07-04:00</updated>

		<published>2010-11-19T10:25:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95135#p95135</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95135#p95135"/>
		<title type="html"><![CDATA[Quakenet chanstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95135#p95135"><![CDATA[
Thanks TCL_NO_Talk! works great!<br><div class="codebox"><p>Code: </p><pre><code>[16:22:03] &lt;@Football&gt; Statistics for #Football:[16:22:05] &lt;@Football&gt; Date added: 04/06/10 20:13 GMT[16:22:09] &lt;@Football&gt; Since 04/06/10 20:13 GMT: maximum size 15, 1209 joins (7.2 joins/day).[16:22:11] &lt;@Football&gt; Since 04/06/10 20:13 GMT: maximum size 15, 1209 joins (7.2 joins/day).</code></pre></div>Any chance the output could be edited?<br><br>What I mean is, the script itself will contain 3 different lines that can determine what the output would look like ("Operating Since:" for example) and then the info will be written in the end of the line?<br><br>That would be great..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Fri Nov 19, 2010 10:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2010-11-15T20:34:46-04:00</updated>

		<published>2010-11-15T20:34:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95088#p95088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95088#p95088"/>
		<title type="html"><![CDATA[Quakenet chanstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95088#p95088"><![CDATA[
I dont use Quakenet, so I cant really help much with this one. However, it should be pretty straight forward to do all this with a few notc binds and pub bind. You will need to change a few things.<div class="codebox"><p>Code: </p><pre><code># bind the public command to trigger sending the chanstat message to Q# NOTE: change ".chanstats" to the trigger you wantbind pub -|- ".chanstats" pub:qchanstatsproc pub:qchanstats {nick uhost hand chan text} { global qsc  # send the message to Q  #NOTE: you should change this to "Q@quakenet.org" or w/e youre server uses  puthelp "PRIVMSG Q :chanstat $chan"  # set this to send back to the requested channel  set qsc(request) "$chan"  # set the timer to remove the request after 120  utimer 120 [list unset qsc(request)]}# bind all the notices we are 'echo'ing back to the channelbind notc -|- "Statistics for*" notc:qchanstatsbind notc -|- "Date added*" notc:qchanstatsbind notc -|- "Since*" notc:qchanstats# ignoring compatibility, change if you use an old version of eggdropproc notc:qchanstats {nick uhost hand text dest} { global qsc  if {([info exists qsc(request)])&amp;&amp;([validchan $qsc(request)])} {   # send the notice text to the channel   puthelp "PRIVMSG $qsc(request) :[join [lrange [split $text] 0 end]]"  }}</code></pre></div> hope it helps <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=8130">TCL_no_TK</a> — Mon Nov 15, 2010 8:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Football]]></name></author>
		<updated>2010-11-13T15:38:24-04:00</updated>

		<published>2010-11-13T15:38:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95062#p95062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95062#p95062"/>
		<title type="html"><![CDATA[Quakenet chanstat]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95062#p95062"><![CDATA[
hey, was wondering if anyone could make a script that will display Quakenet's Q stats results:<br><br>[21:33:29] -&gt; *q* chanstat #channelname<br>[21:33:30] -Q- Statistics for #channelname:<br>-<br>[21:33:30] -Q- Date added: 04/12/08 16:20 GMT<br>-<br>[21:33:30] -Q- Since 04/12/08 16:20 GMT: maximum size 166, 116044 joins (163.7 joins/day).<br>-<br>[21:33:30] -Q- Since 04/12/08 16:20 GMT: maximum size 166, 116044 joins (163.7 joins/day).<br><br>Would be nice if that could be triggered to be displayed in a room.<br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10393">Football</a> — Sat Nov 13, 2010 3:38 pm</p><hr />
]]></content>
	</entry>
	</feed>
