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

	<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>2016-05-09T12:17:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Votex]]></name></author>
		<updated>2016-05-09T12:17:31-04:00</updated>

		<published>2016-05-09T12:17:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105001#p105001</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105001#p105001"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105001#p105001"><![CDATA[
sorry for my late late reply <br><br>the script is working just fine <br><br>but it reads the txt file all over again once i update it (the TXT file ) with new links. <br><br>so I‘m asking if its possible to do the following <br><br>- make the tcl script read each lines and never read it again ( <span style="text-decoration:underline"><span style="color:red"><span style="font-size:150%;line-height:116%">Even if i update the txt file with new links</span></span></span> )<br>- add !s command for searching in the txt file <br>example: <br>!s Ore Monogatari!! Mosaic <br>or <br>!s Ore<br>or even <br>!s any part of the title <br><br>then the bot will repost any results matching the key word or the acutal title i searched for using notice command <br><br>and give me the results like this <br><br>in Notice !s  ( Ore Monogatari!! Mosaic - <a href="http://i.imgur.com/nDgEynW.jpg" class="postlink">http://i.imgur.com/nDgEynW.jpg</a> )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12408">Votex</a> — Mon May 09, 2016 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-11T22:17:52-04:00</updated>

		<published>2015-05-11T22:17:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104072#p104072</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104072#p104072"/>
		<title type="html"><![CDATA[TimedReadLinkFile Version 1.0 (11May2015)]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104072#p104072"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code># TimedReadLinkFile Version 1.0 (11May2015) ## author:  SpiKe^^ ## e-mail:  spike&lt;at&gt;mytclscripts&lt;dot&gt;com ## webpage: http://mytclscripts.com/ ## This file is Copyrighted under the GNU Public License. ## http://www.gnu.org/copyleft/gpl.html ############ Begin Script Settings ############ Set the full route &amp; file name of the file to read from #set trlf(file) {/usr/home/spike/eggdrop/scripts/filename.txt}# Set the channel(s) for the timed public read link #set trlf(chan) {#yourchannel #anotherchannel #someotherchan}# Set number of minutes between each timed public read link #set trlf(time) "5"############ End Script Settings ############set trlf(chan) [split [string tolower $trlf(chan)]]if {![info exists trlf(runnin)]} {  if {$trlf(time)&gt;"3"} {  timer 3 [list trlfReadFile]  } else {  timer $trlf(time) [list trlfReadFile]  }  set trlf(runnin) 1}proc trlfReadFile {} {  global trlf  timer $trlf(time) [list trlfReadFile]  set fl $trlf(file)  if {![file exists $fl]} {  return  }  set ofl [open $fl "r"]  set lines [read -nonewline $ofl]  close $ofl  set lines [split $lines "\n"]  if {![llength $lines]} {  file delete -- $fl  ;  return  }  set lines [lassign $lines next]  if {[set idx [string last " - " $next]] &lt; 1} {    set next "\00305$next"  } else {    set title "\00305[string range $next 0 [incr idx -1]]\003 - "    incr idx 4    if {[string length $next] &gt; $idx} {      set url "\00313[string range $next $idx end]\003"    } else {  set url ""  }    set next ${title}${url}  }  foreach ch $trlf(chan) {  puthelp "PRIVMSG $ch :$next"  }  if {![llength $lines]} {  file delete -- $fl  ;  return  }  set ofl [open $fl "w"]  puts $ofl [join $lines "\n"]   close $ofl  return}putlog "TimedReadLinkFile Ver. 1.0 by SpiKe^^ loaded."</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Mon May 11, 2015 10:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Votex]]></name></author>
		<updated>2015-05-11T03:53:39-04:00</updated>

		<published>2015-05-11T03:53:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104063#p104063</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104063#p104063"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104063#p104063"><![CDATA[
i want to create a txt file that content the following <br>title - url <br>i want the bot be auto post them <br>one line at a time , not mention never post a line never again as it will be mark as posted if it possible with the bot <br><br>also if its possible i want the script to be able to make a timer <br>between each sentence and another like 300 sec or so.<br><br>the out put in the channel should be like this <br>title - url <br><span style="color:orange">example </span>: <span style="color:brown">Ore Monogatari!! Mosaic</span> - <span style="color:violet"><a href="http://i.imgur.com/nDgEynW.jpg" class="postlink">http://i.imgur.com/nDgEynW.jpg</a></span><br><br><span style="color:red">Explain</span>: <span style="color:green">Title </span>-&gt; Ore Monogatari!! Mosaic -<span style="color:green"> Then url</span> -&gt; <a href="http://i.imgur.com/nDgEynW.jpg" class="postlink">http://i.imgur.com/nDgEynW.jpg</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12408">Votex</a> — Mon May 11, 2015 3:53 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-10T15:21:02-04:00</updated>

		<published>2015-05-10T15:21:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104057#p104057</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104057#p104057"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104057#p104057"><![CDATA[
What about...<blockquote class="uncited"><div>also i want the this tcl to mark each txt or url the bot post to be like posted <br> and never posted it again .</div></blockquote>...and...<blockquote class="uncited"><div>coloring maybe <br>like coloring the title - and the url each one with a different color</div></blockquote>We can still modify the script to be more like what you were looking for.<br>Explain further what else this script may need.<br>Show an example of what the read file may look like and how the displayed lines should look.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun May 10, 2015 3:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Votex]]></name></author>
		<updated>2015-05-10T14:30:42-04:00</updated>

		<published>2015-05-10T14:30:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104056#p104056</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104056#p104056"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104056#p104056"><![CDATA[
