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

	<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>2003-11-24T15:11:39-04:00</updated>

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

		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2003-11-24T15:11:39-04:00</updated>

		<published>2003-11-24T15:11:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30643#p30643</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30643#p30643"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30643#p30643"><![CDATA[
anyways the change to \\ worked!.. but is there a way to keep the  the format of the file being read??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Mon Nov 24, 2003 3:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-24T14:28:00-04:00</updated>

		<published>2003-11-24T14:28:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30639#p30639</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30639#p30639"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30639#p30639"><![CDATA[
it may <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>try finding "escape characters" in perl or tcl/tk tutorials<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Nov 24, 2003 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2003-11-24T14:26:48-04:00</updated>

		<published>2003-11-24T14:26:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30638#p30638</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30638#p30638"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30638#p30638"><![CDATA[
okay, <br><br><br>if \ and \\ are special characters is there a place i can go to read on the and possibly other info on this sort, so i can get a better understanding of what i am doing here..??<br><br>and i really do appreciate the help(you have no idea) <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Mon Nov 24, 2003 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-24T14:21:46-04:00</updated>

		<published>2003-11-24T14:21:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30636#p30636</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30636#p30636"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30636#p30636"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>set fo [open "c:\test\test\test\test\tmp\filename.txt r]</code></pre></div> must become:<div class="codebox"><p>Code: </p><pre><code>set fo [open "c:\\test\\test\\test\\test\\tmp\\filename.txt" r]</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Nov 24, 2003 2:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2003-11-24T14:17:04-04:00</updated>

		<published>2003-11-24T14:17:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30635#p30635</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30635#p30635"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30635#p30635"><![CDATA[
well, i just wanted to know if i was missing somthing.<br><br>crazycat wrote :<blockquote class="uncited"><div>yes, \ is a special character, don't you know? <br>use \\ if you want a simple one </div></blockquote>i am new to this, but ???? i lost ya there.<br><br>the problem is that i guess it couldn't find the file.... and wanted to know what i did wrong....<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Mon Nov 24, 2003 2:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-24T14:09:31-04:00</updated>

		<published>2003-11-24T14:09:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30634#p30634</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30634#p30634"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30634#p30634"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>set fo [open "c:\test\test\test\test\tmp\filename.txt r]</code></pre></div></div></blockquote>yes, <strong class="text-strong">\</strong> is a special character, don't you know?<br>use \\ if you want a simple one <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Nov 24, 2003 2:09 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2003-11-24T13:58:08-04:00</updated>

		<published>2003-11-24T13:58:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30630#p30630</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30630#p30630"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30630#p30630"><![CDATA[
Try this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !helpme proc_helpproc proc_help {nick uhost handle channel arg} {   set file file-name.txt  if {![file exists $file]} {close [open $file w]}   set io [open $file r]   set list ""   while {![eof $io]} {     gets $io line     if {[string trim $line] == ""} {continue}     lappend list $line   }   close $io   set length [llength $list]   set message "$length match[expr {($length == "1")?"":"es"}] found:"   putserv "PRIVMSG $channel :$message"   foreach line $list {     putquick "PRIVMSG $channel :$line"   } }</code></pre></div>If you will put like this, you must put file named file-name.txt in eggdrop directory..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Nov 24, 2003 1:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2003-11-24T13:53:56-04:00</updated>

		<published>2003-11-24T13:53:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30627#p30627</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30627#p30627"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30627#p30627"><![CDATA[
crazycat wrote <br> <br><blockquote class="uncited"><div>First, I'm affraid you can't get a .exe.... <br>Second: if your procedure ends before you send the PRIVMSG, it can't work <br>Third: You don't bind anything... I wonder you want to bind a pub <br>So try with a .txt and make this: <br>Code: <br><br>bind pub - "helpme" proc_helpme <br>proc proc_helpme { nick uhost hand chan text } { <br>    <br>   while { ![eof $fo] } { <br>      gets $fo line <br>      putserv "PRIVMSG $nick :$line" <br>   } <br>   close $fo <br>} </div></blockquote>thats the idea i want a pub bind so the user just types the trigger and not in a phrase, so i took out the quotes there. <br><br>and  i also got this error: Tcl error [proc_helpme]: extra characters after close-quote<br><br>which i figured it's because of :<div class="codebox"><p>Code: </p><pre><code>set fo [open "c:\test\test\test\test\tmp\filename.txt r]</code></pre></div>so i put the end " at he end to finish but now i get this error:<br>Tcl error [proc_helpme]: couldn't open "c:testtesttesttesttmphelp.txt": no such file or directory.<br><br>why is this?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Mon Nov 24, 2003 1:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2003-11-24T12:39:44-04:00</updated>

		<published>2003-11-24T12:39:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30620#p30620</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30620#p30620"/>
		<title type="html"><![CDATA[Re: reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30620#p30620"><![CDATA[
<blockquote class="uncited"><div><div class="codebox"><p>Code: </p><pre><code>bind -|- helpme proc_helpmeproc_helpme { nick uhost hand chan text } {[open c:\test\test\test\test\tmp\filename.exe r] } putserv "PRIVMSG %nick </code></pre></div></div></blockquote>First, I'm affraid you can't get a .exe....<br>Second: if your procedure ends before you send the PRIVMSG, it can't work<br>Third: You don't bind anything... I wonder you want to bind a pub<br>So try with a .txt and make this:<div class="codebox"><p>Code: </p><pre><code>bind pub - "helpme" proc_helpmeproc proc_helpme { nick uhost hand chan text } {   set fo [open "c:\test\test\test\test\tmp\filename.txt r]   while { ![eof $fo] } {      gets $fo line      putserv "PRIVMSG $nick :$line"   }   close $fo}</code></pre></div>Whith this, the eggdrop will read filename.txt to the user who begins his sentence with helpme in a channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Mon Nov 24, 2003 12:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[grinch157]]></name></author>
		<updated>2003-11-24T12:06:45-04:00</updated>

		<published>2003-11-24T12:06:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=30618#p30618</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=30618#p30618"/>
		<title type="html"><![CDATA[reading a file into a &quot;privmsg&quot;]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=30618#p30618"><![CDATA[
i'm trying to come up with a script that will read a text file into a privmsg. so when a user types lets say helpme, the text will be displayed in a privmsg box.. so far this is what i got..<br><br>bind -|- helpme proc_helpme<br>proc_helpme { nick uhost hand chan text } {<br>[open c:\test\test\test\test\tmp\filename.exe r] } <br>putserv "PRIVMSG %nick <br><br>but i do not think its right..<br>can someone help me?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4121">grinch157</a> — Mon Nov 24, 2003 12:06 pm</p><hr />
]]></content>
	</entry>
	</feed>
