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

	<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>2007-12-07T06:38:31-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-12-07T06:38:31-04:00</updated>

		<published>2007-12-07T06:38:31-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79088#p79088</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79088#p79088"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79088#p79088"><![CDATA[
If your bot's timezone is GMT and yours is GMT+1 then you're 1 hour closer to Christmas and New year. So just subtract 3600 seconds from [clock seconds]:<div class="codebox"><p>Code: </p><pre><code>set christmas "[duration [expr {[clock scan 12/25/07] - [clock seconds] - 3600}]]"set newyear "[duration [expr {[clock scan 01/01/08] - [clock seconds] - 3600}]]"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Fri Dec 07, 2007 6:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiiguy]]></name></author>
		<updated>2007-12-07T04:10:28-04:00</updated>

		<published>2007-12-07T04:10:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79080#p79080</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79080#p79080"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79080#p79080"><![CDATA[
i really meant with the script becaus i am still learning tcl.<br><br>so basically what i need is that he show the count down for GMT+1<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9508">wiiguy</a> — Fri Dec 07, 2007 4:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2007-12-06T19:23:52-04:00</updated>

		<published>2007-12-06T19:23:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79066#p79066</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79066#p79066"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79066#p79066"><![CDATA[
<a href="http://wwp.greenwichmeantime.com/" class="postlink">GMT: Greenwich Mean Time - World Time / Time in every Time Zone</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Thu Dec 06, 2007 7:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiiguy]]></name></author>
		<updated>2007-12-06T18:13:46-04:00</updated>

		<published>2007-12-06T18:13:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79062#p79062</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79062#p79062"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79062#p79062"><![CDATA[
<blockquote class="uncited"><div>Will try and mess around with that, by the way, I was wondering, would it be possible to a public command to show time left until set date?<br>like !xmas<br>and bot would respond with the timeleft.</div></blockquote><br>yes there is <br><div class="codebox"><p>Code: </p><pre><code>bind pub m "!xmas" count:down1proc count:down1 {nick host handle channel text} { set christmas "[duration [expr {[clock scan 12/25/07] - [clock seconds]}]]" set newyear "[duration [expr {[clock scan 01/01/08] - [clock seconds]}]]" puthelp "NOTICE $nick :$christmas before Christmas \[25th December, 2007\] and $newyear before New Year \[1st January, 2008\]"}</code></pre></div><br>and i found out what the timezone the server is in it is in GMT and i am in GMT+1 so cany anyone help me ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9508">wiiguy</a> — Thu Dec 06, 2007 6:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2007-12-06T17:48:46-04:00</updated>

		<published>2007-12-06T17:48:46-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79061#p79061</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79061#p79061"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79061#p79061"><![CDATA[
Will try and mess around with that, by the way, I was wondering, would it be possible to a public command to show time left until set date?<br>like !xmas<br>and bot would respond with the timeleft.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Thu Dec 06, 2007 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-12-06T08:12:02-04:00</updated>

		<published>2007-12-06T08:12:02-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79046#p79046</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79046#p79046"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79046#p79046"><![CDATA[
<blockquote class="uncited"><div>i'd like to change it, so it only shows days, and not weeks</div></blockquote>That can't be done using the built in duration command, but you can make your own <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><div class="codebox"><p>Code: </p><pre><code># standard english namesset duration_en {31536000 {" year"   " years"}604800   {" week"   " weeks"}86400    {" day"    " days"}3600     {" hour"   " hours"}60       {" minute" " minutes"}1        {" second" " seconds"}}# abbreviated english namesset duration_en_compact {31536000 {"y" "y"}604800   {"w" "w"}86400    {"d" "d"}3600     {"h" "h"}60       {"m" "m"}1        {"s" "s"}}#  english names, but no years/weeksset duration_en_custom {86400    {" day"    " days"}3600     {" hour"   " hours"}60       {" minute" " minutes"}1        {" second" " seconds"}}# rename this proc if you want to keep the built in "duration" commandproc duration {time {lang en} {join " "}} {set out {}foreach {secs names} [set ::duration_$lang] {if {$time&lt;$secs} continueset val [expr {$time/$secs}]lappend out $val[lindex $names [expr {$val!=1}]]if {![incr time [expr {-$val*$secs}]]} break}join $out $join}</code></pre></div><div class="codebox"><p>Code: </p><pre><code># tests:% duration 33177905 weeks 3 days 9 hours 36 minutes 30 seconds% duration 3317790 en_compact5w 3d 9h 36m 30s% duration 3317790 en_custom38 days 9 hours 36 minutes 30 seconds</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Thu Dec 06, 2007 8:12 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2007-12-06T07:26:47-04:00</updated>

		<published>2007-12-06T07:26:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79045#p79045</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79045#p79045"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79045#p79045"><![CDATA[
