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

	<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>2017-10-29T19:45:43-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2017-10-29T19:45:43-04:00</updated>

		<published>2017-10-29T19:45:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106500#p106500</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106500#p106500"/>
		<title type="html"><![CDATA[Re: help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106500#p106500"><![CDATA[
final code and working very well..<div class="codebox"><p>Code: </p><pre><code>########### PiNG THiNGiE 1.0 ############# designed and programmed by FlyBoyUSA  ## for original use in #emuroms Undernet ########################################### Bug reports and ideas goto flyboyus@modex.com# I love comments, complaints, death threats, and suggestions :-)# updated for Arnold_X-P email urquizoandrade@gmail.com /server irc.dal.net channel #tcls my nick's Arnold_X-P &amp; sedition 09/FEB/2017# thanks to willyw, for the variant in action (/me ping or /me ping nickname)# tambien estoy en irc.chatzona.org canal #eggdrop.conf mi correo urquizoandrade@hotmail.com mis nicks Arnold_X-P y sedition# this tcl recognizes commands in public and also privately and actions.set pingscommands "!ping .ping ¡ping ping !pingme .pingme ¡pingme pingme !lag .lag ¡lag lag !lagme .lagme ¡lagme lagme"foreach pingsnicks [split $pingscommands] { bind pub - $pingsnicks ping_me }foreach pingmsge [split $pingscommands] { bind msg - $pingmsge msg_ping }proc msg_ping {nick uhost hand arg} { ping_me $nick $uhost $hand $nick $arg}bind ctcp - "ACTION" ctcp_pingscript_procproc ctcp_pingscript_proc {nick uhost hand dest keyword text} {if {[string match -nocase "*ping*" $text] || [string match -nocase "*lag*" $text]} {   ping_me $nick $uhost $hand $dest [lrange [split $text] 1 end ]   }}proc ping_me {nick uhost hand chan arg} {   global pingchan pingwho if {[string match -nocase "me" $arg] } {  putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"   set pingwho 0   set pingchan $chan }  { if {$arg == "" } {  putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"   set pingwho 0 set pingchan $chan }  {  putserv "PRIVMSG $arg :\001PING [clock clicks -milliseconds]\001"   set pingwho 1   set pingchan $chan return 1    }  }}bind ctcr - PING ping_me_replyproc ping_me_reply {nick uhost hand dest keyword arg} {   global pingchan pingwho   set pingtarget [lindex [split $arg] 0]   set lagg [expr {abs([clock clicks -milliseconds] - $pingtarget) / 1000.0}]   if {$pingwho == 0} {      puthelp "PRIVMSG $pingchan :PiNG THiNGiE - $nick your ping is $lagg"      return 0   } elseif {$pingwho == 1} {      puthelp "PRIVMSG $pingchan :PiNG THiNGiE - looking at the ping of $nick is $lagg"      unset -nocomplain -- pingchan   }  return 0}bind raw - 401 nosuchnickproc nosuchnick {from keyword arg} { global pingchan  set nickspingnosuch [lindex [split $arg] 1] if {[info exists pingchan]} {   putserv "PRIVMSG $pingchan :10$nickspingnosuch No such nick." unset pingchan }   }putlog "PiNG THiNGiE 1.0 by FlyBoyUSA - updated for Arnold_X-P Loaded"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sun Oct 29, 2017 7:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2017-09-16T16:07:50-04:00</updated>

		<published>2017-09-16T16:07:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=106444#p106444</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=106444#p106444"/>
		<title type="html"><![CDATA[Re: help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=106444#p106444"><![CDATA[
error in tcl:<br>the nickname goes out and goes out again...  &lt;&lt; in the channel<br>[19:45] * daniel77 (~daniel77@190.186.242.22) Quit (Quit: )<br>[20:08] &lt;@Kantuta&gt; daniel77 No such nick.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Sat Sep 16, 2017 4:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2017-02-09T22:25:33-04:00</updated>

		<published>2017-02-09T22:25:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105809#p105809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105809#p105809"/>
		<title type="html"><![CDATA[Re: help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105809#p105809"><![CDATA[
I achieved it extracted the variant for that he looks and it me works of marvel<br>now he recognizes all the commands ping &amp; lag (for nicks)<br><div class="codebox"><p>Code: </p><pre><code>########### PiNG THiNGiE 1.0 ############# designed and programmed by FlyBoyUSA  ## for original use in #emuroms Undernet ########################################### Bug reports and ideas goto flyboyus@modex.com# I love comments, complaints, death threats, and suggestions :-)# updated for Arnold_X-P email urquizoandrade@hotmail.com /server irc.dal.net channel #tcls my nick's Arnold_X-P &amp; sedition 09/FEB/2017# thanks to willyw, for the variant in action (/me ping or /me ping nickname)# this tcl recognizes commands in public and also privately and actions.set pingscommands "!ping .ping ¡ping ping !pingme .pingme ¡pingme pingme !lag .lag ¡lag lag !lagme .lagme ¡lagme lagme"foreach pingsnicks [split $pingscommands] { bind pub - $pingsnicks ping_me }foreach pingmsge [split $pingscommands] { bind msg - $pingmsge msg_ping }proc msg_ping {nick uhost hand arg} { ping_me $nick $uhost $hand $nick $arg} bind ctcp - "ACTION" ctcp_pingscript_procproc ctcp_pingscript_proc {nick uhost hand dest keyword text} {if {[string match -nocase "*ping*" $text] || [string match -nocase "*lag*" $text]} {ping_me $nick $uhost $hand $dest [lrange [split $text] 1 end ]}}proc ping_me {nick uhost hand chan arg} {global pingchan pingwhoset arg [string toupper $arg]if {$arg == "ME" } {putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"set pingwho 0set pingchan $chanreturn 1} else {if {$arg == "" } {putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"set pingwho 0set pingchan $chanreturn 1} else {putserv "PRIVMSG $arg :\001PING [clock clicks -milliseconds]\001"set pingwho 1set pingchan $chanreturn 0}}}bind ctcr - PING ping_me_replyproc ping_me_reply {nick uhost hand dest key arg} {global pingchan pingwhoset pingtarget [lindex $arg 0]set lagg [expr {abs([clock clicks -milliseconds] - $pingtarget) / 1000.0}]if {$pingwho == 0} {puthelp "PRIVMSG $pingchan :PiNG THiNGiE - $nick your ping is $lagg"return 0} elseif {$pingwho == 1} {puthelp "PRIVMSG $pingchan :PiNG THiNGiE - looking at the ping of $nick is $lagg"return 0}}bind raw - 401 no:such:nickproc no:such:nick {from keyword arg} { global pingchan if {[info exists pingchan]} {  set nickspingnosuch [lindex [split $arg] 1]putserv "PRIVMSG $pingchan :10$nickspingnosuch No such nick."unset pingchan ;} } putlog "PiNG THiNGiE 1.0 by FlyBoyUSA - updated for Arnold_X-P Loaded"</code></pre></div>thanks  willyw<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Thu Feb 09, 2017 10:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2017-02-09T22:13:24-04:00</updated>

		<published>2017-02-09T22:13:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105808#p105808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105808#p105808"/>
		<title type="html"><![CDATA[Re: help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105808#p105808"><![CDATA[
thanks willyw <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> thank you very much<br><br>I will try to extract the global variant to use all the commands..<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Thu Feb 09, 2017 10:13 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2017-02-09T11:30:29-04:00</updated>

		<published>2017-02-09T11:30:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105807#p105807</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105807#p105807"/>
		<title type="html"><![CDATA[Re: help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105807#p105807"><![CDATA[
#<div class="codebox"><p>Code: </p><pre><code>########### PiNG THiNGiE 1.0 ############# designed and programmed by FlyBoyUSA  ## for original use in #emuroms Undernet ########################################### Bug reports and ideas goto flyboyus@modex.com# I love comments, complaints, death threats, and suggestions :-)set pingscommands "!ping .ping ¡ping ping !pingme .pingme ¡pingme pingme !lag .lag ¡lag lag !lagme .lagme ¡lagme lagme"foreach pingsnicks [split $pingscommands] { bind pub - $pingsnicks ping_me }bind ctcr - PING ping_me_reply##########################bind ctcp - "ACTION" ctcp_pingscript_procproc ctcp_pingscript_proc {nick uhost hand dest keyword text} {if {$keyword eq "ACTION" &amp;&amp; [lindex [split $text] 0] eq ".ping" } {ping_me $nick $uhost $hand $dest [lrange [split $text] 1 end ]}}################proc ping_me {nick uhost hand chan arg} {global pingchan pingwhoset arg [string toupper $arg]if {$arg == "ME" } {putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"set pingwho 0set pingchan $chanreturn 1} else {if {$arg == "" } {putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"set pingwho 0set pingchan $chanreturn 1} else {putserv "PRIVMSG $arg :\001PING [clock clicks -milliseconds]\001"set pingwho 1set pingchan $chanreturn 0}}}proc ping_me_reply {nick uhost hand dest key arg} {global pingchan pingwhoset lagg [expr {abs([clock clicks -milliseconds] - $arg) / 1000.0}]if {$pingwho == 0} {puthelp "PRIVMSG $pingchan :PiNG THiNGiE - $nick your ping is $lagg"return 0} elseif {$pingwho == 1} {puthelp "PRIVMSG $pingchan :PiNG THiNGiE - looking at the ping of $nick is $lagg"return 0}}bind raw - 401 no:such:nickproc no:such:nick {from keyword arg} {global pingchanif {[info exists pingchan]} {set nickspingnosuch [lindex [split $arg] 1]foreach pichans $pingchan {putserv "PRIVMSG $pichans :10$nickspingnosuch No such nick"unset -nocomplain -- pingchan pichans ; break} } }putlog "PiNG THiNGiE 1.0 by FlyBoyUSA Loaded"</code></pre></div>Try this.<br>You can see the edits/additions with #### above and below them.<br>This is untested.  Sorry.<br><br>Additions will only work with the command:<br>.ping<br><br>I hope this helps.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Feb 09, 2017 11:30 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2017-02-08T22:30:11-04:00</updated>

		<published>2017-02-08T22:30:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105806#p105806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105806#p105806"/>
		<title type="html"><![CDATA[Re: help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105806#p105806"><![CDATA[
some help please...   <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad">  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Wed Feb 08, 2017 10:30 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Arnold_X-P]]></name></author>
		<updated>2017-01-10T01:38:25-04:00</updated>

		<published>2017-01-10T01:38:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=105703#p105703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=105703#p105703"/>
		<title type="html"><![CDATA[help in tcl ping for FlyBoyUSA]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=105703#p105703"><![CDATA[
good morning to all <br>I extended a very good tcl and it me works very well <br><div class="codebox"><p>Code: </p><pre><code>########### PiNG THiNGiE 1.0 ############# designed and programmed by FlyBoyUSA  ## for original use in #emuroms Undernet ########################################### Bug reports and ideas goto flyboyus@modex.com# I love comments, complaints, death threats, and suggestions :-)set pingscommands "!ping .ping ¡ping ping !pingme .pingme ¡pingme pingme !lag .lag ¡lag lag !lagme .lagme ¡lagme lagme"foreach pingsnicks [split $pingscommands] { bind pub - $pingsnicks ping_me }bind ctcr - PING ping_me_replyproc ping_me {nick uhost hand chan arg} {     global pingchan pingwho     set arg [string toupper $arg]   if {$arg == "ME" } {          putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"          set pingwho 0          set pingchan $chan          return 1    } else {    if {$arg == "" } {          putserv "PRIVMSG $nick :\001PING [clock clicks -milliseconds]\001"          set pingwho 0          set pingchan $chan          return 1      } else {           putserv "PRIVMSG $arg :\001PING [clock clicks -milliseconds]\001"          set pingwho 1          set pingchan $chan          return 0    }  }}proc ping_me_reply {nick uhost hand dest key arg} {     global pingchan pingwho    set lagg [expr {abs([clock clicks -milliseconds] - $arg) / 1000.0}]     if {$pingwho == 0} {          puthelp "PRIVMSG $pingchan :PiNG THiNGiE - $nick your ping is $lagg"          return 0     } elseif {$pingwho == 1} {          puthelp "PRIVMSG $pingchan :PiNG THiNGiE - looking at the ping of $nick is $lagg"          return 0     }}bind raw - 401 no:such:nick  proc no:such:nick {from keyword arg} { global pingchan if {[info exists pingchan]} {  set nickspingnosuch [lindex [split $arg] 1]  foreach pichans $pingchan {putserv "PRIVMSG $pichans :10$nickspingnosuch No such nick"unset -nocomplain -- pingchan pichans ; break } } }putlog "PiNG THiNGiE 1.0 by FlyBoyUSA Loaded"</code></pre></div>it works very well<br><a href="https://postimg.org/image/7ficu99b5/" class="postlink"><img src="https://s24.postimg.org/u47jttqp1/ping_us.jpg" class="postimage" alt="Image"></a><br><br>my question is it will be that the tcl also could recognize also the orders in actions<br><a href="https://postimg.org/image/3qskdkirl/" class="postlink"><img src="https://s24.postimg.org/xipmsr5l1/ping_us2.jpg" class="postimage" alt="Image"></a><br><br>help me please<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8327">Arnold_X-P</a> — Tue Jan 10, 2017 1:38 am</p><hr />
]]></content>
	</entry>
	</feed>
