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

	<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>2012-12-21T20:15:26-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-21T20:15:26-04:00</updated>

		<published>2012-12-21T20:15:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100463#p100463</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100463#p100463"/>
		<title type="html"><![CDATA[[SOLVED] Need help on throttled]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100463#p100463"><![CDATA[
Sorry, I know nothing about mysql or the tcl code needed to work it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 21, 2012 8:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T19:15:20-04:00</updated>

		<published>2012-12-21T19:15:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100461#p100461</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100461#p100461"/>
		<title type="html"><![CDATA[[SOLVED] Need help on throttled]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100461#p100461"><![CDATA[
thank you it works wonderfully!<br><br>SpiKe^^ have you a idea what I can do here to make it work?: <a href="http://forum.egghelp.org/viewtopic.php?t=19231" class="postlink">Link</a><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 7:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-12-21T17:11:38-04:00</updated>

		<published>2012-12-21T17:11:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100459#p100459</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100459#p100459"/>
		<title type="html"><![CDATA[[SOLVED] Need help on throttled]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100459#p100459"><![CDATA[
try this...<div class="codebox"><p>Code: </p><pre><code>proc throttled {id time} {   global throttled   if {[info exists throttled($id)]} {      return [expr {($throttled($id)+$time)-[clock sec]}]   } {      set throttled($id) [clock sec]      utimer $time [list unset throttled($id)]      return 0   }}example limiting usage by same user@host on a specific channel(the time &amp; id parts can be what ever you like of course)Code:bind pub n !test pub:testproc pub:test {n u h c a} {   if {[set timeleft [throttled $u,$c 30]]} {      puthelp "PRIVMSG $c :$n: denied. (wait $timeleft seconds)"   } else {      puthelp "PRIVMSG $c :$n: allowed (wait 30 seconds)"   }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Dec 21, 2012 5:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Diamond85]]></name></author>
		<updated>2012-12-21T20:11:51-04:00</updated>

		<published>2012-12-21T13:17:34-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100458#p100458</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100458#p100458"/>
		<title type="html"><![CDATA[[SOLVED] Need help on throttled]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100458#p100458"><![CDATA[
this is from: <a href="http://forum.egghelp.org/viewtopic.php?t=9009#45537" class="postlink">http://forum.egghelp.org/viewtopic.php?t=9009#45537</a><br><div class="codebox"><p>Code: </p><pre><code>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    } }example limiting usage by same user@host on a specific channel (the id part can be what ever you like of course) Code:bind pub n !test pub:test proc pub:test {n u h c a} {    if {[throttled $u,$c 30]} {       puthelp "PRIVMSG $c :$n: denied. (wait or try a different channel)"    } else {       puthelp "PRIVMSG $c :$n: allowed (wait 30 seconds)"    } }</code></pre></div>I've got a question times how I can query the seconds that are still open?<br><br>if 60 sekungen are set.<br>wait 35 seconds.<br>If the user then the commands used. say to the bot may wish to wait 25 seconds.<br>is that possible?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10289">Diamond85</a> — Fri Dec 21, 2012 1:17 pm</p><hr />
]]></content>
	</entry>
	</feed>
