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

	<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>2008-01-10T03:34:42-04:00</updated>

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

		<entry>
		<author><name><![CDATA[yozeff]]></name></author>
		<updated>2008-01-10T03:34:42-04:00</updated>

		<published>2008-01-10T03:34:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79930#p79930</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79930#p79930"/>
		<title type="html"><![CDATA[trigger commands antiflood [solved]]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79930#p79930"><![CDATA[
Thanks! Problem solved! I combined scripts like this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !kiss pub:kiss proc throttled {id time} {   global throttled   if {[info exists throttled($id)]} {      return 1   } {      set throttled($id) [clock sec]      utimer $time [list unset throttled($id)]      return 0   }}proc pub:kiss {nick uhost handle channel a} { set who [lindex $a 0] if {[throttled $uhost,$channel 3]} {return 1} elseif {$who == "" } { puthelp "PRIVMSG $channel $nick does not knows who to kiss" return 1} else {puthelp "PRIVMSG $channel $nick kisses $who :)" return 1}}</code></pre></div>And now it works!<br><br>Thanks TCL_no_TK<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9615">yozeff</a> — Thu Jan 10, 2008 3:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[TCL_no_TK]]></name></author>
		<updated>2008-01-10T00:13:48-04:00</updated>

		<published>2008-01-10T00:13:48-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79927#p79927</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79927#p79927"/>
		<title type="html"><![CDATA[trigger commands antiflood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79927#p79927"><![CDATA[
Could try using a 'throttle' type system. Take a look at <a href="http://forum.egghelp.org/viewtopic.php?t=9009&amp;highlight=throttle" class="postlink">this post</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8130">TCL_no_TK</a> — Thu Jan 10, 2008 12:13 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[yozeff]]></name></author>
		<updated>2008-01-09T13:26:30-04:00</updated>

		<published>2008-01-09T13:26:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=79901#p79901</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=79901#p79901"/>
		<title type="html"><![CDATA[trigger commands antiflood]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=79901#p79901"><![CDATA[
Hello.<br><br>It's my first post <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"> I have searched through the forum, but could not find such thing:<br><br>if a user on the channel very quickly types 3 lines:<br><br>[10:05:15] &lt;user&gt; !kiss Nickname<br>[10:05:15] &lt;user&gt; !kiss Nickname<br>[10:05:16] &lt;user&gt; !kiss Nickname<br><br>...then bot does this:<br><br>[10:05:18] &lt;bot&gt; user kisses Nickname <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>[10:05:18] &lt;bot&gt; user kisses Nickname <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>[10:05:19] &lt;bot&gt; user kisses Nickname <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>What I want is: if user types command !kiss quickly 3 or even 5 times then bot says text only 1 time. How to accomplish that?<br><br>Thank You!<br><br>Here's my code (hope it will be posted correctly, because of my first post):<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !kiss pub_kissproc pub_kiss {nick host handle channel testes} {set who [lindex $testes 0]if { $who == "" } {utimer 3 [ list putquick "PRIVMSG $channel $nick does not knows who to kiss" ]return 1}utimer 3 [ list putquick "PRIVMSG $channel $nick kisses $who :)" ]return 1}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=9615">yozeff</a> — Wed Jan 09, 2008 1:26 pm</p><hr />
]]></content>
	</entry>
	</feed>
