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

	<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>2020-05-12T06:47:35-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T16:59:39-04:00</updated>

		<published>2020-05-08T16:59:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108407#p108407</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108407#p108407"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108407#p108407"><![CDATA[
First post updated!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri May 08, 2020 4:59 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-05-08T12:58:05-04:00</updated>

		<published>2020-05-08T12:58:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108404#p108404</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108404#p108404"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108404#p108404"><![CDATA[
yeah i thought so but still my trick can fix scripts that dont work properly give it a go anyway  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_lol.gif" width="15" height="15" alt=":lol:" title="Laughing"><br><br>also if it works on one bot and it doesnt on another bot most lightly the bot is at fault<br><br><br>EDIT <br><br>ah is the problem in the core of the eggdrop config and not a single script ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri May 08, 2020 12:58 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T12:56:05-04:00</updated>

		<published>2020-05-08T12:56:05-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108403#p108403</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108403#p108403"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108403#p108403"><![CDATA[
My bot is starting up fine <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=8230">Fire-Fox</a> — Fri May 08, 2020 12:56 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-05-08T12:57:04-04:00</updated>

		<published>2020-05-08T12:51:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108402#p108402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108402#p108402"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108402#p108402"><![CDATA[
hmm it was crazycats chanrelay.tcl it could have i am not sure but one thing i am sure about is the bot would for sure not start until i did what i did now they all work perfect bots  and scripts i think it would fix your propblem <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><br><br>but i have had seperate time scripts that also requried this<br>so let me put it again as clear to make it easy<br><br>Step 1 kill the bot if it's already offline good if not kill it<br><br>Step 2 comment the script line on the eggdrop config file<br><br>Step 3 start the bot<br><br>Step 4 uncomment the line of the script <br><br>Step 5 Restart bot<br><br>and it should work <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri May 08, 2020 12:51 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T12:40:19-04:00</updated>

		<published>2020-05-08T12:40:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108401#p108401</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108401#p108401"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108401#p108401"><![CDATA[
Did your stuff had something to do with [duration] ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri May 08, 2020 12:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ComputerTech]]></name></author>
		<updated>2020-05-08T12:24:55-04:00</updated>

		<published>2020-05-08T12:24:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108400#p108400</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108400#p108400"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108400#p108400"><![CDATA[
a tip i have learned kill the bot then comment the script line run the bot then uncomment the line and restart the bot worked for me on a few scripts hope it helps <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12849">ComputerTech</a> — Fri May 08, 2020 12:24 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T11:33:56-04:00</updated>

		<published>2020-05-08T11:33:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108399#p108399</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108399#p108399"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108399#p108399"><![CDATA[
another bot i have, shows up right:<br><br><br><div class="codebox"><p>Code: </p><pre><code>17:32:41 .tcl string map {" years" "y" " weeks" "w" " days" "d" " hours" "h" " minutes" "m" " seconds" "s" " year" "y" " week" "w" " day" "d" " hour" "h" " minute" "m" " second" "s"} [duration 275271000]17:32:41Tcl: 8y 8m 20d 11h 4m 16s</code></pre></div>what gives?<br><br>Will a recompile of the bot solve it. they have all the same version? only the .conf have been changed?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri May 08, 2020 11:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-08T11:31:27-04:00</updated>

		<published>2020-05-08T11:31:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108398#p108398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108398#p108398"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108398#p108398"><![CDATA[
Interesting all three of us get a different result of that command:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri May 08, 2020 11:31 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T10:57:34-04:00</updated>

		<published>2020-05-08T10:57:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108397#p108397</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108397#p108397"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108397#p108397"><![CDATA[
I get:<br><br>kindda strange, i have not been inside the core files.<br><div class="codebox"><p>Code: </p><pre><code>16:56:58 .tcl string map {" years" "y" " weeks" "w" " days" "d" " hours" "h" " minutes" "m" " seconds" "s" " year" "y" " week" "w" " day" "d" " hour" "h" " minute" "m" " second" "s"} [duration 275271000]16:56:58 Tcl: 455w 1d 0h 10m</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri May 08, 2020 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2020-05-08T10:46:49-04:00</updated>

		<published>2020-05-08T10:46:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108396#p108396</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108396#p108396"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108396#p108396"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>.tcl duration 275271000Tcl: 8 years 38 weeks 10 minutes</code></pre></div>I think it's the other way around it SpiKe. I'm running eggdrop v1.8.4 and TCL is version 8.6.8. <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Edit: Just to be clear:<div class="codebox"><p>Code: </p><pre><code>.tcl string map {" years" "y" " weeks" "w" " days" "d" " hours" "h" " minutes" "m" " seconds" "s" " year" "y" " week" "w" " day" "d" " hour" "h" " minute" "m" " second" "s"} [duration 275271000]Tcl: 8y 38w 10m</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri May 08, 2020 10:46 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T10:38:48-04:00</updated>

		<published>2020-05-08T10:38:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108395#p108395</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108395#p108395"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108395#p108395"><![CDATA[
