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

	<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>2013-10-13T14:41:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-10-13T14:41:24-04:00</updated>

		<published>2013-10-13T14:41:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102113#p102113</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102113#p102113"/>
		<title type="html"><![CDATA[Timed messages with expiration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102113#p102113"><![CDATA[
Indeed you are right, <br><br>Tcl version: 8.4.19 (header version 8.4.19)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sun Oct 13, 2013 2:41 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-10-13T14:28:01-04:00</updated>

		<published>2013-10-13T14:28:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102112#p102112</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102112#p102112"/>
		<title type="html"><![CDATA[Timed messages with expiration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102112#p102112"><![CDATA[
In partyline, do:<br>.status<br>and see the version of TCL<br><br>The bot I ran it on is:<br>Tcl version: 8.5.8 (header version 8.5.8 )<br><br>I wonder if that could be it.<br>Perhaps you are using 8.4  ... I'd have to go look it up, but I'm thinking that the clock command options changed from 8.4 to 8.5<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Oct 13, 2013 2:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-10-13T14:13:28-04:00</updated>

		<published>2013-10-13T14:13:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102111#p102111</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102111#p102111"/>
		<title type="html"><![CDATA[Timed messages with expiration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102111#p102111"><![CDATA[
Hi willyw,<br><br>Thanks for the code.<br><br>I have one problem though:<br><div class="codebox"><p>Code: </p><pre><code>[Tcl error [timed_announcer]: bad switch "-format": must be -base or -gmt/code]My Input was:!timer 240 13.10.2013 20:00 message hereWhat did I do wrong? it seems to fit the syntax according to the script..?</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sun Oct 13, 2013 2:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2013-10-13T13:57:15-04:00</updated>

		<published>2013-10-13T13:57:15-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102110#p102110</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102110#p102110"/>
		<title type="html"><![CDATA[Timed messages with expiration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102110#p102110"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>## October 12, 2013###  http://forum.egghelp.org/viewtopic.php?t=19527## Set channel hereset defined_chan "#eggdrop"bind pub - "!timer" timed_announcerproc timed_announcer {nick uhost handle chan text} {global defined_chan        if {$chan != $defined_chan} {           return 0           }        if {$text == ""} {                putserv "privmsg $defined_chan :Sytax: !timer &lt;interval&gt; &lt;DD.MM.YYYY&gt; &lt;HH:MM&gt; &lt;message text&gt;"                return 0           }        set announce_interval [lindex [split $text] 0]        set expire_date [lindex [split $text] 1]        set expire_time [lindex [split $text] 2]        set announce_text [lrange [split $text] 3 end]        reset_timed_announce $announce_interval $expire_date $expire_time $announce_text        putserv "privmsg $nick :Timer started. Interval = $announce_interval   Expiration date = $expire_date   Expiration time = $expire_time"        putserv "privmsg $nick :Text to be announced:   $announce_text"}proc reset_timed_announce {announce_interval expire_date expire_time announce_text} {global defined_chan        putserv "privmsg $defined_chan :$announce_text"        set expire_hour [lindex [split $expire_time :] 0]        set expire_minute [lindex [split $expire_time :] 1]        set quit_time [clock scan "$expire_date $expire_hour $expire_minute" -format %e.%N.%Y%H%M]        if {$quit_time &gt; [unixtime]} {                timer $announce_interval [list reset_timed_announce $announce_interval $expire_date $expire_time $announce_text]                return 0          } else {          return 0           }}</code></pre></div><br>Tested only briefly.<br>Give it a good test.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>I suspect that there are other ways to do this.  It will be interesting to see what else you get here.<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Oct 13, 2013 1:57 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[BigToe]]></name></author>
		<updated>2013-10-12T08:35:30-04:00</updated>

		<published>2013-10-12T08:35:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=102106#p102106</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=102106#p102106"/>
		<title type="html"><![CDATA[Timed messages with expiration]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=102106#p102106"><![CDATA[
Hello<br><br>I need a script that I can define a message to be sent out at an interval of every few minutes defined by me to a chat room, and it expires when the time is over.<br><br>Here is an example:<blockquote class="uncited"><div>Defined channel is: #england<br><br>!timer 60 12.10.2013 12:00 This message will be sent out to #England every 60 minutes untill October 12th at 12:00</div></blockquote>Help. thanks.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11473">BigToe</a> — Sat Oct 12, 2013 8:35 am</p><hr />
]]></content>
	</entry>
	</feed>
