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

	<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>2002-12-22T19:55:47-04:00</updated>

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

		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-12-22T19:55:47-04:00</updated>

		<published>2002-12-22T19:55:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14506#p14506</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14506#p14506"/>
		<title type="html"><![CDATA[Problem with echoscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14506#p14506"><![CDATA[
No problem. To filter things out, consider using string match to check for the content you want or do not want to echo.. If you have any problems with code that you write for this, drop me a PM or a post in this thread and I'll help you out with it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Sun Dec 22, 2002 7:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-22T10:38:19-04:00</updated>

		<published>2002-12-22T10:38:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14500#p14500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14500#p14500"/>
		<title type="html"><![CDATA[Problem with echoscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14500#p14500"><![CDATA[
Thanks for helping me out m8 <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>It's actually working now!<br><br>Now I only need to get some filters working to not echo all the stuff the bot says..<p>Statistics: Posted by Guest — Sun Dec 22, 2002 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-12-21T22:39:57-04:00</updated>

		<published>2002-12-21T22:39:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14488#p14488</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14488#p14488"/>
		<title type="html"><![CDATA[Problem with echoscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14488#p14488"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>#&lt;-totalNFO 1.0 by GoMp-&gt;#&lt;http://www.g0mp.org/&gt;#-#This is a script that will make your bot join the NFOrce-channel#and echo everything the bot nforce says to a specified chan,#meaning all the latest releases will be displayed to your chan...#Note: Only tested on EFnet#-#Variable definingset tnchan "#chan1 #chan2"#the channels the bot will echo to#&lt;- end -&gt;set tnvers "1.0"set tnnick "SOURCENICK"proc tnlog {msg} { putlog "\002.:totalNFO:.\002 $msg" }proc gotechoTN {nick uhost hand chan arg} {        global tnchan tnnick        if {([string match -nocase $tnnick $nick]) &amp;&amp; ([string match -nocase #nforce $chan])} {                foreach tarchan [split $tnchan] {puthelp "PRIVMSG $tarchan :$arg"}                tnlog "$arg" }}proc offechoTN {nick uhost hand chan arg} {        global tnnick        if {[string tolower $nick] == [string tolower $tnnick]} {        tnlog "the NFOrce bot has quit IRC..."        }}proc onechoTN {nick uhost hand chan} {        global tnnick        if {[string tolower $nick] == [string tolower $tnnick]} {        tnlog "the NFOrce bot has joined #NFOrce again. Logging re-started..."        }}proc nickchoTN {nick uhost hand chan newnick} {        global tnnick        if {[string tolower $nick] == [string tolower $tnnick]} {        tnlog "the NFOrce bot has changed nick from $nick to ${newnick}: echoing will only work on someone with nick 'NFOrce'.        }}bind pubm - * gotechoTNbind sign - * offechoTNbind join - * onechoTNbind nick - * nickchoTNputlog "\002:-: totalNFO v${tnvers}\002 by GoMp &lt; http://www.g0mp.org/gomp/ &gt; loaded... \002:-:\002"</code></pre></div>Please, please, look at what I changed so you will know how to avoid the problems that I addressed for the future. I had to take out the channel check at the end, because the bot does not load the channels until after the config, thus why it could never find the channel #nforce upon startup. Maybe someone else can chime in and offer more pointers here.<br><br><em class="text-italics">Known issues:<br><br>No channel check.<br><br>When the "tnnick" bot changes nicks, it echos the nick change message about ten times to the partyline.</em><br><br>I didn't have time to test it further, but at least now it works. Excuse the sloppy code too, I had to wrap this up and yank all my debugs in a hurry. <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=1256">tainted</a> — Sat Dec 21, 2002 10:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tainted]]></name></author>
		<updated>2002-12-21T20:27:16-04:00</updated>

		<published>2002-12-21T20:27:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14481#p14481</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14481#p14481"/>
		<title type="html"><![CDATA[Problem with echoscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14481#p14481"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>                foreach msg [split $tnchan { puthelp "PRIVMSG $tnchan :$arg" }</code></pre></div>Should be..<br><div class="codebox"><p>Code: </p><pre><code>                foreach msg [split $tnchan] { puthelp "PRIVMSG $tnchan :$arg" }</code></pre></div>(From the gotecho proc)<br><br>After doing that - it seems to repeat the text in the wrong channel. I'll toy with it a bit more.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1256">tainted</a> — Sat Dec 21, 2002 8:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-12-21T16:12:38-04:00</updated>

		<published>2002-12-21T16:12:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=14478#p14478</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=14478#p14478"/>
		<title type="html"><![CDATA[Problem with echoscript]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=14478#p14478"><![CDATA[
Got problem when echoing a bot on the same server on another channel.<br>I can succesfully load the tcl when starting eggdrop, but when the on the moment that the bot says something , that supposed to be echoied in mychannel, I get the following error in the partyline &amp; the text isn't echoied.<br><br>               Tcl error [gotechoTN]: missing close-bracket<br><br>I have already searched to fix it but didn't found it yet, maybe someone can help me out ?<br><br><br>tcl script:<br><br><span style="font-size:75%;line-height:116%"></span><br><div class="codebox"><p>Code: </p><pre><code>&lt;-totalNFO 1.0 by GoMp-&gt;#&lt;http://www.g0mp.org/&gt;#-#This is a script that will make your bot join the NFOrce-channel#and echo everything the bot nforce says to a specified chan,#meaning all the latest releases will be displayed to your chan...#Note: Only tested on EFnet#-#Variable definingset tnchan "#mychannel"; #the channels the bot will echo to#&lt;- end -&gt;set tnvers "1.0"set tnnick "NFOrce"proc tnlog {msg} { putlog "\002.:totalNFO:.\002 $msg" }proc gotechoTN {nick uhost hand chan arg} {global tnchan tnnickif {[string tolower $nick] == [string tolower $tnnick]} {foreach msg [split $tnchan { puthelp "PRIVMSG $tnchan :$arg" }tnlog "$arg"}}proc offechoTN {nick uhost hand chan arg} {global tnnickif {[string tolower $nick] == [string tolower $tnnick]} {tnlog "the NFOrce bot has quit IRC..."}}proc onechoTN {nick uhost hand chan} {global tnnickif {[string tolower $nick] == [string tolower $tnnick]} {tnlog "the NFOrce bot has joined #NFOrce again. Logging re-started..."}}proc nickchoTN {nick uhost hand chan newnick} {global tnnickif {[string tolower $nick] == [string tolower $tnnick]} {tnlog "the NFOrce bot has changed nick from $nick to ${newnick}: echoing will only work on someone with nick 'NFOrce'..."}}bind pubm - * gotechoTNbind sign - * offechoTNbind join - * onechoTNbind nick - * nickchoTNset tnmatch 0set tnchans [channels]foreach tnchan $tnchans { if {[string tolower [join $tnchan]] == "#nforce"} { set tnmatch 1 }}if {!$tnmatch} {tnlog "#nforce was not found in the channel list: adding #nforce to the channel list..."channel add "#nforce"}putlog "\002:-: totalNFO v${tnvers}\002 by GoMp &lt; http://www.g0mp.org/gomp/ &gt; loaded... \002:-:\002"</code></pre></div>[/size][/b]<p>Statistics: Posted by Guest — Sat Dec 21, 2002 4:12 pm</p><hr />
]]></content>
	</entry>
	</feed>
