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

	<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-11-24T05:23:01-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-11-24T05:23:01-04:00</updated>

		<published>2012-11-24T05:23:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100252#p100252</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100252#p100252"/>
		<title type="html"><![CDATA[rss synd trigger flood protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100252#p100252"><![CDATA[
If you have 0.4 then at line 250 and 253 you will see:<blockquote class="uncited"><div>proc ::rss-synd::pub_trigger {nick user handle chan text} {<br><br>proc ::rss-synd::pub_trigger {nick user handle chan text} {</div></blockquote>add after each:<div class="codebox"><p>Code: </p><pre><code>if {![throttled $nick,$chan 30]}</code></pre></div>replace 30 with how many seconds you wish, then write in a file called throttled.tcl for instance, one of the codes user made, either the one with the time bind or with timers to do the cleanup.<br><br>Don't forget to load this file before the source scripts/rss-synd.tcl or whatever you have in your eggdrop's configuration file, then rehash and that's it. It should have this <em class="text-italics">protection</em> working.<br><br>If you happen to use the latest version (v0.5b1 at this time) then after the line 281:<blockquote class="uncited"><div>set text [lindex $args $i]</div></blockquote>add:<div class="codebox"><p>Code: </p><pre><code>if {[llength $chan]} {if {[throttled $nick,$chan 30]} return} else {if {[throttled $nick,$user 30]} return}</code></pre></div>haven't tested anything, but in theory at least, it should work. <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=187">caesar</a> — Sat Nov 24, 2012 5:23 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[seiji]]></name></author>
		<updated>2012-11-23T19:39:45-04:00</updated>

		<published>2012-11-23T19:39:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100251#p100251</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100251#p100251"/>
		<title type="html"><![CDATA[rss synd trigger flood protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100251#p100251"><![CDATA[
Well, thanks but I don't have a clue how to apply that code to the tcl.<br><br>I got it to execute, but.<br>First time it executes, !trigger shows the news, then on a new line it says "allowed (wait 30 seconds)"<br><br>Second, third, and so on, times it still executes the !trigger and shows the RSS news, and then says "denied. (wait or try a different channel)" but it continues to execute on !trigger.Never stops.<br><br>Is there another RSS script for eggdrop that has !trigger protection?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12134">seiji</a> — Fri Nov 23, 2012 7:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2012-11-23T11:07:49-04:00</updated>

		<published>2012-11-23T11:07:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100249#p100249</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100249#p100249"/>
		<title type="html"><![CDATA[rss synd trigger flood protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100249#p100249"><![CDATA[
Hi,<br><br>user created a <a href="http://forum.egghelp.org/viewtopic.php?t=9009#45537" class="postlink">throttled</a> function that you can use to achieve what you want.<br><br>Check out his topic as there's even an easy example.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Nov 23, 2012 11:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[seiji]]></name></author>
		<updated>2012-11-22T21:07:57-04:00</updated>

		<published>2012-11-22T21:07:57-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=100248#p100248</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=100248#p100248"/>
		<title type="html"><![CDATA[rss synd trigger flood protection]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=100248#p100248"><![CDATA[
Hello!<br>I'm looking for a trigger flood protection for the rss synd script.<br><a href="http://code.google.com/p/rss-synd/" class="postlink">http://code.google.com/p/rss-synd/</a><br>Is there an easy way to add this for the following scenario.<br><br>nick1&gt;!trigger<br>bot&gt;rss news<br>nick2&gt;!trigger<br>bot&gt;rss news<br>nick 5&gt;!trigger<br>bot&gt;rss news<br>nick1&gt;!trigger<br><br>Is there an easy way to make the bot do this instead:<br><br>nick1&gt;!trigger<br>bot&gt;rss news<br>nick2&gt;!trigger<br>bot silant ignore for the next 5 minutes<br>nick3&gt;!trigger<br>nick5&gt;!trigger<br>nick8&gt;!trigger<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12134">seiji</a> — Thu Nov 22, 2012 9:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
