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

	<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>2006-10-16T11:20:55-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-10-16T11:20:55-04:00</updated>

		<published>2006-10-16T11:20:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67183#p67183</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67183#p67183"/>
		<title type="html"><![CDATA[User specific timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67183#p67183"><![CDATA[
Problem #1:<br>Since you say "user", I assume they're added to your bot's userlist.<br>In this case, I'd just use an XTRA-field (setuser &lt;handle&gt; XTRA help-last [unixtime]) to store a timestamp, and then compare it whenever a user calls your help-command (getuser &lt;handle&gt; XTRA)<br><br>Problem #2:<br>This is usually more a server-limitation, as ircd's generally has a throttling control to prevent flooding. Eggdrop uses several different queues and keeps track of "punishment points" in order to avoid beeing flooded off.<br>These queues have different priorities and are generally fifo (first in, first out).<br>At the same time, tcl is generally not multithreaded, specifically; only one command will be executed at a time in an interpreter (hence if you call a proc, it will run to the end before anything else can be called). So unless you wish to create 14 timers for each time an user types !help, you'll have to live with that...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Mon Oct 16, 2006 11:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[joke]]></name></author>
		<updated>2006-10-16T09:41:07-04:00</updated>

		<published>2006-10-16T09:41:07-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=67180#p67180</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=67180#p67180"/>
		<title type="html"><![CDATA[User specific timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=67180#p67180"><![CDATA[
Hi!<br><br>I want to write a script which post a helpline to a user on demand. To simplify the problem the helpline should only be "HELP", command should be !help.<br><br>But now my two problems: at first I need a timer which allows only one request per minute PER USER.<br><br>My second problem is, that in reality the helpline is not one line but something about 15 lines. When 2 users make a request at the same time, the 2nd user has to wait. Is there a commandto tell the bot to make 2 outputs at the same time?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6616">joke</a> — Mon Oct 16, 2006 9:41 am</p><hr />
]]></content>
	</entry>
	</feed>
