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

	<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-13T08:52:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-08-13T08:52:34-04:00</updated>

		<published>2007-08-13T08:52:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75243#p75243</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75243#p75243"/>
		<title type="html"><![CDATA[random kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75243#p75243"><![CDATA[
How can i add a counter for this, i want it o look like this when i type: !randtstats<br><br>&lt;eggdrop&gt; [Total] all [Lost] lost [Bitchowns] allowned [Success] % of winning<br>&lt;eggdrop&gt; [Last Own] Nick bitchowned Randnick.<br><div class="codebox"><p>Code: </p><pre><code>set norand offbind pub - !random random:kickproc random:kick {nick uhost hand chan text} {  global norand  set banmask *!*@[lindex [split [getchanhost $nick $chan] @] 1]  set victims [list]  foreach possibleVictim [chanlist $chan] {    if {![isbotnick $possibleVictim]&amp;&amp;![matchattr [nick2hand $possibleVictim] bn|nb $chan]} {      lappend victims $possibleVictim    }  }  if {[llength $victims] &amp;&amp; ($norand == off)} {    set victim [lindex $victims [rand [llength $victims]]]    putserv "KICK $chan $victim :Bitchowned by $nick!"    set norand on    timer 30 "set norand off"    } else {    putserv "MODE $chan +b :$banmask"    putserv "KICK $chan $nick :You lost!"    utimer 30 [list putserv "MODE $chan -b $banmask"]  }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Mon Aug 13, 2007 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-08-12T10:27:28-04:00</updated>

		<published>2007-08-12T10:27:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75209#p75209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75209#p75209"/>
		<title type="html"><![CDATA[random kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75209#p75209"><![CDATA[
Nvm, i got it. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Sun Aug 12, 2007 10:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-08-09T20:05:06-04:00</updated>

		<published>2007-08-09T20:05:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75164#p75164</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75164#p75164"/>
		<title type="html"><![CDATA[random kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75164#p75164"><![CDATA[
why don't you just bind the public command to a flag, such as +f.  That way only your friends can use it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Thu Aug 09, 2007 8:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-08-09T19:04:54-04:00</updated>

		<published>2007-08-09T19:04:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75163#p75163</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75163#p75163"/>
		<title type="html"><![CDATA[random kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75163#p75163"><![CDATA[
Okay people flooding my bot, how can i set it to ignore it for 30mins and if any one does !random with in that time they will get banned for 2 3 mins.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Thu Aug 09, 2007 7:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-08-09T08:38:07-04:00</updated>

		<published>2007-08-09T08:38:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75157#p75157</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75157#p75157"/>
		<title type="html"><![CDATA[random kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75157#p75157"><![CDATA[
Something like this (not tested):<div class="codebox"><p>Code: </p><pre><code>proc text:attack {nick uhost hand chan text} {# 1) generate list of nicks than can be kickedset victims [list]foreach possibleVictim [chanlist $chan] {if {![isbotnick $possibleVictim]&amp;&amp;![matchattr [nick2hand $possibleVictim] bfmno|bfmno $chan]} {lappend victims $possibleVictim}}# 2) kick (unless the list is empty)if {[llength $victims]} {set victim [lindex $victims [rand [llength $victims]]]putserv "KICK $chan $victim :Bitchowned by $nick!"} else {putserv "PRIVMSG $chan :No suitable victims at the moment."}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Aug 09, 2007 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[sdays]]></name></author>
		<updated>2007-08-09T08:25:32-04:00</updated>

		<published>2007-08-09T08:25:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=75156#p75156</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=75156#p75156"/>
		<title type="html"><![CDATA[random kick]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=75156#p75156"><![CDATA[
How can i fix it so it won't kick owners or bots?<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !random text:attackproc text:attack {nick uhost hand chan text} {   set nicks [chanlist $chan]  set randnick [lindex $nicks [rand [llength $nicks]]]   putserv "KICK $chan $randnick :Bitchowned by $nick!"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8306">sdays</a> — Thu Aug 09, 2007 8:25 am</p><hr />
]]></content>
	</entry>
	</feed>