Overwrote, my eggdrop duration. I don't think so  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_eek.gif" width="15" height="15" alt=":shock:" title="Shocked"> how can i check?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri May 08, 2020 10:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-08T09:34:37-04:00</updated>

		<published>2020-05-08T09:34:37-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108394#p108394</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108394#p108394"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108394#p108394"><![CDATA[
I can not recreate your strange result from that [duration] line...<div class="codebox"><p>Code: </p><pre><code>set ago [string map {" years" "y" " weeks" "w" " days" "d" " hours" "h" " minutes" "m" " seconds" "s" " year" "y" " week" "w" " day" "d" " hour" "h" " minute" "m" " second" "s"} [duration $time1]]</code></pre></div><blockquote class="uncited"><div>;set time1 275271000<br>--&gt;  Tcl: 275271000<br>;set ago [string map {" years" "y" " weeks" "w" " days" "d" " hours" "h" " minutes" "m" " seconds" "s" " year" "y" " week" "w" " day" "d" " hour" "h" " minute" "m" " second" "s"} [duration $time1]]<br>--&gt;  Tcl: 8y, 39w, 1d, 10m</div></blockquote>Have you overwrote the built-in eggdrop [duration] process??<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri May 08, 2020 9:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-08T02:41:47-04:00</updated>

		<published>2020-05-08T02:41:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108393#p108393</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108393#p108393"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108393#p108393"><![CDATA[
Thanks for the reply, but that dosnt change it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_sad.gif" width="15" height="15" alt=":(" title="Sad"><br>it was me that made a typeo<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Fri May 08, 2020 2:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2020-05-07T23:35:41-04:00</updated>

		<published>2020-05-07T23:35:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108392#p108392</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108392#p108392"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108392#p108392"><![CDATA[
Try starting by fixing this code error line<div class="codebox"><p>Code: </p><pre><code>set timedate $ago ago $added\00315"</code></pre></div> maybe more like this?<div class="codebox"><p>Code: </p><pre><code>set timedate "$ago ago $added\00315"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu May 07, 2020 11:35 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Fire-Fox]]></name></author>
		<updated>2020-05-12T06:47:35-04:00</updated>

		<published>2020-05-07T16:13:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=108391#p108391</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=108391#p108391"/>
		<title type="html"><![CDATA[[SOLVED]Change from weeks to years instead]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=108391#p108391"><![CDATA[
Hello,<br><br>how can i change the output of this : <br><br>at the moment it shows 455 weeks 1 day.<br><br>How can i make it to show years instead?<br><div class="codebox"><p>Code: </p><pre><code>proc timedate{ timeis } {global bopen bcloseset timestamp [lindex $timeis 0]set added [ctime $timestamp]    set time1 [clock seconds]    incr time1 -$timestampset ago [string map {" years" "y" " weeks" "w" " days" "d" " hours" "h" " minutes" "m" " seconds" "s" " year" "y" " week" "w" " day" "d" " hour" "h" " minute" "m" " second" "s"} [duration $time1]]set timedate $ago ago $added\00315"return $timedate}</code></pre></div>UPDATE: <br><br>Thanks to thommey for this fix.<br>If you have multiple scripts, with '[duration]' then it will be overwritten by other scripts. <br><br>A hacky solution is: <br><br>At the bottom of your conf file, where you load your scripts at this <span style="color:red"><strong class="text-strong">BEFORE</strong></span> the 'source sctipt/xxx.tcl'<br><div class="codebox"><p>Code: </p><pre><code>rename duration egg_duration; proc duration {s} {return $s}</code></pre></div>and <span style="color:red"><strong class="text-strong">AFTER</strong></span> your scripts put this:<br><div class="codebox"><p>Code: </p><pre><code>rename duration ""; rename egg_duration duration</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8230">Fire-Fox</a> — Thu May 07, 2020 4:13 pm</p><hr />
]]></content>
	</entry>
	</feed>
