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

	<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>2007-05-07T06:02:28-04:00</updated>

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

		<entry>
		<author><name><![CDATA[dq]]></name></author>
		<updated>2007-05-07T06:02:28-04:00</updated>

		<published>2007-05-07T06:02:28-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72580#p72580</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72580#p72580"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72580#p72580"><![CDATA[
Perhaps this is what you're after?<br><div class="codebox"><p>Code: </p><pre><code>proc start:timer {nick host hand chan text} {global channel msg interval id if {[matchattr $hand A] == 0} {noaccess2 $nick ; return} set name $nick set interval [lindex $text 0] set channel [lindex $text 1] set msg [lrange $text 2 end] utimer $interval timer putserv "NOTICE $nick :Starting timer Message: \"$msg\" Every $interval seconds"}proc timer {} {global channel msg interval timerID  putserv "PRIVMSG $channel :$msg"  set timerID [utimer $interval timer]}proc stop:timer {nick host hand chan text} {global timerID  if {[matchattr $hand A] == 0} {noaccess2 $nick ; return}  putserv "NOTICE $nick :Timer stopped"  killutimer $timerID  return 1}</code></pre></div>Don't forget to add your binds etc~<br><br>.timer interval #channel messagehere<br><br>Untested, Unthought-of and only supports one channel, anyone care to add/edit/abuse go for it =p<br><br>(Picked this up from another post somewhere here, again using the search function?)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7571">dq</a> — Mon May 07, 2007 6:02 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-07T05:28:03-04:00</updated>

		<published>2007-05-07T05:28:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72579#p72579</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72579#p72579"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72579#p72579"><![CDATA[
<blockquote class="uncited"><div>bump what??<br>you <strong class="text-strong">still</strong> have not provided <strong class="text-strong">proc timedmsg</strong><br><br>if you want help with this, post the <span style="text-decoration:underline"><strong class="text-strong">entire</strong></span> script</div></blockquote>And in <div class="codebox"><p>Code: </p><pre><code> tags with proper spacing.</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Mon May 07, 2007 5:28 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DragnLord]]></name></author>
		<updated>2007-05-07T01:41:52-04:00</updated>

		<published>2007-05-07T01:41:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72576#p72576</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72576#p72576"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72576#p72576"><![CDATA[
bump what??<br>you <strong class="text-strong">still</strong> have not provided <strong class="text-strong">proc timedmsg</strong><br><br>if you want help with this, post the <span style="text-decoration:underline"><strong class="text-strong">entire</strong></span> script<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4461">DragnLord</a> — Mon May 07, 2007 1:41 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ima]]></name></author>
		<updated>2007-05-07T00:03:26-04:00</updated>

		<published>2007-05-07T00:03:26-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72573#p72573</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72573#p72573"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72573#p72573"><![CDATA[
Bump?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8962">Ima</a> — Mon May 07, 2007 12:03 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ima]]></name></author>
		<updated>2007-05-02T21:27:14-04:00</updated>

		<published>2007-05-02T21:27:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72456#p72456</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72456#p72456"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72456#p72456"><![CDATA[
My fault I had thought I had two quotes<blockquote class="uncited"><div>proc timedmsgcheck {n h handle ch te} { <br>  global channel datafolder<br>    foreach chan [channels] {<br>    if {[file exists $datafolder/$chan/settings/timedmsg]} {<br>      bindmsg BotServ $chan "[commands_filter [getsettings $chan timedmsg]]"<br>    }<br>  } <br>}</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8962">Ima</a> — Wed May 02, 2007 9:27 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-05-02T11:26:21-04:00</updated>

		<published>2007-05-02T11:26:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72448#p72448</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72448#p72448"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72448#p72448"><![CDATA[
where is your <strong class="text-strong">proc timedmsg</strong>?  This isn't the complete code  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_rolleyes.gif" width="15" height="15" alt=":roll:" title="Rolling Eyes"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Wed May 02, 2007 11:26 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ima]]></name></author>
		<updated>2007-05-01T22:34:12-04:00</updated>

		<published>2007-05-01T22:34:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72430#p72430</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72430#p72430"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72430#p72430"><![CDATA[
