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

	<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>2013-04-01T16:57:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-04-01T16:57:58-04:00</updated>

		<published>2013-04-01T16:57:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101349#p101349</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101349#p101349"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101349#p101349"><![CDATA[
There is no bind for '!lines' in your script, just for !list<br><br>But either way, to make that proc reply with just: to make it only say "line count is: 1011" or whatever...<br><div class="codebox"><p>Code: </p><pre><code>proc listboobs {nick uhost hand chan arg} {    if {[string equal -nocase $chan "#chick3n"]} {       if {[file exists "boobs.txt"]} {          set file [open "boobs.txt" r]          set line 0 ; set quotes [list]          set line_counter 0          while {![eof $file]} {             set quote [gets $file]             if {$quote != ""} {                lappend quotes $quote               incr line_counter             }          }       }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 01, 2013 4:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FightingNavyman]]></name></author>
		<updated>2013-04-01T16:50:19-04:00</updated>

		<published>2013-04-01T16:50:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101348#p101348</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101348#p101348"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101348#p101348"><![CDATA[
yeah I thank you for fixing it.. but which one of the 2 codes should I take off or should i just take both off to make it only say "line count is: 1011" or whatever because..<br>  &lt;@chachin&gt; !lines<br> &lt;+BoobsBot&gt; line count is: 1011<br> &lt;+BoobsBot&gt; 1011<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11503">FightingNavyman</a> — Mon Apr 01, 2013 4:50 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-04-01T16:50:54-04:00</updated>

		<published>2013-04-01T16:44:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101347#p101347</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101347#p101347"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101347#p101347"><![CDATA[
Explain what you are expecting the bot to do when you type: !list<br><br>I only fixed the issues that were generating your error from above.<br>I did not change or fix what your process does or displays.<br><br>Looks to me that the file in question has 1011 lines in it, there is no way the bot can be expected to list out all 1011 lines to a channel:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon Apr 01, 2013 4:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FightingNavyman]]></name></author>
		<updated>2013-04-01T16:04:40-04:00</updated>

		<published>2013-04-01T16:04:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101346#p101346</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101346#p101346"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101346#p101346"><![CDATA[
Hey sorry if if I didnt answer right away when you posted the 2nd fix or whatever.. My stupid vps provider got a ddos last night and i couldnt get back the bot but now it's online and when I rehashed and all.. when i do !list it does this:<br><br>«03:01:26:pm» &lt;@chachin&gt; !list<br>«03:01:27:pm» &lt;@BoobsBot&gt; line count is: 1011<br>«03:01:28:pm» &lt;@BoobsBot&gt; 1011<br><br>So should I take: <div class="codebox"><p>Code: </p><pre><code>if {$arg != ""} {             foreach quote $quotes {                set pattern [string tolower $arg]                set lowquote [string tolower $quote]                if {[string match $pattern $lowquote]} {                   set line [expr {$line+1}]                }                putserv "privmsg $chan :$line"             } </code></pre></div> this or this off from the script?<div class="codebox"><p>Code: </p><pre><code>} else {             foreach quote $quotes {                set line [expr {$line+1}]             }             putserv "privmsg $chan :$line"          }       }    } }</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11503">FightingNavyman</a> — Mon Apr 01, 2013 4:04 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-03-31T22:11:17-04:00</updated>

		<published>2013-03-31T22:11:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101328#p101328</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101328#p101328"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101328#p101328"><![CDATA[
lol...<br>Well, that was just supposed to replace the same chunk in your script, and still needed the rest of your proc, like...<div class="codebox"><p>Code: </p><pre><code>proc listboobs {nick uhost hand chan arg} {if {[string equal -nocase $chan "#chick3n"]} {if {[file exists "boobs.txt"]} {set file [open "boobs.txt" r]set line 0 ; set quotes [list]set line_counter 0while {![eof $file]} {set quote [gets $file]if {$quote != ""} {lappend quotes $quote  incr line_counter}}putserv "privmsg $chan :line count is: $line_counter"close $fileif {$arg != ""} {foreach quote $quotes {set pattern [string tolower $arg]set lowquote [string tolower $quote]if {[string match $pattern $lowquote]} {set line [expr {$line+1}]}putserv "privmsg $chan :$line"}} else {foreach quote $quotes {set line [expr {$line+1}]}putserv "privmsg $chan :$line"}}}}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Mar 31, 2013 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FightingNavyman]]></name></author>
		<updated>2013-03-31T22:02:49-04:00</updated>

		<published>2013-03-31T22:02:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101327#p101327</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101327#p101327"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101327#p101327"><![CDATA[
