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

	<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>2004-05-26T13:02:04-04:00</updated>

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

		<entry>
		<author><name><![CDATA[KrzychuG]]></name></author>
		<updated>2004-05-26T13:02:04-04:00</updated>

		<published>2004-05-26T13:02:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36611#p36611</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36611#p36611"/>
		<title type="html"><![CDATA[Random bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36611#p36611"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub n !random show:randombotsproc show:randombots { nick uhost handle channel arg } {  set limit [lindex $arg 0]  set bots [chanlist $channel b]  if {$limit &gt; [expr [llength $bots] + 1]} then {    set limit [expr [llength $bots] + 1]  }  set fbots ""  set tlimit $limit  while {$tlimit &gt; 0} {    set bot [lindex $bots [rand [llength $bots]]]    if {[lsearch $fbots $bot] == -1} then {          lappend fbots $bot      set tlimit [expr $tlimit - 1]    }  }  if {$fbots != ""} then {    putserv "PRIVMSG $channel :Random bots on $channel: $fbots"  } else {    putserv "PRIVMSG $channel :No bots on $channel"  }  return 0} ;# show:randombots  </code></pre></div> <br><br>I hope it works :)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3672">KrzychuG</a> — Wed May 26, 2004 1:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[kem]]></name></author>
		<updated>2004-05-26T09:26:53-04:00</updated>

		<published>2004-05-26T09:26:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36603#p36603</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36603#p36603"/>
		<title type="html"><![CDATA[Random bots]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36603#p36603"><![CDATA[
bind pub n !random testk<br><br>proc testk {nick uhost hand chan args} {<br>  set ilebotof [lindex [join $args] 0]<br>  set kolek [bots]<br>  set stringi "$kolek"<br>  set miasto "[lindex $stringi $ilebotof]"<br>  putserv "privmsg $chan :Random bots $miasto"<br>  return 1<br>}<br>I need tcl when i give !random 5 -  bot, give to channel 5 nicks bots (Random search from userlist-linked bots)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4970">kem</a> — Wed May 26, 2004 9:26 am</p><hr />
]]></content>
	</entry>
	</feed>
