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

	<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-06-24T06:15:10-04:00</updated>

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

		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-24T06:15:10-04:00</updated>

		<published>2007-06-24T06:15:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73861#p73861</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73861#p73861"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73861#p73861"><![CDATA[
Thank you soo much SirFz, I really appreciate your efforts.<br><br>Thank You<br><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Sun Jun 24, 2007 6:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T19:49:47-04:00</updated>

		<published>2007-06-22T19:49:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73802#p73802</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73802#p73802"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73802#p73802"><![CDATA[
I've edited it again and added removing the nick from the already-msged nicks if it is kicked.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 7:49 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-22T19:38:11-04:00</updated>

		<published>2007-06-22T19:38:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73801#p73801</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73801#p73801"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73801#p73801"><![CDATA[
Thanks alot, it's working perfect now.<br><br>Thank you soo much <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Jun 22, 2007 7:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T18:43:00-04:00</updated>

		<published>2007-06-22T18:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73800#p73800</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73800#p73800"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73800#p73800"><![CDATA[
I edited the code and the error must not appear anymore.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 6:43 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-22T18:01:04-04:00</updated>

		<published>2007-06-22T18:01:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73794#p73794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73794#p73794"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73794#p73794"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>[03:02] &lt;ShetanGal&gt; [03:03] Tcl error [send:msg]: random limit must be greater than zero[03:03] &lt;ShetanGal&gt; [03:04] Tcl error [send:msg]: random limit must be greater than zero[03:04] &lt;ShetanGal&gt; [03:05] Tcl error [send:msg]: random limit must be greater than zero</code></pre></div>This is what I get in DCC any idea?<br><br>thanks<br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Jun 22, 2007 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-22T14:07:56-04:00</updated>

		<published>2007-06-22T14:07:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73792#p73792</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73792#p73792"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73792#p73792"><![CDATA[
thanks alot, it's working smooth now <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":-)" title="Smile"><br><br>Thank you soo much<br><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Jun 22, 2007 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T10:14:24-04:00</updated>

		<published>2007-06-22T10:14:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73786#p73786</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73786#p73786"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73786#p73786"><![CDATA[
Try the edited code now.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Jun 22, 2007 10:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-22T08:39:07-04:00</updated>

		<published>2007-06-22T08:39:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73780#p73780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73780#p73780"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73780#p73780"><![CDATA[
The problem is that the bot is msging itself and also it's messagin the ops and voiced users. How can I make it not msg itself and op/voice users.<br><br>also it is msging users always, can't we restrict it so that if the bot msged one user it shouldnt msg him/her anymore until that nick parts or quits<br><br><br>I did this to find out:<br><div class="codebox"><p>Code: </p><pre><code>  puthelp "privmsg $n :[lindex $randmsg(msgs) [rand [llength $randmsg(msgs)]]]"  putlog "Just msged $n"  set randmsg(n:$n) 1</code></pre></div>I found out:<br><div class="codebox"><p>Code: </p><pre><code>[17:37] &lt;ShetanGal&gt; [17:38] Just msged lair[17:38] &lt;ShetanGal&gt; [17:39] Just msged cancerian[17:39] &lt;ShetanGal&gt; [17:40] Just msged cheetah[17:40] &lt;ShetanGal&gt; [17:41] Just msged shetangal[17:41] &lt;ShetanGal&gt; [17:42] Just msged lair[17:42] &lt;ShetanGal&gt; [17:43] Just msged alone_m_isb</code></pre></div>You see the nickname lair comes 2 times lair is an op too and bot msges itself as it's nickname is ShetanGal.<br><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Jun 22, 2007 8:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-22T04:53:32-04:00</updated>

		<published>2007-06-22T04:53:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73775#p73775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73775#p73775"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73775#p73775"><![CDATA[
Thanks alot SirFz, let me put it in the bot and will let you know if I find any problem.<br><br>Thanks once again.<br><br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Fri Jun 22, 2007 4:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-06-22T19:48:03-04:00</updated>

		<published>2007-06-21T11:11:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73735#p73735</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73735#p73735"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73735#p73735"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set randmsg(time) 10set randmsg(chan) #channelset randmsg(msgs) { "msg 1" "msg 2" "msg 3"}bind time - * send:msgbind part - * rem:nickbind sign - * rem:nickbind kick - * rem:nickproc send:msg {m h args} { global randmsg if {([scan $m %d]+([scan $h %d]*60)) % $randmsg(time)  == 0} {  set cl [split [string tolower [join [chanlist $randmsg(chan)]]]]  set cll [llength $cl]  set n [lindex $cl [rand $cll]]  while {[set c [expr {[isvoice $n $randmsg($chan)] || [isop $n $randmsg(chan)] || [info exists randmsg(n:$n)]}]]} {   set i [lsearch -exact $cl $n]   set cl [lreplace $cl $i $i]   if {[incr cll -1] &lt; 1} {break}   set n [lindex $cl [rand $cll]]  }  if {!$c} {   puthelp "privmsg $n :[lindex $randmsg(msgs) [rand [llength $randmsg(msgs)]]]"   set randmsg(n:$n) 1  } }}proc rem:nick {nick uhost hand chan arg {rsn ""}} { global randmsg if {$rsn != ""} { set nick $arg }  if {[info exists randmsg(n:[set nick [string tolower $nick]])]} {  unset randmsg(n:$nick) }}</code></pre></div>Edit: Now it should not msg ops/voices and nicks that have already been msged unless they part/quit.<br>Edit2: Fixed error.<br>Edit3: Added refresh list on kick as well.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Thu Jun 21, 2007 11:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[iamdeath]]></name></author>
		<updated>2007-06-21T09:45:24-04:00</updated>

		<published>2007-06-21T09:45:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=73730#p73730</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=73730#p73730"/>
		<title type="html"><![CDATA[Random MSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=73730#p73730"><![CDATA[
I need a small script which will make my bot msg randomly anyone in the channel after every x minutes op/voices are exempted they wont be msged by the bot. One more thing, if the bot msgs someone then it wont msg that nick until that nick parts the channel or quits from IRC.<br><br>is it possible that you create me this small script.<br><br>Thanks<br>iamdeath<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5982">iamdeath</a> — Thu Jun 21, 2007 9:45 am</p><hr />
]]></content>
	</entry>
	</feed>
