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

	<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>2004-06-18T06:34:12-04:00</updated>

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

		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-18T06:34:12-04:00</updated>

		<published>2004-06-18T06:34:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37548#p37548</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37548#p37548"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37548#p37548"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - `say pub:privmsgproc pub:privmsg {nick uhost hand chan arg} { global ownerset msgchan [lindex $arg 0]if {$nick != $owner} { putserv "PRIVMSG $chan :You don't have access" } if {$msgchan == ""} {putserv "PRVMSG $chan :[join $arg]"} else { putserv "PRIVMSG $msgchan :[join $arg]" }}</code></pre></div>1.what i'm trying to do there if i'm on chan X and i do `say Hello it PRIVMSG X hello<br><br>2.and if i'm on channel X and i do `say #Y hello it PRIVMSG Y hello<br><br>the problem with mine it's doing the first step, and in step 2 when i do `say #X hello it's doing PRIVMSG "#x hello"<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Fri Jun 18, 2004 6:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-18T06:00:41-04:00</updated>

		<published>2004-06-18T06:00:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37546#p37546</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37546#p37546"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37546#p37546"><![CDATA[
eggdrop is fun i just did 8ball all on my own... anyway i'm trying to edit my previous scripts<br><div class="codebox"><p>Code: </p><pre><code>bind pub - `join pub:addchanproc pub:addchan {nick uhost hand chan text} {global ownerset joined [lindex $text 0]if {$nick != $owner} {putserv "NOTICE $nick :You don't have access" } else { channel add $text putserv "PRIVMSG $joined :$joined joined." }}</code></pre></div>it works fine, the problem is that it's msging $joined twice any ideas why?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Fri Jun 18, 2004 6:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[egghead]]></name></author>
		<updated>2004-06-18T03:11:39-04:00</updated>

		<published>2004-06-18T03:11:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37545#p37545</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37545#p37545"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37545#p37545"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind pub - `k pub:kickproc pub:kick {nick uhost hand chan arg } {global ownerset fname "reasons.txt"set fp [open $fname "r"]set data [read -nonewline $fp]close $fpset lines [split $data "\n"] set numlines [llength $lines]set num [rand $numlines]set randline [lindex $lines $num]if {$nick != $owner} {putserv "NOTICE $nick :You don't have access"} else {putkick $chan $arg "$randline" }}</code></pre></div>I put code in the scripts directory and in text directory but i get this message from bot <br><blockquote class="uncited"><div>[11:35:11pm] &lt;DarkJFGirl&gt; [02:33] Tcl error [pub:kick]: couldn't open "reasons.txt": no such file or directory</div></blockquote>where exactly i'm supposed to put it</div></blockquote>Likely in the directory where the bot is started from.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=282">egghead</a> — Fri Jun 18, 2004 3:11 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-18T02:39:34-04:00</updated>

		<published>2004-06-18T02:39:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37544#p37544</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37544#p37544"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37544#p37544"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - `k pub:kickproc pub:kick {nick uhost hand chan arg } {global ownerset fname "reasons.txt"set fp [open $fname "r"]set data [read -nonewline $fp]close $fpset lines [split $data "\n"] set numlines [llength $lines]set num [rand $numlines]set randline [lindex $lines $num]if {$nick != $owner} {putserv "NOTICE $nick :You don't have access"} else {putkick $chan $arg "$randline" }}</code></pre></div>I put code in the scripts directory and in text directory but i get this message from bot <br><blockquote class="uncited"><div>[11:35:11pm] &lt;DarkJFGirl&gt; [02:33] Tcl error [pub:kick]: couldn't open "reasons.txt": no such file or directory</div></blockquote>where exactly i'm supposed to put it<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Fri Jun 18, 2004 2:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-17T17:03:27-04:00</updated>

		<published>2004-06-17T17:03:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37535#p37535</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37535#p37535"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37535#p37535"><![CDATA[
More questions... for a kick script now<br><div class="codebox"><p>Code: </p><pre><code>bind pub - `k pub:kickproc pub:kick {nick uhost hand chan arg } {global ownerif {$nick != $owner} {putserv "NOTICE $nick :You don't have access"} else {putkick $chan $arg "Kicked on request of $nick" }}</code></pre></div>what i'm trying to do<br>} else {<br>set fs [open reasons.txt r] <br>putkick $chan $arg "gets fs $line"<br>}<br>}<br><br>does that make it read a random line from reasons.txt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 17, 2004 5:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-17T16:47:51-04:00</updated>

		<published>2004-06-17T16:47:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37534#p37534</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37534#p37534"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37534#p37534"><![CDATA[
the utimer is for when i type `kb &lt;nick&gt; &lt;ban time&gt; it will unban them after that many seconds <br><br>But thanks anyway  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 17, 2004 4:47 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-17T13:07:09-04:00</updated>

		<published>2004-06-17T13:07:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37521#p37521</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37521#p37521"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37521#p37521"><![CDATA[
