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

	<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>2015-04-05T21:44:34-04:00</updated>

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

		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-05T21:44:34-04:00</updated>

		<published>2015-04-05T21:44:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103751#p103751</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103751#p103751"/>
		<title type="html"><![CDATA[measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103751#p103751"><![CDATA[
Thanks to <strong class="text-strong">willyw</strong> for their ideas and <strong class="text-strong">Spike ^^</strong> for clearing the concept of 'lag'.<br><br>I am modifying a shoucast.tcl and it took him well into him I'm just adding some details that are not essential.<br><br>This idea of ​​measuring the lag own bot, I saw another bot, which realizing you a status, returned by a canal a figure of lag.<br><br>Sometimes the bot does not answer to anyone, not just to a particular user, delay in responding to all, so I thought it might be a lag own bot with respect to all users.<br><br>But with explanations of Spike ^^ I see is just an optical illusion <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thank you so much to you both for your help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 05, 2015 9:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2015-04-05T13:48:36-04:00</updated>

		<published>2015-04-05T13:48:36-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103749#p103749</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103749#p103749"/>
		<title type="html"><![CDATA[measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103749#p103749"><![CDATA[
It would help to have a clearer understanding of exactly what irc lag is.<br>Please read this page, as I believe it puts the whole thing into perspective, <a href="http://www.ircbeginner.com/ircinfo/h-lag.html" class="postlink">http://www.ircbeginner.com/ircinfo/h-lag.html</a><br>The key fact to gather from that explanation is...<blockquote class="uncited"><div> No one is ever really lagged themselves; they are only lagged to each other.</div></blockquote>...and that 'lag' is specific to Only Those 2 Users, and no one else.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Sun Apr 05, 2015 1:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-05T12:33:17-04:00</updated>

		<published>2015-04-05T12:33:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103748#p103748</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103748#p103748"/>
		<title type="html"><![CDATA[Re: measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103748#p103748"><![CDATA[
Have you experimented with this line that I posted earlier, yet?<br><div class="codebox"><p>Code: </p><pre><code>putserv "privmsg NickToPing_here :\001PING [clock milliseconds]\001" </code></pre></div>That will make the bot send a ping request to whatever nick you substitute in for NickToPing_here .<br><br>To make the bot watch for the return,  go to:<br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>and text search for:<br>bind ctcr<br>and read about that bind.<br><blockquote class="uncited"><div>bind ctcr &lt;flags&gt; &lt;keyword&gt; &lt;proc&gt;<br>proc-name &lt;nick&gt; &lt;user@host&gt; &lt;handle&gt; &lt;dest&gt; &lt;keyword&gt; &lt;text&gt;<br><br>Description: just like ctcp, but this is triggered for a ctcp-reply (ctcp embedded in a notice instead of a privmsg)</div></blockquote>Write a proc to correspond to a <br>bind ctcr<br>and you can capture the text returned.<br>Examine that text, and see if you can do anything with it.    <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Post your code here.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Apr 05, 2015 12:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-05T12:27:45-04:00</updated>

		<published>2015-04-05T12:27:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103747#p103747</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103747#p103747"/>
		<title type="html"><![CDATA[Re: measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103747#p103747"><![CDATA[
<blockquote class="uncited"><div>...<br> I'm just starting to learn TCL, I know very little this it.</div></blockquote>Excellent!  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile">    I hope you continue to learn TCL, and have fun with it.<br><blockquote class="uncited"><div>One idea might be, a code that ping 5 random users any of the channels where the bot is.</div></blockquote>You might want to reconsider this.  Is it possible that the users would soon get tired of being pinged?<br><br>Or at least wonder why they are being pinged?<br><br>Perhaps it should ping just one user, and let that user be ... you.  <br><br><blockquote class="uncited"><div>Then make an average in seconds responses of the 5 ping and save the result in a variable.<br>It is possible?</div></blockquote>Yes - if you want to learn the basics.<br><br>However - again - you might want to reconsider your plan.   Of what use will this information really be?<br>Just because it is possible does not mean that it will be meaningful.<br><br>Ping response times can vary for a lot of different reasons.  And those reasons can change, and do.<br><br>I don't know what you need this info for.  But is it possible that it would be more meaningful if it was current?   That's what I found, and do.   The user can have the bot ping himself, when he wants to.  <br><br>It is up to you.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><blockquote class="uncited"><div>Sorry for my bad English ...</div></blockquote>Your English is fine.   Don't worry.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Since this is new to you, here are a few links that will help you:<br><br><a href="http://suninet.the-demon.de/" class="postlink">http://suninet.the-demon.de/</a><br>A great place to get started learning.<br><br><a href="http://www.eggheads.org/support/egghtml/1.6.21/tcl-commands.html" class="postlink">http://www.eggheads.org/support/egghtml ... mands.html</a><br>The Eggdrop related TCL commands.<br><br><a href="http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm" class="postlink">http://www.tcl.tk/man/tcl8.5/TclCmd/contents.htm</a><br>The rest of TCL commands.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sun Apr 05, 2015 12:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-05T09:38:38-04:00</updated>

		<published>2015-04-05T09:38:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103746#p103746</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103746#p103746"/>
		<title type="html"><![CDATA[Re: measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103746#p103746"><![CDATA[
<blockquote class="uncited"><div>I'm thinking that having the bot ping the user, then report the ping response time is what you are wanting.  Please tell me, if this is incorrect.<br>.....<br>If this is totally new to you, you need to say so now. Your first post included some code, so it appears that you do know some basic tcl already, therefore that is how you will be treated.  That will frustrate you, if you know no tcl at all.    So,  let us know.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote> I'm just starting to learn TCL, I know very little this it.<br>One idea might be, a code that ping 5 random users any of the channels where the bot is.<br><br>Then make an average in seconds responses of the 5 ping and save the result in a variable.<br>It is possible?<br>Sorry for my bad English and very grateful for your kindness in answering.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 05, 2015 9:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-05T08:38:40-04:00</updated>

		<published>2015-04-05T08:38:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103745#p103745</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103745#p103745"/>
		<title type="html"><![CDATA[Re: measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103745#p103745"><![CDATA[
<blockquote class="uncited"><div>...<br>Defined as the time after which the bot will respond to a command from any user (not a specific user).<br>I mean, what I need is that the measure Bot its own lag, with respect to any potential user who will use it.<br>...</div></blockquote>I'm thinking that having the bot ping the user, then report the ping response time is what you are wanting.  Please tell me, if this is incorrect.<br><br>Some time ago, I wrote myself a script to do just that because the bot is a trivia game bot, and sometimes users just get the feeling that they have a "laggy" connection and others are getting ahead of them.   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>So, I created a way for them to have the bot ping them, and report.   <br><br>I used the ideas that I gave you above. <br>Have you had any time to write some of it for yourself yet, using those ideas?    Post what you have, here.  All of it.    Then we can try to help you with it.<br><br>If this is totally new to you, you need to say so now. Your first post included some code, so it appears that you do know some basic tcl already, therefore that is how you will be treated.  That will frustrate you, if you know no tcl at all.    So,  let us know.   <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=10420">willyw</a> — Sun Apr 05, 2015 8:38 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-05T00:39:55-04:00</updated>

		<published>2015-04-05T00:39:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103744#p103744</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103744#p103744"/>
		<title type="html"><![CDATA[Re: measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103744#p103744"><![CDATA[
<blockquote class="uncited"><div>Please define "the lag of the bot" for us.</div></blockquote>Defined as the time after which the bot will respond to a command from any user (not a specific user).<br>I mean, what I need is that the measure Bot its own lag, with respect to any potential user who will use it.<br><br><span style="text-decoration:underline">Example</span>:<br><br>My bot inform me #adminchan channel your lag is 30 seconds.<br>12:00:00 @Mybot ¦ My lag is 30 seconds<br>This would mean that my bot will take 30 seconds to answer a command of any user who uses it.<br><br>12:00:00 userx ¦ !hello<br>12:00:30 @Mybot ¦ hello userx<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sun Apr 05, 2015 12:39 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2015-04-04T23:14:03-04:00</updated>

		<published>2015-04-04T23:14:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103743#p103743</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103743#p103743"/>
		<title type="html"><![CDATA[Re: measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103743#p103743"><![CDATA[
<blockquote class="uncited"><div>I need a command to measure the lag of the bot every 10 minutes automatically.<br>...</div></blockquote>Please define "the lag of the bot" for us.<br><br><br>In the meantime, and assuming that you are working on this yourself - if you need a way to have the bot ping somebody, then something like this will send out the ping request:<div class="codebox"><p>Code: </p><pre><code>putserv "privmsg NickToPing_here :\001PING [clock milliseconds]\001"</code></pre></div>Then you could watch for the return. <br>Look up the <br>ctcr<br>bind, in tcl-commands.doc .<br><br>You could do some math with expr, and if you kept the time that the ping was sent out - subtract the time that it came back.<br>Would that be what you are looking for?<br><br>I hope some of this helps you to piece together something.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Sat Apr 04, 2015 11:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[juanamores]]></name></author>
		<updated>2015-04-04T22:11:07-04:00</updated>

		<published>2015-04-04T22:11:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103742#p103742</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103742#p103742"/>
		<title type="html"><![CDATA[measure the lag bot]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103742#p103742"><![CDATA[
I need a command to measure the lag of the bot every 10 minutes automatically.<br><div class="codebox"><p>Code: </p><pre><code>set adminchan "#adminchan"bind time - "?0 * * * *" lagbotproc lagbot { } {global adminchanputmsg $adminchan "Bot  lag is...... seconds"}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12499">juanamores</a> — Sat Apr 04, 2015 10:11 pm</p><hr />
]]></content>
	</entry>
	</feed>
