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

	<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>2021-01-29T23:23:13-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ORATEGOD]]></name></author>
		<updated>2021-01-29T23:23:13-04:00</updated>

		<published>2021-01-29T23:23:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109367#p109367</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109367#p109367"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109367#p109367"><![CDATA[
thank you very much<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12869">ORATEGOD</a> — Fri Jan 29, 2021 11:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2021-01-29T03:26:03-04:00</updated>

		<published>2021-01-29T03:26:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109366#p109366</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109366#p109366"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109366#p109366"><![CDATA[
+wr. should be sufficient, take a look here<br><br><a href="https://www.linux.com/training-tutorials/understanding-linux-file-permissions/" class="postlink">https://www.linux.com/training-tutorial ... rmissions/</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri Jan 29, 2021 3:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ORATEGOD]]></name></author>
		<updated>2021-01-28T22:46:48-04:00</updated>

		<published>2021-01-28T22:46:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=109365#p109365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=109365#p109365"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=109365#p109365"><![CDATA[
I have a question from newbies .... the <strong class="text-strong">yourfile</strong>.txt file what <strong class="text-strong">permissions</strong> it should have ... since I preobe this code ... but I don't add anything to the txt<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12869">ORATEGOD</a> — Thu Jan 28, 2021 10:46 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2011-01-16T16:26:53-04:00</updated>

		<published>2011-01-16T16:26:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95705#p95705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95705#p95705"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95705#p95705"><![CDATA[
