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

	<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>2009-12-29T21:55:11-04:00</updated>

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

		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-12-29T21:55:11-04:00</updated>

		<published>2009-12-29T21:55:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91494#p91494</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91494#p91494"/>
		<title type="html"><![CDATA[bind time dosn't work with PRIVMSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91494#p91494"><![CDATA[
The following code will output a message in all the bot's channels with a specific channel flag every ten minutes :-<br><div class="codebox"><p>Code: </p><pre><code>setudef flag mytimebind TIME - "?0 * * * *" myprocproc myproc {minute hour day month year} {  foreach chan [channels] {    if {[channel get $chan mytime]} {      if {[botonchan $chan]} {        putserv "PRIVMSG $chan :time bind triggered"      }    }  }  return 0}</code></pre></div>In order to activate the flag for each channel, use (in the partyline) .chanset #channelname +mytime<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Dec 29, 2009 9:55 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hlds12]]></name></author>
		<updated>2009-12-29T21:44:58-04:00</updated>

		<published>2009-12-29T21:44:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91493#p91493</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91493#p91493"/>
		<title type="html"><![CDATA[bind time dosn't work with PRIVMSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91493#p91493"><![CDATA[
Thank you very much, at last that occurred to me...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11034">hlds12</a> — Tue Dec 29, 2009 9:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-12-29T21:46:23-04:00</updated>

		<published>2009-12-29T21:40:40-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91492#p91492</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91492#p91492"/>
		<title type="html"><![CDATA[bind time dosn't work with PRIVMSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91492#p91492"><![CDATA[
The following code will output a message in the channel named #whatever every 10 minutes (whenever minutes ends with a 0 ie. 00, 10, 20 etc) :-<br><div class="codebox"><p>Code: </p><pre><code># set here the time bind's output channelset mychan "#whatever"bind TIME - "?0 * * * *" myprocproc myproc {minute hour day month year} {  global mychan  putserv "PRIVMSG $mychan :time bind triggered"  return 0}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Dec 29, 2009 9:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hlds12]]></name></author>
		<updated>2009-12-29T21:28:58-04:00</updated>

		<published>2009-12-29T21:28:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91491#p91491</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91491#p91491"/>
		<title type="html"><![CDATA[bind time dosn't work with PRIVMSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91491#p91491"><![CDATA[
<blockquote class="uncited"><div>Each bind passes different arguments to the procs they call.</div></blockquote>Thanks!<br>Does this mean that I can't use PRIVMSG at all? I could just do this<div class="codebox"><p>Code: </p><pre><code>proc myproc {minute hour day month year} {  # code here} </code></pre></div> and this<div class="codebox"><p>Code: </p><pre><code>putserv "PRIVMSG $minute : TEST TEXT" </code></pre></div> but that won't work.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11034">hlds12</a> — Tue Dec 29, 2009 9:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[arfer]]></name></author>
		<updated>2009-12-29T20:42:01-04:00</updated>

		<published>2009-12-29T20:42:01-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91490#p91490</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91490#p91490"/>
		<title type="html"><![CDATA[bind time dosn't work with PRIVMSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91490#p91490"><![CDATA[
A time bind does not pass a channel to the proc it triggers.<br><div class="codebox"><p>Code: </p><pre><code>bind TIME - "?0 * * * *" myprocproc myproc {minute hour day month year} {  # code here}</code></pre></div>Each bind passes different arguments to the procs they call. Look them up in tcl-commands.html before using them.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=5705">arfer</a> — Tue Dec 29, 2009 8:42 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[hlds12]]></name></author>
		<updated>2009-12-29T20:22:27-04:00</updated>

		<published>2009-12-29T20:22:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=91489#p91489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=91489#p91489"/>
		<title type="html"><![CDATA[bind time dosn't work with PRIVMSG]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=91489#p91489"><![CDATA[
I tried this:<br><div class="codebox"><p>Code: </p><pre><code>bind pub - !force myprocbind time - "?0 * * * *" myprocproc myproc {nick uhost hand chan text} {set Something "text here"set writeFile [open file.txt w]puts $writeFile $Somethingclose $writeFileputserv "PRIVMSG $chan : TEST TEXT"}</code></pre></div>When I write !force in my irc channel the proc "myproc" is performed. Good.<br>The funny part: With bind time it doesn't work! When I wait 10 minutes nothing is printed out by PRIVMSG <strong class="text-strong">but</strong> the text "text here" is written to the file file.txt.<br><br>Actually this means, the proc is performed with both "bind pub" and "bind time", but PRIVMSG doesn't work for bind time...<br><br>Can somebody please tell me how to use PRIVMSG within bind time...<br>Thanks!<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=11034">hlds12</a> — Tue Dec 29, 2009 8:22 pm</p><hr />
]]></content>
	</entry>
	</feed>
