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

	<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>2001-12-16T12:09:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-16T12:09:00-04:00</updated>

		<published>2001-12-16T12:09:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2821#p2821</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2821#p2821"/>
		<title type="html"><![CDATA[random characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2821#p2821"><![CDATA[
Somthing like this should do it<br><blockquote class="uncited"><div><br>proc randchar {len} {<br>  set t ""<br>  set alphanum "ABCDEFGHIJKLMOPQRSTUVWXYZabcdefghijklmopqrstuvwxyz01234567890"<br>  while {[string length $t] &lt; $len} {<br>    append t [string index $alphanum [rand [string length $alphanum]]]<br>  }<br>  return $t<br>}</div></blockquote>Then in your script, while outputting, use<blockquote class="uncited"><div>putserv "PRIVMSG nick :random [randchar 10]"</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 16, 2001 12:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-16T00:34:00-04:00</updated>

		<published>2001-12-16T00:34:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2807#p2807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2807#p2807"/>
		<title type="html"><![CDATA[random characters]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2807#p2807"><![CDATA[
I am using eggdrop 1.6.4 (I know I know),<br><br>I am new to tcl (this is my first attempt), and I am trying to get the bot to respond with an action on text in the channel<br><br>I have the bind in place and everything works, but now I would like to respond with random characters. Random alhpanumerics at least 10 characters in length.<br><br>Is this possible?<br><br>Thanks in advance <br><p>Statistics: Posted by Guest — Sun Dec 16, 2001 12:34 am</p><hr />
]]></content>
	</entry>
	</feed>
