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

	<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-08-01T05:34:27-04:00</updated>

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

		<entry>
		<author><name><![CDATA[nso]]></name></author>
		<updated>2003-08-01T05:34:27-04:00</updated>

		<published>2003-08-01T05:34:27-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=24255#p24255</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=24255#p24255"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=24255#p24255"><![CDATA[
i found this to be a good approach <div class="codebox"><p>Code: </p><pre><code># channel to cycleset cyclechan "#blabla"# minutes between each cycleset timecycle 120 # minutes to idle before rejoining chanset timewait 1bind RAW * 366 cyclestartproc cyclestart { from key arg } {global cyclechan timecycle        set chan [lindex [split $arg] 1]        if { $chan != $cyclechan } { return 0 }        timer $timecycle cycle}proc cycle { } {global scanchan timewait        channel set $cyclechan +inactive        timer $timewait "channel set $cyclechan -inactive"}</code></pre></div>you could alternatively use for-statements if you need more chans, I didn't bother adding that feature<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3074">nso</a> — Fri Aug 01, 2003 5:34 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[entrapmen]]></name></author>
		<updated>2003-07-15T03:14:58-04:00</updated>

		<published>2003-07-15T03:14:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23489#p23489</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23489#p23489"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23489#p23489"><![CDATA[
<blockquote class="uncited"><div>did u try to put &lt;your bot's nick&gt;!*@* instead of $botnick!*@* in the join bind ?</div></blockquote>Yea i did it Gandalf!*@* i check spell checkin there is no fault.<blockquote class="uncited"><div> also man, are u waiting 20mins for the bot to cycle before judging if its working ?</div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> i change the timecycle to 1 min. so i dun have to wait much.  <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_confused.gif" width="15" height="15" alt=":-?" title="Confused">  <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=3463">entrapmen</a> — Tue Jul 15, 2003 3:14 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-13T18:40:11-04:00</updated>

		<published>2003-07-13T18:40:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23439#p23439</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23439#p23439"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23439#p23439"><![CDATA[
did u try to put &lt;your bot's nick&gt;!*@* instead of $botnick!*@* in the join bind ?<br><br>also man, are u waiting 20mins for the bot to cycle before judging if its working ?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jul 13, 2003 6:40 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[entrapmen]]></name></author>
		<updated>2003-07-13T18:23:39-04:00</updated>

		<published>2003-07-13T18:23:39-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23437#p23437</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23437#p23437"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23437#p23437"><![CDATA[
<blockquote class="uncited"><div>try:<div class="codebox"><p>Code: </p><pre><code>set timecycle 20 set timewait 2 set chancycle "#adam #ayva"###code###bind join - $botnick!*@* start:timerproc start:timer { nick uhost hand chan } {if {([isbotnick $nick])} {part_chan }}proc part_chan { } { foreach chan [split $::chancycle] {   if {![botonchan $chan]} {     continue   }   channel set $chan +inactive   timer $::timewait "channel set $chan -inactive" } timer $::timecycle part_chan }</code></pre></div>in the bind join u can put your bot's nick instead of $botnick (i think it would be better)</div></blockquote> <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_cry.gif" width="15" height="15" alt=":cry:" title="Crying or Very sad"> nope! noffin has changed.<br>i couldnt get why doesnt it work i ve tried some other ways but they didnt work too.  <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=3463">entrapmen</a> — Sun Jul 13, 2003 6:23 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[spyda]]></name></author>
		<updated>2003-07-13T00:57:08-04:00</updated>

		<published>2003-07-13T00:57:08-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23398#p23398</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23398#p23398"/>
		<title type="html"><![CDATA[Misread]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23398#p23398"><![CDATA[
Sorry I wrote something else.. and it was not what he wanted so I deled it<br><br><img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_neutral.gif" width="15" height="15" alt=":|" title="Neutral"><br><br>----------<br>ThePope<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=1731">spyda</a> — Sun Jul 13, 2003 12:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-12T10:57:50-04:00</updated>

		<published>2003-07-12T10:57:50-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23373#p23373</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23373#p23373"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23373#p23373"><![CDATA[
try:<div class="codebox"><p>Code: </p><pre><code>set timecycle 20 set timewait 2 set chancycle "#adam #ayva"###code###bind join - $botnick!*@* start:timerproc start:timer { nick uhost hand chan } {if {([isbotnick $nick])} {part_chan }}proc part_chan { } { foreach chan [split $::chancycle] {   if {![botonchan $chan]} {     continue   }   channel set $chan +inactive   timer $::timewait "channel set $chan -inactive" } timer $::timecycle part_chan }</code></pre></div>in the bind join u can put your bot's nick instead of $botnick (i think it would be better)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jul 12, 2003 10:57 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[entrapmen]]></name></author>
		<updated>2003-07-12T09:33:55-04:00</updated>

		<published>2003-07-12T09:33:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23371#p23371</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23371#p23371"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23371#p23371"><![CDATA[
<blockquote class="uncited"><div>well, I don't have alot of experiance in this. but I think that the <strong class="text-strong">timer  $::timecycle part_chan</strong> means that the bot will cycle every 20mins, which means when the bot joins the channel u have to wait 20mins to see if it will cycle.<br>any way try adding this code which will let the script work on connect:<div class="codebox"><p>Code: </p><pre><code>bind evnt - init-server do:part_chanproc do:part_chan { init-server } {part_chan }</code></pre></div>plz note that I'm note sure of this code, but give it a try <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"></div></blockquote>nope doesnt give any response...<br><br>when i do:<br>[16:33] &lt;entrapmen&gt; .tcl part_chan<br>[16:33] &lt;Gandalf&gt; Tcl: timer2837<br>it start the tcl  <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=3463">entrapmen</a> — Sat Jul 12, 2003 9:33 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-12T08:07:20-04:00</updated>

		<published>2003-07-12T08:07:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23365#p23365</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23365#p23365"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23365#p23365"><![CDATA[
well, I don't have alot of experiance in this. but I think that the <strong class="text-strong">timer  $::timecycle part_chan</strong> means that the bot will cycle every 20mins, which means when the bot joins the channel u have to wait 20mins to see if it will cycle.<br>any way try adding this code which will let the script work on connect:<div class="codebox"><p>Code: </p><pre><code>bind evnt - init-server do:part_chanproc do:part_chan { init-server } {part_chan }</code></pre></div>plz note that I'm note sure of this code, but give it a try <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sat Jul 12, 2003 8:07 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[entrapmen]]></name></author>
		<updated>2003-07-12T06:55:00-04:00</updated>

		<published>2003-07-12T06:55:00-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23360#p23360</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23360#p23360"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23360#p23360"><![CDATA[
