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

	<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>2004-05-22T15:30:20-04:00</updated>

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

		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-22T15:30:20-04:00</updated>

		<published>2004-05-22T15:30:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36531#p36531</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36531#p36531"/>
		<title type="html"><![CDATA[timed events]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36531#p36531"><![CDATA[
Use<div class="codebox"><p>Code: </p><pre><code>bind time - * time:checkproc time:check {min hour args} {# check in here to see if hour:min is before your time in question# (or just use the system's time again)}</code></pre></div>the time binding will be called once a minute...<br>just add code..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Sat May 22, 2004 3:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SomeGuy]]></name></author>
		<updated>2004-05-22T13:07:36-04:00</updated>

		<published>2004-05-22T13:07:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36525#p36525</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36525#p36525"/>
		<title type="html"><![CDATA[timed events]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36525#p36525"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub - "!time" proc_test_timeproc proc_test_time {nick user hand chan arg} {  set unix_time [unixtime]  set current_time [strftime %H:%M]  set time120 [strftime %H:%M [expr {[clock scan $current_time]+7200}]]  set time30 [strftime %H:%M [expr {[clock scan $time120]-1800}]]  set time60 [strftime %H:%M [expr {[clock scan $time30]-3600}]]  putserv "PRIVMSG $chan :UNIX\: $unix_time  REAL\: $current_time  +2HOURS\: $time120  -30MINS\: $time30  -1HOUR\: $time60"  return 0}</code></pre></div>OUTPUT:<br>UNIX: 1085245248  REAL: 11:00  +2HOURS: 13:00  -30MINS: 12:30  -1HOUR: 11:30<br><br>I did some playing around and so far I got that working.  I'm stuck when it comes to adding a date to it.  This only works for HH:MM, preferably, i want users to type in:<br><br>!add May-15@13:00<br><br>Decided to go 24 hour clock, easier to work with.<br><br>So now i'm just down to the one question...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4901">SomeGuy</a> — Sat May 22, 2004 1:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SomeGuy]]></name></author>
		<updated>2004-05-22T10:34:42-04:00</updated>

		<published>2004-05-22T10:34:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36522#p36522</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36522#p36522"/>
		<title type="html"><![CDATA[timed events]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36522#p36522"><![CDATA[
I've decided to make a script to alert people when something in a game happens.<br><br>The way this work is this, a user will add a date/time like this:<br>!add May-15@12:00pm Description<br><br>Now I have a few questions, first being is how can I convert that date/time to unix format?<br><br>My other question is once i've converted it to unix time, how can I get the bot to say something to the channel exactly an hour before that time.  So in this case, at 11:00am its gotta message something like "1 Hour till time".<br><br>Is this possible?  I can handle things if I just figure out these two questions.<br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4901">SomeGuy</a> — Sat May 22, 2004 10:34 am</p><hr />
]]></content>
	</entry>
	</feed>