I dont know if i copy/pasted your code right or wrong but when I .rehashed the bot it said this after:<blockquote class="uncited"><div>«08:58:06:pm» &lt;BoobsBot&gt; [05:58:07] Tcl error in file 'BoobsBot/BoobsBot.conf':<br>«08:58:06:pm» &lt;BoobsBot&gt; [05:58:07] missing close-brace<br>«08:58:06:pm» &lt;BoobsBot&gt; while executing<br>«08:58:06:pm» &lt;BoobsBot&gt; "proc listboobs {nick uhost hand chan arg} {<br>«08:58:06:pm» &lt;BoobsBot&gt; if {[string equal -nocase $chan "#chick3n"]} {<br>«08:58:06:pm» &lt;BoobsBot&gt; if {[file exists "boobs.txt"]} {<br>«08:58:06:pm» &lt;BoobsBot&gt; se..."<br>«08:58:06:pm» &lt;BoobsBot&gt; (file "scripts/boobies.tcl" line 47)<br>«08:58:06:pm» &lt;BoobsBot&gt; invoked from within<br>«08:58:06:pm» &lt;BoobsBot&gt; "source scripts/boobies.tcl"<br>«08:58:06:pm» &lt;BoobsBot&gt; (file "BoobsBot/BoobsBot.conf" line 302)<br>«08:58:06:pm» &lt;BoobsBot&gt; [05:58:07] * CONFIG FILE NOT LOADED (NOT FOUND, OR ERROR)</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11503">FightingNavyman</a> — Sun Mar 31, 2013 10:02 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2013-03-31T21:30:49-04:00</updated>

		<published>2013-03-31T21:30:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101326#p101326</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101326#p101326"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101326#p101326"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>proc listboobs {nick uhost hand chan arg} {if {[string equal -nocase $chan "#chick3n"]} {if {[file exists "boobs.txt"]} {set file [open "boobs.txt" r]set line 0 ; set quotes [list]set line_counter 0while {![eof $file]} {set quote [gets $file]if {$quote != ""} {lappend quotes $quote  incr line_counter}}</code></pre></div>That should fix the beginning of that proc.<br><br>Not really sure what you are trying to do with the rest of the proc, but it's probably broke too.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Mar 31, 2013 9:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FightingNavyman]]></name></author>
		<updated>2013-03-31T18:35:54-04:00</updated>

		<published>2013-03-31T18:35:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=101325#p101325</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=101325#p101325"/>
		<title type="html"><![CDATA[some type of quote script but its not]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=101325#p101325"><![CDATA[
when I do !list to get to know how many url's i have inside boobs.txt I get this error on my bot via dcc chat:<blockquote class="uncited"><div>«05:15:12:pm» &lt;chachin&gt; .set errorInfo<br>«05:15:12:pm» &lt;BoobsBot&gt; [02:15:13] #chachin# set errorInfo<br>«05:15:12:pm» &lt;BoobsBot&gt; Currently: can not find channel named "boobs.txt"<br>«05:15:12:pm» &lt;BoobsBot&gt; Currently: while executing<br>«05:15:12:pm» &lt;BoobsBot&gt; Currently: "eof "boobs.txt""<br>«05:15:12:pm» &lt;BoobsBot&gt; Currently: (procedure "listboobs" line 12)<br>«05:15:12:pm» &lt;BoobsBot&gt; Currently: invoked from within<br>«05:15:12:pm» &lt;BoobsBot&gt; Currently: "listboobs $_pub1 $_pub2 $_pub3 $_pub4 $_pub5"</div></blockquote>was wondering what I would have to do to fix this <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br><br><a href="http://paste.tclhelp.net/?id=d2p" class="postlink">http://paste.tclhelp.net/?id=d2p</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11503">FightingNavyman</a> — Sun Mar 31, 2013 6:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
