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

	<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>2014-12-19T04:59:09-04:00</updated>

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

		<entry>
		<author><name><![CDATA[caesar]]></name></author>
		<updated>2014-12-19T04:59:09-04:00</updated>

		<published>2014-12-19T04:59:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103379#p103379</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103379#p103379"/>
		<title type="html"><![CDATA[Leave inactive channels automatically]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103379#p103379"><![CDATA[
Haven't tested this, so give it a try and report back if you got any problems.<br><br>By default ALL channels will be monitored and removed once the 24 hours deadline hits, so if you want any channels not to be checked then from DCC Chat/Telnet with the bot set them to +skipCheck with <em class="text-italics">.chanset #channel +skipCheck</em><div class="codebox"><p>Code: </p><pre><code>namespace eval inactiveCheck {variable inactive "172800" # in secondssetudef flag skipChecksetudef int lastwordsbind pubm * * [namespace current]::savebind cron - {?0*} [namespace current]::checkbind join * * [namespace current]::joinedproc save {nick uhost hand chan text} {if {![channel get $chan skipCheck]} {channel set $chan lastwords [unixtime]} else {channel set $chan lastwords 0}}proc check {min hour day month weekday} {variable inactiveforeach chan [channels] {if {[channel get $chan skipCheck]} continueset lastwords [channel get $chan lastwords]if {$lastwords &gt; 0} {set difference [expr [unixtime] - $lastwords]if {$difference &gt;= $lastwords} {channel remove $chanputlog "inactiveCheck: removing inactive $chan channel cos last spoken words where [duration $difference] ago."}}}}proc joined {nick uhost hand chan} {if {[isbotnick $nick]} {if {![channel get $chan skipCheck]} {channel set $chan lastwords [unixtime]} else {channel set $chan lastwords 0}}}}</code></pre></div>I've also moved this to <em class="text-italics">Script Requests</em> as it seems to fit this section better.<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=187">caesar</a> — Fri Dec 19, 2014 4:59 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[willyw]]></name></author>
		<updated>2014-12-18T09:47:11-04:00</updated>

		<published>2014-12-18T09:47:11-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103375#p103375</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103375#p103375"/>
		<title type="html"><![CDATA[Re: Leave inactive channels automatically]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103375#p103375"><![CDATA[
Is it because you know no TCL at all?<br><br>Would this be your first script?<br><br>We need more info from you, to know how to go about answering/helping you.    Usually this can be determined by the poster such as yourself, posting the code that they have written and been trying so far.  <br>Have you tried?   Written any part or parts of it  yourself, yet?<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=10420">willyw</a> — Thu Dec 18, 2014 9:47 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kaj]]></name></author>
		<updated>2014-12-18T08:32:42-04:00</updated>

		<published>2014-12-18T08:32:42-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103374#p103374</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103374#p103374"/>
		<title type="html"><![CDATA[Leave inactive channels automatically]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103374#p103374"><![CDATA[
bump<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12278">Kaj</a> — Thu Dec 18, 2014 8:32 am</p><hr />
]]></content>
	</entry>
		<entry>
		<author><name><![CDATA[Kaj]]></name></author>
		<updated>2014-10-16T11:32:09-04:00</updated>

		<published>2014-10-16T11:32:09-04:00</published>
		<id>https://forum.eggheads.org/viewtopic.php?p=103282#p103282</id>
		<link href="https://forum.eggheads.org/viewtopic.php?p=103282#p103282"/>
		<title type="html"><![CDATA[Leave inactive channels automatically]]></title>

		
		<content type="html" xml:base="https://forum.eggheads.org/viewtopic.php?p=103282#p103282"><![CDATA[
Hey,<br><br>I'd like to make a TCL script for my eggdrop that will let the bot leave inactive channels (e.g. channels where nothing was said past 2 days).<br><br>I have no idea how to do this so is there anyone that can give me any advice on how I should approach this problem?<br><br>Sincerely,<br><br>Kaj<p>Statistics: Posted by <a href="https://forum.eggheads.org/memberlist.php?mode=viewprofile&amp;u=12278">Kaj</a> — Thu Oct 16, 2014 11:32 am</p><hr />
]]></content>
	</entry>
	</feed>
