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

	<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>2011-04-21T16:16:58-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Seka]]></name></author>
		<updated>2011-04-21T16:16:58-04:00</updated>

		<published>2011-04-21T16:16:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96716#p96716</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96716#p96716"/>
		<title type="html"><![CDATA[[SOLVED] Another help request: Time Driven Channel Post]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96716#p96716"><![CDATA[
Got it figured.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11646">Seka</a> — Thu Apr 21, 2011 4:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Seka]]></name></author>
		<updated>2011-04-21T09:38:36-04:00</updated>

		<published>2011-04-21T09:38:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96713#p96713</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96713#p96713"/>
		<title type="html"><![CDATA[[SOLVED] Another help request: Time Driven Channel Post]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96713#p96713"><![CDATA[
I was under the impression that I would need to convert the time to something readable, in order to use the following commands properly.<br><br>So I should remove this:<div class="codebox"><p>Code: </p><pre><code>set tower_time [ctime $tell_time] </code></pre></div>But leave in: <div class="codebox"><p>Code: </p><pre><code>set tell_time [lindex $args 0] </code></pre></div>And add the 'args' variable?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11646">Seka</a> — Thu Apr 21, 2011 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2011-04-21T00:43:28-04:00</updated>

		<published>2011-04-21T00:43:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96706#p96706</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96706#p96706"/>
		<title type="html"><![CDATA[[SOLVED] Another help request: Time Driven Channel Post]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96706#p96706"><![CDATA[
<blockquote class="uncited"><div>set tell_time [lindex $args 0] </div></blockquote>There's no 'args' variable, thus why the error. Why you get the time from 'ctime' if you already have it from the 'time:clock' procedure?<br><br>This has been already discussed <a href="http://forum.egghelp.org/viewtopic.php?t=18204" class="postlink">here</a>.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Thu Apr 21, 2011 12:43 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Seka]]></name></author>
		<updated>2011-04-21T16:16:37-04:00</updated>

		<published>2011-04-20T23:19:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=96705#p96705</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=96705#p96705"/>
		<title type="html"><![CDATA[[SOLVED] Another help request: Time Driven Channel Post]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=96705#p96705"><![CDATA[
I have the following code in place:<br><div class="codebox"><p>Code: </p><pre><code>bind time - "00 * * * *" clockproc time:clock {min hour day month year} {set tell_time [lindex $args 0]set tower_time [ctime $tell_time]if {$tower_time == 12:00} {putquick "PRIVMSG $channel :\00306The clocktower tolls the Noon Bell."}elseif {$tower_time == 13:00} {putquick "PRIVMSG $channl :\00306The clocktower tolls the First Bell."}}</code></pre></div>With the following error, as a result:<br><div class="codebox"><p>Code: </p><pre><code> Tcl error [clock]: unknown or ambiguous subcommand "00": must be add, clicks, format, microseconds, milliseconds, scan, or seconds</code></pre></div>The error comes up every hour, so I know that part is functioning, at least. I'm just not sure what is keeping the bot from posting to the specified channel. $channel is defined earlier in the script.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11646">Seka</a> — Wed Apr 20, 2011 11:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