it works for me<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12408">Votex</a> — Sun May 10, 2015 2:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-09T17:30:17-04:00</updated>

		<published>2015-05-09T17:30:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104049#p104049</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104049#p104049"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104049#p104049"><![CDATA[
<blockquote class="uncited"><div> but i want it to read - without me typing !readfile more like auto read file with timer between each sentence</div></blockquote>The script at or near the end of that forum string does that.<br>You must read the entire string as the script finished off with all the options discussed throughout the forum string..<div class="codebox"><p>Code: </p><pre><code># EditTextFile+TimedReadLine Version 1.0 #  # author:  SpiKe^^ #  # e-mail:  spike&lt;at&gt;mytclscripts&lt;dot&gt;com #  # webpage: http://mytclscripts.com/ #...and from the settings in that script....... ########### Timed Public Read Setting ###########  # Set the channel(s) for the timed public read line #  set eTxFile(tchan) {#yourchannel #anotherchannel #someotherchan}  # Set number of minutes between each timed public read line #  # Set this to "0" to disable all timed public read lines  # Note: file errors will be sent to the first channel in eTxFile(tchan)  set eTxFile(timed) "5"</code></pre></div><blockquote class="uncited"><div>, coloring maybe <br>like coloring the title - and the url each one with a different color</div></blockquote>You really need a functioning script before you worry about its darn colors<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat May 09, 2015 5:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Votex]]></name></author>
		<updated>2015-05-09T15:31:01-04:00</updated>

		<published>2015-05-09T15:31:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104048#p104048</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104048#p104048"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104048#p104048"><![CDATA[
<blockquote class="uncited"><div>See if you can get the file read to your channel with this script -&gt; <a href="http://forum.egghelp.org/viewtopic.php?t=19179" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19179</a><br>Use one of the last 2 examples in that string, depending on your tcl version.</div></blockquote>hello the script works like a charm , but i want it to read - without me typing !readfile  more like auto read file with timer between each sentence and another , coloring maybe <br>like coloring the title  - and the url each one with a different color<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12408">Votex</a> — Sat May 09, 2015 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-05-09T15:01:19-04:00</updated>

		<published>2015-05-09T15:01:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104047#p104047</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104047#p104047"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104047#p104047"><![CDATA[
See if you can get the file read to your channel with this script -&gt; <a href="http://forum.egghelp.org/viewtopic.php?t=19179" class="postlink">http://forum.egghelp.org/viewtopic.php?t=19179</a><br>Use one of the last 2 examples in that string, depending on your tcl version.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sat May 09, 2015 3:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Votex]]></name></author>
		<updated>2015-05-09T13:52:09-04:00</updated>

		<published>2015-05-09T13:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=104044#p104044</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=104044#p104044"/>
		<title type="html"><![CDATA[posting from txt file]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=104044#p104044"><![CDATA[
Hello there, could someone please help me making a tcl script that can post txt , urls from txt file that another app (corn job) will do on the same server <br><br>also i need the post be timed <br>like between each post and another will be like 3 mins or so.<br><br>also i want the this tcl to mark each txt or url the bot post to be like posted <br>and never posted it again . <br><br>if someone could help me with that, it would be great . <br>thank you .  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12408">Votex</a> — Sat May 09, 2015 1:52 pm</p><hr />
]]></content>
	</entry>
	</feed>