<blockquote class="uncited"><div>    }<br>            if { [string tolower [lindex $arg 1]] == "timedmsg" } {<br>  if {[lindex $arg 2 end] == ""} {<br>                   if {[file exists $datafolder/$chan/settings/timedmsg]} {<br>                     unotice $nick $oldchan "\002TimedMSG\002 [commands_filter [getsettings $chan timedmsg]]"<br>                     return<br>                   }<br>    unotice $nick $oldchan "\002TimedMSG\002 None"<br>    return<br>  }<br>              if { [string tolower [lindex $arg 2 end]] == "none" } {<br>                file delete -force $datafolder/$chan/settings/timedmsg<br>    unotice $nick $oldchan "\002TimeMSG\002 None     (Your timedmsg has been disabled)"<br>    return<br>  }<br>              if { [string tolower [lindex $arg 2 end]] == "off" } {<br>                file delete -force $datafolder/$chan/settings/timedmsg<br>    unotice $nick $oldchan "\002TimeMSG\002 Off     (Your timedmsg has been disabled)"<br>    return<br>  }<br>            set fp [open $datafolder/$chan/settings/timedmsg w+]<br>            puts $fp "timedmsg [commands_filter [lrange $arg 2 end]]"<br>            close $fp<br>unotice $nick $chan "\002TimedMSG\002 [commands_filter [lrange $arg 2 end]]"<br>unotice $nick $chan "(This msg will be displayed once every hour) To delete the timed msg use [channel get $chan trigger]set timedmsg none"<br>return<br>}</div></blockquote><br><br>That is my current Timedmsg and I'm not quite sure how to add a timer to it, if anyone could help I would appreciate it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8962">Ima</a> — Tue May 01, 2007 10:34 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[YooHoo]]></name></author>
		<updated>2007-05-01T21:00:44-04:00</updated>

		<published>2007-05-01T21:00:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72427#p72427</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72427#p72427"/>
		<title type="html"><![CDATA[Re: Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72427#p72427"><![CDATA[
<blockquote class="uncited"><div>I was wondering if it's possible to have a timer on that.<br><br>Like @Set timedmsg 45 Hello<br><br>45 would be minutes, seconds, whatever I was just wondering if it's possible to add a timer and if so how I would go about doing it.</div></blockquote>Absolutely. You can also make your script execute something after a certain number of minutes or seconds.<br>This can be done with the <strong class="text-strong">timer</strong> and <strong class="text-strong">utimer</strong> commands.<br>The syntax of a timer command is <strong class="text-strong">timer &lt;time&gt; "&lt;command&gt; [parameters]</strong>".<br><br>The <strong class="text-strong">&lt;time&gt;</strong> is after how long your command should be executed.<br>If you are using timer this would be have to be in minutes and if you are using utimer this would have to be in seconds. <br>The <strong class="text-strong">&lt;command&gt;</strong> is the command you want to execute.  This can be a TCL command, an Eggdrop command or anything else just as long as it's a valid command.  <br>The <strong class="text-strong">[parameters]</strong> are the parameters you want to give to your command.<br>Hope that is helpful <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_mrgreen.gif" width="15" height="15" alt=":mrgreen:" title="Mr. Green"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2706">YooHoo</a> — Tue May 01, 2007 9:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-05-01T20:25:54-04:00</updated>

		<published>2007-05-01T20:25:54-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72426#p72426</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72426#p72426"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72426#p72426"><![CDATA[
Show us your code.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue May 01, 2007 8:25 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Ima]]></name></author>
		<updated>2007-05-01T19:19:10-04:00</updated>

		<published>2007-05-01T19:19:10-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=72425#p72425</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=72425#p72425"/>
		<title type="html"><![CDATA[Timed Message Help]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=72425#p72425"><![CDATA[
I currently have a bot running, but I can only set a timer to a default time and not a specific time, if the source is needed I can provide it. <br><br>Example -<br>At current it would be @set timedmsg Hello<br>And it would repeat Hello once every hour<br><br>I was wondering if it's possible to have a timer on that.<br><br>Like @Set timedmsg 45 Hello<br><br>45 would be minutes, seconds, whatever I was just wondering if it's possible to add a timer and if so how I would go about doing it.<br><br><br>Thank you very much, help would be appreciated.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8962">Ima</a> — Tue May 01, 2007 7:19 pm</p><hr />
]]></content>
	</entry>
	</feed>
