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

	<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>2005-09-18T13:57:52-04:00</updated>

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

		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T13:57:52-04:00</updated>

		<published>2005-09-18T13:57:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55858#p55858</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55858#p55858"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55858#p55858"><![CDATA[
this will work for am/pm:<div class="codebox"><p>Code: </p><pre><code>bind time - "00 *" fooif {![catch {set f [open topic.txt]}]} {   set t [split [read $f] \n:]; close $f} {set t {}}proc foo {m h args} {   foreach {c n s} $::t {      if {[clock scan $h]==[clock scan $n]} {         if {[botisop $c]} {putserv "topic $c :$s"}      }   }} </code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T13:37:17-04:00</updated>

		<published>2005-09-18T13:37:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55857#p55857</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55857#p55857"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55857#p55857"><![CDATA[
good suggestion; it should be noted though that if <strong class="text-strong">$h==$n</strong> is used as condition, time values in the file must be left-padded with zero: 00-09,10-23<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 1:37 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2005-09-18T10:36:31-04:00</updated>

		<published>2005-09-18T10:36:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55846#p55846</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55846#p55846"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55846#p55846"><![CDATA[
as far as I can see, the script will ignore am/pm. I would suggest to get rid of am/pm and use 2 digit 24 hour timecode. that way you can simply use '$h == $n'. else i would suggest to add 12 to $n it was pm, leave it 12 if it was 12pm and make $n 0 if it was 12am.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Sep 18, 2005 10:36 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2005-09-18T08:52:14-04:00</updated>

		<published>2005-09-18T08:52:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55842#p55842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55842#p55842"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55842#p55842"><![CDATA[
Probably he lived under a rock. <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=187">caesar</a> — Sun Sep 18, 2005 8:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T05:52:39-04:00</updated>

		<published>2005-09-18T05:52:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55837#p55837</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55837#p55837"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55837#p55837"><![CDATA[
the latest, obviously<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 5:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[john83]]></name></author>
		<updated>2005-09-18T05:29:27-04:00</updated>

		<published>2005-09-18T05:29:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55836#p55836</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55836#p55836"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55836#p55836"><![CDATA[
lol<br>which ver should i use?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6738">john83</a> — Sun Sep 18, 2005 5:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T05:23:07-04:00</updated>

		<published>2005-09-18T05:23:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55835#p55835</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55835#p55835"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55835#p55835"><![CDATA[
man, you should change your name to Rip van Winkle<br><br>where on Earth have you been the last 10 years???<br><br>eggdrop1.1.5 and Tcl8.0 were phased out at least 6-7 years ago<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 5:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[john83]]></name></author>
		<updated>2005-09-18T04:14:52-04:00</updated>

		<published>2005-09-18T04:14:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55831#p55831</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55831#p55831"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55831#p55831"><![CDATA[
last question which ver of eggdrop tcl does this need?<br><br>can it work on eggdrop1.1.5/tcl80?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6738">john83</a> — Sun Sep 18, 2005 4:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T04:09:35-04:00</updated>

		<published>2005-09-18T04:09:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55830#p55830</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55830#p55830"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55830#p55830"><![CDATA[
yep<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 4:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[john83]]></name></author>
		<updated>2005-09-18T03:03:01-04:00</updated>

		<published>2005-09-18T03:03:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55829#p55829</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55829#p55829"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55829#p55829"><![CDATA[
thanks does that work for am too?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6738">john83</a> — Sun Sep 18, 2005 3:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T02:35:58-04:00</updated>

		<published>2005-09-18T02:35:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55828#p55828</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55828#p55828"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55828#p55828"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind time - "00 *" fooif {![catch {set f [open topic.txt]}]} {   set t [split [read $f] \n:]; close $f } {set t {}}proc foo {m h args} {   foreach {c n s} $::t {      if {[string trimleft $h 0]==[string trim $n apm]} {         if {[botisop $c]} {putserv "topic $c :$s"}      }   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 2:35 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[john83]]></name></author>
		<updated>2005-09-18T01:46:59-04:00</updated>

		<published>2005-09-18T01:46:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55826#p55826</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55826#p55826"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55826#p55826"><![CDATA[
Sorry. Here it goes.<br><br>I need a script that my bot will load.<br>The script will set a topic on each channel at different<br>timing, 3 pm 6 pm 9 pm. It obtains the topic msg<br>from a file topic.txt in the same directory of the .tcl file.<br><br>topic.txt contains:<br># channel:time:topic<br><br>#chan1:3pm:Today's topis is how to bake cheesecake!<br>#chan1:6pm:Time to watch wrestling!<br>#chan1:9pm:Ready to kick soccer?<br>#chan2:3pm:topic goes.<br>#chan2:6pm:so on..<br>#chan2:9pm:yup<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6738">john83</a> — Sun Sep 18, 2005 1:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2005-09-18T01:04:05-04:00</updated>

		<published>2005-09-18T01:04:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55824#p55824</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55824#p55824"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55824#p55824"><![CDATA[
be more specific, describe the exact sequence of events you need implemented<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Sep 18, 2005 1:04 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[john83]]></name></author>
		<updated>2005-09-18T00:56:08-04:00</updated>

		<published>2005-09-18T00:56:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=55823#p55823</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=55823#p55823"/>
		<title type="html"><![CDATA[Topic changer that reads from a .txt file list of topics]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=55823#p55823"><![CDATA[
Hi,<br><br>Anyone can help me, i need a topic changer script that reads from a .txt file list of topics and changes topics and different channels at diff times.<br><br>help appreciated!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6738">john83</a> — Sun Sep 18, 2005 12:56 am</p><hr />
]]></content>
	</entry>
	</feed>
