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

	<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>2001-10-21T01:58:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-21T01:58:00-04:00</updated>

		<published>2001-10-21T01:58:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=924#p924</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=924#p924"/>
		<title type="html"><![CDATA[help-- Output a text file to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=924#p924"><![CDATA[
<br>Thanks alot !! <br><br>Crypto<br><p>Statistics: Posted by Guest — Sun Oct 21, 2001 1:58 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2001-10-20T08:57:00-04:00</updated>

		<published>2001-10-20T08:57:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=893#p893</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=893#p893"/>
		<title type="html"><![CDATA[help-- Output a text file to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=893#p893"><![CDATA[
Look in your config file for this section:<br><br># [0/1] allow a msg being twice in a queue?<br>set double-mode 0<br>set double-server 0<br>set double-help 0<br><br>That controls whether duplicate messages are allowed in the queue. Since you're using puthelp, try setting double-help to 1 instead of 0.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Oct 20, 2001 8:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-10-20T05:56:00-04:00</updated>

		<published>2001-10-20T05:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=890#p890</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=890#p890"/>
		<title type="html"><![CDATA[help-- Output a text file to channel]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=890#p890"><![CDATA[
<br>Hi - <br><br>I am trying to output a text file to a channel via my bot.  I have tried all the !trigger scripts I could find, but they all have the same problem.  They will not output 2 lines of text that are the same.<br><br>EXAMPLE:<br><br>The text file looks like this:<br><br>commands you can use in this chan<br>.<br>!help<br>!list<br>!info<br>.<br>commands you can send to bot<br>!hi<br>!nfo<br>.<br>commands you can send to ops<br>!addme<br>!addhost<br><br>Ok ... but this is the output I get in the channel:<br><br>commands you can use in this chan<br>.<br>!help<br>!list<br>!info<br>commands you can send to bot<br>!hi<br>!nfo<br>commands you can send to ops<br>!addme<br>!addhost<br><br>Notice the period that I use as a seperator is now gone between each line.  I have tried other characters in place of the period, thinking that was the problem, but it was not.  No matter what I put on the line as a seperator, it will not print that line *if* it has allready printed it before.<br><br>Here is the code:<br><br>set bfile "/home/eggdrop/info.file"<br>set cmd "!help"<br>set bwhere 0<br><br>bind pub -|- $cmd dumpfile<br>proc dumpfile {nick handle host chan text } {<br>global bfile bwhere<br>set foo [open $bfile r]<br>while { ! [eof $foo] } {<br>        set line [gets $foo]<br>                if {!$bwhere} {<br>                puthelp "NOTICE $nick :$line"<br>                } else {<br>                puthelp "NOTICE $chan :$line"<br>                }<br>        }<br>}<br><br>Thanks <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":smile:" title="Smile"><br><p>Statistics: Posted by Guest — Sat Oct 20, 2001 5:56 am</p><hr />
]]></content>
	</entry>
	</feed>
