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

	<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>2004-05-16T05:33:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-05-16T05:33:11-04:00</updated>

		<published>2004-05-16T05:33:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36374#p36374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36374#p36374"/>
		<title type="html"><![CDATA[Restrictive timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36374#p36374"><![CDATA[
thx..that did the trick <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>I owe you one<br><br>Chrizz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Sun May 16, 2004 5:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-14T17:55:58-04:00</updated>

		<published>2004-05-14T17:55:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36343#p36343</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36343#p36343"/>
		<title type="html"><![CDATA[Restrictive timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36343#p36343"><![CDATA[
you need to make your variable globally declared within whatever procedure you are invoking the code in...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Fri May 14, 2004 5:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-05-14T15:39:45-04:00</updated>

		<published>2004-05-14T15:39:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36340#p36340</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36340#p36340"/>
		<title type="html"><![CDATA[Restrictive timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36340#p36340"><![CDATA[
Thx for your reply.<br><br>I've tried to implement your example, but it seems it doesn't work.<br>It seems to skip the first part and go right into the second part, not checking for the 60 seconds.<br><br>I've tried some stuff, but it didn't work out for me...<br><br>Any ideas how to fix it?<br><br>gr.<br><br>Chris<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Fri May 14, 2004 3:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[strikelight]]></name></author>
		<updated>2004-05-13T14:07:56-04:00</updated>

		<published>2004-05-13T14:07:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36317#p36317</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36317#p36317"/>
		<title type="html"><![CDATA[Restrictive timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36317#p36317"><![CDATA[
Set a variable to a unix timestamp when the command is called, and check against that variable when the user performs the command again...<br><br>for example....<br><div class="codebox"><p>Code: </p><pre><code># there are 60 seconds in a minute, thus the &lt; 60 ...if {[info exists ourtimestamp] &amp;&amp; [expr {[clock seconds] - $ourtimestamp}] &lt; 60} {  # command was already called less than a minute ago ...} else {  # command has not been called for atleast a minute ...  set ourtimestamp [clock seconds]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2005">strikelight</a> — Thu May 13, 2004 2:07 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[cvanmeer]]></name></author>
		<updated>2004-05-13T13:51:06-04:00</updated>

		<published>2004-05-13T13:51:06-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=36316#p36316</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=36316#p36316"/>
		<title type="html"><![CDATA[Restrictive timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=36316#p36316"><![CDATA[
Hi all,<br><br>I have a question.<br><br>I have this command that will retrieve a certain server status from a webpage and report it on the channel.<br><br>But what I want is to put a restrictive timer on it, so the command (!status) can only be used once every one minute. And if someone triggers the command within that minute it will get a response like: Sorry, this command is blocked for $remainingtime.<br><br>Could someone please help me?<br>I've searched the forum but couldn't find what I was looking for.<br><br>Thx<br><br>Chrizz<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4215">cvanmeer</a> — Thu May 13, 2004 1:51 pm</p><hr />
]]></content>
	</entry>
	</feed>
