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

	<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>2006-04-29T21:00:14-04:00</updated>

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

		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-29T21:00:14-04:00</updated>

		<published>2006-04-29T21:00:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62488#p62488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62488#p62488"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62488#p62488"><![CDATA[
tks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>best regards<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Sat Apr 29, 2006 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-28T18:32:20-04:00</updated>

		<published>2006-04-28T18:32:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62467#p62467</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62467#p62467"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62467#p62467"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - * deopratebind pub - !opless ratereplyset ratemins 0proc deoprate args { global deoprate ratemins foreach c [channels]  if {![info exists deoprate([set c [string tolower $c]])]} { set deoprate($c) 0 }  if {![botisop $c]} { incr deoprate($c) } } incr ratemins}proc ratereply {nick uhost hand chan arg} { global deoprate ratemins foreach c [channels] {  if {[info exists deoprate($c)]} {   puthelp "privmsg $chan :[expr {$deoprate($c)/$ratemins*100}]% without op on $c"  } }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Apr 28, 2006 6:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-27T01:56:27-04:00</updated>

		<published>2006-04-27T01:56:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62404#p62404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62404#p62404"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62404#p62404"><![CDATA[
ignore my last post. just one more thing if isnt much trouble can u make the command !opless list all chans the bot is on instead of checking !opless #chann ?<br><br>tks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Thu Apr 27, 2006 1:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-26T21:34:32-04:00</updated>

		<published>2006-04-26T21:34:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62400#p62400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62400#p62400"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62400#p62400"><![CDATA[
do i have to set ratemins to something?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Wed Apr 26, 2006 9:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-04-26T21:10:13-04:00</updated>

		<published>2006-04-26T21:10:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62399#p62399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62399#p62399"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62399#p62399"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - * deopratebind pub - !opless ratereplyset ratemins 0proc deoprate args { global deoprate ratemins foreach c [channels]  if {![info exists deoprate([set c [string tolower $c]])]} { set deoprate($c) 0 }  if {![botisop $c]} { incr deoprate($c) } } incr ratemins}proc ratereply {nick uhost hand chan arg} { global deoprate ratemins if {[validchan [set c [lindex [split $arg] 0]]] &amp;&amp; [info exists deoprate($c)]} {  puthelp "privmsg $chan :[expr {$deoprate($c)/$ratemins*100}]% without op on $c" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Apr 26, 2006 9:10 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-26T18:01:55-04:00</updated>

		<published>2006-04-26T18:01:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62390#p62390</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62390#p62390"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62390#p62390"><![CDATA[
or something like a timer to check if the bot is op and count the times is op for that chan and the times is not op, at the end off like a day he check the 2 variables and if the opless one is bigger than the other he notices me or leave the chan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Wed Apr 26, 2006 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-26T11:40:52-04:00</updated>

		<published>2006-04-26T11:40:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62377#p62377</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62377#p62377"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62377#p62377"><![CDATA[
oh sorry, is nothing like that, maybe i explained myself wrong, its like this..<br><br>i run a channel were there are 4 bots that users can request for their channels so they can have a bot for them, and i want something to check from the time that bot spends on the channel what is the % of time that the op had ops, so i can know if the op is having op most of the time..<br><br>tks in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Wed Apr 26, 2006 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-26T07:45:10-04:00</updated>

		<published>2006-04-26T07:45:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62366#p62366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62366#p62366"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62366#p62366"><![CDATA[
sorry, I somehow read after waking up, you would a scrpt that does not only count ops, but also halfops...<br><br>so you were looking for something like?<div class="codebox"><p>Code: </p><pre><code>bind pub - !opless oplessproc opless {nick uhost hand chan text} {   if {![validchan $text] || ([channel get $text secret] &amp;&amp; ![onchan $nick $text])} {      puthelp "NOTICE $nick :I am not on such channel"      return 0   }   set users [chanlist $text]   set total [llength $users]   set ops 0   foreach user $users {      if {[isop $user] || [ishalfop $user]} {         incr ops      }   }   puthelp "PRIVMSG $chan :[expr {100 - round(100.0 * $ops / $total)}]% without op on $text"   return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Apr 26, 2006 7:45 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-26T06:54:04-04:00</updated>

		<published>2006-04-26T06:54:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62363#p62363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62363#p62363"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62363#p62363"><![CDATA[
sorry did understand,, modify what script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Wed Apr 26, 2006 6:54 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-04-26T04:47:09-04:00</updated>

		<published>2006-04-26T04:47:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62357#p62357</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62357#p62357"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62357#p62357"><![CDATA[
modify the script to use '[isop $nick] || [ishalfop $nick]' instead of just '[isop $nick]'.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Wed Apr 26, 2006 4:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[.pt]]></name></author>
		<updated>2006-04-25T11:13:41-04:00</updated>

		<published>2006-04-25T11:13:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=62318#p62318</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=62318#p62318"/>
		<title type="html"><![CDATA[check op %]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=62318#p62318"><![CDATA[
hi all, does anyone know if exists or can make a script that can count the % a bot is opped in a chan? i tried to search the forum and the tcl script archive but nothing like, so if someone can point a site or make one it would be great tks.<br><br>example:<br>&lt;user&gt; !opless #chan<br>&lt;eggdrop&gt; 75% without op on $chan<br><br>PS: the objective of this script is that i lend some bot to people, and if the bot stays there without op not doing anything theres no objective to be there just to fill up the chan<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6989">.pt</a> — Tue Apr 25, 2006 11:13 am</p><hr />
]]></content>
	</entry>
	</feed>
