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

	<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>2006-08-25T07:09:33-04:00</updated>

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

		<entry>
		<author><name><![CDATA[swasteris]]></name></author>
		<updated>2006-08-25T07:09:33-04:00</updated>

		<published>2006-08-25T07:09:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65809#p65809</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65809#p65809"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65809#p65809"><![CDATA[
okey now it's work perfect  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=":wink:" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8124">swasteris</a> — Fri Aug 25, 2006 7:09 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-25T06:10:52-04:00</updated>

		<published>2006-08-25T06:10:52-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65808#p65808</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65808#p65808"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65808#p65808"><![CDATA[
Yes... and as I stated, you'll have to do something useful with $m in the first place...  I only set it to 1 for demonstation purposes...<br><br>This example assumes you wish to test wether the minute is even or not (as suggested by demond, and with his scan-fix)<div class="codebox"><p>Code: </p><pre><code>bind time - * time:testproc time:test {minute hour day month year} { if {[expr [scan $minute "%d"] % 2]} {  puthelp "PRIVMSG #eGc :test1" } {  puthelp "PRIVMSG #eGc :test2" }}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Fri Aug 25, 2006 6:10 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[swasteris]]></name></author>
		<updated>2006-08-25T03:55:56-04:00</updated>

		<published>2006-08-25T03:55:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65806#p65806</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65806#p65806"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65806#p65806"><![CDATA[
something is ban working because in channel eggdrop bot write test1. so what wrong with that script?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8124">swasteris</a> — Fri Aug 25, 2006 3:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[demond]]></name></author>
		<updated>2006-08-24T22:39:44-04:00</updated>

		<published>2006-08-24T22:39:44-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65790#p65790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65790#p65790"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65790#p65790"><![CDATA[
there's a little catch here: this won't work and will bail out with Tcl error on minute values of 08 and 09 as these aren't valid octal numbers<br><br>you can use [scan] to extract proper numerical values from [bind time] proc arguments<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5056">demond</a> — Thu Aug 24, 2006 10:39 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[swasteris]]></name></author>
		<updated>2006-08-24T16:08:12-04:00</updated>

		<published>2006-08-24T16:08:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65775#p65775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65775#p65775"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65775#p65775"><![CDATA[
very tnx <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_wink.gif" width="15" height="15" alt=";)" title="Wink"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8124">swasteris</a> — Thu Aug 24, 2006 4:08 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[nml375]]></name></author>
		<updated>2006-08-24T13:44:59-04:00</updated>

		<published>2006-08-24T13:44:59-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65773#p65773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65773#p65773"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65773#p65773"><![CDATA[
You hav'nt specified the value of $m...<br>Also, your proc does not take proper number of variables to be used with a time-binding<br><br>Finally, please put code inside code-blocks..<div class="codebox"><p>Code: </p><pre><code>bind time - * time:testproc time:test {minute hour day month year} { #setting m to 1 for demonstration set m 1 if {[expr $m % 2]} {  puthelp "PRIVMSG #eGc :test1" } {  puthelp "PRIVMSG #eGc :test2" }}</code></pre></div>Of course, you'll have to set m to something useful, unless you're using it as a global variable (then you'll have to "global m" it first however)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8052">nml375</a> — Thu Aug 24, 2006 1:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[swasteris]]></name></author>
		<updated>2006-08-24T13:01:32-04:00</updated>

		<published>2006-08-24T13:01:32-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=65771#p65771</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=65771#p65771"/>
		<title type="html"><![CDATA[need tcl script]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=65771#p65771"><![CDATA[
bind time - * time:test; proc time:test {1} {if {[expr $m % 2]} {putserv "privmsg #eGc :test1"} {putserv "privmsg #eGc :test2"}}<br><br>how make that script work with eggdrop! <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_question.gif" width="15" height="15" alt=":?:" title="Question">  that script me don't working whit eggdrop.. help plz (sry ban English  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":?" title="Confused"> )<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8124">swasteris</a> — Thu Aug 24, 2006 1:01 pm</p><hr />
]]></content>
	</entry>
	</feed>
