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

	<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-06-05T06:48:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-06-05T06:48:00-04:00</updated>

		<published>2002-06-05T06:48:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7686#p7686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7686#p7686"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7686#p7686"><![CDATA[
The script I posted a link to shows how to read through an ini file and get all the values you need. If you don't understand it, try downloading it and playing around with it for a while. It's a good idea to have the Tcl Command Manual open in another window, so you can always tell what the script is doing.<br><br>Once you understand that script, you'll be able to finish writing your own script with no problems (probably!).<br><br>Just remember, if you're serious about learning how to script for eggdrops, it will take time and patience like anything else <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">  <br><br>&lt;font size=-1&gt;[ This Message was edited by: stdragon on 2002-06-05 05:02 ]&lt;/font&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 05, 2002 6:48 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-05T06:29:00-04:00</updated>

		<published>2002-06-05T06:29:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7684#p7684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7684#p7684"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7684#p7684"><![CDATA[
But is there a "ini parser for tcl" I need?<br>Really dont know how I am supposed to solove this problem. I really need to be albe to read from ini files inside mi tcl script...<br><br>--------------------<br><br>Noticed that lots of tcl scripts uses .db files.. How do you setup data in those files? Are they like .ini files for mIRC? Are there any spec. commands for .db files like there is in mIRC for .ini files?<br><br>&lt;font size=-1&gt;[ This Message was edited by: Gatekeeper-97 on 2002-06-05 04:34 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Wed Jun 05, 2002 6:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-05T06:27:00-04:00</updated>

		<published>2002-06-05T06:27:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7683#p7683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7683#p7683"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7683#p7683"><![CDATA[
(1)+ini +eggdrop<br>(2)+windrop +ini<br>(3)inireader<br>and some more...<p>Statistics: Posted by Guest — Wed Jun 05, 2002 6:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-06-05T06:18:00-04:00</updated>

		<published>2002-06-05T06:18:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7681#p7681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7681#p7681"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7681#p7681"><![CDATA[
I searched for "ini parser for tcl" heh. What did you search for?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 05, 2002 6:18 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-05T04:52:00-04:00</updated>

		<published>2002-06-05T04:52:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7679#p7679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7679#p7679"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7679#p7679"><![CDATA[
<blockquote class="uncited"><div>On 2002-06-05 00:43, stdragon wrote:<br>Is that an ini file?</div></blockquote>- Yes<br><blockquote class="uncited"><div>On 2002-06-05 00:43, stdragon wrote:<br>Here's one of the first results on google:<br><br><a href="http://mini.net/tcl/3295" class="postlink">http://mini.net/tcl/3295</a></div></blockquote>- What did you search for (what were your search string?)<br><br><br>----<br><br>You see.. What I want to do is that some how I want my eggie to "answer" on triggers an take the answers from the ini file.<br><br>"!lisa" returns "notice $nick : $person is $age yeas old."<br><br>there $person tells the script to search in "lisa" (1)<br>and $age in age (2)<br><br>---inifile---<br>[lisa] (1)<br>age=25 (2)<br>----eof----<br><br><br>The one that you (stdragon) posted didnt help me very much.. either Im to dump or that were the wring ting....<br><br>Thanx for help<br><br><br>&lt;font size=-1&gt;[ This Message was edited by: Gatekeeper-97 on 2002-06-05 03:05 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Wed Jun 05, 2002 4:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2002-06-05T02:43:00-04:00</updated>

		<published>2002-06-05T02:43:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7671#p7671</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7671#p7671"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7671#p7671"><![CDATA[
Is that an ini file?<br><br>Look around some (google?) and you'll find lots of ini parsers that read and write files for you. Here's one of the first results on google:<br><br><a href="http://mini.net/tcl/3295" class="postlink">http://mini.net/tcl/3295</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Wed Jun 05, 2002 2:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-06-05T00:01:00-04:00</updated>

		<published>2002-06-05T00:01:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7669#p7669</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7669#p7669"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7669#p7669"><![CDATA[
Wow.. that was almost what I needed too <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":razz:" title="Razz"><br>How do I make my tcl read from a file like this one:<br>---file---<br>[leeloo]<br>age=25<br>sex=female<br>---eof---<br><br>So that if someone type "!leeloo" my eggie says "leeloo is 25 years old and female" ?<br>Thanx for help<br><br>&lt;font size=-1&gt;[ This Message was edited by: Gatekeeper-97 on 2002-06-04 22:01 ]&lt;/font&gt;<br><br>&lt;font size=-1&gt;[ This Message was edited by: Gatekeeper-97 on 2002-06-04 22:02 ]&lt;/font&gt;<p>Statistics: Posted by Guest — Wed Jun 05, 2002 12:01 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blarre]]></name></author>
		<updated>2002-06-02T22:16:00-04:00</updated>

		<published>2002-06-02T22:16:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7590#p7590</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7590#p7590"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7590#p7590"><![CDATA[
hehe, thanks...  hope i can make that file...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1198">blarre</a> — Sun Jun 02, 2002 10:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2002-05-27T19:05:00-04:00</updated>

		<published>2002-05-27T19:05:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7305#p7305</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7305#p7305"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7305#p7305"><![CDATA[
Well, the smartest way would be like this:<br>(I'de redo your date system, I personally like YYYYMMDD plain format, makes comparisons, easy, but if you don't wanna change the data you can simply read the datain and format the string.. easy enough)<br><br>a) create a binding for the trigger to execute the procedure.<br>b) in the procedure start a statement like<br>set mychan "#shellbox.net" &lt;-- You could also just use $channel is it's a channel based argument.. up to you.<br>set filein [open "mytext.dat" r]<br>set today [clock format -format "%Y%m%d" [clock seconds]]<br>while {![eof $filein]} {<br>  gets $filein datain<br>  if {[lindex ${datain} 0] &gt;= $today} {<br>    putserv "PRIVMSG $mychan :${datain}"<br>  }<br>}<br>close $filein<br><br>Grab a tcl manual (<a href="http://www.tcl.tk" class="postlink">www.tcl.tk</a>) and your tcl-commands.doc, this should set you in the right direction for making it how you want it done.<br><p>Statistics: Posted by Guest — Mon May 27, 2002 7:05 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[blarre]]></name></author>
		<updated>2002-05-25T09:13:00-04:00</updated>

		<published>2002-05-25T09:13:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=7247#p7247</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=7247#p7247"/>
		<title type="html"><![CDATA[read from a .txt file...]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=7247#p7247"><![CDATA[
hi, can anyone pleas help me whit a script i whant to have...<br><br>when someone write  !nextlan <br>then the bot will <br>read from a .txt file <br>and only the lines that are after the day now...<br>so if its 2002-05-12 now then the bot only shows the line who are posted after 2002-05-12 <br><br>kan someone help me??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1198">blarre</a> — Sat May 25, 2002 9:13 am</p><hr />
]]></content>
	</entry>
	</feed>
