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

	<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>2012-07-06T22:11:24-04:00</updated>

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

		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-06T22:11:24-04:00</updated>

		<published>2012-07-06T22:11:24-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99704#p99704</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99704#p99704"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99704#p99704"><![CDATA[
Think i would just try to get the same script sending the same rules on a 20 min deal.  Believe i would use bind times instead of timers tho...<br>Add this code near the top of the script:<div class="codebox"><p>Code: </p><pre><code>bind time - "00 *" callrulesbind time - "20 *" callrulesbind time - "40 *" callrulesproc callrules {mn hr da mo yr} {  global botnick  publicrules $botnick :TIMED: :RULES: #yourchannel none}</code></pre></div>Replace #yourchannel with the channel we are sending the timed rules to.<br>Then change the last process in the script to look more like this:<div class="codebox"><p>Code: </p><pre><code>proc publicrules {nick host hand chan arg} { global rules count set dir "logs/rules($chan).txt" if {![validchan $chan]} { return 0 } if {[channel get $chan rules]} {   if {![info exists count(rules:on)]} {      set count(rules:on) 0    }   if {$count(rules:on) &gt;= 1} {     puthelp "NOTICE $nick :Please wait for $rules(time) seconds before i can show the rules."     return 0   }   incr count(rules:on)   utimer $rules(time) [list unset count(rules:on)]   if {[file exists $dir] == 0} {     set file [open $dir w]     close $file   }   set file [open $dir "r"]   set w [read -nonewline $file]   close $file   set data [split $w "\n"]   set i 0   if {$data == ""} { puthelp "NOTICE $nick :There are no rules for $chan"     return 0   }   foreach rule $data {    set i [expr $i +1]    if {$host eq ":TIMED:"} {  set sendto $chan    } else {  set sendto $nick  }    puthelp "NOTICE $sendto :12The rules for 4$chan 12are:"    puthelp "NOTICE $sendto :12 $i . $rule"   } }}</code></pre></div>None of this is tested tho,  but looks to me to work<br><br>Goodluck<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jul 06, 2012 10:11 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tagoy]]></name></author>
		<updated>2012-07-06T21:52:49-04:00</updated>

		<published>2012-07-06T21:52:49-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99703#p99703</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99703#p99703"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99703#p99703"><![CDATA[
Yes if you could do it sir spike i want to post the channel rules via notice every 20minutes. Uhmm i want another script not on the blackrules. If its okay.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12025">tagoy</a> — Fri Jul 06, 2012 9:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-06T12:48:56-04:00</updated>

		<published>2012-07-06T12:48:56-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99694#p99694</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99694#p99694"/>
		<title type="html"><![CDATA[Think that script needs timers?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99694#p99694"><![CDATA[
So, now that we have a working trigger script for for your channel rules,  don't we still need a way to post the rules on a 20 minute timer?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Fri Jul 06, 2012 12:48 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tagoy]]></name></author>
		<updated>2012-07-06T02:00:30-04:00</updated>

		<published>2012-07-06T02:00:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99690#p99690</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99690#p99690"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99690#p99690"><![CDATA[
Thansk for the help sir spike.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12025">tagoy</a> — Fri Jul 06, 2012 2:00 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-05T23:15:09-04:00</updated>

		<published>2012-07-05T23:15:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99686#p99686</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99686#p99686"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99686#p99686"><![CDATA[
Let me know here if the script is functional,  as not all scripts in the archive work without error.  If it does, I would be glad to make it also read the rules to the channel on a 20 min timer.<br><br>I'll be around the forum for a couple more hours, and again tomorrow.  Goodluck with that script:)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Jul 05, 2012 11:15 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tagoy]]></name></author>
		<updated>2012-07-05T23:06:21-04:00</updated>

		<published>2012-07-05T23:06:21-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99685#p99685</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99685#p99685"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99685#p99685"><![CDATA[
okay thanks i will search for it.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12025">tagoy</a> — Thu Jul 05, 2012 11:06 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-05T22:52:09-04:00</updated>

		<published>2012-07-05T22:52:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99684#p99684</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99684#p99684"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99684#p99684"><![CDATA[
have you looked at  BlackRules  script in the archive?<br><br>if that script was to work all we would need is a bind time to do the timed readings of the rules.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Jul 05, 2012 10:52 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tagoy]]></name></author>
		<updated>2012-07-05T22:45:27-04:00</updated>

		<published>2012-07-05T22:45:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99683#p99683</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99683#p99683"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99683#p99683"><![CDATA[
yes i already did that, ive been searching in egghelp.org for the tcl that i need. But i dont know the name also im reading the description still no luck.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12025">tagoy</a> — Thu Jul 05, 2012 10:45 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-05T22:44:03-04:00</updated>

		<published>2012-07-05T22:44:03-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99682#p99682</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99682#p99682"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99682#p99682"><![CDATA[
Have you tried looking in the script archive for something close to what your looking for?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Jul 05, 2012 10:44 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tagoy]]></name></author>
		<updated>2012-07-05T22:36:12-04:00</updated>

		<published>2012-07-05T22:36:12-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99681#p99681</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99681#p99681"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99681#p99681"><![CDATA[
thanks for the reply. Well i need an auto notice script tcl. That an eggdrop notice the rules every 20minutes. Also if type !rules then it will show the channel rules. thanks<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12025">tagoy</a> — Thu Jul 05, 2012 10:36 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[SpiKe^^]]></name></author>
		<updated>2012-07-05T22:33:33-04:00</updated>

		<published>2012-07-05T22:33:33-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99680#p99680</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99680#p99680"/>
		<title type="html"><![CDATA[more info]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99680#p99680"><![CDATA[
I think we are going to need a little more information on your request.<br>What exactly are we looking for here?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=7749">SpiKe^^</a> — Thu Jul 05, 2012 10:33 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[tagoy]]></name></author>
		<updated>2012-07-05T22:07:39-04:00</updated>

		<published>2012-07-05T22:07:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=99679#p99679</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=99679#p99679"/>
		<title type="html"><![CDATA[request auto notice of rules]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=99679#p99679"><![CDATA[
please help.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12025">tagoy</a> — Thu Jul 05, 2012 10:07 pm</p><hr />
]]></content>
	</entry>
	</feed>
