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

	<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>2003-12-28T16:26:29-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Bucko]]></name></author>
		<updated>2003-12-28T16:26:29-04:00</updated>

		<published>2003-12-28T16:26:29-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31895#p31895</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31895#p31895"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31895#p31895"><![CDATA[
Whoo Hoo<br><br>I figured it out sweet!!!!!!!!<br><br>Thanks for the help on this one guys.  I think I actually might be learning something here. :&gt;<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4302">Bucko</a> — Sun Dec 28, 2003 4:26 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bucko]]></name></author>
		<updated>2003-12-28T16:00:43-04:00</updated>

		<published>2003-12-28T16:00:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31894#p31894</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31894#p31894"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31894#p31894"><![CDATA[
Awesome ok I got it to work, Thank you.<br><br>Now if I want to message to be multiple lines how do I go about with this<br><br><blockquote class="uncited"><div>set meeting_msg {<br>"TCL is fun to learn when you've been up all night drinking coffee" <br>"line 2"<br>"line 3"<br>}<br><br>for each i $meeting_msg putserv "PRIVMSG #NAChat :$meeting_msg :i "</div></blockquote>Its coming up with nothing so I think my syntax is incorrect as per usual.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4302">Bucko</a> — Sun Dec 28, 2003 4:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-28T10:56:25-04:00</updated>

		<published>2003-12-28T10:56:25-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31886#p31886</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31886#p31886"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31886#p31886"><![CDATA[
And there's no need for '<strong class="text-strong">global tclmsg</strong>' since you want use the var elsewhere.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 28, 2003 10:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-28T09:52:14-04:00</updated>

		<published>2003-12-28T09:52:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31884#p31884</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31884#p31884"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31884#p31884"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG #NAChat :$tclmsg"</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Dec 28, 2003 9:52 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bucko]]></name></author>
		<updated>2003-12-28T08:55:40-04:00</updated>

		<published>2003-12-28T08:55:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31883#p31883</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31883#p31883"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31883#p31883"><![CDATA[
Im still having problems would sombody be able to check this script.<br>Im not sure whats not functioning, but I've tested it with various times and I can't seem to even get the message to output.<br><blockquote class="uncited"><div>set days "Sunday Wednesday" <br><br>proc something {minute hour day month year} { <br>  global days <br>  if {[lsearch -exact [split [string tolower $days]] [string tolower [clock format [unixtime] -format %A]]] == -1} { <br>    return 0 <br>  } <br>set tclmsg "TCL is fun to learn when you've been up all night drinking coffee" <br>global tclmsg <br>putserv #NAChat :$tclmsg <br><br>   <br>} <br><br>bind time - "53 05 *" something</div></blockquote><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4302">Bucko</a> — Sun Dec 28, 2003 8:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-12-28T08:42:32-04:00</updated>

		<published>2003-12-28T08:42:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31882#p31882</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31882#p31882"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31882#p31882"><![CDATA[
<blockquote class="uncited"><div>set the time bind to "45 12 * * *" for 12:45am and wablam automatically I should get my message appearing on Sundays and Wednesdays at 12:45 am.<br><br>Or do I need some sort if if statment in front of my set tclmsg... IE: if days = Sunday then blah blah blah</div></blockquote>This bind would work, to make it prettier yo can bind to <strong class="text-strong">"45 12 *"</strong> instead (* matchs everything with spaces or no spaces)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Dec 28, 2003 8:42 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bucko]]></name></author>
		<updated>2003-12-28T08:20:33-04:00</updated>

		<published>2003-12-28T08:20:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31879#p31879</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31879#p31879"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31879#p31879"><![CDATA[
ok I'm following you, but lets just focus on the "otherwise do this" portion.  So if I wanted to display a message like: <br><br>"TCL is fun to learn when you've been up all night drinking coffee"<br><br>where the code says otherwise do this i would simply put:<br><blockquote class="uncited"><div>set tclmsg "TCL is fun to learn when you've been up all night drinking coffee"<br>global tclmsg<br>putserv #MYCHANNEL :$tclmsg</div></blockquote>set the time bind to "45 12 * * *"  for 12:45am and wablam automatically I should get my message appearing on Sundays and Wednesdays at 12:45 am.<br><br>Or do I need some sort if if statment in front of my set tclmsg...  IE: if days = Sunday then blah blah blah<br><br>???<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4302">Bucko</a> — Sun Dec 28, 2003 8:20 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-12-28T14:16:46-04:00</updated>

		<published>2003-12-28T07:59:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31878#p31878</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31878#p31878"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31878#p31878"><![CDATA[
