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

	<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>2001-12-16T23:17:00-04:00</updated>

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

		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-16T23:17:00-04:00</updated>

		<published>2001-12-16T23:17:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2843#p2843</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2843#p2843"/>
		<title type="html"><![CDATA[timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2843#p2843"><![CDATA[
SOrry, as for your first question.<br><br>There are 2 ways of doing timers, the old, and the new.<br><br>The old way, was combersome, and gave problems for people new to scripting, as if strings and lists are not handles properly, they can cause exploits in scripts. For more information, see the timer command in tcl-commands.doc<br><br>The new way (which you are using), is the easiest method, and will cause less trouble.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 16, 2001 11:17 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ppslim]]></name></author>
		<updated>2001-12-16T23:15:00-04:00</updated>

		<published>2001-12-16T23:15:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2842#p2842</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2842#p2842"/>
		<title type="html"><![CDATA[timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2842#p2842"><![CDATA[
Eggdrops time bind does not work like crontab, which is a shame, as it would same some time.<br><br>Howwver, it is simple enough to use Tcl to check if the current min, is divisible by 20.<br><blockquote class="uncited"><div>if {[expr [string trimleft $min] % 20]} { return }</div></blockquote>The above code, would not run the script, unless it was 00, 20 or 40 mins past the hour.<br><br>In your script, you use "n h handle ch te" in your proc definition. FOr the above line to work, you would need to change the $min in the script, to $n, or change your proc definition, to something more meaningful, like th example used on tcl-commands.doc.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2">ppslim</a> — Sun Dec 16, 2001 11:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Anonymous]]></name></author>
		<updated>2001-12-16T22:59:00-04:00</updated>

		<published>2001-12-16T22:59:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=2841#p2841</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=2841#p2841"/>
		<title type="html"><![CDATA[timer]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=2841#p2841"><![CDATA[
Let me start by pasteing my small tcl.<br><br><br>set channel "#lamest"<br><br>set text1 "msg here"<br><br>bind time - "20 * * * *" text1time<br><br>proc text1time {n h handle ch te} {<br>global text1 channel<br>foreach chan $channel {<br>putserv "PRIVMSG $chan :$text1"<br>}<br>}<br><br>My question is, is there a easier way to do the timer, and if not, would that timer work the same as crontab timers? meaning could i do */20 * * * * for a 20 minute timer?<p>Statistics: Posted by Guest — Sun Dec 16, 2001 10:59 pm</p><hr />
]]></content>
	</entry>
	</feed>
