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

	<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-02-14T07:08:32-04:00</updated>

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

		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-02-14T07:08:32-04:00</updated>

		<published>2003-02-14T07:08:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16586#p16586</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16586#p16586"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16586#p16586"><![CDATA[
hi st - just wondering if you could double-check this for me - it is sending a msg to the channel, but it's doing it every minute rather than every hour.<br>I have changed the mesages and times for a different message each hour, but it just cycles through them every minute...thanks<br><br>set timemsg(01:00) "some message for 1am"<br>set timemsg(03:15) "some message for 3:15am"<br>set timemsg(15:00) "some message for 3pm... etc..."<br><br>bind time - "* * * * *" timed_message<br>proc timed_message {min hour day month year} {<br>  global timemsg<br>  if {[info exists timemsg($hour:$min)]} {<br>    putserv "privmsg #sheep :$timemsg($hour:$min)"<br>  }<br>  return 0<br>}<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Feb 14, 2003 7:08 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-02-01T19:19:09-04:00</updated>

		<published>2003-02-01T19:19:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16066#p16066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16066#p16066"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16066#p16066"><![CDATA[
Well clearly there's no swedish A in my script, so you either made a typo or your editor saved in utf-8 mode. Try doing it again in a different editor (vi/vim is good).<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Sat Feb 01, 2003 7:19 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-31T15:36:35-04:00</updated>

		<published>2003-01-31T15:36:35-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16016#p16016</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16016#p16016"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16016#p16016"><![CDATA[
its a symbol that looks like an A - but a sweedish version...<br><br>editied it with KWrite on Mandrake Linux<br><br>didn't upload - it runs off a local machine here...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Jan 31, 2003 3:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2003-01-31T15:31:46-04:00</updated>

		<published>2003-01-31T15:31:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16015#p16015</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16015#p16015"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16015#p16015"><![CDATA[
Along with that, there is normaly information, on what the invalid command was.<br><br>What editor did you use?<br><br>How did you upload it?<br><br>What mode did you upload it in. Binary or ascii?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Fri Jan 31, 2003 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-31T15:27:15-04:00</updated>

		<published>2003-01-31T15:27:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16013#p16013</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16013#p16013"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16013#p16013"><![CDATA[
hi - thanks for that - I'm getting an invalid command error - theres a rouge symbol somewhere!<br><br>also, the script is trying to post a message every minute instead of only the times specified - so another problem there...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Jan 31, 2003 3:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-31T11:59:12-04:00</updated>

		<published>2003-01-31T11:59:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=16006#p16006</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=16006#p16006"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=16006#p16006"><![CDATA[
Really? It looks like it will work, although I haven't tested it. Try adding putlog statements to see where it's going wrong. Put one right after the global timemsg part says putlog "testing $hour:$min in [array names timemsg]" and one inside the 'if' statement saying putlog "inside the if" or something.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Fri Jan 31, 2003 11:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-31T03:26:34-04:00</updated>

		<published>2003-01-31T03:26:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15993#p15993</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15993#p15993"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15993#p15993"><![CDATA[
hi again - that's not working for me - just wondering if it worked for you?<br><br>have copied/pasted into the TCL what you wrote - and put my channel in there, but no luck so far...<br><br>=\<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Fri Jan 31, 2003 3:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-30T14:42:02-04:00</updated>

		<published>2003-01-30T14:42:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15971#p15971</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15971#p15971"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15971#p15971"><![CDATA[
You almost had it! You changed the right parts, the only other thing you had to do was change timemsg($hour) to timemsg($hour:$min). (I also changed the name of the proc because hourly_message doesn't make sense anymore.)<br><div class="codebox"><p>Code: </p><pre><code>set timemsg(01:00) "some message for 1am"set timemsg(03:15) "some message for 3:15am"set timemsg(15:00) "some message for 3pm... etc..."bind time - "* * * * *" timed_messageproc timed_message {min hour day month year} {  global timemsg  if {[info exists timemsg($hour:$min)]} {    putserv "privmsg #sheep :$timemsg($hour:$min)"  }  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 30, 2003 2:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-30T05:12:29-04:00</updated>

		<published>2003-01-30T05:12:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15953#p15953</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15953#p15953"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15953#p15953"><![CDATA[
yes...sorry - I have a few other timers for other various times - not only on-the-hour<br><br>sorry again...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 30, 2003 5:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-30T05:10:00-04:00</updated>

		<published>2003-01-30T05:10:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15952#p15952</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15952#p15952"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15952#p15952"><![CDATA[
You did say "24 msgs - one for each hour - 00:00 thru 00:23 - all saying something different..." and didn't mention half-hours or anything. This is only turning out to be tricky because you are being rather unclear! So are you saying you want this to work for *any* time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 30, 2003 5:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-30T03:25:24-04:00</updated>

		<published>2003-01-30T03:25:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15950#p15950</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15950#p15950"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15950#p15950"><![CDATA[
sorry, actually that piece of script above dosn't work correctly - it seems to post the msg to the channel once a minute every minute...<br><br>I had to kill the bot to get it to stop...<br><br>this is turning out to be very tricky indeed!<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 30, 2003 3:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-30T03:15:16-04:00</updated>

		<published>2003-01-30T03:15:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15949#p15949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15949#p15949"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15949#p15949"><![CDATA[
hi again - it's working - if I also have a msg for a some times at the half-hour, would this be right...?<br><br><br>set timemsg(30:15) "some message for 3.30pm... etc..." <br><br>bind time - "* * * * *" hourly_message<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 30, 2003 3:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-30T02:22:28-04:00</updated>

		<published>2003-01-30T02:22:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15944#p15944</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15944#p15944"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15944#p15944"><![CDATA[
hehe thanks st - yeah I did try a few things - looks like I was sort of on the right track - just didn't use the brackets...<br><br>thanks again! will give this a shot now =)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Thu Jan 30, 2003 2:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[stdragon]]></name></author>
		<updated>2003-01-30T02:17:56-04:00</updated>

		<published>2003-01-30T02:17:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15943#p15943</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15943#p15943"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15943#p15943"><![CDATA[
Aww, you should have tried it yourself first. In the long run it pays to find things out. Ppslim already gave you 99% of the code!<br><div class="codebox"><p>Code: </p><pre><code>set timemsg(01) "some message for 1am"set timemsg(03) "some message for 3am"set timemsg(15) "some message for 3pm... etc..."bind time - "00 * * * *" hourly_messageproc hourly_message {min hour day month year} {  global timemsg  if {[info exists timemsg($hour)]} {    putserv "privmsg #sheep :$timemsg($hour)"  }  return 0}</code></pre></div>No guarantees that it works, I don't have time to test. But it probably will. I'm good like that.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8">stdragon</a> — Thu Jan 30, 2003 2:17 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[NewzUK]]></name></author>
		<updated>2003-01-29T23:29:39-04:00</updated>

		<published>2003-01-29T23:29:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=15939#p15939</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=15939#p15939"/>
		<title type="html"><![CDATA[Timed Message]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=15939#p15939"><![CDATA[
anyone able to help me finish solving this one...?<br><br> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2210">NewzUK</a> — Wed Jan 29, 2003 11:29 pm</p><hr />
]]></content>
	</entry>
	</feed>
