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

	<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>2002-03-18T17:44:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-18T17:44:00-04:00</updated>

		<published>2002-03-18T17:44:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5508#p5508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5508#p5508"/>
		<title type="html"><![CDATA[help with random nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5508#p5508"><![CDATA[
Thanks stdragon! That worked like a charm <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><br>Any ideas how I might be able to set/change the keyword via a /msg to the bot? Currently, I can edit the file manually, but I figured if It could be done via a msg, it would be a little slicker.<p>Statistics: Posted by Guest — Mon Mar 18, 2002 5:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-03-18T09:46:00-04:00</updated>

		<published>2002-03-18T09:46:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5492#p5492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5492#p5492"/>
		<title type="html"><![CDATA[help with random nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5492#p5492"><![CDATA[
set people [chanlist $chan]<br>set randnick [lindex $people [rand [llength $people]]]<br><br>baa<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Mon Mar 18, 2002 9:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-03-17T19:16:00-04:00</updated>

		<published>2002-03-17T19:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=5481#p5481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=5481#p5481"/>
		<title type="html"><![CDATA[help with random nicks]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=5481#p5481"><![CDATA[
I'm attempting to insert a random nick into a randomly chosen list of lines from a channel that a keyword is spoken in.<br><div class="codebox"><p>Code: </p><pre><code>bind pubm - * test_msgproc test_msg {nick uhost hand chan arg} {   set rano "[rand 4]"   set randnick [chanlist $chan]   set words $arg   set test(0) "hey $randnick don't ever /msg me like that again!"   set test(1) "$randnick, you really think $randnick should be banned from $chan?"   set test(2) "I dont think its legal to do that to $randnick"   set test(3) "$randnick, that's a crazy idea"   if {[string match "* keyword *" [string tolower $words]]} { putserv "PRIVMSG $chan :$test($rano)" }}</code></pre></div>With this, I'm able to insert _all_ of the nicks in the chanlist, but I can't seem to insert a random nick. I've also tried this:<br>set randnick [lindex [chanlist $chan] [llength [chanlist $chan]]]<br>but the output I get is:<br>&lt;BotNick&gt; , you really think should be banned from $chan?<br><br>Can anyone help?<p>Statistics: Posted by Guest — Sun Mar 17, 2002 7:16 pm</p><hr />
]]></content>
	</entry>
	</feed>