Change <div class="codebox"><p>Code: </p><pre><code>if {[string match *$searchstring* [join $line]]} { </code></pre></div> to <div class="codebox"><p>Code: </p><pre><code>if {[string match -nocase *$searchstring* [join $line]]} { </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sun Jan 16, 2011 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[andrestavara]]></name></author>
		<updated>2011-01-15T20:44:26-04:00</updated>

		<published>2011-01-15T20:44:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95698#p95698</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95698#p95698"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95698#p95698"><![CDATA[
thank you very much friend, I have the following problem with this script:<br><br><blockquote class="uncited"><div>In Txt database:<br>AAAAA1|model argetina|Link</div></blockquote><strong class="text-strong">in irc:</strong><br><blockquote class="uncited"><div>&lt;user&gt; !search aaaaa1<br>&lt;bot&gt; nothing found for aaaaa1</div></blockquote>one could ignore the differences case sensitive?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11494">andrestavara</a> — Sat Jan 15, 2011 8:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[username]]></name></author>
		<updated>2011-01-15T06:51:06-04:00</updated>

		<published>2011-01-15T06:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95689#p95689</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95689#p95689"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95689#p95689"><![CDATA[
Test this:<blockquote class="uncited"><div> &lt;tvrsh&gt; !addtuto AAA1|AAA1 router mexico TELMEx|<a href="http://link" class="postlink">http://link</a><br> &lt;@bionic&gt; <span style="color:brown">Router:</span> <span style="color:indigo"><strong class="text-strong">AAA1</strong></span><span style="color:brown">, Description:</span> <span style="color:indigo">AAA1 router mexico TELMEx</span><span style="color:brown">, Link manual:</span> <span style="color:blue"><span style="text-decoration:underline"><a href="http://link" class="postlink">http://link</a></span></span><span style="color:brown">. Added successfully!</span><br> &lt;tvrsh&gt; !search 1111<br> &lt;@bionic&gt; <span style="color:brown">I found one result:</span><br> &lt;@bionic&gt; <span style="color:brown">Router:</span> <strong class="text-strong"><span style="color:indigo">F11111</span></strong><span style="color:brown">, Description:</span> <span style="color:indigo">F1111 modem peruvian</span><span style="color:brown">, Link manual:</span> <span style="text-decoration:underline"><span style="color:blue"><a href="http://link" class="postlink">http://link</a></span></span>.<br> &lt;tvrsh&gt; !search modem<br> &lt;@bionic&gt; <span style="color:brown">I found</span> <span style="color:indigo">2</span> <span style="color:brown">results:</span><br> &lt;@bionic&gt; <span style="color:brown">Models</span>: <span style="color:indigo">F11111, FSDFD2v.</span></div></blockquote>I use this manual to work with file: <a href="http://forum.egghelp.org/viewtopic.php?t=6885" class="postlink">http://forum.egghelp.org/viewtopic.php?t=6885</a><div class="codebox"><p>Code: </p><pre><code>## Add new models like this: !addtuto Name|Description|Link# !addtuto command works only for chan operators.##bind pub o|o !addtuto modemaddbind pub -|- !search modemsearchproc modemadd {nck uhost hand chan text} {# The new line.set line_to_add "$text"# Name of file to append to.set fname "yourfile.txt"# Open the file in append mode.set fp [open $fname "a"]# Add the line.puts $fp $line_to_add# We're done!close $fpputserv "PRIVMSG $chan :\00314Router: \002\00310[lindex [split $text "|"] 0]\002\00314, Description: \00310[lindex [split $text "|"] 1]\00314, Link manual: \00312\037[lindex [split $text "|"] 2]\037\00314. Added successfully!\003"} proc modemsearch {nick uhost hand chan text} {set searchstring $text# File name to read.set fname "yourfile.txt"# Open file for read access (note we're not catching errors, you might# want to use catch {} if the file might not exist.set fp [open $fname "r"]# Here we read in all of the data.set data [read -nonewline $fp]# Close the file, since we're done reading.close $fp# Now we split the data into lines.set lines [split $data "\n"]set searchresult ""foreach line $lines {if {[string match *$searchstring* [join $line]]} {lappend searchresult $line}}if {$searchresult == ""} {putserv "PRIVMSG $chan :\00310$nick\00314, nothing found for \00310\002$searchstring\002\00314..."return 0}if {[llength $searchresult] &lt; "2"} {putserv "PRIVMSG $chan :\00314I found one result:\003"putserv "PRIVMSG $chan :\00314Router: \002\00310[lindex [split [join $searchresult] "|"] 0]\002\00314, Description: \00310[lindex [split [join $searchresult] "|"] 1]\00314, Link manual: \00312\037[lindex [split [join $searchresult] "|"] 2]\037\003."return 0} else {putserv "PRIVMSG $chan :\00314I found \00310[llength $searchresult] \00314results:\003"foreach line $searchresult {lappend models \00310[lindex [split $line "|"] 0]}putserv "PRIVMSG $chan :\00314Models: [join $models "\00314, "]\00314.\003"}}putlog "modem.tcl loaded..."</code></pre></div><span style="color:black"></span><span style="color:darkred"></span><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6813">username</a> — Sat Jan 15, 2011 6:51 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[andrestavara]]></name></author>
		<updated>2011-01-14T22:55:11-04:00</updated>

		<published>2011-01-14T22:55:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=95684#p95684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=95684#p95684"/>
		<title type="html"><![CDATA[add information to a txt]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=95684#p95684"><![CDATA[
Hi I am new to this forum, I wish someone please help me please.<br>I want my bot do the following<br>read and add information<br><br>do not know if I could be in a xml, sql or txt<br><br>in the database txt, sql or xml:<br><br>date 1<br>----------------------------------------<br>model: VFAv1<br>description: VFAv1 router spain<br>tutorial link: http//link<br><br>date2<br>---------------------------------------<br>model: AAA1<br>description: AAA1 router mexico TELMEx<br>tutorial link: <a href="http://link" class="postlink">http://link</a><br><br>date3<br>----------------------------------------<br>model: FSDFD2v<br>description: FSDFD2v modem usb mexico<br>tutorial link: <a href="http://link" class="postlink">http://link</a><br>date4<br>----------------------------------------<br>model: FFF132v<br>description: FFF132v modem usb mexico<br>tutorial link: <a href="http://link" class="postlink">http://link</a><br><br>in channel #helprouters<br><blockquote class="uncited"><div>&lt;user&gt;!search AAA1<br>&lt;bot&gt; I found one results:<br>&lt;bot&gt; router: AAA1 description: AAA1 router mexico TELMEx Link manual: http:link<br>&lt;user2&gt;!search modem mexico<br>&lt;bot&gt;I found two results:<br>&lt;bot&gt; model: FFF132v, model: FSDFD2v <br>&lt;user2&gt; !search FSDFD2v <br>&lt;bot&gt; router: FSDFD2v description: FSDFD2v modem usb mexicox Link manual: http:link<br>&lt;admin&gt;!addtuto F11111 | F1111 modem peruvian | <a href="http://link" class="postlink">http://link</a><br>&lt;bot&gt; was added successfully</div></blockquote>I would greatly appreciate please help me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11494">andrestavara</a> — Fri Jan 14, 2011 10:55 pm</p><hr />
]]></content>
	</entry>
	</feed>