Okay it's working nicely:<div class="codebox"><p>Code: </p><pre><code>[12:00:07] &lt;@Bot&gt; 2 weeks 3 days 12 hours untill Christmas [24th December]</code></pre></div>But i'd like to change it, so it only shows days, and not weeks, I have been looking at that manual mentioened earlier, but I have to admit, i'm a bit lost on this one.<br><br>Any help?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Thu Dec 06, 2007 7:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-12-05T17:48:19-04:00</updated>

		<published>2007-12-05T17:48:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79037#p79037</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79037#p79037"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79037#p79037"><![CDATA[
<blockquote class="uncited"><div>i live in the time zone gmt+1</div></blockquote>You'll have to figure out what time zone your bot's on and add/subtract hour(s). For example if the bot's timezone is gmt+2, you'll have to subtract 3600 seconds from [clock seconds].<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 05, 2007 5:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[wiiguy]]></name></author>
		<updated>2007-12-05T15:53:17-04:00</updated>

		<published>2007-12-05T15:53:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79035#p79035</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79035#p79035"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79035#p79035"><![CDATA[
i live in the time zone gmt+1<br><br>how do that work ?<br>and i want at the last minute of new year or cristmas it will count off from 10 seconds <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>thank for your time reading this<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9508">wiiguy</a> — Wed Dec 05, 2007 3:53 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Astur]]></name></author>
		<updated>2007-12-05T14:26:04-04:00</updated>

		<published>2007-12-05T14:26:04-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79034#p79034</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79034#p79034"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79034#p79034"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>Is it possible to have the time in German? (weeks= Wochen, days= Tage, hours= Stunden, minutes= Minuten and seconds= Sekunden)<br><br>What I have to change?</div></blockquote>You can apply [string map] over the output (i.e. [string map {weeks Wochen} &lt;output&gt;]). Try it.</div></blockquote>Thanks, it works <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=9489">Astur</a> — Wed Dec 05, 2007 2:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2007-12-05T13:38:58-04:00</updated>

		<published>2007-12-05T13:38:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79031#p79031</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79031#p79031"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79031#p79031"><![CDATA[
<blockquote class="uncited"><div>it's PM (00 is AM)</div></blockquote>Thanks, I will read some more in the famous manual <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=7219">starpossen</a> — Wed Dec 05, 2007 1:38 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-12-05T13:33:26-04:00</updated>

		<published>2007-12-05T13:33:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79030#p79030</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79030#p79030"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79030#p79030"><![CDATA[
<blockquote class="uncited"><div>Is it possible to have the time in German? (weeks= Wochen, days= Tage, hours= Stunden, minutes= Minuten and seconds= Sekunden)<br><br>What I have to change?</div></blockquote>You can apply [string map] over the output (i.e. [string map {weeks Wochen} &lt;output&gt;]). Try it.<blockquote class="uncited"><div>Thanks alot, i've looked at the manual, and was wondering, the 12:00 is that AM or PM?</div></blockquote>it's PM (00 is AM)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Dec 05, 2007 1:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[starpossen]]></name></author>
		<updated>2007-12-05T12:17:11-04:00</updated>

		<published>2007-12-05T12:17:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79027#p79027</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79027#p79027"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79027#p79027"><![CDATA[
<blockquote class="uncited"><div>Change the bind mask to "00 12 *" to have it announced at 12:00 every day.</div></blockquote>Thanks alot, i've looked at the manual, and was wondering, the 12:00 is that AM or PM?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7219">starpossen</a> — Wed Dec 05, 2007 12:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Astur]]></name></author>
		<updated>2007-12-05T11:24:47-04:00</updated>

		<published>2007-12-05T11:24:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79026#p79026</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79026#p79026"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79026#p79026"><![CDATA[
Is it possible to have the time in German? (weeks= Wochen, days= Tage, hours= Stunden, minutes= Minuten and seconds= Sekunden)<br><br>What I have to change?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9489">Astur</a> — Wed Dec 05, 2007 11:24 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-12-05T09:50:47-04:00</updated>

		<published>2007-12-05T09:50:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79021#p79021</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79021#p79021"/>
		<title type="html"><![CDATA[Christmas &amp; New Year Countdown]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79021#p79021"><![CDATA[
Change the bind mask to "00 12 *" to have it announced at 12:00 every day.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Dec 05, 2007 9:50 am</p><hr />
]]></content>
	</entry>
	</feed>
