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

	<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-09-18T20:52:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2007-09-18T20:52:47-04:00</updated>

		<published>2007-09-18T20:52:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76028#p76028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76028#p76028"/>
		<title type="html"><![CDATA[Re: Checking for ops in channels and reporting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76028#p76028"><![CDATA[
<blockquote class="uncited"><div>Hi,<br><br>I hope someone can help with this question.<br><br>When my bot joins channels, is it possible for it to set a timer and check it's Op or Hop status ever x mins? If it is opped, i would like it reported into a specific channel.<br><br>I know there are several scripts that check for Ops status, but i have a specific need for the base code. If anyone can help, it would be much appriciated. Thank you</div></blockquote>This is should work as you want it too. <br><blockquote class="uncited"><div><strong class="text-strong">- It will check every 5 minutes.<br>- You can replace value 5 in both timers to set what ever value you want.<br>- Replace #reportchannel to the channel you want to report it to.<br></strong></div></blockquote><div class="codebox"><p>Code: </p><pre><code>bind join - "*" check:opsproc check:ops {nick uhost hand chan} { if {[isbotnick $nick]} {  timer 5 [list see:ops $chan]  }}proc see:ops {chan} { if {[botonchan $chan]} {  set ops 0; set voices 0   foreach user [chanlist $chan] {    if {[isop $user $chan]} {    incr ops    } elseif {[isvoice $user $chan]} {     incr voices    }   }   if {[botisop $chan]} {    putserv "PRIVMSG #reportchannel :Ops: $ops - Voices: $voices"    }  } timer 5 [list see:ops $chan]}</code></pre></div><em class="text-italics"><span style="color:red">*** For this script to work you have to make the bot join the channel.</span></em><br>- Either restart the bot or make it cycle the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Sep 18, 2007 8:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MetalGuru1972]]></name></author>
		<updated>2007-09-18T11:37:37-04:00</updated>

		<published>2007-09-18T11:37:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=76016#p76016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=76016#p76016"/>
		<title type="html"><![CDATA[Checking for ops in channels and reporting]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=76016#p76016"><![CDATA[
Hi,<br><br>I hope someone can help with this question.<br><br>When my bot joins channels, is it possible for it to set a timer and check it's Op or Hop status ever x mins? If it is opped, i would like it reported into a specific channel.<br><br>I know there are several scripts that check for Ops status, but i have a specific need for the base code. If anyone can help, it would be much appriciated. Thank you<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9316">MetalGuru1972</a> — Tue Sep 18, 2007 11:37 am</p><hr />
]]></content>
	</entry>
	</feed>
