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

	<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>2016-02-22T03:00:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2016-02-22T03:00:34-04:00</updated>

		<published>2016-02-22T03:00:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104731#p104731</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104731#p104731"/>
		<title type="html"><![CDATA[Checking every xx Minutes channel and Count Users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104731#p104731"><![CDATA[
Why don't you use /WHO #channel instead of whois-ing each individual user?<br><br>You get a reply in raw 352 with results and raw 315 is triggered when the list ends.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Mon Feb 22, 2016 3:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2016-02-21T15:52:30-04:00</updated>

		<published>2016-02-21T15:52:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104729#p104729</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104729#p104729"/>
		<title type="html"><![CDATA[Checking every xx Minutes channel and Count Users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104729#p104729"><![CDATA[
Wow, you have a channel with over 300 users?<br>GoodJob on the channel:)<br>Not so much with the script...<br><blockquote class="uncited"><div>I'v solved by the above code but It only counts 300 nicknames how can I increase the queue?</div></blockquote>The short answer is: Increase the time between each of the calls to proc checknicks<br><br>The longer explanation is:<br>The default for sending lines to the server from all eggdrop queues is "every 2 seconds".<br>10 minutes is 600 seconds (10 * 60 = 600)....<br>300 sends from queue is also 600 seconds (300 * 2 = 600)...<br><br>At that point, the 10 minutes expires, the proc checknicks runs again, the file is saved with the current count (300) and the count is reset to zero (0).<br>The counting then starts incrementing from 0 again, as the putquick queue grows in size some (it never has a chance to empty before filling it again).<br><br>Some notes about this entire script idea...<br>Any bot running this script will have no time to do anything else as its putquick queue will always be full/overfull.<br>After the script runs for a while, the putquick queue will get bigger with every new 10 minute call to proc checknicks, and the bot will probably die.<br><br>And what's this line of code all about?<div class="codebox"><p>Code: </p><pre><code>      incr kiwi</code></pre></div>judging by the rest of the code, you mean<div class="codebox"><p>Code: </p><pre><code>      incr mibbit</code></pre></div>Also looks like $total never gets reset back to 0 and would just keep getting larger with every new write to the file.<br><br>There may be other scripting issues I haven't noticed yet...<br><br>Closing thoughts: I don't think it's a good idea to have a bot pounding the server every 2 seconds for the entire time it's connected.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Feb 21, 2016 3:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[erderiko]]></name></author>
		<updated>2016-02-21T12:39:58-04:00</updated>

		<published>2016-02-21T12:39:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104728#p104728</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104728#p104728"/>
		<title type="html"><![CDATA[Checking every xx Minutes channel and Count Users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104728#p104728"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "?5 *" checknicks ; #every 10 minbind RAW - 311 checkrealnameset mibbit 0set total 0proc checknicks {args} {     global mibbit  total    set chan "#chan"  set file "stats.txt"set time_now[clock seconds]set time_formated[clock format $time_now -format {%Y-%m-%d %H:%M:%S} -gmt true]set fs [open $file a+] puts $fs "$time_formated;$mibbit;$total" close $fsset mibbit 0putlog "perform checknick"foreach nick [chanlist $chan] {putquick "WHOIS $nick $nick"}              return 1                           }proc checkrealname { from keyword arguments } {global  mibbit totalset fullname [string range [join [lrange $arguments 5 end]] 1 end]set realname3 "*www.mibbit.com*"if {[string match $realname3 $fullname]} {incr kiwi}incr total}putlog "CheckNicks is loaded"</code></pre></div>I'v solved by the above code but It only counts 300 nicknames how can I increase the queue?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12603">erderiko</a> — Sun Feb 21, 2016 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[erderiko]]></name></author>
		<updated>2016-02-16T14:37:07-04:00</updated>

		<published>2016-02-16T14:37:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104705#p104705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104705#p104705"/>
		<title type="html"><![CDATA[Checking every xx Minutes channel and Count Users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104705#p104705"><![CDATA[
Hello I want to create a TCL Script for my eggodrop 1.6.<br><br>I want to create a timer that every xx minutes loop over nicks in channel <br>and count users with specific realname and write it to a file.<div class="codebox"><p>Code: </p><pre><code>foreach nick [chanlist $chan] {  if {match nick!REALNAME "mibbit"}{count++  }};</code></pre></div>How can I do this i readed some documents and found nothing about realname. I can count on host but how can I do this on realname?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12603">erderiko</a> — Tue Feb 16, 2016 2:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
