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

	<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>2007-01-21T20:00:38-04:00</updated>

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

		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-21T20:00:38-04:00</updated>

		<published>2007-01-21T20:00:38-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69799#p69799</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69799#p69799"/>
		<title type="html"><![CDATA[Bot leave for xx minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69799#p69799"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub n !stfu takeAbreakproc takeAbreak {n u h c a} {   expr {[scan $a %d a]&gt;0||[set a 1]}   putquick "PRIVMSG $c :I'll be back in $a minute[expr {$a==1?"":"s"}]"   channel set $c +inactive   utimer [expr {abs($a)*60}] [list channel set $c -inactive]}</code></pre></div>This will make it take the absolute value of $a so -1 will be taken as 1 for example.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Sun Jan 21, 2007 8:00 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[area57]]></name></author>
		<updated>2007-01-21T15:03:19-04:00</updated>

		<published>2007-01-21T15:03:19-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69790#p69790</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69790#p69790"/>
		<title type="html"><![CDATA[Bot leave for xx minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69790#p69790"><![CDATA[
<blockquote class="uncited"><div>EDIT3: you didn't find the bug? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> (messed up scan when $a was empty)</div></blockquote>Ok, this Bug is now fixed, but a have found another one, I have changed the level to o|o, and someone types a negative number like -1 the Bot dont came back to the channel -.-<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=8608">area57</a> — Sun Jan 21, 2007 3:03 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[area57]]></name></author>
		<updated>2007-01-17T18:29:30-04:00</updated>

		<published>2007-01-17T18:29:30-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69697#p69697</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69697#p69697"/>
		<title type="html"><![CDATA[Bot leave for xx minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69697#p69697"><![CDATA[
Hi,<br><br>thank you very much.<br>but I have one more question,<br>is it possible that the Bot send a message in the chan before it performe the part ?<br><br>EDIT: Thanks for the Edit user <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=8608">area57</a> — Wed Jan 17, 2007 6:29 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Sir_Fz]]></name></author>
		<updated>2007-01-17T18:18:58-04:00</updated>

		<published>2007-01-17T18:18:58-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69696#p69696</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69696#p69696"/>
		<title type="html"><![CDATA[Bot leave for xx minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69696#p69696"><![CDATA[
<div class="codebox"><p>Code: </p><pre><code>bind pub n ~shutup part:joinproc part:join {nick uhost hand chan arg} { channel set $chan +inactive timer 5 [list channel set $chan -inactive]}</code></pre></div>This will make the bot part and rejoin after 5 minutes.<br><br>Edit: user beat me to it <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_biggrin.gif" width="15" height="15" alt=":D" title="Very Happy"><p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=3085">Sir_Fz</a> — Wed Jan 17, 2007 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[user]]></name></author>
		<updated>2007-01-17T20:54:51-04:00</updated>

		<published>2007-01-17T18:18:47-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69695#p69695</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69695#p69695"/>
		<title type="html"><![CDATA[Bot leave for xx minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69695#p69695"><![CDATA[
Try this: <div class="codebox"><p>Code: </p><pre><code>bind pub n !stfu takeAbreakproc takeAbreak {n u h c a} {expr {[scan $a %d a]&gt;0||[set a 1]}putquick "PRIVMSG $c :I'll be back in $a minute[expr {$a==1?"":"s"}]"channel set $c +inactiveutimer [expr {$a*60}] [list channel set $c -inactive]}</code></pre></div>Then do "!stfu 2" and see if it leaves for 2 minutes (the default is 1)<br><br>EDIT: That was close Fz <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_smile.gif" width="15" height="15" alt=":)" title="Smile"><br>EDIT2: added a message<br>EDIT3: you didn't find the bug? <img class="smilies" src="https://forum.eggheads.org/images/smilies/icon_razz.gif" width="15" height="15" alt=":P" title="Razz"> (messed up scan when $a was empty)<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=2878">user</a> — Wed Jan 17, 2007 6:18 pm</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[area57]]></name></author>
		<updated>2007-01-17T17:35:17-04:00</updated>

		<published>2007-01-17T17:35:17-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=69691#p69691</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=69691#p69691"/>
		<title type="html"><![CDATA[Bot leave for xx minutes]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=69691#p69691"><![CDATA[
Hi,<br><br>first: my englisch is not very good, because I'm from Germany.<br><br>second: the request,<br><br>I'm looking for a script that the Bot leaves the channel if triggert for a few minutes.<br>i.e. i've trigger with ~shutup and the Bot parts and returnes after xx minutes.<br><br>I hope you unterstand my request <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=8608">area57</a> — Wed Jan 17, 2007 5:35 pm</p><hr />
]]></content>
	</entry>
	</feed>