Instead of "otherwise do this" add your stuff to do when is one of thouse days from the days variable. Also, I think your regsub won't do what you intend to do, the notice you want to send with the result can have just one destination $chan or $nick and bouth don't have a variable so will fail to *work* .. either set them to something like set nick "somenickhere" or set chan "#somechannel" or put directly a nick or a channel you want to be the destination of the notice.<br><br>Edit: Use this regsub instead:<div class="codebox"><p>Code: </p><pre><code>regsub -all -- {&lt;|&gt;|html|head|title|body|[/]} $html "" html</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Sun Dec 28, 2003 7:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Bucko]]></name></author>
		<updated>2003-12-28T07:22:14-04:00</updated>

		<published>2003-12-28T07:22:14-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=31877#p31877</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=31877#p31877"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=31877#p31877"><![CDATA[
I tried this method and I didn't have much luck with it.<br><br>Here is my script<blockquote class="uncited"><div>set days "Wednesday Sunday" <br><br>proc meeting {minute hour day month year} { <br>  global days <br>  if {[lsearch -exact [split [string tolower $days]] [string tolower [clock format [unixtime] -format %A]]] == -1} { <br>    return 0 <br>  } <br>  otherwise do this <br>} <br>set meeting_url "<a href="http://mywebpage.com" class="postlink">http://mywebpage.com</a>" <br>bind time - "20 04 * * *" meeting_get<br>proc meeting_get {nick mask hand chan args} { <br>   global meeting_url <br>   set file [open "|lynx -source $meeting_url" r] <br>   set html "[gets $file]" <br>   regsub "&lt;html&gt;&lt;head&gt;&lt;title&gt;&lt;/title&gt;&lt;/head&gt;&lt;body&gt;" $html "" html<br>   <br><br><br>putserv "NOTICE $nick  $chan :$html "<br>}</div></blockquote>If anyone has any ideas about this I would be happy to try them out.  This is not giving me any errors at all.  Its just not doing anything.<br><br>I know the parsing script works because I tried it our in an onjoin bind earlier.<br><br>All I really need this to do is post a few lines of text at these times and not parse an html file, but im new to this and the html thing worked.  I didn't want to factor in too many things that could go wrong.<br><br>Thanks in advance<br>Bucko<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=4302">Bucko</a> — Sun Dec 28, 2003 7:22 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[slennox]]></name></author>
		<updated>2002-07-20T07:56:00-04:00</updated>

		<published>2002-07-20T07:56:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9028#p9028</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9028#p9028"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9028#p9028"><![CDATA[
Here is one way:<br><div class="codebox"><p>Code: </p><pre><code>set days "Wednesday Saturday"proc something {minute hour day month year} {  global days  if {[lsearch -exact [split [string tolower $days]] [string tolower [clock format [unixtime] -format %A]]] == -1} {    return 0  }  otherwise do this}bind time - "00 12 * * *" something</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13034">slennox</a> — Sat Jul 20, 2002 7:56 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[FreakyComputer]]></name></author>
		<updated>2002-07-20T05:30:41-04:00</updated>

		<published>2002-07-20T05:30:41-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=9023#p9023</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=9023#p9023"/>
		<title type="html"><![CDATA[Doing stuff weekly]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=9023#p9023"><![CDATA[
Hi there,<br><br>I would like to know if there is a way to do a specific set of commands weekly (eg. Saturdays 12:00) but the TIME bind only supports dates and not days  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> <br><br>If there is anyone that can help, please just give me that bit of code <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br><br>Thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1240">FreakyComputer</a> — Sat Jul 20, 2002 5:30 am</p><hr />
]]></content>
	</entry>
	</feed>
