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

	<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-08-06T17:19:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-08-06T17:19:34-04:00</updated>

		<published>2007-08-06T17:19:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75095#p75095</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75095#p75095"/>
		<title type="html"><![CDATA[Delayed /whois queing of channel users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75095#p75095"><![CDATA[
You didn't really apply my idea, you created your own <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"> Also<div class="codebox"><p>Code: </p><pre><code>set chanlist [split [string tolower $chanlist]]</code></pre></div>$chanlist is a list, so don't apply a [string] command over it (use [join] to convert it to a string). Besides, it's already lowercase so there's no need to apply [string tolower] over it anyway.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon Aug 06, 2007 5:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-08-05T22:56:38-04:00</updated>

		<published>2007-08-05T22:56:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75076#p75076</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75076#p75076"/>
		<title type="html"><![CDATA[Delayed /whois queing of channel users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75076#p75076"><![CDATA[
<blockquote class="uncited"><div>Add the channels into a list as well and create a timer which will perform a whois on each channel every 2 minutes (you'll remove the channel from the list each time). Example<div class="codebox"><p>Code: </p><pre><code>if {![info exists chanlist] || $chanlist == {}} { set chanlist [channels]}# whois array of channel at index 0 in $chanlist# remove the first element from $chanlistset chanlist [lreplace $chanlist 0 0]# timer to call proc again...</code></pre></div></div></blockquote>Okay I devised something like this, just to let you know:<br><div class="codebox"><p>Code: </p><pre><code>proc check:ascii:time {m h d mo y} { #check the time interval to perform the scan if {([scan $m %d]+([scan $h %d]*60)) % 30 == 0} { #set list of channels to whois set chanlist [list "#awyeah #miri #urdu"] set chanlist [split [string tolower $chanlist]] #set whois timer set chanwhois 5 #whois each channel foreach chan $chanlist {  utimer $chanwhois [list whois:ascii:users $chan]  incr chanwhois 5  } }}proc whois:ascii:users {chan} { if {[botonchan $chan] &amp;&amp; [botisop $chan]} {  foreach user [chanlist $chan] {    if {![isbotnick $user] &amp;&amp; ![isop $user $chan] &amp;&amp; ![isvoice $user $chan] &amp;&amp; ![matchattr [nick2hand $user $chan] mn|mn $chan]} {      puthelp "WHOIS $user"      }    }  }}</code></pre></div>Didn't find a need remove the channel names from the list though.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Aug 05, 2007 10:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-24T11:01:23-04:00</updated>

		<published>2007-07-24T11:01:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74732#p74732</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74732#p74732"/>
		<title type="html"><![CDATA[Delayed /whois queing of channel users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74732#p74732"><![CDATA[
Ah thanks Sir_Fz, I will try to implement that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jul 24, 2007 11:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-07-24T06:38:52-04:00</updated>

		<published>2007-07-24T06:38:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74717#p74717</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74717#p74717"/>
		<title type="html"><![CDATA[Delayed /whois queing of channel users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74717#p74717"><![CDATA[
Add the channels into a list as well and create a timer which will perform a whois on each channel every 2 minutes (you'll remove the channel from the list each time). Example<div class="codebox"><p>Code: </p><pre><code>if {![info exists chanlist] || $chanlist == {}} { set chanlist [channels]}# whois array of channel at index 0 in $chanlist# remove the first element from $chanlistset chanlist [lreplace $chanlist 0 0]# timer to call proc again...</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jul 24, 2007 6:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-07-23T22:28:07-04:00</updated>

		<published>2007-07-23T22:28:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=74707#p74707</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=74707#p74707"/>
		<title type="html"><![CDATA[Delayed /whois queing of channel users]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=74707#p74707"><![CDATA[
Suppose I want to perform a task of whois all channel users on all channels the bot is on. Some channels may have user counts 100+ as well.<br><br>This task might slow the bot, I can manually at utimers and check for each channel with a delay, but how to make this system automated? Any idea? to help for the delay queing. Suppose I want to delay 2mins between the /whois check for every channel. Can't seem to get anything in my head currently, maybe because its just 8:30am here, heh.<br><div class="codebox"><p>Code: </p><pre><code>bind time - "*" check:ascii:timeproc check:ascii:time {m h d mo y} { #check the time interval to perform the scan if {([scan $m %d]+([scan $h %d]*60)) % 10 == 0} { #whois channel users foreach chan [split [string tolower [channels]]] {  foreach user [chanlist $chan] {    if {![isbotnick $user] &amp;&amp; ![isop $user $chan] &amp;&amp; ![isvoice $user chan]} {        puthelp "WHOIS $user"        }      }    }  }}</code></pre></div>What I can do is add an array for each channel containing their user list:<br><div class="codebox"><p>Code: </p><pre><code>set userlist [list] foreach chan [split [string tolower [channels]]] {  foreach user [chanlist $chan] {    if {![isbotnick $user] &amp;&amp; ![isop $user $chan] &amp;&amp; ![isvoice $user chan]} {     lappend userlist($chan) $user    }  }}      </code></pre></div>Now I got the channel user lists in an array, then how to whois every channels array with a specific delay of time in between? The reason is I don't want to whois every channels users at the one time, will heap the queue.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Mon Jul 23, 2007 10:28 pm</p><hr />
]]></content>
	</entry>
	</feed>
