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

	<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>2003-12-12T12:34:50-04:00</updated>

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

		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-12T12:34:50-04:00</updated>

		<published>2003-12-12T12:34:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31365#p31365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31365#p31365"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31365#p31365"><![CDATA[
hehe <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Fri Dec 12, 2003 12:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-12T12:30:07-04:00</updated>

		<published>2003-12-12T12:30:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31364#p31364</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31364#p31364"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31364#p31364"><![CDATA[
<blockquote class="uncited"><div>thx man ur the best <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>don't say that to me, I allready know <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>just say that to anybody you meet <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=691">CrazyCat</a> — Fri Dec 12, 2003 12:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-12T12:08:25-04:00</updated>

		<published>2003-12-12T12:08:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31363#p31363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31363#p31363"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31363#p31363"><![CDATA[
thx man ur the best <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=4156">MeJseL</a> — Fri Dec 12, 2003 12:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-12T11:34:36-04:00</updated>

		<published>2003-12-12T11:34:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31359#p31359</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31359#p31359"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31359#p31359"><![CDATA[
you can put all the lines you want...<br>each line is read and sent to the good eggdrop, with cycling them.<div class="codebox"><p>Code: </p><pre><code>incr cur_eggif { $cur_egg == [llength $com_list] } {set cur_egg 0 </code></pre></div>This is the way to cycle: if we are further than the items number (ie the number of eggs), we restart from 0<br><br>And to use notice, it's a little more difficult: you must send the recipient'nick to each egg, and each egg must split the line...<br>so, it could be like this:<br>### MASTA script<div class="codebox"><p>Code: </p><pre><code>putbot [lindex $egglist $cur_egg] [concat "&gt;say" $cur_com]becomes:putbot [lindex $egglist $cur_egg] [concat "&gt;say $nick" $cur_com]andputhelp "PRIVMSG $chan :$cur_com"becomesputhelp "NOTICE $nick :$cur_com"</code></pre></div>### SLAVE script<div class="codebox"><p>Code: </p><pre><code>proc list:say { from cmd arg } {   global saychan master_egg   if { $from == $master_egg } {      puthelp "PRIVMSG $saychan :$arg"   }} becomesproc list:say { from cmd arg } {   global saychan master_egg   set nick [lindex $arg 0]   set text [lrange $arg 1 end]   if { $from == $master_egg } {      puthelp "NOTICE $nick :$text"   }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Dec 12, 2003 11:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-12T09:20:59-04:00</updated>

		<published>2003-12-12T09:20:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31354#p31354</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31354#p31354"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31354#p31354"><![CDATA[
but hmm i have more then 4 lines in the command list and the bot only msg 4 of them <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"> .. how do i make them msg all commands like 10 lines ?<br>and how about notice nick insted of msg chan ? .. i know thats a lot of thing and im a pain in the ass but it would been so nice if u could help me <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=4156">MeJseL</a> — Fri Dec 12, 2003 9:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-12T09:00:19-04:00</updated>

		<published>2003-12-12T09:00:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31351#p31351</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31351#p31351"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31351#p31351"><![CDATA[
It worked thx a lot<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Fri Dec 12, 2003 9:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-12T03:35:15-04:00</updated>

		<published>2003-12-12T03:35:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31349#p31349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31349#p31349"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31349#p31349"><![CDATA[
Yes, I understand <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I'd inverted arguments in lindex command, this is now tested <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code>proc list:send {nick uhost handle chan arg} {   global egglist comlist botnick   set cur_egg 0   foreach cur_com $comlist {      if { [lindex $egglist $cur_egg] == $botnick } {         puthelp "PRIVMSG $chan :$cur_com"      } else {         putbot [lindex $egglist $cur_egg] [concat "&gt;say" $cur_com]      }      incr cur_egg      if { $cur_egg == [llength $comlist] } {         set cur_egg 0      }   }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Fri Dec 12, 2003 3:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-11T16:09:24-04:00</updated>

		<published>2003-12-11T16:09:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31343#p31343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31343#p31343"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31343#p31343"><![CDATA[
Same error ^^ :<div class="codebox"><p>Code: </p><pre><code>Tcl error [list:send]: bad index "apa": must be integer or end?-integer?</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Thu Dec 11, 2003 4:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-11T13:39:15-04:00</updated>

		<published>2003-12-11T13:39:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31337#p31337</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31337#p31337"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31337#p31337"><![CDATA[
sorry, I made some mistakes (forgetting some $)<div class="codebox"><p>Code: </p><pre><code>proc list:send {nick uhost handle chan arg} {   global egglist comlist   set cur_egg 0   foreach cur_com $comlist {      if { [lindex $cur_egg $egglist] == $botnick } {         puthelp "PRIVMSG $chan :$cur_com"      } else {         putbot [lindex $cur_egg $egglist] [concat "&gt;say" $cur_com]      }      incr cur_egg      if { $cur_egg == [llength $com_list] } {         set cur_egg 0      }   }} </code></pre></div>replace the procedure with this one <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=691">CrazyCat</a> — Thu Dec 11, 2003 1:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-11T12:33:56-04:00</updated>

		<published>2003-12-11T12:33:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31333#p31333</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31333#p31333"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31333#p31333"><![CDATA[
Didnt work :<br><div class="codebox"><p>Code: </p><pre><code>Tcl error [list:send]: bad index "aPa": must be integer or end?-integer?</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Thu Dec 11, 2003 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-11T11:40:37-04:00</updated>

		<published>2003-12-11T11:40:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31327#p31327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31327#p31327"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31327#p31327"><![CDATA[
No, I can't <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>Ok, here's a *complete* example, with a rare thing when I script: some comments <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>The code is in 2 parts, the master on the master egg, the slave on the others eggs.<div class="codebox"><p>Code: </p><pre><code># Master script### SETTINGSset egglist { "egg1" "egg2" "egg3" "egg4"}# Masta must be in this list, the better position is first# nicks in the list are botnet-nickset comlist {"command1 is usefull for nothing""command2 won't be used""command3 is the best for n00b""command4 is the last"}# that's the array containning all the texts, refer to escape characters to avoid troubles...### BINDSbind pub - "!command" list:send# just a bind :)### PROCEDURESproc list:send {nick uhost handle chan arg} {   global egglist comlist   set cur_egg 0   foreach cur_com $comlist {      if { [lindex cur_egg $egglist] == $botnick } {         puthelp "PRIVMSG $chan :$cur_com"      } else {         putbot [lindex cur_egg $egglist] [concat "&gt;say" $cur_com]      }      incr cur_egg      if { $cur_egg == [llength $com_list] } {         set cur_egg 0      }   }}# end of master script# Slave script### SETTINGSset master_egg "egg1"# The botnet-nick of the senderset saychan "#yourchan"### BINDSbind bot - "&gt;say" list:say### PROCEDURESproc list:say { from cmd arg } {   global saychan master_egg   if { $from == $master_egg } {      puthelp "PRIVMSG $saychan :$arg"   }}# end of slave script</code></pre></div>It's a simple one, you can improve it with having some feedback from each eggdrops, indicating they have said the sentence.<br>It could be a security (only one sentence in global queue), but you have enough elements to make the best you need <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=691">CrazyCat</a> — Thu Dec 11, 2003 11:40 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-11T09:44:18-04:00</updated>

		<published>2003-12-11T09:44:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31324#p31324</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31324#p31324"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31324#p31324"><![CDATA[
hehe the second one was that i thought about but i dont realy know how to do that in tcl im use to mirc scripting .. cant u show just a little example ? .. that would be verry nice  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Thu Dec 11, 2003 9:44 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-12-11T07:42:50-04:00</updated>

		<published>2003-12-11T07:42:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31316#p31316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31316#p31316"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31316#p31316"><![CDATA[
you can make it easily following 2 different ways.<br>1st: each eggdrop bind for the previous command explanation, and tell the next one.<br>- contraint: you can't easily change the command list.<br><br>2nd: a master eggdrop have the list of all commands/explanations and of all eggdrops, and send each bot the command it must explain via botnet.<br>The receiver just repeat in channel what it receives.<br>- contraint: due to lag, botnet might be faster than putserv, so the order might be a random one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu Dec 11, 2003 7:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[MeJseL]]></name></author>
		<updated>2003-12-11T05:24:42-04:00</updated>

		<published>2003-12-11T05:24:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31302#p31302</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31302#p31302"/>
		<title type="html"><![CDATA[bots share command list]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31302#p31302"><![CDATA[
Anyone know a script or somthing to make the bot share command help list , like if i type "!commands"  and i have 4 bots on .. one bot notice the first command help line then another bot notice the second and then the 3 bot notice the third line and so on .. hope somone can help me with this problem .. i have seen bots that have the same thing but they are not eggdrops.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4156">MeJseL</a> — Thu Dec 11, 2003 5:24 am</p><hr />
]]></content>
	</entry>
	</feed>