hehe, oops, guess i was a bit fast there, i actually ment to use braces, not brackets<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Jun 17, 2004 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-06-17T12:59:20-04:00</updated>

		<published>2004-06-17T12:59:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37520#p37520</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37520#p37520"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37520#p37520"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>utimer [lindex $arg 1] [putserv "MODE $chan -b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"]</code></pre></div></div></blockquote>What's the point of using a utimer, if you are just going to have the command executed right away anyways? (Ie. the []'s invoking the command substitution) ...<br><br>Think you might have meant [list putserv , but left out the 'list' ...<br><div class="codebox"><p>Code: </p><pre><code>utimer [lindex $arg 1] [list putserv "MODE $chan -b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu Jun 17, 2004 12:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[greenbear]]></name></author>
		<updated>2004-06-17T10:19:58-04:00</updated>

		<published>2004-06-17T10:19:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37513#p37513</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37513#p37513"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37513#p37513"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>utimer [lindex $arg 1] [putserv "MODE $chan -b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=24">greenbear</a> — Thu Jun 17, 2004 10:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-17T10:07:52-04:00</updated>

		<published>2004-06-17T10:07:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37512#p37512</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37512#p37512"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37512#p37512"><![CDATA[
<blockquote class="uncited"><div>[07:07:29am] &lt;DarkJFGirl&gt; [10:05] Tcl error in script for 'timer3':<br>[07:07:30am] &lt;DarkJFGirl&gt; [10:05] wrong # args: should be "putserv text ?options?"</div></blockquote><blockquote class="uncited"><div># `Bankick &lt;nick&gt;<br>bind pub - `kb pub:bkick<br>proc pub:bkick {nick uhost hand chan arg} {<br>  global owner botnick<br>  set bnick [join [lindex $arg 0]]<br>  if {$nick != $owner} {<br>    putserv "NOTICE $nick :You don't have access"<br>  } else {<br>    putserv "MODE $chan +b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"<br>    putkick $chan $bnick "Kicked on request of $nick"<br>    utimer [lindex $arg 1] "putserv MODE $chan -b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"<br>    putserv "PRIVMSG $chan :$bnick has been banned for [duration [lindex $arg 1]]"<br>  }<br>}</div></blockquote>is it the utimer? because my bot is banning/kicking correctly it's just not unbanning.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 17, 2004 10:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-17T08:22:47-04:00</updated>

		<published>2004-06-17T08:22:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37511#p37511</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37511#p37511"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37511#p37511"><![CDATA[
read the errormsg carefully and you'll be told what's wrong.. <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>#when enclosed in "'s the arguments is read as ONE argumentputkick "$chan $bnick Kicked on request of $nick"#this is the correct wayputkick $chan $bnick "Kicked on request of $nick"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jun 17, 2004 8:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-17T08:02:08-04:00</updated>

		<published>2004-06-17T08:02:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37510#p37510</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37510#p37510"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37510#p37510"><![CDATA[
<blockquote class="uncited"><div>[05:03:09am] &lt;DarkJFGirl&gt; [08:01] Tcl error [pub:bkick]: wrong # args: should be "putkick channel nick?s? ?comment?"<br>[05:03:10am] &lt;DarkJFGirl&gt; [08:01] #hooters: mode change '+b *!*@CS-Open`Bot.user.gamesurge' by DarkJFGirl!~<a href="mailto:lamest@DarkJFGirl.user.gamesurge">lamest@DarkJFGirl.user.gamesurge</a></div></blockquote>Last line in the script I put i forgot " but i fixed that. So any ideas?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 17, 2004 8:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-17T07:46:33-04:00</updated>

		<published>2004-06-17T07:46:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37508#p37508</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37508#p37508"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37508#p37508"><![CDATA[
it helps if you tell us what the error returned is <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=852">Papillon</a> — Thu Jun 17, 2004 7:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DarkJFMan]]></name></author>
		<updated>2004-06-17T03:59:49-04:00</updated>

		<published>2004-06-17T03:59:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37499#p37499</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37499#p37499"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37499#p37499"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - `kb pub:bkickproc pub:bkick {nick uhost hand chan arg} {  global owner botnick  set bnick [join [lindex $arg 0]]  if {$nick != $owner} {    putserv "NOTICE $nick :You don't have access"  } else {    putserv "MODE $chan +b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"    putkick "$chan $bnick Kicked on request of $nick"    utimer [lindex $arg 1] putserv "MODE $chan -b *!*@[join [lindex [split [getchanhost $bnick] "@"] 1]]"    putserv "PRIVMSG $chan :$bnick has been banned for [duration [lindex $arg 1]]  }}</code></pre></div>whenever i try to load it, my bot crash any help plz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4261">DarkJFMan</a> — Thu Jun 17, 2004 3:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Papillon]]></name></author>
		<updated>2004-06-17T03:56:00-04:00</updated>

		<published>2004-06-17T03:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=37498#p37498</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=37498#p37498"/>
		<title type="html"><![CDATA[very weird error]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=37498#p37498"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>if {[$nick != $owner]}</code></pre></div>drop the []<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=852">Papillon</a> — Thu Jun 17, 2004 3:56 am</p><hr />
]]></content>
	</entry>
	</feed>
