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

	<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>2005-11-14T15:34:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[billip]]></name></author>
		<updated>2005-11-14T15:34:33-04:00</updated>

		<published>2005-11-14T15:34:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57406#p57406</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57406#p57406"/>
		<title type="html"><![CDATA[utimer help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57406#p57406"><![CDATA[
thank you kami! and ryal for the hints also.<br><br>I tried having the utimer just about everywhere but I never tried it inside those brackets.<br><br>cheers for the help!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6972">billip</a> — Mon Nov 14, 2005 3:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[]Kami[]]></name></author>
		<updated>2005-11-14T15:31:47-04:00</updated>

		<published>2005-11-14T15:31:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57405#p57405</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57405#p57405"/>
		<title type="html"><![CDATA[utimer help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57405#p57405"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !info mooproc moo {n u h c t} {   set x [::http::geturl http://www.somewebsite.com/test.txt]   foreach e [split [::http::data $x] \n] {   utimer 10 "puthelp \"privmsg $c :$e\""}::http::cleanup $x}</code></pre></div>Change 10 (seconds) with delay you wind to use.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3559">]Kami[</a> — Mon Nov 14, 2005 3:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[billip]]></name></author>
		<updated>2005-11-14T14:31:45-04:00</updated>

		<published>2005-11-14T14:31:45-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57402#p57402</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57402#p57402"/>
		<title type="html"><![CDATA[utimer help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57402#p57402"><![CDATA[
managed to kill the bot about 10 times but still not managed to get it to work.<br><br>I think I understand the theory behind utimers, I just cant figure out how to get it to work with that code.<br><br>thanks for the tips though ryal<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6972">billip</a> — Mon Nov 14, 2005 2:31 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[ryal]]></name></author>
		<updated>2005-11-14T05:28:51-04:00</updated>

		<published>2005-11-14T05:28:51-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57387#p57387</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57387#p57387"/>
		<title type="html"><![CDATA[utimer help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57387#p57387"><![CDATA[
A timer TIMER or UTIMER (difference is that the first works in minutes, the second in seconds) must be used like this:<br>set mytimer [timer $mytime myaction]<br>thus if you need to kill it, u use $mytimer to call it<br>"myaction" is the action taken when the time ends<br>So basically to do what you want:<br>*parse the info in the proc moo and store it in a global variable<br>*at the end of moo set a timer and tell it to call a certain proc "time_to_display" for example<br>*create time_to_display: make it display the info you have parsed before<br><br>Thats it. I quite dont understand why you wanna do that, but thats not of my concern <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>gl<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6222">ryal</a> — Mon Nov 14, 2005 5:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[billip]]></name></author>
		<updated>2005-11-13T01:30:58-04:00</updated>

		<published>2005-11-13T01:30:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=57363#p57363</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=57363#p57363"/>
		<title type="html"><![CDATA[utimer help please]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=57363#p57363"><![CDATA[
Hi there,<br><br>I currently have a script on the bot that pulls a text file from the server and displays the contents to the channel when it hears the trigger command "!info" on the channel.<br><br>The problem I'm having is I wish to add a delay in the script but I cant seem to get the Utimer to work.<br><br>I want it so someone in the channel types !info then there is a delay which I can specify before the bot forwards the info to the channel.<br><br>The error I was getting was: Tcl error [moo]: wrong # args: should be "utimer seconds command"<br><br>current code I am using (without the utimer bits) is: <br><div class="codebox"><p>Code: </p><pre><code>package require httpbind pub - !info mooproc moo {n u h c t} {   set x [::http::geturl http://www.somewebsite.com/test.txt]   foreach e [split [::http::data $x] \n] {puthelp "privmsg $c :$e"}::http::cleanup $x} </code></pre></div>Just wondering if anyone could please help me out and show me where to put the utimer so the code works properly and I can specify a delay before the bot responds.<br><br>Any help would be very much appreciated!<br><br>-Billip<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=6972">billip</a> — Sun Nov 13, 2005 1:30 am</p><hr />
]]></content>
	</entry>
	</feed>
