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

	<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>2006-06-13T04:20:57-04:00</updated>

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

		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-13T04:20:57-04:00</updated>

		<published>2006-06-13T04:20:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63962#p63962</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63962#p63962"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63962#p63962"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>quoting Alchera, it would appear you still fail to understand that egdrop is NOT an embedded microcontroller and dealing with milliseconds in eggdrop and generally on IRC is completely pointless<br>....</div></blockquote>I am fascinated by the pointless <span style="text-decoration:underline">obsession </span>regarding eggdrops and micro/milliseconds that De Kus has. Very strange indeed!</div></blockquote>I was just giving her the 2 alterntives with which it would be possible to store a high resolution timer, I haven't said anything about how actually usefull that would be and just tried to help without flaming.<br><br>@awyeah: just to answer your question about milliseconds and unixtime... you probably could convert it, assuming milliseconds is "timeofday" (which might differ from system to system), but it would then again be only second precision (either round down int or as double value with 3 dezimals) <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=2382">De Kus</a> — Tue Jun 13, 2006 4:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2006-06-13T00:25:34-04:00</updated>

		<published>2006-06-13T00:25:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63951#p63951</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63951#p63951"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63951#p63951"><![CDATA[
Hi thanks for all the help and suggestions. This problem has now been solved.<br><br>I guess it is impossible to get the exact join time of users in a channel who have joined in before you, which is simple logic.<br><br>JD<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Tue Jun 13, 2006 12:25 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Alchera]]></name></author>
		<updated>2006-06-12T21:32:19-04:00</updated>

		<published>2006-06-12T21:32:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63949#p63949</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63949#p63949"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63949#p63949"><![CDATA[
<blockquote class="uncited"><div><blockquote class="uncited"><div>manually savnig 'clock clicks -milliseconds' timestamps seem to be the only solution. Addionaly you would have to be aware of getchanjoin possibly being zero (meaning a '$chanjoin - $now &lt; 2' would be true ^-^). Alternately you could try to modify the eggdrops source to save a high resolution timer instead of seconds. something like a list of timestamps as '#seconds #clicks' as return of getexactchanjoin or something funny like that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. This would of course involve changing the struct memberlist and hopefully only getchanjoin and the function which adds new members to the list.</div></blockquote>quoting Alchera, it would appear you still fail to understand that egdrop is NOT an embedded microcontroller and dealing with milliseconds in eggdrop and generally on IRC is completely pointless<br><br>....</div></blockquote>I am fascinated by the pointless <span style="text-decoration:underline">obsession </span>regarding eggdrops and micro/milliseconds that De Kus has. Very strange indeed!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3646">Alchera</a> — Mon Jun 12, 2006 9:32 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-06-12T02:19:03-04:00</updated>

		<published>2006-06-12T02:19:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63921#p63921</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63921#p63921"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63921#p63921"><![CDATA[
<blockquote class="uncited"><div>What I mean to say, when a bot joins a channel, people already in the channel before the bot came in, would have unknown getchanjoin time or 0? kind of weird. I don't think there is a way to get the getchanjoin time for users who were already present before the bot joined the channel!</div></blockquote>it's 0, and you need to pass on those<br><br>and forget about that millisecond stuff already, you don't need millisecond precision with eggdrop, not now, not ever, period.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Mon Jun 12, 2006 2:19 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2006-06-11T23:39:45-04:00</updated>

		<published>2006-06-11T23:39:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63916#p63916</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63916#p63916"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63916#p63916"><![CDATA[
Okay thanks for all the comments and suggestions. The milliseconds thing is a bit more complicated so I've chosen to leave that, because am I bit confused.<br><br>1) 'clock clicks -milliseconds' does give a time format but is it not the same as the unix time format?<br><br>How could I change that into unixtime? because I want a similar format for getchanjoin (unixtime) to compare those both.<br><br>Currently I am using the logic,<br><div class="codebox"><p>Code: </p><pre><code>[getchanjoin $nick $chan] &gt;= {expr [clock seconds]-$delay};am using this procedure with bind pubm - "*"</code></pre></div>Where 'delay' is the time which can be chosen within text can be said and the bot can detect, else if it is after that interval then the logic doesn't work.<br><br>The thing is this works great, but suppose if the bot is restarted, connects back to the server again and rejoins its channels, and someother bot on  the channel or some script greets it on join, then this code also activates.. how could I simply ignore or bypass that.<br><br>What I mean to say, when a bot joins a channel, people already in the channel before the bot came in, would have unknown getchanjoin time or 0? kind of weird. I don't think there is a way to get the getchanjoin time for users who were already present before the bot joined the channel!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sun Jun 11, 2006 11:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-06-11T22:12:06-04:00</updated>

		<published>2006-06-11T22:12:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63913#p63913</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63913#p63913"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63913#p63913"><![CDATA[