<blockquote class="uncited"><div>well if u want it to stay out for few minutes use this code:<div class="codebox"><p>Code: </p><pre><code>set timecycle 20 set timewait 2set chancycle "#adam #ayva" proc part_chan { } { foreach chan [split $::chancycle] {   if {![botonchan $chan]} {     continue   }   channel set $chan +inactive   timer $::timewait "channel set $chan -inactive"} timer $::timecycle part_chan }</code></pre></div>the "timewait" is the time (in minutes) u want the bot to stay out of channel before rejoining.</div></blockquote>Tnx for da code it works but there is a problem i couldnt get why it doesnt start the timer by it self. i had to write .tcl part_chan when bot restarts or dies. Is it about eggdrop version?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3463">entrapmen</a> — Sat Jul 12, 2003 6:55 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2003-07-08T18:01:55-04:00</updated>

		<published>2003-07-08T18:01:55-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23209#p23209</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23209#p23209"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23209#p23209"><![CDATA[
well if u want it to stay out for few minutes use this code:<div class="codebox"><p>Code: </p><pre><code>set timecycle 20 set timewait 2set chancycle "#adam #ayva" proc part_chan { } { foreach chan [split $::chancycle] {   if {![botonchan $chan]} {     continue   }   channel set $chan +inactive   timer $::timewait "channel set $chan -inactive"} timer $::timecycle part_chan }</code></pre></div>the "timewait" is the time (in minutes) u want the bot to stay out of channel before rejoining.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Tue Jul 08, 2003 6:01 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2003-07-08T13:21:20-04:00</updated>

		<published>2003-07-08T13:21:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23204#p23204</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23204#p23204"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23204#p23204"><![CDATA[
The way you use the foreach gives me creeps. Better use somethig like this:<div class="codebox"><p>Code: </p><pre><code>set timecycle 20set chancycle "#adam #ayva"proc part_chan { } { foreach chan [split $::chancycle] {   if {![botonchan $chan]} {    continue  }  putserv "PART $chan :-=Spam%&amp;!??=-" }timer $::timecycle part_chan}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Tue Jul 08, 2003 1:21 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[entrapmen]]></name></author>
		<updated>2003-07-08T10:34:53-04:00</updated>

		<published>2003-07-08T10:34:53-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=23198#p23198</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=23198#p23198"/>
		<title type="html"><![CDATA[cycle code]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=23198#p23198"><![CDATA[
I got a code like dat:<br><br>set timecycle 20<br><br>proc part_chan {} {<br>global timecycle <br>#Hangi kanallari cycle yapacak ? (which channels are goin to be cycle)<br>foreach chancycle #adam {<br>putserv "PART $chancycle :-=Spam%&amp;!??=-"<br>timer $timecycle part_chan<br>}<br>foreach chancycle #ayva {<br>putserv "PART $chancycle :-=Spam%&amp;!??=-"<br>timer $timecycle part_chan<br>}<br>}<br><br>how can i sort it? like givin all the channels in line? and how could the bot will stay out of chan for couple minutes(i wanna figure the waitin time). tx anyway...<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3463">entrapmen</a> — Tue Jul 08, 2003 10:34 am</p><hr />
]]></content>
	</entry>
	</feed>
