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

	<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-05-15T05:18:23-04:00</updated>

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

		<entry>
		<author><name><![CDATA[basa]]></name></author>
		<updated>2007-05-15T05:18:23-04:00</updated>

		<published>2007-05-15T05:18:23-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72778#p72778</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72778#p72778"/>
		<title type="html"><![CDATA[Random message from file to user (bind) and rk - please help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72778#p72778"><![CDATA[
thank you now workin fine <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=8994">basa</a> — Tue May 15, 2007 5:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-15T05:00:59-04:00</updated>

		<published>2007-05-15T05:00:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72777#p72777</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72777#p72777"/>
		<title type="html"><![CDATA[Random message from file to user (bind) and rk - please help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72777#p72777"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>puthelp "privmsg $chan :[lindex [split $arg] 0] $msg"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 15, 2007 5:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[basa]]></name></author>
		<updated>2007-05-15T04:20:20-04:00</updated>

		<published>2007-05-15T04:20:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72775#p72775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72775#p72775"/>
		<title type="html"><![CDATA[Random message from file to user (bind) and rk - please help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72775#p72775"><![CDATA[
thank you Sir_Fz !rk command workin fine<br>but !msg put line to private msg , how change to chan message ?<br><br>i try change line <br>puthelp "privmsg [lindex [split $arg] 0] :$msg"<br>to <br>puthelp "privmsg $chan [lindex [split $arg] 0] :$msg" <br><br>but not works , in results bot write only nick name in chan without message.<br><br>thx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8994">basa</a> — Tue May 15, 2007 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-14T16:57:58-04:00</updated>

		<published>2007-05-14T16:57:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72763#p72763</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72763#p72763"/>
		<title type="html"><![CDATA[Random message from file to user (bind) and rk - please help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72763#p72763"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set textlist { "Line 1 here..." "Another line here..." "again here..."}bind pub - !msg rand:cmdbind pub - !rk rand:cmdproc rand:cmd {nick uhost hand chan arg} { global textlist lastbind set msg [lindex $textlist [rand [llength $textlist]]] set ns [chanlist $chan] switch -- $lastbind {  "!msg" {   puthelp "privmsg [lindex [split $arg] 0] :$msg"  }  "!rk" {   set n [lindex $ns [rand [llength $ns]]]   puthelp "kick $chan $n :$msg"  } }}</code></pre></div>the !rk command might kick the bot itself as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 14, 2007 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[basa]]></name></author>
		<updated>2007-05-14T14:33:32-04:00</updated>

		<published>2007-05-14T14:33:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72761#p72761</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72761#p72761"/>
		<title type="html"><![CDATA[Random message from file to user (bind) and rk - please help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72761#p72761"><![CDATA[
Hello , im totally lame with tcl scripting but need two i think simple scripts. If someone can help will be nice. I try explain what this scripts  should works.<br><br><strong class="text-strong">Script 1: Random message from file to user (bind)</strong><br><br>Script usage should looks like :<br><br>!msg Agnes88<br><br>bot reaction<br><br>&lt;bot&gt; Agnes88 here random text from list<br><br>script should get line from list in file or list writed in this tcl<br><br><strong class="text-strong">Script 2 : Simple Random Kick (bind)</strong><br><br>using in channel :<br><br>!rk<br><br>bot reaction:<br><br>bot should kick random person from channel with reason chosed random line from file or from this tcl script,<br>script can use any person in chann and can kick all user ranges (ops too also person who writed !rk)<br><br>Very big thanks for help and sorry for poor english<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8994">basa</a> — Mon May 14, 2007 2:33 pm</p><hr />
]]></content>
	</entry>
	</feed>
