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

	<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>2024-05-05T18:14:30-04:00</updated>

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

		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-05-05T18:14:30-04:00</updated>

		<published>2024-05-05T18:14:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112775#p112775</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112775#p112775"/>
		<title type="html"><![CDATA[Re: Time problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112775#p112775"><![CDATA[
That's the thing DasBrain explained. $cyclechan is not defined in cycle proc. Add it in your global, or use $:: namespace<br><link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl"># channel to cycleset cyclechan "#Sohbet"# minutes between each cycleset timecycle 2 # 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 cyclechan timewait        channel set $cyclechan +inactive        timer $timewait [list channel set $cyclechan -inactive]}</code></pre></div> <strong>script</strong> <p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Sun May 05, 2024 6:14 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-05-05T17:28:19-04:00</updated>

		<published>2024-05-05T17:28:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112773#p112773</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112773#p112773"/>
		<title type="html"><![CDATA[Re: Time problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112773#p112773"><![CDATA[
I'm getting an error<br><br>[00:26:01] Tcl error in script for 'timer1':<br>[00:26:01] can't read "cyclechan": no such variable<br><div class="codebox"><p>Code: </p><pre><code># channel to cycleset cyclechan "#Sohbet"# minutes between each cycleset timecycle 2 # 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 [list channel set $cyclechan -inactive]}</code></pre></div><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Sun May 05, 2024 5:28 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[CrazyCat]]></name></author>
		<updated>2024-05-02T03:29:20-04:00</updated>

		<published>2024-05-02T03:29:20-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112766#p112766</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112766#p112766"/>
		<title type="html"><![CDATA[Re: Time problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112766#p112766"><![CDATA[
You'd better try:<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.9.0/styles/atom-one-dark-reasonable.min.css"> <strong>script</strong>  <strong>script</strong> <div class="codebox"><pre><code class="language-tcl">timer $timewait [list channel set $cyclechan -inactive]</code></pre></div> <strong>script</strong> And when an error occures, think to type <strong class="text-strong">.set errorInfo</strong> to have more informations about it<br><br>DasBrain is true too: you don't have $cyclechan in this proc<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=691">CrazyCat</a> — Thu May 02, 2024 3:29 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[DasBrain]]></name></author>
		<updated>2024-05-02T03:27:18-04:00</updated>

		<published>2024-05-02T03:27:18-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112765#p112765</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112765#p112765"/>
		<title type="html"><![CDATA[Re: Time problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112765#p112765"><![CDATA[
You use the variable cyclechan in your proc cycle, but that variable is not listed in the global, or a parameter, or set anywhere.<br><br>Did you mean scanchan? Or did you mean cyclechan in the global statement?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12909">DasBrain</a> — Thu May 02, 2024 3:27 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[pektek]]></name></author>
		<updated>2024-05-02T03:21:43-04:00</updated>

		<published>2024-05-02T03:21:43-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=112764#p112764</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=112764#p112764"/>
		<title type="html"><![CDATA[Time problem?]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=112764#p112764"><![CDATA[
I'm getting error<br><br>[10:19:01] Tcl error in script for 'timer1':<br><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><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=13010">pektek</a> — Thu May 02, 2024 3:21 am</p><hr />
]]></content>
	</entry>
	</feed>
