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

	<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-08-04T16:11:53-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Ciber]]></name></author>
		<updated>2006-08-04T16:11:53-04:00</updated>

		<published>2006-08-04T16:11:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65153#p65153</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65153#p65153"/>
		<title type="html"><![CDATA[Random User checks, if channel has under 5 users leave.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65153#p65153"><![CDATA[
Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8048">Ciber</a> — Fri Aug 04, 2006 4:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[metroid]]></name></author>
		<updated>2006-08-04T16:00:28-04:00</updated>

		<published>2006-08-04T16:00:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65150#p65150</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65150#p65150"/>
		<title type="html"><![CDATA[Random User checks, if channel has under 5 users leave.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65150#p65150"><![CDATA[
You can't do a check onjoin since the bot doesn't know how many people are on a channel when it joins, for a simple check (every 10 minutes)<br><div class="codebox"><p>Code: </p><pre><code>bind TIME -|- {?0 * * * *} check:stuffproc check:stuff {args} {  foreach channel [channels] {    if {[expr [clock seconds] - [getchanjoin $::botnick $channel]] &gt; 60} {      # only continue if we joined more than 60 seconds ago      if {[llength [chanlist $channel]] &lt; 5} {        channel remove $channel      }    }  }}</code></pre></div>Untested, i'm not exactly sure if the getchanjoin part will work as planned <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=5078">metroid</a> — Fri Aug 04, 2006 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ciber]]></name></author>
		<updated>2006-08-03T13:37:57-04:00</updated>

		<published>2006-08-03T13:37:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65124#p65124</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65124#p65124"/>
		<title type="html"><![CDATA[Random User checks, if channel has under 5 users leave.]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65124#p65124"><![CDATA[
Okay, i'd like a script mainly to prevent abuse and make the bot avalible to others more. I want it to do a check on join, and maybe a check every 20 mins to see if the channel has 5+ users. If under 5 users it will leave the channel.<br><br>Thanks <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=8048">Ciber</a> — Thu Aug 03, 2006 1:37 pm</p><hr />
]]></content>
	</entry>
	</feed>
