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

	<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>2010-06-03T08:06:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[MIODude]]></name></author>
		<updated>2010-06-03T08:06:50-04:00</updated>

		<published>2010-06-03T08:06:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93222#p93222</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93222#p93222"/>
		<title type="html"><![CDATA[Modifying !topidle to remove bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93222#p93222"><![CDATA[
I didn't really need it to be channel specific, so I left it, and I kept it as b, since that is the bot flag (made sense to me!).. but i can't add that flag to the bots.. it just doesn't stay.. it says its being added, but when i check the flags later, there is no b<br><br><br><br>edit: Ok - I found another post where it says you can't set +b... so I've changed it to the f now <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=8276">MIODude</a> — Thu Jun 03, 2010 8:06 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2010-06-03T05:16:51-04:00</updated>

		<published>2010-06-03T05:16:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93220#p93220</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93220#p93220"/>
		<title type="html"><![CDATA[Modifying !topidle to remove bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93220#p93220"><![CDATA[
I forgot to mention that you can change the 'b' flag to whatever you wish.<br><br>You've changed from:<div class="codebox"><p>Code: </p><pre><code>if {![matchattr [nick2hand $idler] b]}</code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>if {![matchattr [nick2hand $idler] b $chan]}</code></pre></div>when you wanted to the channel specific flag?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Jun 03, 2010 5:16 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MIODude]]></name></author>
		<updated>2010-06-02T08:21:19-04:00</updated>

		<published>2010-06-02T08:21:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93218#p93218</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93218#p93218"/>
		<title type="html"><![CDATA[Modifying !topidle to remove bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93218#p93218"><![CDATA[
hmm.. i thought i had this working, but it was actually the restart of the bot that reset the counters..<br><br>I can't set the +b for some reason? I do the .chattr nick +b and it then lists the global flags, and +b isn't there? I thought maybe it was a channel specific flag, so tried .chattr nick +b #channel but that didn't work either..<br><br>Am I missing something easy?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8276">MIODude</a> — Wed Jun 02, 2010 8:21 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MIODude]]></name></author>
		<updated>2010-05-31T07:59:51-04:00</updated>

		<published>2010-05-31T07:59:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93206#p93206</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93206#p93206"/>
		<title type="html"><![CDATA[Modifying !topidle to remove bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93206#p93206"><![CDATA[
Thank you!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8276">MIODude</a> — Mon May 31, 2010 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2010-05-31T03:29:29-04:00</updated>

		<published>2010-05-31T03:29:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93203#p93203</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93203#p93203"/>
		<title type="html"><![CDATA[Modifying !topidle to remove bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93203#p93203"><![CDATA[
change from:<div class="codebox"><p>Code: </p><pre><code>   foreach idler $candidates {      set idletime [getchanidle $idler $chan]      set idlelist [lappend idlelist "$idler $idletime"]   } </code></pre></div>to:<div class="codebox"><p>Code: </p><pre><code>foreach idler $candidates {if {![matchattr [nick2hand $idler] b]} {set idletime [getchanidle $idler $chan]set idlelist [lappend idlelist "$idler $idletime"]}} </code></pre></div>where 'b' (bot) is the flag you wish to be excluded from the list. You can add '$chan' after 'b' if you wish to have a channel specific flag or change the flag. <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=187">caesar</a> — Mon May 31, 2010 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MIODude]]></name></author>
		<updated>2010-05-30T23:34:37-04:00</updated>

		<published>2010-05-30T23:34:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=93202#p93202</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=93202#p93202"/>
		<title type="html"><![CDATA[Modifying !topidle to remove bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=93202#p93202"><![CDATA[
The code below pulls the top 3 idlers in a channel. We have several eggdrop bots in there, so we don't want to include those - whats the best way to create a list of exclusions? Is there a way as its populating the variable rankings that if it matches a nick it does get added?<br><br>Thanks in Advance!<br><br><div class="codebox"><p>Code: </p><pre><code>#---------------------------------------------------------------------# goldensilence.tcl# TCL script for IRC bot eggdrop# Upon public trigger "!topidle" awards gold, silver and bronze# medals for top 3 idlers. ## Note: requires TCL version 8 (version test not included in script)## v0: 26-Feb-2002#---------------------------------------------------------------------bind pub - !topidle topidlersproc topidlers { nick uhost hand chan text } {   # make a list of nicks and strip out bot   set candidates [lrange [chanlist $chan] 1 end]   # No gold/silver/bronze if less than 3 :)   if {[llength $candidates] &lt; 3} {      puthelp "PRIVMSG $chan :Silence is golden. No game in progress."      return   }   # make a list of sub-lists (nickname idletime)   foreach idler $candidates {      set idletime [getchanidle $idler $chan]      set idlelist [lappend idlelist "$idler $idletime"]   }   # sort on idle time (element 1 of each sub-list)   # no sharing of medals, lsort determines the ranking...   set ranking [lsort -index 1 -integer -decreasing $idlelist]   # assign medals   set gold [lindex $ranking 0]   set silv [lindex $ranking 1]    set bron [lindex $ranking 2]    # prepare to output to channel   set gold "GOLD: [lindex $gold 0] (idle [lindex $gold 1] min.)"   set silv "SILVER: [lindex $silv 0] (idle [lindex $silv 1] min.)"   set bron "BRONZE: [lindex $bron 0] (idle [lindex $bron 1] min.)"   # make winners public...   puthelp "PRIVMSG $chan :Silence is golden! $gold $silv $bron"   # log who triggered...   return 1}putlog "Loaded (version 0): Idle game."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8276">MIODude</a> — Sun May 30, 2010 11:34 pm</p><hr />
]]></content>
	</entry>
	</feed>
