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

	<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>2024-11-23T19:21:44-04:00</updated>

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

		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-11-23T19:21:44-04:00</updated>

		<published>2024-11-23T19:21:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=113152#p113152</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=113152#p113152"/>
		<title type="html"><![CDATA[Re: Ping error ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=113152#p113152"><![CDATA[
thank you everyone in advance<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Sat Nov 23, 2024 7:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-05-09T01:26:58-04:00</updated>

		<published>2024-05-09T01:26:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112798#p112798</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112798#p112798"/>
		<title type="html"><![CDATA[Re: Ping error ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112798#p112798"><![CDATA[
Restarted the bot last night, after 8hrs of sleep. I tried it and it is working perfect. You are right Crzy.<br>Pektek, now you're script is working properly.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Thu May 09, 2024 1:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-05-08T18:16:57-04:00</updated>

		<published>2024-05-08T18:16:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112797#p112797</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112797#p112797"/>
		<title type="html"><![CDATA[Re: Ping error ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112797#p112797"><![CDATA[
Check if you don't have 2 binds ctcr loaded (multiple loading of script without restarting it ?)<br>When I tested it, I only got one response from the eggdrop. And as your ping aren't the same, I suspect it's due to a side-effect in your eggdrop (restart could be a good idea) or the network you're on, or anything else but not related to the script itself.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed May 08, 2024 6:16 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[aslpls]]></name></author>
		<updated>2024-05-08T13:03:42-04:00</updated>

		<published>2024-05-08T13:03:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112795#p112795</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112795#p112795"/>
		<title type="html"><![CDATA[Re: Ping error ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112795#p112795"><![CDATA[
it is working with the updated code from Crzy..<br><br>the output is<br><div class="codebox"><p>Code: </p><pre><code>&lt;Botname&gt; aslpls ping süreniz 2.177 saniye.&lt;Botname&gt; aslpls ping süreniz 2.321 saniye.</code></pre></div>2 ping results in the channel. how can we remove the second ping output? it is redundant to have two output when you<br>type !ping in the channel.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12622">aslpls</a> — Wed May 08, 2024 1:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-05-08T07:09:52-04:00</updated>

		<published>2024-05-08T07:09:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112794#p112794</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112794#p112794"/>
		<title type="html"><![CDATA[Re: Ping error ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112794#p112794"><![CDATA[
This is because if you don't put any argument when doing !ping, you use the nick of the person without lowercase it:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">if {[lindex $arg 0] == ""} { set nick $nick }</code></pre></div> <strong>script</strong> Correct that with:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">if {[lindex $arg 0] == ""} { set nick [string tolower $nick] }</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Wed May 08, 2024 7:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-05-07T19:51:30-04:00</updated>

		<published>2024-05-07T19:51:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112780#p112780</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112780#p112780"/>
		<title type="html"><![CDATA[Ping error ?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112780#p112780"><![CDATA[
I ran tcl for myself but I got an error<br><br>!ping<br><br>[02:48:07] Tcl error [ping_cevabi]: can't read "ping_suresi(cengiz)": no such element in array<br><div class="codebox"><p>Code: </p><pre><code>set ping_bklm_srsi 15000set ping_kanal "#Sohbet" bind pub - !ping pingbind ctcr - PING ping_cevabiproc ping {nick uhost handle chan arg} {    global botnick ping_suresi ping_kanal ping_bklm_srsi    if {[lindex $arg 0] == ""} { set nick $nick }    if {[lindex $arg 0] != ""} { set nick [string tolower [lindex $arg 0]] }    set ms [clock clicks -milliseconds]    if {[info exists ping_suresi($nick)]} {if {[expr $ms - $ping_suresi($nick)] &lt; $ping_bklm_srsi} {    putserv "NOTICE $nick :Henüz bir ping istediniz, lütfen biraz sonra tekrar deneyin."    return}    }    set ping_suresi($nick) $ms    set ping_kanal $chan    putserv "PRIVMSG $nick :\001PING $ping_suresi($nick)\001";}proc ping_cevabi {nick uhost handle {dest ""} keyword text} {    global botnick ping_suresi ping_kanal    set cnick [string tolower $nick]    if {$dest == ""} {set dest $botnick}    if {$dest == $botnick} {set ms [clock clicks -milliseconds]set fark [expr [expr $ms - $ping_suresi($cnick)]/1000.0]putserv "PRIVMSG $ping_kanal :$nick ping süreniz $fark saniye."    }}putlog "pingkanal.tcl"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Tue May 07, 2024 7:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