<blockquote class="uncited"><div>manually savnig 'clock clicks -milliseconds' timestamps seem to be the only solution. Addionaly you would have to be aware of getchanjoin possibly being zero (meaning a '$chanjoin - $now &lt; 2' would be true ^-^). Alternately you could try to modify the eggdrops source to save a high resolution timer instead of seconds. something like a list of timestamps as '#seconds #clicks' as return of getexactchanjoin or something funny like that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. This would of course involve changing the struct memberlist and hopefully only getchanjoin and the function which adds new members to the list.</div></blockquote>quoting Alchera, it would appear you still fail to understand that egdrop is NOT an embedded microcontroller and dealing with milliseconds in eggdrop and generally on IRC is completely pointless<br><br>awyeah, [getchanjoin] is the best you can do - doing it via [bind join] is virtually the same; your real problem is intrinsic to IRC and you can't do anything about it - except maybe experimenting moving your bot to other servers which would hopefully minimize or at least reduce channel sync time<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Sun Jun 11, 2006 10:12 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[De Kus]]></name></author>
		<updated>2006-06-11T09:15:13-04:00</updated>

		<published>2006-06-11T09:15:13-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63894#p63894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63894#p63894"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63894#p63894"><![CDATA[
manually savnig 'clock clicks -milliseconds' timestamps seem to be the only solution. Addionaly you would have to be aware of getchanjoin possibly being zero (meaning a '$chanjoin - $now &lt; 2' would be true ^-^). Alternately you could try to modify the eggdrops source to save a high resolution timer instead of seconds. something like a list of timestamps as '#seconds #clicks' as return of getexactchanjoin or something funny like that <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy">. This would of course involve changing the struct memberlist and hopefully only getchanjoin and the function which adds new members to the list.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2382">De Kus</a> — Sun Jun 11, 2006 9:15 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2006-06-10T18:36:19-04:00</updated>

		<published>2006-06-10T18:36:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63887#p63887</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63887#p63887"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63887#p63887"><![CDATA[
While using [getchanjoin] isn't a problem as you described it, what you can do is bind join and timestamp the user's join manually (array of nicks probably set to their times) and use the array in the pub(m) proc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jun 10, 2006 6:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[awyeah]]></name></author>
		<updated>2006-06-13T00:22:43-04:00</updated>

		<published>2006-06-10T10:44:16-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=63874#p63874</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=63874#p63874"/>
		<title type="html"><![CDATA[Anything better than getchanjoin? [SOLVED]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=63874#p63874"><![CDATA[
Hi everyone!<br><br>Sorry I've been away for a long while and have been out of action for quite a while, just that I slowly lost interest in TCL scripting as a hobby.<br><br>Anyway I was developing a small script, to detect people who join a channel and say a word say exactly after they join, supposingly with in one or two seconds of their join.<br><br>Now mostly people use 'getchanjoin' to find the time and convert the unixtime. But the eggdrop takes time to update the usercount of the channel with getchanjoin it and will not give a precise value say in milliseconds, especially for channel who have large usercounts (200+ or so) since it has a bit of delay in updating.<br><blockquote class="uncited"><div>getchanjoin &lt;nickname&gt; &lt;channel&gt;<br>Returns: timestamp (unixtime format) of when the specified nickname joined the channel<br>Module: irc</div></blockquote>Is there anyway I can integrate say bind join with some other bind to detect when a person has joined a channel and has said something within 1-2secs of their joining or is their a way to do this through getchanjoin say maybe, but in milliseonds.<br><br>I have been away for a long time, so I am not that well aquatined with TCL as good as I was before. All help is appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4875">awyeah</a> — Sat Jun 10, 2006 10:44 am</p><hr />
]]></content>
	</entry>
	</feed>
